Anyone can help me?

Discussion in 'Javascript' started by Pasquale, Nov 5, 2011.

  1. Pasquale

    Pasquale Guest

    anyone can help me?

    --

    following this script:
    ---------------------------------

    <script type="text/javascript">

    function mount()
    {

    var s="http://??????/???????=XXXX";
    top.frames['right'].location.href=s.replace(/XXXX/i,document.forms[0].elements['field'].value);

    }

    </script>
    ------------------------------

    I've created a page with an Iframe
    and a <form> (cascade links [with
    onchange="mount()] that automatically open the link in the frame
    every
    time I click one link.

    But I would like it to be opened in a new page and I think I should change the
    "top.frames ['right']".

    I think with a "window.open ['_blank']" but does not work.

    I'm a beginner on Javascript. Anyone can help me?

    Thanks in advance
    Pasquale.​
     
    Pasquale, Nov 5, 2011
    #1
    1. Advertising

  2. Pasquale

    Luuk Guest

    On 05-11-2011 15:04, Pasquale wrote:
    > anyone can help me?
    >
    > --
    >
    > following this script:
    > ---------------------------------
    >
    > <script type="text/javascript">
    >
    > function mount()
    > {
    >
    > var s="http://??????/???????=XXXX";
    > top.frames['right'].location.href=s.replace(/XXXX/i,document.forms[0].elements['field'].value);
    >
    >
    > }
    >
    > </script>
    > ------------------------------
    >
    > I've created a page with an Iframe
    and a <form> (cascade links
    > [with onchange="mount()] that automatically open the link in the frame
    >
    every time I click one link.
    >
    > But I would like it to be opened in a new page and I think I should
    > change the "top.frames ['right']".
    >
    > I think with a "window.open ['_blank']" but does not work.
    >
    > I'm a beginner on Javascript. Anyone can help me?
    >
    > Thanks in advance
    > Pasquale.
    >
    >​
     
    Luuk, Nov 5, 2011
    #2
    1. Advertising

  3. Pasquale

    Pasquale Guest

    > On 05-11-2011 15:04, Pasquale wrote:
    >> anyone can help me?
    >>
    >> --
    >>
    >> following this script:
    >> ---------------------------------
    >>
    >> <script type="text/javascript">
    >>
    >> function mount()
    >> {
    >>
    >> var s="http://??????/???????=XXXX";
    >> top.frames['right'].location.href=s.replace(/XXXX/i,document.forms[0].elements['field'].value);
    >>
    >>
    >> }
    >>
    >> </script>
    >> ------------------------------
    >>
    >> I've created a page with an Iframe
    and a <form> (cascade links
    >> [with onchange="mount()] that automatically open the link in the frame
    >>
    every time I click one link.
    >>
    >> But I would like it to be opened in a new page and I think I should
    >> change the "top.frames ['right']".
    >>
    >> I think with a "window.open ['_blank']" but does not work.
    >>
    >> I'm a beginner on Javascript. Anyone can help me?
    >>
    >> Thanks in advance
    >> Pasquale.
    >>
    >>​


    > What info is missing here:
    > http://www.javascript-coder.com/window-popup/javascript-window-open.phtml


    Thank you soo much...

    I've modified the script
    Now work well and is fully customizable.. Thanks again :)
     
    Pasquale, Nov 5, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JDS

    Anyone?? Anyone at all??

    JDS, Sep 26, 2005, in forum: HTML
    Replies:
    2
    Views:
    407
    Montgomery BOO...URNS
    Sep 29, 2005
  2. Steve Williams

    Anyone? Anyone?

    Steve Williams, Sep 16, 2003, in forum: Python
    Replies:
    0
    Views:
    409
    Steve Williams
    Sep 16, 2003
  3. Replies:
    30
    Views:
    1,020
    Arne Vajhøj
    Feb 10, 2008
  4. gregarican

    Anyone, anyone...Bueller?

    gregarican, Jun 22, 2007, in forum: Ruby
    Replies:
    2
    Views:
    113
    gregarican
    Jun 22, 2007
  5. 7stud --
    Replies:
    4
    Views:
    139
    7stud --
    Mar 27, 2009
Loading...

Share This Page