| | |
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 |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





