Naughty javascript not working!
I am in the process of TRYING to migrate a 1.0 wiki to 2.0. The 1.0 wiki heavily used javascript and while I do have the premium custom css/javascript tool, pbwiki seems to be stripping out some code which allows it to work properly. Here's my problem:
In 1.0 wiki I use Overlib , a 'JavaScript library created to enhance websites with small popup information boxes (like tooltips) to help visitors around your website.'Its awesome, even NASA uses it on its site - what an endorsement, it must be safe I hear you cry! Anyways here is how the code looks in the working 1.0 wiki
Works a treat
and here is how it looks when 2.0 breaks it
You can see the dreaded word 'forbidden' popping up. I put a lot of work and time into implementing this tool so I would like it to work in 2.0. Comments, feedback, suggestions of help and fixes all greatly received. Negatives need not apply!
In 1.0 wiki I use Overlib , a 'JavaScript library created to enhance websites with small popup information boxes (like tooltips) to help visitors around your website.'Its awesome, even NASA uses it on its site - what an endorsement, it must be safe I hear you cry! Anyways here is how the code looks in the working 1.0 wiki
here
Works a treat
and here is how it looks when 2.0 breaks it
here
You can see the dreaded word 'forbidden' popping up. I put a lot of work and time into implementing this tool so I would like it to work in 2.0. Comments, feedback, suggestions of help and fixes all greatly received. Negatives need not apply!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Sent to support. Might get more of a response there ??
-
Inappropriate?I was able to get around this by putting the code that I needed into a .js file and then referencing that code through a google gadget..
does that work for you? -
Inappropriate?Yea I should have thought of that. The only problem is that I have a page full of links which I need to continually update. I prefer to edit them in fck editor rather than a js file. Well at least it works I suppose. Thanks for the suggestion
-
Inappropriate?I was able to get around this by putting my content into a hidden div and then reading it out through the javascript. that way, I could still modify the content in FCK but got the javascript functionality.
-
Inappropriate?Sorry Tim, I'm struggling to get my head round this. Could you show me an example of the code you use?
-
Inappropriate?I created a javascript widget for adding yourself to a wiki (before you could set your wiki so that it could be edited by anybody) and I made it generic this way:
<div id="admin_key" style="visibility: hidden"><small>lcq3C4wqh9g2I6Ui4ks6</small></div>
<p><img class="pluginslug" contenteditable="false" src="/plugin_helper.php?plugin=googlegadget&html=%3Cscript+src%3D%27http%3A%2F%2Fcopytest3.pbwiki.com%2Ff%2Fsignup.js%27%3E%3C%2Fscript%3E&w=200&h=50" isapbwikiplugin="1" /></p>
the signup.js is generic because it reads the page specific text from the admin_key div..
(not sure how this html is going to post on getsatisfaction)
Loading Profile...


