www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > JavaScript

    JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...)

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 07-06-2007, 05:11 AM
    mlecho mlecho is offline
    Registered User
     
    Join Date: Sep 2006
    Posts: 86
    making inserted html not look like an iframe

    hi...i know i can insert html with something like:

    Code:
    var ob=document.createElement("object");
    	ob.width="100%"
    	ob.height="100%"
    	ob.data="pages/"+title+".php";
    	ob.type="text/html";
    	wrapper.appendChild(ob);
    works fine...but, the only catch is if the page i am inserting is wider than the parent, i get a scroll bar....just like an iFrame....is there a way i can over come that? hid it, or just get the html to load as if it where seamless to the parent code?
    Reply With Quote
      #2  
    Old 07-06-2007, 07:08 AM
    gil davis's Avatar
    gil davis gil davis is offline
    Nobody important
     
    Join Date: Nov 2002
    Posts: 4,456
    If you use
    Code:
    style="overflow: hidden"
    for the object it will inhibit the scrollbars.
    Reply With Quote
      #3  
    Old 07-06-2007, 07:21 AM
    mlecho mlecho is offline
    Registered User
     
    Join Date: Sep 2006
    Posts: 86
    yep...thanks..
    Reply With Quote
      #4  
    Old 07-07-2007, 09:06 AM
    mlecho mlecho is offline
    Registered User
     
    Join Date: Sep 2006
    Posts: 86
    oh oh....while applying what i learned, i have an issue with IE (6= not tested on 7 yet). The following works great in Firefox. The external page loads fine in all browsers... so, what does ie need to get the same results?

    Code:
    function loadContact(){
    	wrapper=document.createElement("div");
    	wrapper.id="wrapper";
    	result.appendChild(wrapper);
    	var ob=document.createElement("object");
    	ob.width="80%";
    	ob.height="900px";
    	ob.style.overflow="hidden";
    	ob.data="pages/contact.php";
    	ob.type="text/html";
    	
    	wrapper.appendChild(ob);
    }
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    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

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:39 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.