Javascript problem in IE but not FF & web c:)

Soldato
Joined
10 Apr 2006
Posts
7,890
Location
North West
Thought I had finished my website and then checked it in IE and 1 part of it doesn't work.

The CSS is slightly different but it still looks the same except one thing so I'm not bothered about that.

The URL is www.TomSinclair.co.uk

If you open it in FF, go to a module and then a piece of work, click View Work.

In FF it should open a new window and work, I haven't noticed any problems, but in IE it just says error on the page line 35 char 9 but I don't know what it is?

Someone must know! :)

Also any quick comments on the website are welcome, it was meant to be a temporary website just to show my work for possible employers for my placement but I've decided to keep it was I disliked my old site a lot!
 
I assume its something to do with the way Mozilla does javascript, I could put in another function and have an if statement for when the browser is IE or any other browser, how would i do the if statement though?

Unless there is another way around it, the JS can be found on my site
 
I'm not confident it'll fix the problem, but you might try and ensure your statements are closed with a semicolon:
Code:
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'[B][COLOR=Yellow];[/COLOR][/B]
win = window.open(mypage, myname, winprops)[B][COLOR=Yellow];[/COLOR][/B]
The 'w' of "win =" would appear to be character 9 of line 35.
 
Yeah i tried closing the line above with a semicolon but it still came up with the same error that the first character in line 35 is causing a problem
 
managed to fix it

IE doesnt like all the toolbar=no and scroll=no options you can put in the window.open function of javascript :/


Can a mod edit the title to just "Website thoughts" please :)

Didnt realise it had cut it off :)

comments and crit welcome!
 
Back
Top Bottom