By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,911 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

Initiating re-execution of a page

P: n/a
Don
Given a page with a "header" and "main" frame, is there some way from the "header" frame to initiate
re-execution of the JavaScrip/HTML code in the "main" frame? I don't want to have to reload "main".

Thanks in advance.
Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Don wrote:
Given a page with a "header" and "main" frame, is there some way from the "header" frame to initiate re-execution of the JavaScrip/HTML code in the "main" frame? I don't want to have to reload "main".
Thanks in advance.
Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World!
100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


What sort of code would that be - and under what condition(s) would it
need to be 're-executed'? Frames are window-style objects: you can call
functions declared in one frame from another by specifying the path to
the (function) object; you can, naturally, 're-execute' them from the
same frame as well. More information might suggest the proper
solution...

Jul 23 '05 #2

P: n/a
Don
On 10 Jan 2005 16:13:44 -0800, "RobB" <fe******@hotmail.com> wrote:
Don wrote:
Given a page with a "header" and "main" frame, is there some way from

the "header" frame to initiate
re-execution of the JavaScrip/HTML code in the "main" frame? I don't

want to have to reload "main".

Thanks in advance.
Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World!
100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


What sort of code would that be - and under what condition(s) would it
need to be 're-executed'? Frames are window-style objects: you can call
functions declared in one frame from another by specifying the path to
the (function) object; you can, naturally, 're-execute' them from the
same frame as well. More information might suggest the proper
solution...

Hi Rob,

Thanks for your reply. I'd like to re-execute the "main" frame, which contains 90% JavaScript, and
some HTML. That frame is the page returned from a PHP script. When the "main" frame is re-executed
the JavaScript will perform differently as a result of its reading a frame variable from the
"header" frame. I just don't want to have to spend the time to reload the PHP script just to get
the same page back, when all I really need to do is re-execute it.

Don
Jul 23 '05 #3

P: n/a
Don wrote:
On 10 Jan 2005 16:13:44 -0800, "RobB" <fe******@hotmail.com> wrote:
Don wrote:
Given a page with a "header" and "main" frame, is there some way
fromthe "header" frame to initiate
re-execution of the JavaScrip/HTML code in the "main" frame? I
don'twant to have to reload "main".

Thanks in advance.
Don
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure
UsenetNews==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World!
100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption
=---
What sort of code would that be - and under what condition(s) would itneed to be 're-executed'? Frames are window-style objects: you can callfunctions declared in one frame from another by specifying the path tothe (function) object; you can, naturally, 're-execute' them from thesame frame as well. More information might suggest the proper
solution... Hi Rob,

Thanks for your reply. I'd like to re-execute the "main" frame,

which contains 90% JavaScript, and some HTML. That frame is the page returned from a PHP script. When the "main" frame is re-executed the JavaScript will perform differently as a result of its reading a frame variable from the "header" frame. I just don't want to have to spend the time to reload the PHP script just to get the same page back, when all I really need to do is re-execute it.

Don


Still unclear on the exact sequence of events. In any case, rather than
reading the data from the header, it's probably more logical to simply
pass it in the function call:

[in 'header']

function run_mainScript(param_name)
{
if (top.main && top.main.mainScript)
top.main.mainScript(param);
}

[in 'main']
function mainScript(param)
{
if (param)
{
[...use param...]

Jul 23 '05 #4

P: n/a
Don
On 10 Jan 2005 16:54:26 -0800, "RobB" <fe******@hotmail.com> wrote:
Don wrote:
On 10 Jan 2005 16:13:44 -0800, "RobB" <fe******@hotmail.com> wrote:
>Don wrote:
>> Given a page with a "header" and "main" frame, is there some wayfrom >the "header" frame to initiate
>> re-execution of the JavaScrip/HTML code in the "main" frame? Idon't >want to have to reload "main".
>>
>> Thanks in advance.
>> Don
>>
>>
>> ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-SecureUsenet >News==----
>> http://www.newsfeeds.com The #1 Newsgroup Service in the World!
>>100,000 Newsgroups
>> ---= East/West-Coast Server Farms - Total Privacy via Encryption=--- >
>What sort of code would that be - and under what condition(s) wouldit >need to be 're-executed'? Frames are window-style objects: you cancall >functions declared in one frame from another by specifying the pathto >the (function) object; you can, naturally, 're-execute' them fromthe >same frame as well. More information might suggest the proper
>solution...

Hi Rob,

Thanks for your reply. I'd like to re-execute the "main" frame,

which contains 90% JavaScript, and
some HTML. That frame is the page returned from a PHP script. When

the "main" frame is re-executed
the JavaScript will perform differently as a result of its reading a

frame variable from the
"header" frame. I just don't want to have to spend the time to

reload the PHP script just to get
the same page back, when all I really need to do is re-execute it.

Don


Still unclear on the exact sequence of events. In any case, rather than
reading the data from the header, it's probably more logical to simply
pass it in the function call:

[in 'header']

function run_mainScript(param_name)
{
if (top.main && top.main.mainScript)
top.main.mainScript(param);
}

[in 'main']
function mainScript(param)
{
if (param)
{
[...use param...]

Ok. I think that will do it. Thanks for your help Rob.
Don
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.