Hello,
I'm wondering, once in a while I see some scripted actions on certain pages that work even when NoScript is NOT allowing any scripts on the page. Usually it's a CSS trick, but sometimes I can't figure it out. Here is an example:
http://www.rei.com/search?query=sweater
Near the top of the search results (list of sweaters) you see two drop-downs:
"Sort by" and "Items per page"
Both of these will reload the page after the value of the drop-down has changed. This is a standard JavaScript thing, but why does it work?
I tried extracting their source for just the form and drop-down into a test file, but it doesn't work that way (more as I'd expect). That makes me think it really is a CSS trick, but I loaded up their CSS pages and I don't see anything.
Can someone tell me why their dropdowns work with NoScript blocking enabled?resol
[RESOLVED] Why this script works (when blocked)?
[RESOLVED] Why this script works (when blocked)?
Last edited by Tom T. on Tue Mar 13, 2012 4:35 am, edited 1 time in total.
Reason: mark as resolved
Reason: mark as resolved
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Re: Why this script works (when blocked)?
It's the "attempt to fix JavaScript links" feature of NoScript.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Re: Why this script works (when blocked)?
OK thank you. Can I ask where is this setting in the options?
Also, my test page with 99% the same code didn't work (blocked by noscript) so what could be the difference? If I want to make a webpage that has a feature like this that works even under a NoScript block, what should I do?
Also, my test page with 99% the same code didn't work (blocked by noscript) so what could be the difference? If I want to make a webpage that has a feature like this that works even under a NoScript block, what should I do?
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Why this script works (when blocked)?
NoScript Options|Advanced|Untrusted (edited by Tom T.'s correction)Guest wrote:OK thank you. Can I ask where is this setting in the options?
Generic "features" cannot be "fixed", only JavaScript links which are used as general purpose ones, i.e. which contain a navigable URL, are turned into regular ones.Guest wrote:If I want to make a webpage that has a feature like this that works even under a NoScript block, what should I do?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Re: Why this script works (when blocked)?
Should that be NoScript Options | Advanced | Untrusted ?Giorgio Maone wrote:NoScript Options|UntrustedGuest wrote:OK thank you. Can I ask where is this setting in the options?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Firefox/3.6.27
Re: Why this script works (when blocked)?
Generic "features" cannot be "fixed", only JavaScript links which are used as general purpose ones, i.e. which contain a navigable URL, are turned into regular ones.[/quote]Guest wrote:If I want to make a webpage that has a feature like this that works even under a NoScript block, what should I do?
Looks like my test page didn't work because the links in the javascript were relative (eg. "test.html" instead of "/test.html"). Making the links absolute seems to have fixed it.
Thanks for your assistance.
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2