Popup 2 popups from main page link in specific order - help

Discussion in 'JavaScript' started by itdaddy, Oct 23, 2006.

  1. #1
    Hey javascript gurus:

    i have done the work and dont expect you to do it all for me.
    but could you look this over and tell me what I am doing wrong.
    I am new to this forum. And I am not a web programmer.
    I just do small edits to our webpages. But this is what we have.

    Example of what I need:
    https://www.greatwisconsincu.org/GreatWisconsinCU.asp
    click on icon googleplex bottom right and see third party popup and then a popup disclaimer
    after that. What I have works in Mozilla FF but not in IE6 and IE7?
    Help. How can I get focus method to work in IE?


    I have 2 popup windows we want. you click on a link
    and a third party window pops up resized smaller than the main webpage.
    (works great). Then a smaller popup comes up OnClick of that href.
    But it works in Mozilla Firefox but not in IE 6 or IE 7. Most people use IE
    and we need it to work in there. I have set it up to reference 3 files
    and run the link with the onclick in the main webpage.
    the three files are the 2 js files that use window.open function.
    and the html text file for the disclaimer.js call.

    below is the main page with reference to the 2 js files and link with onclick handler.
    Code:

    <html> <head> <title>Popup Window Test</title> </head> <body> <SCRIPT language="JavaScript" src="/popups/thirdpartypop.js" type="text/javascript"></SCRIPT> <SCRIPT language="JavaScript" src="/popups/disclaimerpop.js" type="text/javascript"></SCRIPT> <!-- Pop link starts here. --> <a href="javascript:popthirdparty('http://www.wisdellstreasureisland.com');" OnClick="return popdisclaimer('/popups/disclaimertxt.html');"> MT Olympus Water &amp; Theme Park</a> website today! </body> </html> <!-- Pop link ends here. -->




    next is the third party popup window js call
    Code:

    var newwindow function popthirdparty(url) { newwindow=window.open(url,'thirdparty','width=600, height=400, left=100, top=100, resizable=yes, scrollbars=yes, toolbar=yes, menubar=yes, status=yes'); }



    disclaimer popup call
    Code:

    var Pop function popdisclaimer(url) { Pop=window.open(url,"disclaimer","width=400,height=300", "Scrollbars=1"); }


    disclaimer html text page
    Code:

    <html> <head> <title>Bulls Eye Website Disclaimer</title> </head> <body onload="this.focus();"> <h2><B>Web Site Link Disclaimer</h2></B> <h4>This site is brought to you by Bull's Eye Credit Union. For your convenience, this site includes links to other 3rd parties. Bull's Eye Credit Union does not endorse or guarantee these 3rd party sites. The products and services offered on 3rd party sites, including investment and insurance products, are not products of Bull's Eye Credit Union and may not be insured by the FDIC or NCUA. Bull's Eye Credit Union does not maintain or control privacy or security on these sites, and as such, makes no guarantees as to the privacy of any information you may provide or disclose while on these sites. </h4> </body> </html>


    thank you all for your help!
    it freaking works(focus method) in Mozilla firefox but not in IE6 or IE7
    is there a way i can use the focus method in IE6/IE7 that works in both browsers without modifying my scheme. I like the way I have this setup.
    I am not by no means and expert. I dont knwo how to use CSS and complex arrays. so if you can help me perform a better compatible focus method that woudl be great.

    thanks gurus!
     
    itdaddy, Oct 23, 2006 IP