Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript not working in FF 1

Status
Not open for further replies.

mmerlinn

Programmer
May 20, 2005
745
US
For some reason Javascript is not working.

I have verified that Javascript is turned on in Tools > Options > Content.

Is there any other location in FF that controls whether JS is on or off? Or is this a Windows issue? If so, where do I look?

Until recently everything worked fine. I have not added nor changed any programs in ages, so I believe I can safely rule any conflicts out because of that.

Using FF on Windows XP.

mmerlinn


Poor people do not hire employees. If you soak the rich, who are you going to work for?

"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond
 
I verified that the setting is correct in about:config as shown in the c&p copy below:

[blue]javascript.enabled;true[/blue]



mmerlinn


Poor people do not hire employees. If you soak the rich, who are you going to work for?

"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond
 
Hi

mmerlinn said:
Javascript is not working.
How do you know that ? ( Sorry, had to ask it. I just saw too many misdiagnosed bug reports. )

For example, are you sure not the AdBlock Plus rules were updated automatically and some of them now block trustworthy scripts too ?

Is the problem the same when started with [tt]-safe-mode[/tt] option or after Help | Restart with Add-ons Disabled... command ?


Feherke.
 
I know it because the JS on my legacy website (mmerlinn.com) does not work here, but does work elsewhere. I have no outside content on my site, so nothing should interfere with the JS.

I have no idea where to check the Adblock Plus rules.

I did not check safe mode nor with Add-ons disabled. I know how to do safe mode, but I have no clue how to disable add-ons on a PC.

mmerlinn


Poor people do not hire employees. If you soak the rich, who are you going to work for?

"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond
 
Hi

mmerlinn said:
does work elsewhere
I would still correct the script first :
Code:
[COLOR=white red] - [/color] [b]missing ; before statement[/b]
[blue][u][URL unfurl="true"]http://mmerlinn.com/js/JSMain.js[/URL][/u][/blue][right]Line: 183[/right]
[navy]defaultblurb[106] = "Left uncontrolled, "designers" can ...[/navy]
[green]-----------------------------------------^[/green]

[COLOR=white red] - [/color] [b]Writeheader is not defined[/b]
[blue][u][URL unfurl="true"]http://mmerlinn.com/catalog/makeridx.htm[/URL][/u][/blue][right]Line: 46[/right]
mmerlinn said:
I have no idea where to check the Adblock Plus rules.
[ul]
[li]All rules : Tols | Adblock Plus | Filter preferences...[/li]
[li]Currently applied rules in red : Tols | Adblock Plus | Open blockable items ( Ctrl-Shift-V )[/li]
[/ul]
mmerlinn said:
I know how to do safe mode, but I have no clue how to disable add-ons on a PC.
Only that : start in safe mode. Add-ons will be disabled for that session.

But I suppose this debugging step will not be needed after you fix the script.

Feherke.
 
Code:
 -  missing ; before statement
[URL unfurl="true"]http://mmerlinn.com/js/JSMain.js[/URL]
Line: 183
defaultblurb[106] = "Left uncontrolled, [red]"designers"[/red] can ...
-----------------------------------------^

The whole problem was double quotes within double quotes.

I added that string literal to my FoxPro database last week without thinking about the possible quote problem when FoxPro outputs the JS file to the internet. Now I see that I must add a function to FoxPro to check for quotes before generating the JS file and, if any are found, change them to single quotes.

Thanks for the help. This was driving me nuts.

mmerlinn


Poor people do not hire employees. If you soak the rich, who are you going to work for?

"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond
 
I just checked in the Tools dropdown - There is no Adblock Plus option there.

mmerlinn


Poor people do not hire employees. If you soak the rich, who are you going to work for?

"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond
 
Hi

mmerlinn said:
There is no Adblock Plus option there.
Well, then you have no AdBlock Plus installed. Anyway, was just a hint before seeing the actual code. ( Was only a possible explanation to something that changed without installing anything yourself. )


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top