Dec 19, 2003 #1 stormbind Technical User Joined Mar 6, 2003 Messages 1,165 Location GB Quickly grabbing the id of a dynamic page, var = document.href.split('id=')[1]; However, it poops if you use ID= or Id= and I would appreciate the quick fix ---------- I'm willing to trade custom scripts for... [see profile]
Quickly grabbing the id of a dynamic page, var = document.href.split('id=')[1]; However, it poops if you use ID= or Id= and I would appreciate the quick fix ---------- I'm willing to trade custom scripts for... [see profile]
Dec 19, 2003 1 #2 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB Try Code: var = document.href.split('id='.toLowerCase())[1]; Hope this helps! Dan Upvote 0 Downvote
Dec 19, 2003 Thread starter #3 stormbind Technical User Joined Mar 6, 2003 Messages 1,165 Location GB Nope. That don't seem to do it, probably changing the id= in the split to lower case instead of the ID= in the URL. I'll have a play with the function though, thanks ---------- I'm willing to trade custom scripts for... [see profile] Upvote 0 Downvote
Nope. That don't seem to do it, probably changing the id= in the split to lower case instead of the ID= in the URL. I'll have a play with the function though, thanks ---------- I'm willing to trade custom scripts for... [see profile]
Dec 19, 2003 Thread starter #4 stormbind Technical User Joined Mar 6, 2003 Messages 1,165 Location GB Got it! Thanks for the quick reply ---------- I'm willing to trade custom scripts for... [see profile] Upvote 0 Downvote
Got it! Thanks for the quick reply ---------- I'm willing to trade custom scripts for... [see profile]