Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AOL problem

Status
Not open for further replies.

celticking

Technical User
Feb 15, 2001
69
US
Can anyone see a reason why the following code would generate a script error using the AOL browser...

function openLarge(imgName)
{
newWindow = window.open("","", "menu=false,height=500,width=600,left=50,top=20");
newWindow.document.write(&quot;<center><img src='&quot; + imgName + &quot;' height='500'><br>&nbsp;<br><input type='button' value='Close' onclick='window.close()'></center>&quot;);
}

Thanks for any help offered.
 
I also have the problem with Netscape. I'd be really greatful if someone could look at this page..


The images work correctly in IE but not at all in Netscape. Anyone know why or where i can find a similar viewer that display correctly in Netscape.

I desperately need some help here.

Thanks.
 
I use a very similar type of script in many sites.

For the NS problem, it could be in the hyperlink:
<a href=&quot;javascript:eek:penLarge(document.mainpic.src);&quot;>

Try this instead:
<a href=&quot;javascript:void(0)&quot; onClick=&quot;openLarge(document.mainpic.src);&quot;>

As for the AOL problem, I'm experiencing the same thing and would very much love to know what the solution to that is!

Thanks!
Scott
 
ehh...aol sucks
Regards,
AnthLOLny
----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Yea, I couldn't agree more! The problem is, so many people use it ... so I need to make my sites work with it. Kind of like living with chronic back pain!

scott
 
I believe AOL Bought netscape, so I would try finding netscape solutions to it...currently, aol and ms aren't on the greatest terms, but they use a hybrid version of IE and NN I believe...lol...go figure, AOHELL has it's own messed up browser to stand along the others...well, it works fine on my AOL browser...dunno why it's not on yours.


Regards,
AnthLOLny
----------------------------------------
The Learning process is just a way to get rid of all the stupids in your head.

Now where's that cute little kitten? :-X
 
Hi peeps,

It seems that I have the solution.
I don't know why it works but it seems to be OK for AOL:

<SCRIPT LANGUAGE=&quot;JavaScript&quot;> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE=&quot;JavaScript1.1&quot;> javascript_version = 1.1;</SCRIPT>
<SCRIPT Language=&quot;JavaScript&quot;>
var newwin;
function launchwin(winurl,winname,winfeatures){
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0){
setTimeout('newwin.focus();',250);
}
};
</SCRIPT>

Sample to use it :
<a href=&quot;javascript:launchwin('myPage.htm','myName','toolbar=no,directories=no,menubar=no,status=no,width=490,height=450,scrollbars=no,screenx=300,screeny=100');&quot;>bla bla</a>

Hope this helps....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top