/    Sign up×
Community /Pin to ProfileBookmark

i want to have a page with two frames.in first frame i want to show data to the user. and in second frame i want to keep a JSP. when JSP will say, some update has occured ,then i want to RELOAD the first frame from the second frame.so my user user get the live updated data.

[b]QUESTION : [/b] How to reload first frame from the second frame ?

in fact i want to auto-update data(live) . do i have to use [b]iframe tag[/b] for the second frame only?

please tell me the sketchy (pseudocode) code to start with.

thank you

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@LAZARUSSep 20.2005 — Use frameset or create a page with two iframes.

Frameset
<i>
</i>&lt;html&gt;
&lt;frameset rows="100,100"&gt;
&lt;frame name="frame1" src="display.jsp"&gt;
&lt;frame name="frame2" src="update.jsp"&gt;
&lt;/frameset&gt;
&lt;/html&gt;


Iframe
<i>
</i>&lt;html&gt;
&lt;body&gt;
&lt;iframe name="frame1" src="display.jsp"&gt;
&lt;iframe name="frame2" src="update.jsp"&gt;
&lt;/body&gt;
&lt;/html&gt;

For both you could use this code to reload the frame you want. (This would be in the update.jsp page)
parent.frame1.location.reload();
×

Success!

Help @cofactor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...