Solarpitch Posted March 29, 2011 Share Posted March 29, 2011 Hi Guys, I'm pulling a html page from a database (html newsletter). In the code I have links that will open a lightbox and allow the user to add news articles into it via ajax. So the html is being updated without being send back to the browser. I have a "save" button which when the user clicks, I want to grab all of the html of the page and save it to the database. Not quite sure how to do this as the html that is being saved, is updated since it was retrieved by the browser. Quote Link to comment https://forums.phpfreaks.com/topic/232107-saving-a-web-page-with-php-dynamic/ Share on other sites More sharing options...
trq Posted March 29, 2011 Share Posted March 29, 2011 Javascript doesn't actually update the HTML, just the DOM. Take a look at an Ajax driven page once some changes are made, the HTML remains as it was when it was initially served. Quote Link to comment https://forums.phpfreaks.com/topic/232107-saving-a-web-page-with-php-dynamic/#findComment-1193896 Share on other sites More sharing options...
Solarpitch Posted March 29, 2011 Author Share Posted March 29, 2011 Ah right I see. What do you mean by an Ajax driven page? What would that involve? Quote Link to comment https://forums.phpfreaks.com/topic/232107-saving-a-web-page-with-php-dynamic/#findComment-1193897 Share on other sites More sharing options...
trq Posted March 29, 2011 Share Posted March 29, 2011 Like the page you describe above. Quote Link to comment https://forums.phpfreaks.com/topic/232107-saving-a-web-page-with-php-dynamic/#findComment-1193901 Share on other sites More sharing options...
Solarpitch Posted March 29, 2011 Author Share Posted March 29, 2011 Ah ok, so make the call to the database and return all of the html with Ajax. Quote Link to comment https://forums.phpfreaks.com/topic/232107-saving-a-web-page-with-php-dynamic/#findComment-1193904 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.