|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Newcomer Join Date: Feb 2007
Posts: 7
![]() | there must be a simple solution here... This is my Iframe: <iframe src="test.html" id="maxMe" name="iframe1" title="Main Content" class="iframe1"></iframe> The following is located on the page containing the Iframe mentioned above: Code:
But this does work: Code:
I have tried about 20 different variations and spent over 5 hours on this. I have clicked every google link under every search term. I think i am going to shoot myself if I don't get answer soon! I will be in the debt of whomever responds promptly. Thanks so much, ~Jeol. |
| |
|
| |||||||
| | #2 |
| Junior Guru | Make the iFrame src come up with a popup, and see if that works. Zack
__________________ Thumpr ~ Xcolored |
| |
| | #3 |
| Newcomer Join Date: Feb 2007
Posts: 7
![]() | Sorry, no offence, i just don't understand! What do you mean "come up" WITH a popup? Do you mean open in a popup? Last edited 03-04-2007 at 08:57 PM. Reason: grrr |
| |
| | #4 |
| Junior Guru | That is my bad, I misinterpretted the question. Have an alert display in the iframe. So the iframe src would include the js to open an alert. See if it displays the title properly. If it does, try this: <script type="text/javascript"> document.write(window.iframe1.document.title) </script> Zack
__________________ Thumpr ~ Xcolored |
| |
| | #5 |
| Senior Member Join Date: Apr 2006 Location: Hull, United Kingdom.
Posts: 317
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi there, This is the code I usually use; HTML Code:
Tell me if this works... Regards, Kieran Taylor. |
| |
| | #6 |
| Junior Guru | Kieran, this isn't the issue, it's the Javascript title read. Zack
__________________ Thumpr ~ Xcolored |
| |
| | #7 |
| Newcomer Join Date: Feb 2007
Posts: 7
![]() | Zack I am still confused =( |
| |
| | #8 |
| Junior Guru | Change: <script type="text/javascript"> document.writeln(window.iframe1.document.title) </script> To: <script type="text/javascript"> document.write(window.iframe1.document.title) </script> Zack
__________________ Thumpr ~ Xcolored |
| |
| | #9 |
| Newcomer Join Date: Feb 2007
Posts: 7
![]() | Lol, I tried that long ago. Thats not what I was looking for and wasn't the problem! Thanks for your time none-the-less. I figured it out, look here to see it: http://www.rentev.com/leoj/leojcorp/FF4.html |
| |
| | #10 |
| Junior Member Join Date: Mar 2007
Posts: 99
![]() | but why would you want to change the title of the iFrame dynamically, I mean that would not get reflected anywhere... But the reason why you cannot set the title of the document is because that cannot be changed with Javascript. You can only change the title of the iFrame, not the document within. like: document.myiFrame.title = 'my new title'; document.myiFrame.document.title will never work because is a readonly property. cheers
__________________ Free Link Exchange - Los Optimizadores - Posicionamiento Web diseņo Web - Web Design Templates |
| |
| | #11 |
| Junior Guru | How'd you fix it? Zack
__________________ Thumpr ~ Xcolored |
| |
| | #12 |
| Junior Member Join Date: Mar 2007
Posts: 99
![]() | well I would just put the title on the page I load. I believe you can dynamically change the content of iFrames so if you put the right titles on the right pages you can just load that page. The thing is I have no clue what you actually want to accomplish by doing this. Perhaps if you throw some light I could help a bit more.
__________________ Free Link Exchange - Los Optimizadores - Posicionamiento Web diseņo Web - Web Design Templates |
| |
| | #13 |
| Newcomer Join Date: Feb 2007
Posts: 7
![]() | uhm, you all cant read worth shit. I said i wanted to get the iframe title to be displayed on the parent document. I have made like 3 posts saying the same thing over and over. Jeese! >.> http://www.rentev.com/leoj/leojcorp/FF5.html |
| |
| | #14 | |
| Newcomer Join Date: Feb 2007
Posts: 7
![]() | If you guys knew anything about javascript you would have seen that I was NOT trying to change the title of the iframe'd document... Quote:
That says WRITE the Iframe'd document's title out whatever it is... NOT change it. | |
| |
| | #15 |
| Junior Member Join Date: Mar 2007
Posts: 99
![]() | hahahaha you're so right! oh well, in that case why dont you try the opposite? put a function in the loded iframe that tells the parent object what the title is. You can have a function in the parent document to handle the title and I suppose that should work, but havent tried it. cheers
__________________ Free Link Exchange - Los Optimizadores - Posicionamiento Web diseņo Web - Web Design Templates |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| my iframe is invisible in ie | mlafefon | CSS | 2 | 02-10-2007 09:59 PM |
| H1 tag similar to title.Is this spam? | Seduct | Search Engine Optimization (SEO) | 12 | 08-19-2006 10:17 PM |
| The 'Title' on your website | kenni | Search Engine Optimization (SEO) | 11 | 01-06-2006 03:36 PM |