| | |
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 |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger decimal dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt hiddenvalue hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal php player position problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n





