I accidently put a javascript on my page and now I can't edit it anymore because there is an error on the page. Will this problem heal in time or do I have to make the whole page again
Office Live Basics, Essentials and Premium
I accidently put a javascript on my page and now I can't edit it anymore because there is an error on the page. Will this problem heal in time or do I have to make the whole page again
Hi chocolatemoldfactory,
The page will probably not heal itself, would be my guess. Can you tell us a little more about what kind of script you added to the page, how you added it and/or (even better) send us the URL to the broken page so we can take a peek at it
Thx,
Chris
Chris,
Sorry for the duplicate posts. I had some problems and wasn't sure if it worked right.
You are right, the page did not heal itself and I had to end up completly remaking it. The page was http://thechocolatemoldfactory.com/default.aspx. I was trying to put an amazon search box on the page. The script was something like this:
<iframe src="http://rcm.amazon.com/e/cm t=thechomolfac-20&o=1&p=27&l=qs1&f=ifr" width="180" height="150" frameborder="0" scrolling="no"></iframe>
Everytime I try to put this code on via the html module, it locks up the page. I have to delete the page and start all over. This has happened with other items as well and I want to figure out what is going on because it has cost me alot of time to keep remaking pages.
Thanks
Hi thechocolatemoldfactory,
I tried to add the script above via the HTML module, and it worked fine for me.
Are you still running into this problem It looks like you were able to add the search box to: http://thechocolatemoldfactory.com/astore.aspx
Thanks.
The aStore runs off of Amazon's server and I didn't make the page. All I know is that anytime I add a script, whether it be google adsense, Amazon, or YouTube, there are errors on the page. Whenever this happens, I can't edit the page anymore and have to start all over.
I'm pretty sure what you are running into is an issue with putting linked "external" javascript into the HTML Module. In the code snippet you gave, you are adding an iFrame, but that iFrame likely adds more external javascript files. This runs directly into the IE bug.
Basically, if you use an external JS file inside of the web site's HTML module, it will lock up or crash IE. You may work around using the "defer" attribute of the <SCRIPT> tag. For more information, see this thread.
Unfortunately, you are not directly adding the <SCRIPT> tags in this example. You are adding the <IFRAME> tag, which likely is loading the JS files. So this work-around won't help you for Amazon example, but it might help on the others.