Solved

IE vs Netscape "MIssing ; before statement"

Posted on 1997-08-29
4
185 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Great!  Thanks.  -Chris
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

762 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

9 Experts available now in Live!

Get 1:1 Help Now