BillyRayPreachersSon
Programmer
We've got a weird issue here at work that we're trying to work around.
We have a bookmarklet in the links bar of IE that users can click to edit the current page in the CMS. It works well when they click it while visiting a normal web page.
If they accidentally click the bookmarklet while they are not viewing an HTML web page (e.g. while they are viewing an RSS feed), they see the following error in IE:
When they click "OK", some users have experienced the browser (or tab) being forcibly closed, while for others, nothing happens. Regardless, the JavaScript in the bookmarklet doesn't run.
Initially, we thought it was to do with the code in the bookmarklet trying to access document.readyState, but it appears that trying to run any JavaScript code on an RSS page in IE does this.
To see this in action, visit any RSS feed (e.g. and then enter this in the URL bar:
For me, about 1 time in 10 I will see the alert box show 123, but the other 9 times, I will see the error message mentioned previously.
I've looked around and while I've found posts detailing others with the same (or similar problem), I can't seem to find any with a solution.
So I guess my question is: Is it possible to run any JavaScript via a bookmarklet on an RSS page in IE (version 7 or 8), or is this something that is just not possible?
Perhaps it has something to do with the security settings... that's going to be my next area of investigation, but if anyone has any ideas in the meantime, I'd love to hear them.
Thanks,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
We have a bookmarklet in the links bar of IE that users can click to edit the current page in the CMS. It works well when they click it while visiting a normal web page.
If they accidentally click the bookmarklet while they are not viewing an HTML web page (e.g. while they are viewing an RSS feed), they see the following error in IE:
IE said:Internet Explorer cannot download .
Unspecified error
When they click "OK", some users have experienced the browser (or tab) being forcibly closed, while for others, nothing happens. Regardless, the JavaScript in the bookmarklet doesn't run.
Initially, we thought it was to do with the code in the bookmarklet trying to access document.readyState, but it appears that trying to run any JavaScript code on an RSS page in IE does this.
To see this in action, visit any RSS feed (e.g. and then enter this in the URL bar:
Code:
javascript:alert(123);
For me, about 1 time in 10 I will see the alert box show 123, but the other 9 times, I will see the error message mentioned previously.
I've looked around and while I've found posts detailing others with the same (or similar problem), I can't seem to find any with a solution.
So I guess my question is: Is it possible to run any JavaScript via a bookmarklet on an RSS page in IE (version 7 or 8), or is this something that is just not possible?
Perhaps it has something to do with the security settings... that's going to be my next area of investigation, but if anyone has any ideas in the meantime, I'd love to hear them.
Thanks,
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign