Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with frames

Status
Not open for further replies.

jessengel

IS-IT--Management
Dec 30, 2004
7
TR
My site has frames but when i refresh it , it does not refresh just the mainframe its refreshing everything . And directing the user again to the main site ! So my question is ,how i can handle that problem !?
 
Frames are usefull but general frowned upon, for the reason you give and because of the way they work with the back key and history in general.
To get you round your problem, when you say refresh is it when you hit f5 ?
What happens if you fo cntrl-f5 or shift-f5 (which ignore the cache).
I believe this works in ie and firefox
 
Sorry stil not too clear.
The page has two frames left and right, do you just want to refresh one of the frames and beause you do f5 the whole browser refrshes?
Have you tried right-click->refresh ? in the frame
 
Do you mean refreshing page programatically in your code or just by user pressing Refresh/Reload button or pushing F5? Because if it is the latter, that is the normal behaviour of browsers and they will always do that. Refresh the page and since the frameset cannot remember which frame was open, it will return to first page. You can right click in the frame and select Refresh to refresh just that frame.
 
Well right click refresh is working correct.But i want that when the user is clicking on the refresh button in the toolbar that only my main frame is refreshing .And the other frames stay stabil. ?s this possible ? ?f yes , how ?
 
I agree with Vragabond that this is the normal action of a browser. You might be able to add some state managment stuff in (probabbly in JavaScript) which can store in a cookie what the current frames are and when f5 reloads the mainframe it look into the cookie and refresh each frame in the set with the previous/correct value.
 
Well actually i agree with you both as well . But my boss not :)!Well in our html version only the top frame was refreshing.And now he wants it that way . Still serching for an solution :(
 
that is my code i have it on each site

function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;
}
 
try in the javascript and html forums and tellus how you get on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top