Results 1 to 10 of 10
Thread: Ajax and java jdk
- 09-22-2011, 10:43 AM #1
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
- 09-22-2011, 01:10 PM #2
Re: Ajax and java jdk
Hi. I want to ask you another question. if you say that you use js what server language do you use together with js?
PS What is Gals?
update :
I found myself it means gallons which is used in volume measurement or women depending on the context. ))Last edited by Petr; 09-22-2011 at 01:12 PM.
Skype: petrarsentev
http://TrackStudio.com
- 09-22-2011, 01:38 PM #3
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
Re: Ajax and java jdk
Hi,
My java script has all been client side for additions to firefox and chrome..
The Java application i am looking to run on a server and to develop an android application as well
ps. Gals = Girls ... lol
Thanks for your reply :)
- 09-22-2011, 02:18 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Ajax and java jdk
AJAX is mostly (to be honest) client side.
It uses Http to talk to the server, so the Java on there is not really any different to a normal web app (Servlets).
The thing you need to sort out is what you;re sending to and from the server. Responses will usually be JSON strings, since there's lots of useful Javascript stuff for handling them, and there's a good JSON package for Java as well. Requests can be whatever you want, and are largely dependent on what it is that particular request is supposed to do.
- 09-22-2011, 04:36 PM #5
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
Re: Ajax and java jdk
Hi,
at the moment I have a javascript add on to chrome that works. It sends the ajax request gets the info i need and then sends it back with another ajax response saving hours of key presses. Problem i get is that I want to run it 24/7 on a server as the transfer is not complex.. it being a case of checking some of the json response to see if it needs forwarding.
But i ca find no references to using ajax requests in this situation.. I dont want the memory overhead of running a browser on the server as it is a linux server with no user display.
Thanks
- 09-22-2011, 04:38 PM #6
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
Re: Ajax and java jdk
would be happy to see just one code example of how to send an ajax request please :)
I know how to send a standard http request
- 09-22-2011, 05:10 PM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Ajax and java jdk
Ah, so it's not a browser thing.
You could use URLConnection to fire them off (or Apache's HttpClient might be better) and pick up the responses all in Java.
- 09-22-2011, 05:22 PM #8
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
Re: Ajax and java jdk
I was hoping to use the URLConnection to fire them .. have done it so i can echo a standard site page to the console but i cant work out how to format it for the ajax request :(
- 09-22-2011, 05:34 PM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Ajax and java jdk
An Ajax request is simply a normal Http request.
What you need to send (and what you can expect back) are all dependent on what the server is expecting.
- 09-22-2011, 05:58 PM #10
Member
- Join Date
- Sep 2011
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
Java Developer (perm) - London (6.0, AJAX, JSF, Spring, Hibernate) £60,000 - £65,000
By terrih in forum Jobs OfferedReplies: 0Last Post: 09-14-2011, 06:32 PM -
Web Developer – Java Ajax UI – to £55k – Home Based – Berkshire
By Mike-Brown in forum Jobs OfferedReplies: 1Last Post: 04-22-2011, 08:17 AM -
Populate select list with Java/Ajax
By Jeremy720 in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 04-20-2011, 03:14 PM -
Java Developer – AJAX/XHTML/Javascript – Milton Keynes
By ICResourcing in forum Jobs OfferedReplies: 0Last Post: 11-09-2009, 12:04 PM -
JAVA, Ajax, Flash
By Digital Dispatching in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-06-2008, 07:49 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks