Viewing Javascript not working in Everweb but works in iWeb
Javascript not working in Everweb but works in iWeb
|
User: Larry D. 11 years ago
|
|
|
I have the following script in my existing iWeb website, which I have been converting to EverWeb for the last several weeks (months). Finishing up on a few details. The following script is copied over from my iWeb site where it renders just fine but is not showing up in my EverWeb rendered site: <script src="http://widgets.paper.li/javascripts/init.js" type="text/javascript"></script> <script> Paperli.PaperWidget.Show({ pid: 'f-1319165285', width: 200, background: '#FB0000' }) </script> Also (a post edit), I am pasting it into an HTML widget and clicking Apply" Any help with this would be appreciated. Oliver Last edit 11 years ago |
|
|
User: Jumbo T. 11 years ago
|
|
|
The code interferes with EW. The solution is to use an separate page for the code and use an iframe to display the page. I figured that out put before reading the solution here : https://support.paper.li/hc/en-us/articles/204104233-Widgets-You-would-like-to-embed-a-widget-on-a-site-that-strips-Javascript Open TextEdit in plaintext (that's the opposite of rtf) Paste the code (without the space in the word Java Script) and save the file as html. Put the file on the server. Determine the URL. Use an iframe in a HTML Snippet. |
|
|
User: Larry D. 11 years ago
|
|
|
As it turns out, the script as-is works fine when I upload it to my hosting account. It just doesn't work when my computer is used to host the site. May have something to do with my Mac's Apache server or my service provider (Verizon DSL). Anyway, problem solved. Thank you for the suggestion, Oliver |
|
| Post Reply |
| You must login or signup to post. |
