Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to "reload" a child window?

1 view
Skip to first unread message

DL

unread,
Jul 2, 2009, 11:40:00 PM7/2/09
to

Ran a quick search on child window "reload" without satisfactory
result, hence, pose a question here.

The word, "reload" is not really accurate, what I'd like to do is,
upon certain event occurs at the child window, I'd like to call a
script (be it php, .NET, or ColdFusion) either with form elements or
URL with parameters. What is known, javascript variable for the child
window. Also, the parent window stays put.


How to?

Thank you.

Laser Lips

unread,
Jul 3, 2009, 5:08:29 AM7/3/09
to

DL, if the event occurs in the child window and you want to content of
the PHP, .NET or ColdFusion to go into the child window then the child
window should be able to take care of itself by catching the event and
calling the PHP/.NET page itself. The parent need not intervene.

Graham Vincent

Thomas 'PointedEars' Lahn

unread,
Jul 3, 2009, 10:38:52 AM7/3/09
to

Add event listeners to objects living in the "child window", either directly
or through the "javascript variable". You might lose the relation to the
"parent window" if you cause navigation there, though. Using frames in the
popup could help with this, but might introduce more problems as well.

I don't know what you mean be "call a script". Scripts are not called, they
are executed (in most cases: source code is JIT-compiled, and the resulting
byte code is interpreted). Scripts can generate content, if you mean that.


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann

Don84

unread,
Jul 3, 2009, 10:58:10 AM7/3/09
to
On Jul 3, 10:38 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:

You're right on the loose use of terminology by me, yes, to execute a
script, not call a script in this case. I attempted to use something
like onclick="self.location='scriptForSmallWindow.php';">stay in the
same small window</a>
to no avail, nor self.document.location ...

or through the "javascript variable". Pls tell me more about it.
Thanks.


Thomas 'PointedEars' Lahn

unread,
Jul 3, 2009, 7:58:41 PM7/3/09
to
Don84 wrote:

> Thomas 'PointedEars' Lahn wrote:
>> DL wrote:
>>> Ran a quick search on child window "reload" without satisfactory
>>> result, hence, pose a question here.
>>> The word, "reload" is not really accurate, what I'd like to do is,
>>> upon certain event occurs at the child window, I'd like to call a
>>> script (be it php, .NET, or ColdFusion) either with form elements or
>>> URL with parameters. What is known, javascript variable for the child
>>> window. Also, the parent window stays put.
>>> How to?
>> Add event listeners to objects living in the "child window", either directly
>> or through the "javascript variable". You might lose the relation to the
>> "parent window" if you cause navigation there, though. Using frames in the
>> popup could help with this, but might introduce more problems as well.
>>
>> I don't know what you mean be "call a script". Scripts are not called, they
>> are executed (in most cases: source code is JIT-compiled, and the resulting
>> byte code is interpreted). Scripts can generate content, if you mean that.
>>
>> [snip signatures]

Learn to quote.

> You're right on the loose use of terminology by me, yes, to execute a
> script, not call a script in this case. I attempted to use something
> like onclick="self.location='scriptForSmallWindow.php';">stay in the
> same small window</a>
> to no avail, nor self.document.location ...
>
> or through the "javascript variable". Pls tell me more about it.
> Thanks.

<http://www.catb.org/~esr/faqs/smart-questions.html>

Don84

unread,
Jul 4, 2009, 12:45:35 PM7/4/09
to
On Jul 3, 7:58 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:

> <http://www.catb.org/~esr/faqs/smart-questions.html>- Hide quoted text -
>
> - Show quoted text -

You either understand the question, know an answer and is willing to
chip in or fuck off!
Had enough of your crap!

SAM

unread,
Jul 4, 2009, 11:20:09 PM7/4/09
to
Le 7/3/09 4:58 PM, Don84 a �crit :

> On Jul 3, 10:38 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
> wrote:
>> DL wrote:
>>> Ran a quick search on child window "reload" without satisfactory
>>> result, hence, pose a question here.
>>> The word, "reload" is not really accurate, what I'd like to do is,
>>> upon certain event occurs at the child window, I'd like to call a
>>> script (be it php, .NET, or ColdFusion) either with form elements or
>>> URL with parameters. What is known, javascript variable for the child
>>> window. Also, the parent window stays put.
>>> How to?
>> Add event listeners to objects living in the "child window", either directly
>> or through the "javascript variable". You might lose the relation to the
>> "parent window" if you cause navigation there, though. Using frames in the
>> popup could help with this, but might introduce more problems as well.

> I attempted to use something


