SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question iFrames with jquery

    I have code like:
    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    >

    <
    html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <
    head>
      <
    title></title>
    <
    script type="text/javascript" src="javascript/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="javascript/jquery.blockUI.js"></script>
    </head>

    <body>
    <script language="JavaScript" type="text/javascript">
    $(document).ready(function(){

        $daemach.debug = true;

        $('#loadContent').click(function(){

            $.frameReady(function(){
                    $.blockUI();
                    $('<div></div>').addClass('box2').appendTo("body").load("ajaxcontent.cfm",$.unblockUI);
                },"top.iFrame",
                { load: {type:"script",src:"javascript/jquery.blockUI.js",test: "$.blockUI.impl.install"} },
                function(){$(':disabled').removeAttr("disabled");
            });
        });

        $('#blockit').click(function(){
            $.frameReady(function(){$.blockUI(); },"top.iFrame");
        });
        $('#unblockit').click(function(){
            $.frameReady(function(){$.unblockUI(); },"top.iFrame");
        });
    });
    </script>

    </body>

    </html> 
    how to make iframe with text inside like:
    Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima.
    Attached Files Attached Files

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2008
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I try to add ID for frame...
    <iframe id="searchframe1">

    <div id="searchrec1">
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.

    </div>

    </iframe>


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
  •