Solved

IE vs Netscape "MIssing ; before statement"

Posted on 1997-08-29
4
192 Views
Last Modified: 2008-03-03
I am stumped.  I have a control that works fine Under IE... but blows Netscape out of the water.  The page is located at www.gie.net/dir.htm if you want to see how bad the error actaully is but this is the basic code that is killing it...

</font><a href=”javascript:{}” language=”VBScript”
onclick=”call PreVu1.Popup(GetURLBase + &quot \hints\rfoster.htm&quot;,FALSE;)”>
<font size=”2” face=”ARIAL,HELVETICA”><img src=”/art/gie/RIGHT.GIF”
border=”0” width=”16” height=”17”></font></a><font color=”#0000FF” size=”2”
face=”ARIAL,HELVETICA”><b>Richard J.W. Foster, </b><b><i>President
</i></b></font><ahref=”mailto:rfoster@gie.net”><font size=”2” face=”ARIAL,HELVETICA”><img src=”/art/gie/email.gif” border=”0” width=”28” height=”24”></font></a><font size=”2”
face=”ARIAL,HELVETICA”><br>
</font></p>

It calls a pop-up windows with an html description of the person... in this case rfoster.htm.
Any ideas would be greatly appreciated.
Chris Foster
Chris@cfoster.com


0
Comment
Question by:cfoster
  • 2
4 Comments
 
LVL 1

Expert Comment

by:skyflash
ID: 1269202
The problem is that Netscape don't like VB script. If you wants your pages to work with both IE and Netscape you should only use Javascript.
This is how you open an window with javascript:
window.open('pagename.html','windowsname','toolbar=no,status=no,scrollbars=no,_resizable=no
,width=300,height=200');

/Kenneth
0
 

Author Comment

by:cfoster
ID: 1269203
I have to reject this because I really need you to spell it out.  I would Like to know what I need to take out and what I should put in it's place.  The guy who created this page is no longer with the company and I am just learning java and VB... barely learning.
If you can elaborate I would really appreciate it.  -Chris
0
 
LVL 10

Accepted Solution

by:
kollegov earned 100 total points
ID: 1269204
Basically your HTML consist of following blocks links

<a href="javascript:{}" language="VBScript" onclick="call PreVu1.Popup(GetURLBase + &quot;\hints\dmoreland.htm&quot;, FALSE)">

replace it with:

<a href="\hints\dmoreland.htm"
onclick="window.open('\hints\dmoreland.htm','newwindowname',''); return false;">


Ok in last '' of window.open you can specify window options
width=300
height=200
toolbar=yes|no
menubar=yes|no
resizable=yes|no
scrollbars=yes|no

NO spaces!
window.open('pagename.html','windowname','toolbar=no,status=no,scrollbars=no,resizable=no,width=300,height=200');

onClick='window.open("...","..","..");return false'
should be written in one line (row)!
Sorry, I can't post here complete rows without wrap.

If you would like to find more about
window.open("..","..","..")

look into reference:
http://home.netscape.com/eng/mozilla/Gold/handbook/javascript/index.html

-----Virtual_Max------
http://www.geocities.com/siliconvalley/lakes/8620
0
 

Author Comment

by:cfoster
ID: 1269205
Great!  Thanks.  -Chris
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now