473,383 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Initiating re-execution of a page

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
4 1290
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
10
by: jeroendeurinck | last post by:
Hi all, I'm a newbe, so sorry if this question would be inappropriate here. Nevertheless I try. --- Suppose I have a class CTraffic in which several objects of class CVehicle move around....
17
by: Mark | last post by:
uhhmmm... not really sure how to word this. i cant get get this to compile.. i'm not sure what the proper syntax to do this is.. hopefully it's self explanatory. here's my class: ------ class...
2
by: John | last post by:
Hello, We are trying to implement a solution for a project requirement for which we need to have multiple services running to support offline functionality such as the transmission of emails to...
0
by: AmyHanson | last post by:
I am new to mobile development and am having some trouble sources for the tasks I need to perform. I have been looking around and I can find plenty of information on copying the file initiating on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.