[RESOLVED] Why this script works (when blocked)?

Ask for help about NoScript, no registration needed to post
Guest

[RESOLVED] Why this script works (when blocked)?

Post by Guest »

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
Last edited by Tom T. on Tue Mar 13, 2012 4:35 am, edited 1 time in total.
Reason: mark as resolved
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Why this script works (when blocked)?

Post by dhouwn »

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
Guest

Re: Why this script works (when blocked)?

Post by Guest »

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?
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
User avatar
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)?

Post by Giorgio Maone »

Guest wrote:OK thank you. Can I ask where is this setting in the options?
NoScript Options|Advanced|Untrusted (edited by Tom T.'s correction)
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?
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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: Why this script works (when blocked)?

Post by Tom T. »

Giorgio Maone wrote:
Guest wrote:OK thank you. Can I ask where is this setting in the options?
NoScript Options|Untrusted
Should that be NoScript Options | Advanced | Untrusted ?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Firefox/3.6.27
Guest

Re: Why this script works (when blocked)?

Post by Guest »

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?
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]

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
Post Reply