www.webdeveloper.com
Results 1 to 3 of 3

Thread: load function into frame

Hybrid View

  1. #1
    Join Date
    Jun 2013
    Posts
    4

    load function into frame

    Hello,

    I am new here and maybe the following question is stupid.
    Currently, I am working with <frameset>
    I have the following code snippet from run.html:

    HTML Code:
    <frameset rows="40%,60%">
         <frame name="1" src="example1.html";>
         <frameset cols="50%,50%,*">
         <frame name="2" src="example2.html">
         <frame name="3" src="example3.html">
       </frameset>
    </frameset>
    this code works fine for html(htm).
    In the complete run.html I also call a defined function
    HTML Code:
    function test()
    {
    ...
    }
    which also works.
    Can I put the output (a picture or histogram) into the frame?

    I started with something like
    HTML Code:
     <frame name="1" src="javascript:parent.test";>
    but this only shows the code of the function.

    Thanks!
    Greenhorn

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,264
    You do not need to load an other script !
    Call the function in a script in the frame with something like this:
    Code:
    var myPicture=parent.test(...)
    Last edited by 007Julien; 06-01-2013 at 10:42 AM.

  3. #3
    Join Date
    Jun 2013
    Posts
    4
    Hi Julien

    thanks for answer!

    Greenhorn

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles