473,386 Members | 1,773 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,386 software developers and data experts.

refresh

hi,
i have an html page that when it loads theres an onLoad event called
which calls a function.

now what i want to do is be able to click a link that refreshes the
page but at the time on the refresh it skips the onLoad event.

is this possible?
if it is can somebody please help me.
thanks
-morc

Jan 24 '06 #1
5 2225
VK
morc wrote:
hi,
i have an html page that when it loads theres an onLoad event called
which calls a function.

now what i want to do is be able to click a link that refreshes the
page but at the time on the refresh it skips the onLoad event.

is this possible?
if it is can somebody please help me.
thanks
-morc


Assuming that same domain session cookies are allowed (a very
reasonnable assumption but still not guaranteed):

function myOnloadFunction() {
if (unescape(document.cookie) != 'Morc was here') {
// blah-blah-blah
document.cookie = escape('Morc was here');
}
}

Jan 24 '06 #2
thanks. but im not sure thats what im looking for. input appreciated.

I have 2 html files embeded wihtin each other. frameset and content.
would it be possible to refresh content when frameset loads? if so how?

thanks agian
-morc

Jan 24 '06 #3
to be more specific:
i have index.html, which contains links lets call it link A.

when i click link A, frameset loads up as a <div> whcih also loads
content whcih displays its default content.
when u click a link in the frameset it changes the content (flash
files)

now lets say i were to click link B after that and then return to link
A. content would not be displaying its default content like i want it
too. it displays the previous selection. i need it to display default
content everytime i click link A.

if anyone wants to help but doesnt understand please tell me what you
do not understand an i will explain it to you.
thanks
-morc

Jan 24 '06 #4
Alright, I'll try again.

I have a page. Index.html.
On this page to there is a menu with 4 buttons. (4 DIV's).
One of the buttons (call it Link A) when clicked: loads another html
page with in its <div> named frameset.html whcih contains a menu with a
series of links.
Within frameset.html there is another <div> which loads another html
page (content.html) which displays content when a link from frameset is
selected.

My problem:
When I click a link from frameset.html the content is displayed. After
this if I were to click one of the 4 buttons from index.html (link B)
and then click link A again the default content will not be there. It
will display the content fromt he last frameset link i clicked. I want
it to display the default like the first click.
My Question:
I was wondering if there was a way for when i click Link A that
content.html is refreshed thus displaying default content.

thanks hope this was more understandable.
-morc

Jan 24 '06 #5
VK

morc wrote:
Alright, I'll try again.

I have a page. Index.html.
On this page to there is a menu with 4 buttons. (4 DIV's).
One of the buttons (call it Link A) when clicked: loads another html
page with in its <div> named frameset.html whcih contains a menu with a
series of links.
Within frameset.html there is another <div> which loads another html
page (content.html) which displays content when a link from frameset is
selected.

My problem:
When I click a link from frameset.html the content is displayed. After
this if I were to click one of the 4 buttons from index.html (link B)
and then click link A again the default content will not be there. It
will display the content fromt he last frameset link i clicked. I want
it to display the default like the first click.
My Question:
I was wondering if there was a way for when i click Link A that
content.html is refreshed thus displaying default content.


Wow! That seems like really overcomplicated approach - unless frames
are used to get content from another domain and then any advises will
not work.

Otherwise (assuming you *want* to keep it as complicated as it is) you
have to deal eather with cookies (my first advise) or with the link
query part like <a href="frameset.html?default.html"> and read the
query part to set the content.

Something like that... Really hate frames, sorry... Someone may come
with a more detailed solution.

Jan 24 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a...
4
by: Yogi_Bear_79 | last post by:
Self Taught here so please bear with me. I have the labelRestrictSites as private on the MainForm.cs. I then access the labelRestrictSites.Text thru the public string LabelRestrictSites from...
1
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
9
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
7
by: Brian | last post by:
hello, I am looking for a way to auto refresh a web page that I created, but also let the user choose to stop the auto refresh. I can not figure out how to stop the auto refresh. Any help would...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
10
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
0
by: chetu | last post by:
I have two pivot tables, but when my macro refreshes the pivot tables it refreshes all, but I want it to pick say for example; Say range "B8" of pivot table 1 is 60, I want the range "x2" of pivot...
4
by: Simon | last post by:
Dear reader, If I change the content of a field in an event procedure and in the same procedure I do a refresh, the refresh has no effect. The code in the event is as follows:
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.