dhope Posted April 2, 2011 Share Posted April 2, 2011 Hi, I am creating a page editor for my site and I was wondering if there was a way to disable the javascript and flash use on a page when I load it up in the editor. At the moment when the page loads up the flash and javascript are interfering with the editor. I hope this makes sense Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/232511-disable-javascript-and-flash/ Share on other sites More sharing options...
gizmola Posted April 2, 2011 Share Posted April 2, 2011 Not really. Why would a page that allows you to edit the source of another page, be rendering it? Quote Link to comment https://forums.phpfreaks.com/topic/232511-disable-javascript-and-flash/#findComment-1196046 Share on other sites More sharing options...
nogray Posted April 2, 2011 Share Posted April 2, 2011 First your editable content area should be iframed to avoid security issues and conflicts. I assume you have an "Edit HTML" button, whenever the user change the HTML code, you would need to scan it for any scripts (including events) or flash objects and remove them. Quote Link to comment https://forums.phpfreaks.com/topic/232511-disable-javascript-and-flash/#findComment-1196070 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.