![]() |
| ||
| Ajax Help 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- document.getElementById('outputText').innerHTML = httpObject.responseText;My question is how can I retrieve individual fields into separate Id's? |
| ||
| Re: Ajax Help 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. |
| ||
| Re: Ajax Help Thanks for your reply. Can you please tell me how to do that? I'm not well versed with javascript. |
| ||
| Re: Ajax Help Ok, I googled a bit, I guess I can use the split() function for the purpose. Thanks for your help! |
| All times are GMT -4. The time now is 12:58 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC