473,569 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1310
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******@hotma il.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******@hotma il.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.mainSc ript)
top.main.mainSc ript(param);
}

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

Jul 23 '05 #4
Don
On 10 Jan 2005 16:54:26 -0800, "RobB" <fe******@hotma il.com> wrote:
Don wrote:
On 10 Jan 2005 16:13:44 -0800, "RobB" <fe******@hotma il.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.mainSc ript)
top.main.mainS cript(param);
}

[in 'main']
function mainScript(para m)
{
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
4275
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 be better to promote better programming than rely on PHP to compensate for lazy programming?
4
6413
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 well as some color coding, etc. Having trouble finding the same in an editor that'll run on OS X. -- Floydian Slip(tm) - "Broadcasting from...
1
4086
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 for adding so much code... <TABLE border="1" bordercolor="#000000" cellspacing="0"> <TR>
4
18519
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 blocks until something.exe terminates. Just what I /don't/ want. (Wouldn't an & be nice here! Sigh) I need something.exe to disconnect and...
1
3689
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 sockets??
8
4401
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 image, which will upload the record to a mySql db so users can then either view all profiles or query.. I.e. show all males in UK, all femails over 35...
10
1645
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. However, class CVehicle is an abstract base class, since every object of it is member of subclass CCar or subclass CBicycle.
17
2656
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 TileMap { public:
2
1103
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 subscribed users and the publishing of content on specific schedules. In doing this we would like to re-use a lot of the libraries we have already...
0
2495
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 the PC end, I need it to initiate on the Mobile Device end. I need the handheld to be the device that is initiating the file copy as it is the only...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.