JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 26th, 2006, 03:28 PM
TeamAwesomeWebs TeamAwesomeWebs is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 5 TeamAwesomeWebs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 42 m
Reputation Power: 0
Getting current iframe URL problem

Hi I am having a problem getting current URL of an iframe on one of my pages, the only thing I have tried that remotely works is document.getElementById("frame_id").src << and with this it only returns the original domain of the frame, not the current. I have also tried all of the following and none have even come close to working:
window.frames["frame_name"].location.href
window.frames["frame_name"].location
window.frames["frame_name"].src

If you know any solution I would greatly appreciate your help, thanks.

Reply With Quote
  #2  
Old July 26th, 2006, 04:55 PM
TeamAwesomeWebs TeamAwesomeWebs is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 5 TeamAwesomeWebs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 42 m
Reputation Power: 0
correction

I have a correction to make, when I use:
window.frames["frame_name"].location.href
it returns "about:blank" no matter what URL is open, including google and yahoo. What should I do?????

Thanks.

Reply With Quote
  #3  
Old July 27th, 2006, 10:16 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 548 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 6 h 35 m 44 sec
Reputation Power: 4
location

Maybe
window.frames["frame_name"].src

Reply With Quote
  #4  
Old July 27th, 2006, 04:41 PM
TeamAwesomeWebs TeamAwesomeWebs is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 5 TeamAwesomeWebs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 42 m
Reputation Power: 0
naa

naa man I had already tried that b4 and it didn't work. I think I have tried pretty much everything, I don't know if this is even possible, the only lead I have is window.frames["frame_name"].location.href
which returns "about:blank" everytime I use it, is there something I can do to get this to work? Thanks.

Reply With Quote
  #5  
Old July 31st, 2006, 02:34 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 548 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 6 h 35 m 44 sec
Reputation Power: 4
frame location

Sorry, I didn't notice that that was one you tried. Can you give an example of exactly how you want it to look? If not www.site_domain.com/page.html what?

Reply With Quote
  #6  
Old August 2nd, 2006, 04:54 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 472 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 14 m 46 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
something to try...

here is something you could try...

it probly doesnt really work right now but if the iframe is loaded as a window object you could use something like...

window.[objectname].location;
or
window.document.[objectname].location;
or
window.document.all.[objectname].location;

im sorry i cant test any of these but i am on vacation and i forgot my windows disks and, using msdos, complete screwed up my computer, i have to reformat my systemdrive and jumpdrive, i can only browse, edit, save and create files, i cant delete, move, copy, paste, rename, exc. it sucks but anyway this thread isnt about me so good luck with the above coding!!

colton22

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Getting current iframe URL problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway