#1
  1. No Profile Picture
    victor
    Guest
    Devshed Newbie (0 - 499 posts)
    I have a javascript for opening an URL in a new window. It works on certain browsers, and particularly in IE5 it generates an error and does nothing. can anyone explain why?
  2. #2
  3. No Profile Picture
    nico
    Guest
    Devshed Newbie (0 - 499 posts)
    could you post your script here so we can see what exactly you're doing?
  4. #3
  5. No Profile Picture
    victor
    Guest
    Devshed Newbie (0 - 499 posts)
    Thank you,
    the code is:

    function openanother(where_at) {

    opc = "toolbar=0,status=0,menubar=0,scrollbars=0," +
    "resizable=1,width=430,height=430";

    vent=window.open(where_at,"Presentation", opc);

    }


    call made like this:

    <A HREF="javascript penanother('fichas/index.htm')">
    <IMG SRC="imagen/b-biblio40.gif" WIDTH="50" HEIGHT="40"
    ALIGN="BOTTOM" BORDER="0" HSPACE="5" NATURALSIZEFLAG="0"></A>

    However, I executed the following programs (from START->RUN), and it worked after I rebooted the machine:

    regsvr32 actxprxy.dll
    regsvr32 shdocvw.ddl

    Do you have something to say about the code so my visitors won't have to execute these two programs for making it work?
  6. #4
  7. No Profile Picture
    nico
    Guest
    Devshed Newbie (0 - 499 posts)
    i've had some problems as well with opening windows from direct javascript links, maybe you could try calling the javascript as follows:

    <a href="#" onClick="openanother('fichas/index.htm')">whatever</a>

    my problem was that if i did it the other way (your way) a page saying [object] or so was loaded in the window you clicked the link from..
    maybe this helps...
  8. #5
  9. No Profile Picture
    nico
    Guest
    Devshed Newbie (0 - 499 posts)
    this way it works fine for me (in IE5):

    <!--start-->
    <script language=javascript>
    function openanother(where_at)
    {
    opc = "toolbar=0,status=0,menubar=0,scrollbars=0,resizable=1,width=430,height=430";
    vent=window.open(where_at,"Presentation", opc);
    }
    </script>
    <a href="#" onClick="openanother('http://aardbei.scene.org')">some link</a>
    <!--end-->

    so i guess it should work for you as well?
  10. #6
  11. No Profile Picture
    victor
    Guest
    Devshed Newbie (0 - 499 posts)
    Thank you. I will try it that way too.

Similar Threads

  1. Running Shellexecute but do not open the Web page window
    By linh in forum Visual Basic Programming
    Replies: 0
    Last Post: January 9th, 2004, 02:28 PM
  2. Replies: 1
    Last Post: October 2nd, 2003, 02:33 PM
  3. open page from new window in old window
    By Tom Aerden in forum HTML Programming
    Replies: 2
    Last Post: October 11th, 2002, 02:18 AM
  4. getting asp "parent" page to reload
    By AngelaFrench in forum HTML Programming
    Replies: 2
    Last Post: April 4th, 2002, 11:13 AM
  5. Closing window and returning to main page.
    By milady in forum HTML Programming
    Replies: 12
    Last Post: March 12th, 2001, 09:15 AM

IMN logo majestic logo threadwatch logo seochat tools logo