Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #8038 > unrolled thread

Anyone can help me?

Started byPasquale <pasquale@net.com>
First post2011-11-05 15:04 +0100
Last post2011-11-05 15:58 +0100
Articles 3 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  Anyone can help me? Pasquale <pasquale@net.com> - 2011-11-05 15:04 +0100
    Re: Anyone can help me? Luuk <Luuk@invalid.lan> - 2011-11-05 15:15 +0100
      Re: Anyone can help me? Pasquale <pasquale@net.com> - 2011-11-05 15:58 +0100

#8038 — Anyone can help me?

FromPasquale <pasquale@net.com>
Date2011-11-05 15:04 +0100
SubjectAnyone can help me?
Message-ID<mn.2b887dbbebcf5609.92774@Kiss-the-Sphinx>
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 [right] and a <form> (cascade links [with  
onchange="mount()] that automatically open the link in the frame [right] 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.

[toc] | [next] | [standalone]


#8039

FromLuuk <Luuk@invalid.lan>
Date2011-11-05 15:15 +0100
Message-ID<q1tfo8-bq9.ln1@luuk.invalid.lan>
In reply to#8038
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 [right] and a <form> (cascade links
> [with  onchange="mount()] that automatically open the link in the frame
> [right] 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

-- 
Luuk

[toc] | [prev] | [next] | [standalone]


#8042

FromPasquale <pasquale@net.com>
Date2011-11-05 15:58 +0100
Message-ID<mn.2bbe7dbb2f0b3d23.92774@Kiss-the-Sphinx>
In reply to#8039
> 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 [right] and a <form> (cascade links
>> [with  onchange="mount()] that automatically open the link in the frame
>> [right] 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 :)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web