Results 1 to 2 of 2

Thread: ext js 3.4 render to sub iframe

  1. #1
    Sencha User
    Join Date
    Mar 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default ext js 3.4 render to sub iframe

    Html
    HTML Code:
    <html>
    	<head>		<script src="extjs.js" />			</head>
    	<body> 
    		<iframe id="myframe">			<div id="tree</div>			<script>				var tree = new parent.Ext.ux.tree.TreeGrid({					renderTo: "myframe#tree"					columns: [{						header: 'Task',						dataIndex: 'task',						width: 230					}],					dataUrl: 'data.php'				});			</script>		</iframe> 	</body>
    </html>
    I want create tree Grid and render to iframe.
    But `renderTo: "myframe#tree"` say error `Cannot read property 'dom' of null`


    I want user Ext js in `myframe` without load `extjs.js` again.how can use ext js parent from iframe?

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,094
    Vote Rating
    269
      0  

    Default

    I don't see how the iframe would be able to get access to the parent. What is the use case?

    Lifecycle management for your web apps

  3. #3
    Sencha User
    Join Date
    Mar 2017
    Posts
    1
    Vote Rating
    0
      0  

    Default

    excuse me
    i update my code

    HTML Code:
    <html>
    	<head>		<script src="extjs.js" />			</head>
    	<body> 
    		<iframe id="myframe">			<div id="tree</div>			<script>				var tree = new parent.Ext.ux.tree.TreeGrid({					renderTo: "myframe#tree"					columns: [{						header: 'Task',						dataIndex: 'task',						width: 230					}],					dataUrl: 'data.php'				});			</script>		</iframe> 	</body>
    </html>

Similar Threads

  1. Render a textfile vs IFRAME
    By ctp in forum Ext: Discussion
    Replies: 0
    Last Post: 11 May 2011, 12:01 PM
  2. Unable to render TreePanel in Iframe
    By cdeclercq in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 25 Mar 2010, 9:27 AM
  3. Ext.menu didn't render in Iframe.
    By metfan in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 3 Nov 2009, 4:51 AM
  4. iframe doesn't render xml with xsl?
    By RobD in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 13 Jul 2009, 1:10 PM
  5. Iframe don't render using IE6, need help
    By Hagge in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 18 Sep 2007, 12:19 AM

Tags for this Thread

Posting Permissions

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