Error Object Expected: ';'

THis code runs fine on my server,
when I upload it I get a Error
Line: 9
Char: 9
Error: Object Expected ‘;’
Code: 0

I can create the error on my box when I try to preview it on frontpage.
Any suggestions???

thumbs.htm

JavaScript Image Popup's Done Right Home Page

So it happens in Javascript, not in server side script? What I don’t understand is this line:

“java_script_:popImg(‘maria/mv1.jpg’);”

What “java_script_:” means here?

Well, it maybe the forum replaced it :slight_smile:

Also you are mixing JScript and VBScript on Server side. The script that runs on server you wrote in VBScript, but for example the last statement (Return Return iStr.ToString) is wrong IMHO. As far as I remember there is no “Return” statement in VBScript, but in JScript.

Also (again as far as I remember) there is no “ToString” method in VBScript. Anything is converted to string automatically (except nasty Null)
---- Edited ----
Omg… when submitted I saw that this is actually ASP.NET. Bummer :slight_smile: Sorry, discard my posts, I have no idea in syntax of VBScript.NET (using C#)