SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot simplyunique's Avatar
    Join Date
    Jun 2003
    Location
    Montreal
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    edit this string to target the iframe in body

    How do I alter this to target the iframe in body.htm?
    This is a the script i'm using to catch my orphaned frames. I want to catch orphaned iframe docs and stuff them into the iframe. Body.htm already uses this to target the frameset.

    Code:
      <!-- 
    	if (top.location == self.location) {	//if page is not in its frameset
    	  top.location.href = "../body.htm" + "?" + window.location.href; 
    	} 
      //-->
    Fonkuscious say: Sink a foot in into my code and stub your toe

  2. #2
    SitePoint Zealot simplyunique's Avatar
    Join Date
    Jun 2003
    Location
    Montreal
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok after some digging i found this: (note-ive been on this problem all day)

    This is the place i got my code to build this latest incarnation from:
    http://www.design-ireland.net/index..../design-10.php

    Here's my tweaking, the thing is, it works if i remove the tabular data so am i formatting the data wrong?
    Code:
    <script language="javascript">
    contPage = (location.search.substring(1))? location.search.substring(1) : 'about-us/tropical-island-products.htm';
    contPage = unescape(contPage);
    document.write('<div id="Layer2" style="position:absolute; width:100%; height:370; z-index:2;"><table align="top" width="100%" height="365" cellpadding="0" cellspacing="0"><tr>
    	  <td align="right" valign="top"><table width="95%" height="90%" border="0" cellpadding="0" cellspacing="0"><tr><td>');
    document.write('<iframe src="'+contPage+'" name="content" width="100%" height="100%" frameborder="0" scrolling="auto" ALLOWTRANSPARENCY="true" style="filter:chroma(color=#F89460)">');
    document.write('</iframe>');
    document.write('</td></tr></table></td></tr></table></div>');
    </script>
    Fonkuscious say: Sink a foot in into my code and stub your toe

  3. #3
    SitePoint Zealot simplyunique's Avatar
    Join Date
    Jun 2003
    Location
    Montreal
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YAAAYYY
    Code:
    <script language="javascript">
    contPage = (location.search.substring(1))? location.search.substring(1) : 'about-us/tropical-island-products.htm';
    contPage = unescape(contPage);
    document.write('<div id="Layer2" style="position:absolute; width:100%; height:370; z-index:2;"><table align="top" width="100%" height="365" cellpadding="0" cellspacing="0"><tr><td align="right" valign="top"><table width="95%" height="90%" border="0" cellpadding="0" cellspacing="0"><tr><td>');
    document.write('<iframe src="'+contPage+'" name="content" width="100%" height="100%" frameborder="0" scrolling="auto" ALLOWTRANSPARENCY="true" style="filter:chroma(color=#F89460)">');
    document.write('</iframe>');
    document.write('</td></tr></table></td></tr></table></div>');
    </script>
    problem solved on my own.
    Fonkuscious say: Sink a foot in into my code and stub your toe

  4. #4
    SitePoint Zealot simplyunique's Avatar
    Join Date
    Jun 2003
    Location
    Montreal
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    arrgh.. my body.htm has a secondary parent finding script which it uses to find the frameset, which defaults the iframe javascript..

    How do i pass the url along so it stays in the iframe?
    Fonkuscious say: Sink a foot in into my code and stub your toe

  5. #5
    SitePoint Zealot simplyunique's Avatar
    Join Date
    Jun 2003
    Location
    Montreal
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump ... help!!!
    Fonkuscious say: Sink a foot in into my code and stub your toe


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •