Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

IE vs Netscape "MIssing ; before statement"

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
cfoster
Asked:
cfoster
  • 2
1 Solution
 
skyflashCommented:
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
 
cfosterAuthor Commented:
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
 
kollegovCommented:
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
 
cfosterAuthor Commented:
Great!  Thanks.  -Chris
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now