Solved

IE vs Netscape "MIssing ; before statement"

Posted on 1997-08-29
4
202 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

821 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