Nithya Posted February 15, 2008 Share Posted February 15, 2008 I am using Ajax to display a grid which saves the form data after storing it to the database. It is working fine in firefox, but not in IE 6 or 7. Can anyone give the solution please... Quote Link to comment https://forums.phpfreaks.com/topic/91235-ajax-not-working-in-ie/ Share on other sites More sharing options...
nogray Posted February 15, 2008 Share Posted February 15, 2008 you'll need to give more details on what's not working. But since you are making a grid, make sure to add a tbody to the table, otherwise, nothing will show on it. Example var table = document.createElement('table'); var tbody = document.createElement('tbody'); table.appendChild(tbody); var tr = document.createElement('tr'); tbody.appendChild(tr); var td = document.createElement('td'); td.innerHTML = 'hello'; tr.appendChild(td); document.body.appendChild(table); If you use this example, run it after the page loads. Quote Link to comment https://forums.phpfreaks.com/topic/91235-ajax-not-working-in-ie/#findComment-467851 Share on other sites More sharing options...
Nithya Posted February 16, 2008 Author Share Posted February 16, 2008 thank you for your kind reply. i had done all these stuffs. When i click on save button, all the data get stored into the database. But its not getting updated to the grid. But i am facing this problem only if i am using IE. In firefox, the grid display is happening well once after i click on save. could u plz give me the solution for this. Quote Link to comment https://forums.phpfreaks.com/topic/91235-ajax-not-working-in-ie/#findComment-468214 Share on other sites More sharing options...
GB_001 Posted February 18, 2008 Share Posted February 18, 2008 w w w/Tizag/com Has a nice AJAX example that is cross-browser. -GB. Quote Link to comment https://forums.phpfreaks.com/topic/91235-ajax-not-working-in-ie/#findComment-469984 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.