| | |
Ajax Help
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hi!
I am using a code to echo a row in a database table using ajax with PHP.
The code is working correctly.
The ajax will send the response text as follows-
My question is how can I retrieve individual fields into separate Id's?
I am using a code to echo a row in a database table using ajax with PHP.
The code is working correctly.
The ajax will send the response text as follows-
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
document.getElementById('outputText').innerHTML = httpObject.responseText;
My question is how can I retrieve individual fields into separate Id's?
My blog on .NET- http://dotnet.tekyt.info
Simply you have to parse the server response manually.
For example you get this a client side:
responseText = "field1||fiel2||field||......";
Then using javascipt string-functions to separate all the fields and use the your method of innerHTML to populate other text fields.
For example you get this a client side:
responseText = "field1||fiel2||field||......";
Then using javascipt string-functions to separate all the fields and use the your method of innerHTML to populate other text fields.
When you think you have done a lot, then be ready for YOUR downfall.
Thanks for your reply.
Can you please tell me how to do that?
I'm not well versed with javascript.
Can you please tell me how to do that?
I'm not well versed with javascript.
My blog on .NET- http://dotnet.tekyt.info
Ok, I googled a bit, I guess I can use the split() function for the purpose.
Thanks for your help!
Thanks for your help!
My blog on .NET- http://dotnet.tekyt.info
![]() |
Similar Threads
- AJAX & PHP Developer ( Full Time ) (Web Development Job Offers)
- AJAX : Am i right with the concept? (JavaScript / DHTML / AJAX)
- New Ajax Tutorial (IT Professionals' Lounge)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: OnClick/OnChange not working in IE
- Next Thread: get size of image file in K , Kb and restrict uplaod if file size is above speci
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxexample ajaxjspservlets array blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash focus form forms frameworks game getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 javascripts jquery jsf jsp jump libcurl listbox maps marquee masterpage math media menu object onerror onmouseoutdivproblem onmouseover onreadystatechange parent passing paypal pdf php position post programming prototype rated redirect safari scale scriptlets scroll search security size software sources star starrating stars stretch synchronous toggle tweet unicode variables web webservice window \n





