|
||||||
| AJAX Web based language that allows asynchronous loading of pages that does not interfere with normal page loading. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I'm trying to retrieve a value from a form with a single input: "formCameraIPAddress".
When the form is submitted using GET, I get a nice "?formCameraIPAddress=whateverIEnterHere" in the url. And $QUERY_STRING comes out as whateverIEnterHere after I run it through sed (the cgi program is a shell script). However, when the form is submitted asynchronously using an ajax method that loads pages in a content area like this... Code:
<input type="button" onClick="ajaxpage(myCGIGeneratedCameraDocument, 'contentarea')" value="Display camera" /> |
| Sponsored Links |
|
|
|
|||||
|
Can you post the body of your javascript "ajaxpage" method?
Ajax isn't actually going to "submit" a form as a normal html form would submit, you actually have to construct the URL that you want to invoke. So, my gut feeling is that your "ajaxpage" method doesn't include all of your form fields as a normal GET request from submitting a form would do.
__________________
Visit My Google Group Here: Web Development Innovation |
|
|||
|
Yes, you're right. I've realised that the function isn't actually submitting a form at all. I'll have to construct the URL myself - not too hard, but I wish I had realised this several hours ago. :S
|
|
|||||
|
You may want to look into the serialize function that Prototype offers...that should allow you to dynamically build a query string based on all of your form fields. It may save you some manual work.
__________________
Visit My Google Group Here: Web Development Innovation |
![]() |
| Tags |
| form, query_string |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ajax Form Help (validation and tips) | antonypeiris | AJAX | 4 | 02-15-2008 10:01 PM |
| Considering Ajax, Part 1: Cut through the hype | Ronin | JavaScript and CSS | 0 | 12-13-2006 02:36 PM |
| AJAX Evolved | Jordan | JavaScript and CSS | 0 | 09-09-2006 01:12 PM |
| Calling a form from another form | Void | Managed C++ | 1 | 07-01-2006 09:44 AM |
No contest at this time. Please check back later.