Closed Thread
Results 1 to 2 of 2

Thread: The problem with the overwrite the contents of iframe

  1. #1
    spheresh is offline Newbie
    Join Date
    Jun 2009
    Posts
    1
    Rep Power
    0

    The problem with the overwrite the contents of iframe

    When recording code in the iframe, in the browser status data transmission
    Sample:
    Code:
    <iframe id="myFrame" framespacing='0' frameborder='no' scrolling='no' width='450' height='100'></iframe>
    <script type="text/javascript" language="JavaScript">
    	var myFrame = document.getElementById('myFrame');
    	var myDocument = myFrame.contentDocument;
    	myDocument.write("<scr"+"ipt type=\"text/javascript\" language=\"JavaScript\" s\c\r=\"\ads.workserver.test/ads.js\"></scr"+"ipt>");
    
    </script>
    For example contains in ads.js the file
    Code:
    alert("i\'am loading");
    script performs correctly

    but the connection status is "Data Transfer", in status bar

    how close the connection?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: The problem with the overwrite the contents of iframe

    Seemed to have a few bugs for me man lots of escapes with the "scr" which should actually be "src" etc...


    Code:
    <html>
    <
    head>
    <
    title>Test This</title>
    <
    script type="text/javascript" language="JavaScript">
        function 
    showad() {
            var 
    document.getElementById("myFrame").contentDocument;
            
    x.write("...<scr"+"ipt type=\"text/javascript\" language=\"JavaScript\" src=\"ads.js\"></scr"+"ipt>");
        }
        
    showad();
    </script>
    </head>
    <body>
    <iframe border="2" src="framey.html" id="myFrame" >You do not support iframes!</iframe>
    </body>
    </html> 

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with initializing IFrame? Newbie question
    By alirezan in forum JavaScript and CSS
    Replies: 2
    Last Post: 03-18-2011, 05:39 PM
  2. Overwrite an Image
    By vandel212 in forum C# Programming
    Replies: 2
    Last Post: 09-09-2009, 06:52 PM
  3. General how to overwrite a os of a hardware?
    By Jose@neth in forum Assembly
    Replies: 1
    Last Post: 02-16-2009, 07:00 AM
  4. Overwrite
    By Xystus777 in forum C# Programming
    Replies: 5
    Last Post: 11-21-2008, 05:04 AM
  5. Very tiny iframe problem
    By amrosama in forum JavaScript and CSS
    Replies: 9
    Last Post: 10-24-2008, 11:46 AM

Tags for this Thread

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