Solved

IE vs Netscape "MIssing ; before statement"

Posted on 1997-08-29
4
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
Suggested Courses

623 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