| | |
Beginning with Ajax
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jul 2009
Posts: 93
Reputation:
Solved Threads: 1
Hi,
I'm starting to learn Ajax after playing around with JSP and Javascript, I felt the need for interaction without reloading the page.
I've searched everywhere for a simple java servlet/ajax example that I can play around with but just found a lot of asp and complex java examples.
Could someone please give me something as basic as typing a name in a text field and text being displayed beneath the text field after the word/letter has been typed. i.e. User must enter a name that is 3 or more letters else the text says "Error".
I'm currently using Netbeans, so if the example could work there, that wold be preferable!
Thanks a lot,
-Ashton.
I'm starting to learn Ajax after playing around with JSP and Javascript, I felt the need for interaction without reloading the page.
I've searched everywhere for a simple java servlet/ajax example that I can play around with but just found a lot of asp and complex java examples.
Could someone please give me something as basic as typing a name in a text field and text being displayed beneath the text field after the word/letter has been typed. i.e. User must enter a name that is 3 or more letters else the text says "Error".
I'm currently using Netbeans, so if the example could work there, that wold be preferable!
Thanks a lot,
-Ashton.
The example you described isn't AJAX, that's just standard Javascript validation. AJAX would be, for example, as the user types display a list of possible selections underneath the box.
http://w3schools.com/ajax/ajax_intro.asp
http://w3schools.com/ajax/ajax_intro.asp
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
•
•
Don't be silly... you know very well that it could be done with Ajax.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
•
•
Join Date: Jul 2009
Posts: 93
Reputation:
Solved Threads: 1
I said that I'm starting to learn it... I just want to view how ajax works altogether in action to see how it allows requests/responses without reloading a page. I want to see how it runs a servlet without reloading the page. In the most basic form possible. Preferably on a Netbeans project. I've read a couple of tutorials and w3schools and so on, but I want to play around with it on Netbeans.
It isn't a Netbeans project but it is a JSP AJAX primer (found by searching AJAX JSP on google...) http://www.ics.uci.edu/~cs122b/proje...SPExample.html
It should also be noted that while it is very important that you are familiar with your IDE it's just as important to not become absolutely dependent upon it.
It should also be noted that while it is very important that you are familiar with your IDE it's just as important to not become absolutely dependent upon it.
Last edited by ShawnCplus; Sep 22nd, 2009 at 1:43 pm.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Try these two links, I havent tried them, but they seem to be pretty good
http://www.devarticles.com/c/a/Java/...with-Servlets/
http://www.java-tips.org/java-ee-tip...echnology.html
There are also loads of examples out there, you just have to search for them.
When i first started learning jsp, I came across a lot of examples that were incomplete, dont be discouraged though, just try solving them yourself, google helps a lot, a lot of the errors are newbie errors. but you will get the hang of it.
http://www.devarticles.com/c/a/Java/...with-Servlets/
http://www.java-tips.org/java-ee-tip...echnology.html
There are also loads of examples out there, you just have to search for them.
When i first started learning jsp, I came across a lot of examples that were incomplete, dont be discouraged though, just try solving them yourself, google helps a lot, a lot of the errors are newbie errors. but you will get the hang of it.
Life... Is a Moment
•
•
Join Date: Jul 2009
Posts: 93
Reputation:
Solved Threads: 1
Hi,
I found an easy Ajax example here:
http://www.w3schools.com/Ajax/ajax_serverscript.asp
It also contains a demo of the end product.
The only problem is that it requires a "time.asp" but does not contain much information on how to do that. I come from a JSP background and don't know anything at all about asp... Would it be possible to translate the code snippet they gave to JSP? Below is the asp code I need to translate to JSP:
Thanks,
-Ashton.
I found an easy Ajax example here:
http://www.w3schools.com/Ajax/ajax_serverscript.asp
It also contains a demo of the end product.
The only problem is that it requires a "time.asp" but does not contain much information on how to do that. I come from a JSP background and don't know anything at all about asp... Would it be possible to translate the code snippet they gave to JSP? Below is the asp code I need to translate to JSP:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<% response.expires=-1 response.write(time) %>
Thanks,
-Ashton.
![]() |
Similar Threads
- Submit data through link?? (PHP)
- Frustrating Firefox Problem while making AJAX request on an anchor (JavaScript / DHTML / AJAX)
- Roblox seeks Web Developer – .NET / Ajax or DHTML (Web Development Job Offers)
- JavaScript / AJAX Guru (Software Development Job Offers)
- IIS Setup for AJAX (JavaScript / DHTML / AJAX)
- AJAX & PHP Developer ( Full Time ) (Web Development Job Offers)
- AJAX techniques... (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Can I control the Screen resolution in web page?
- Next Thread: Posting data to a remote server
| Thread Tools | Search this Thread |
Tag cloud for ajax
acid2 adobe air ajax ajaxcode ajaxexample ajaxhelp alphafive amf apax api arax asp beta browser codes compatible css developer development dojofoundation eclipse error ext flash flex form forms frameworks google gwt gxt html ibm ie8 java javascript javascripts jquery jsf jsp listbox microsoft mouse msdn office onreadystatechange opera oracle passing php post problem programming progressbar python ruby rubyconf runtime scriptlets search security session silverlight software sources sql stevewood synchronous tracking ui validation variables vista web webservice xml zend







