iFrame Source changing

This is a discussion on "iFrame Source changing" within the JavaScript Forum section. This forum, and the thread "iFrame Source changing are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 28th, 2007, 01:31
Reputable Member
Join Date: Jul 2007
Location: Windsor, ON, Canada
Age: 19
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
iFrame Source changing

This is why i WANT people to post complaints on my website; it's the only way i figure out that something doesn't work in IE.

I noticed that the coding for my music video page doesn't work in IE, so i try changing some variables and making sure they match up, and now it doesn't work in either!

iframe coding
Code: Select all
<div id="video">
<iframe id="vidframe" name="vidFrame" src="VideoAudio/BMVs/bmv15.html" frameborder=0 scrolling="no" width="400px" height="326px" marginheight="0px" marginwidth="0px"></iframe></div>
javascript to change stuff
Code: Select all
<script type="text/javascript">
<!--
function changeStuff(title,bio,vidurl,url)
{
document.getElementById('vidTitle').innerHTML=title;
document.getElementById('vidBio').innerHTML=bio;
document.getElementById('vidLink').href=url;
document.getElementById('vidFrame').src="http://www.freewebs.com/pyramidia/VideoAudio/BMVs/" + vidurl;
}
//-->
</script>
everything works except changing the src for vidFrame

as far as i know this worked fine until i got it validated... ironic?
Reply With Quote

  #2 (permalink)  
Old Jul 28th, 2007, 01:39
Reputable Member
Join Date: Jul 2007
Location: Windsor, ON, Canada
Age: 19
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Re: iFrame Source changing

wait, nevermind, found the problem, the id for the iframe was vidframe, not vidFrame, which fixed it for both of em.

sorry, someone can delete this now...

sheesh, who new i'd be just as annoying on the web?
Reply With Quote
Reply

Tags
change, iframe, src

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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
Can a jsp file in an IFrame calls a javascript function outside of the IFrame jadeite100 JavaScript Forum 0 May 31st, 2007 14:29
search query to google as <iframe> source vHTML JavaScript Forum 1 Jan 14th, 2007 17:52
Dynamically changing iframe position sadanandam JavaScript Forum 0 Jul 24th, 2006 12:50
View Source Costabrava Web Page Design 6 Feb 23rd, 2004 19:08


All times are GMT. The time now is 05:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43