/    Sign up×
Community /Pin to ProfileBookmark

refresh the other frame

guys,

i want to make a page with two frames, one is the main and the other is the page refresh…like this example:

<html>
<head>
<title>Untitled</title>
</head>
<frameset cols=”1%,*” framespacing=”0″ frameborder=”0″>
<frame src=”refresh.htm” name=”refresh”>
<frameset rows=”80%,*
“>
<frame src=”msg.htm” name=”main”>
</frameset>
</frameset>
</html>

i want to know if is possible to make a javascript code that do the refresh in the frame (main) if the frame (refresh) have a new data …(dont worry about the data, i have a php+mysql code for this)…. it is possible?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@JonaSep 13.2003 — [font=arial][color=maroon]I don't know about "if there is new data" since it's a client-side script, you'd have to use PHP to check if it's new data, and then send different JavaScript code to the browser, I guess. But nevertheless, you'd use this to refresh the main page from the refresh page:[/color][/font]

[font=monospace]

top.main.location.reload();

[/font]

[b][J]ona[/b]
Copy linkTweet thisAlerts:
@CharlesSep 13.2003 — [font=georgia]You might do beter with

[font=monospace]top.main.location.reload(true);[/font]

See http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/location.html#1194198.[/font]
Copy linkTweet thisAlerts:
@eduacauthorSep 14.2003 — it works!!! ...thanks a lot !!!!
Copy linkTweet thisAlerts:
@JonaSep 14.2003 — [i]Originally posted by Charles [/i]

[B][font=georgia]You might do beter with



[font=monospace]top.main.location.reload(true);[/font]



See http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/location.html#1194198.[/font] [/B]
[/QUOTE]


[font=arial][color=green]Ah, nice one, Charles. ?[/color][/font]

[b][J]ona[/b]
×

Success!

Help @eduac 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 5.21,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...