This is a discussion on "Help with IFRAME and grabbing URL" within the JavaScript Forum section. This forum, and the thread "Help with IFRAME and grabbing URL are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Help with IFRAME and grabbing URL
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Help with IFRAME and grabbing URL
Hi all,
I need help with a iframe question. I have a forum that loads in an iframe of another page. It all works great as it is and i don't want to change the way its setup up. however when someone tries to bookmark a they can only book mark the page than contains the iframe and not the page they are looking at. So i'm trying to create a permalink on the page that contains the iframe and have this dynamically updated using the onclick event of a button on the parent page. So far i have managed to get the current url of the iframe and display it in an alert box, the next stage and the stage i can't figure out is to change that so that when the iframe is loaded the current url is saved to a variable on the parent page. Does that make sense. So the code for the onclick event is:
Any help greatly appreciated!! Thanks Tom |
|
|
|
#2
|
||||
|
||||
|
Re: Help with IFRAME and grabbing URL
I would highly doubt there is a need to use frames in this instance. If you are trying to surround your forum with a higher level of navigation or some border, or whatever else really, then there's no need.
This is just one of the many problems you face. Most forum softwares have a header and footer template you can edit, so therefore you can theoretically surround your forum with anything. If you really really do have to keep frames, then could you give us a url, or build a really crude demo so we can look at something? I imagine a javascript to get this going would be very simple and should be aimed at the frames parent.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
Re: Help with IFRAME and grabbing URL
the reason we have used iframes for this is that the forum software doesn't integrate into the page at all. We've edited the headers and footers but the software still doesn't integrate into the page. Something about how the page is processed is stopping or overwriting the rest of the pages. it doesn't happen to every page which makes it stranger.
So we've put it in a iframe to make life simpler, and also we don't have the time to site and debug the whole application, we've already spent 2 days trying to get it to work. I can't give a url as its in a members only section of the website, but i can build a crude demo tonight and post it up, if you bear with me i'll do it tonight and post a url. Thanks in advance Tom |
|
#4
|
||||
|
||||
|
Re: Help with IFRAME and grabbing URL
Why not pm me the url...
I've used almost every forum software and might know away around this.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#5
|
|||
|
|||
|
Re: Help with IFRAME and grabbing URL
I'm sorry i can't the forum is inthe members section of the site which is live.
The forum software is snitz forum. Like i said two of us haven spent two days trying to figure it out, but any help would be appreciated. |
|
#6
|
||||
|
||||
|
Re: Help with IFRAME and grabbing URL
luckily for you I know snitz and ASP like the back of my hand...........
I will PM you.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#7
|
|||
|
|||
|
Re: Help with IFRAME and grabbing URL
that would be great!!
Thanks very much |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] refresh a different iframe once an iframe elsewhere has loaded | cosmicbdog | JavaScript Forum | 1 | Jan 25th, 2008 01:50 |
| grabbing still images from wmv for PHP? | Raynia | PHP Forum | 3 | Sep 21st, 2007 06:24 |
| Can a jsp file in an IFrame calls a javascript function outside of the IFrame | jadeite100 | JavaScript Forum | 0 | May 31st, 2007 14:29 |
| Grabbing the first paragraph | karinne | PHP Forum | 12 | Mar 19th, 2007 20:58 |
| Screen-grabbing from a DVD | James-Clarke | Graphics and 3D | 18 | Jan 31st, 2007 15:14 |