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
Adding to variables with JS
Topic Started: Oct 26 2008, 05:30 PM (266 Views)
simcityfreak4
Member Avatar
Member
[ *  *  *  * ]
I use this code:

Code:
 
var yo = location.href.split("?")[0];


It takes everything in the URL (http://s10.invisionfree.com/EXv3/index.php?act=idx) used by InvisionFree after the ? mark and gets rid of it. But sometimes the URL looks like http://s10.invisionfree.com/EX and http://s10.invisionfree.com/EX/ and not having the index.php? part in the URL messes up my code. Is there a way to make sure the URL is always correct?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply