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

Execute the code after reload

100+
P: 168
Dear Experts,
In my html page i use an frame
by clicking the button on right frame the left frame src should change.
It changes but the statements after reload are not executed

My Pbm
How to execute script on reloaded page. after reloading....
on a single click
Please advice.
Rengaraj.R.
Mar 14 '09 #1
Share this Question
Share on Google+
8 Replies


gits
Expert Mod 5K+
P: 5,390
could you please give an example of the code in question? how do you reload the page?

kind regards
Mar 14 '09 #2

100+
P: 168
Sir,
I hav two frames left & right
If i click an button on right frame
the left frame url should be changed & the innerHTML of new url should be fetched...

For this...
how i can find the page has been loaded or not???
Please Advice
Rengaraj.R
Mar 14 '09 #3

gits
Expert Mod 5K+
P: 5,390
you have to wait for the onload event of that page ... you may trigger something from the page that is to b loaded or poll for something that is initialized in the pages onload. alteratively you coud use an ajax-call to load the page ... this would work unless the pages are from different domains ...

kind regards
Mar 15 '09 #4

100+
P: 168
Sir,
i need cross domain access
please giv me an demo.
Advance Thanks
Rengaraj
Mar 15 '09 #5

gits
Expert Mod 5K+
P: 5,390
then you need some proxy mechanism like this one
Mar 15 '09 #6

100+
P: 168
Sir,
without using ajax Please suggest.
I need to fetch the html code of iframe/frame webpage.
Advance Thanks,
Rengaraj
Mar 15 '09 #7

gits
Expert Mod 5K+
P: 5,390
then it would be the same basic solution ... your webproxy needs to request the 'foreign' page and serve it to your app as one of yours ...
Mar 15 '09 #8

100+
P: 168
Thanks
I got the solution
Apr 1 '09 #9

Post your reply

Sign in to post your reply or Sign up for a free account.