Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:16:36 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Visual GUI Builder & Library
>
Sigma Visual - Q&A
(Moderators:
steven
,
linb
) >
How to render App to div
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to render App to div (Read 481 times)
sedrok (jslinb.ru)
Sr. Member
Posts: 57
How to render App to div
«
on:
June 22, 2011, 02:46:43 AM »
I have App:
..... <script type="text/javascript"> // The default code is a com class (inherited from linb.Com) Class('App', 'linb.Com',{ Static:{ //it can be called by "App.sf1()" sf1:function(){ //linb.log(global_var); }, ....
And i have a div:
<div id=Appdiv></div>
How can i put App to div?
I need something like this:
App.renderOnto('Appdiv')
«
Last Edit: June 22, 2011, 02:52:56 AM by sedrok (jslinb.ru)
»
Logged
sedrok (jslinb.ru)
Sr. Member
Posts: 57
Re: How to render App to div
«
Reply #1 on:
June 22, 2011, 03:01:42 AM »
oh, i found a solution
<div id='layer1' style="position: relative;"></div> <script type="text/javascript"> Class('App', 'linb.Com',{ Instance:{ iniComponents:function(){ // [[code created by jsLinb UI Builder var host=this, children=[], append=function(child){children.push(child.get(0))}; append((new linb.UI.TreeGrid) .setHost(host,"treegrid4") .setDock("none") .setLeft(60) .setTop(50) .setRowNumbered(true) .setGridHandlerCaption("grid") .setHeader([{"id":"col 1", "width":80, "type":"label", "caption":"col 1"}, {"id":"col 2", "width":80, "type":"label", "caption":"col 2"}, {"id":"col 3", "width":80, "type":"label", "caption":"col 3"}]) .setRows([{"cells":[{"value":"a1"}, {"value":"a2"}, {"value":"a3"}], "id":"j"}, {"cells":[{"value":"b1"}, {"value":"b2"}, {"value":"b3"}], "id":"k"}, {"cells":[{"value":"c1"}, {"value":"c2"}, {"value":"c3"}], "id":"l"}, {"cells":[{"value":"d1"}, {"value":"d2"}, {"value":"d3"}], "id":"m"}, {"cells":[{"value":"e1"}, {"value":"e2"}, {"value":"e3"}], "id":"n"}, {"cells":[{"value":"f1"}, {"value":"f2"}, {"value":"f3"}], "id":"o"}]) ); return children; // ]]code created by jsLinb UI Builder } } }); linb.main(function(){ var ins=new App; ins.iniComponents(); linb('layer1').append(ins.getUIComponents()); }); </script>
Logged
alexeerjons
Guest
Re: How to render App to div
«
Reply #2 on:
June 30, 2011, 08:19:33 PM »
When was the last time you had a real Australian winter? Good times. Great Mates. No one does winter like Australians so the best place for a winter holiday is right here in your backyard. Enjoy a winter adventure right here in your backyard. Spectacular scenery and amazing snowboard fun for all plus the unique spirit of Australia’s own mountains
http://www.ripplingmedia.com/blog/snow-australia-discover-our-winter/
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...