> like onclick="self.location='scriptForSmallWindow.php';">stay in the
> same small window</a>
> to no avail, nor self.document.location ...

You don't need 'self' if the link is in the child (popup),
onclick="location='scriptForSmallWindow.php';">
would have to do the job
(open in same window (here the popup) the php file)

> or through the "javascript variable". Pls tell me more about it.
> Thanks.

as said above, it is not certain that the child window will still
remember its opener (the mother) so it will be probably better to use a
function set in the mother page.

onclick="opener.sendChild('scriptForSmallWindow.php');"

mother's JS :
=============
function sendChild(url) {
window.open(url,'theChild','width=300,height=300');
}

<https://developer.mozilla.org/en/DOM/window.open>


The "javascript variable" (example) :

JS :
====
var choice;
function setChoice(what) {
choice = what.value;
}

HTML :
======
<form>
<input type=radio name="art" value="01" onclick="setChoice(this)"> art.01
<input type=radio name="art" value="02" onclick="setChoice(this)"> art.02
<input type=radio name="art" value="03" onclick="setChoice(this)"> art.03
</form>
<button onclick="opener.sendChild('query.php?art='+choice);">go</button>

--
sm

Thomas 'PointedEars' Lahn

unread,
Jul 5, 2009, 9:24:49 AM7/5/09
to

Is any of your postings supposed to make any sense at all?

> Had enough of your crap!

Likewise.


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

Don84

unread,
Jul 5, 2009, 12:14:40 PM7/5/09
to
On Jul 4, 11:20 pm, SAM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
> Le 7/3/09 4:58 PM, Don84 a écrit :

>
>
>
>
>
> > On Jul 3, 10:38 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
> > wrote:
> >> DL wrote:
> >>> Ran a quick search on child window "reload" without satisfactory
> >>> result, hence, pose a question here.
> >>> The word, "reload" is not really accurate, what I'd like to do is,
> >>> upon certain event occurs at the child window, I'd like to call a
> >>> script (be it php, .NET, or ColdFusion)  either with form elements or
> >>> URL with parameters.  What is known, javascript variable for the child
> >>> window.  Also, the parent window stays put.
> >>> How to?
> >> Add event listeners to objects living in the "child window", either directly
> >> or through the "javascript variable".  You might lose the relation to the
> >> "parent window" if you cause navigation there, though.  Using frames in the
> >> popup could help with this, but might introduce more problems as well.
> > I attempted to use something
> > like onclick="self.location='scriptForSmallWindow.php';">stay in the
> > same small window</a>
> > to no avail, nor self.document.location ...
>
> You don't need 'self' if the link is in the child (popup),
>      onclick="location='scriptForSmallWindow.php';">
> would have to do the job
> (open in same window (here the popup) the php file)

Sorry, I forgot to mention. I'm using Ext window class for windows
management. Within this context, the above
onclick="location='scriptForSmallWindow.php';"> at child window level
goes back to the parent window.

Within the ext window context, I preloaded the two windows, default
diplays the Main window,
on click event for the small window, it then displays and floating
over the main one...

Thanks.

> --
> sm- Hide quoted text -

Don84

unread,
Jul 5, 2009, 12:25:11 PM7/5/09
to
On Jul 5, 9:24 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
> computer, another word processor, or another network. -- Tim Berners-Lee- Hide quoted text -

>
> - Show quoted text -

I've said, fuck off, asshole! You are NOT the only one who knows
javascripting real well, try to be born again by a human mother again,
asshole!

Thomas 'PointedEars' Lahn

unread,
Jul 5, 2009, 1:37:49 PM7/5/09
to
Don84 wrote:
> Thomas 'PointedEars' Lahn wrote:
>> Don84 wrote:
>>> Thomas 'PointedEars' Lahn wrote:
>>>> Don84 wrote:
>>>>> [gibberish]
>>>> <http://www.catb.org/~esr/faqs/smart-questions.html>

>>> You either understand the question, know an answer and is willing to
>>> chip in or fuck off!
>> Is any of your postings supposed to make any sense at all?
>>
>>> Had enough of your crap!
>> Likewise.
>> [...]

>
> I've said, fuck off, asshole! You are NOT the only one who knows
> javascripting real well, try to be born again by a human mother again,
> asshole!

Well, you certainly can't seem to get enough of my "crap", and to show off
your "intelligence". So maybe, just maybe, the problem is with *you* instead?

David Mark

unread,
Jul 6, 2009, 4:55:59 AM7/6/09
to

Figures. See if you can get a refund.

0 new messages