We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
JavaScript Frame Commands in Firefox?
Topic Started: Aug 20 2005, 02:40 AM (330 Views)
adventruer
Member
[ *  * ]
Is there anything speacil command you must use to access some javascript frame commands in firefox.

I have an iframe and its mixed in with some PHP scripts. Now the main User section is in the iframe, but I have a User menu that isn't. Thus if a user logs out I need to refresh the main page as well. Here is the script I'm using and it works well in IE.

Code:
 

<script language="JavaScript">
function Logout(){
Content.location.href = "user.php?pg=logout&SID";
window.location.href = "index.php?page=user.php";
}
</script>


I know firefox uses some different JavaScript functions that get the same effect.

Anyone know what I can do to make it work in firefox?

Thanks :)
Offline Profile Quote Post Goto Top
 
Gornakle
Member Avatar
Member
[ *  *  *  *  * ]
What would 'Content' be in that function? The ID of the iframe? If so, you'd use:
Code:
 
document.getElementById('Content').src = 'user.php?pg=logout&SID';

instead of:
Code:
 
Content.location.href = "user.php?pg=logout&SID";
Offline Profile Quote Post Goto Top
 
adventruer
Member
[ *  * ]
Ok, thanks alot. :D
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply