Sigma Php Ajax framework, Ajax Components, GUI Builder
February 11, 2012, 10:58:14 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
) >
Sigma Form widgets in Existing XHTML Page
Pages: [
1
]
« previous
next »
Print
Author
Topic: Sigma Form widgets in Existing XHTML Page (Read 664 times)
cfadam
Newbie
Posts: 3
Sigma Form widgets in Existing XHTML Page
«
on:
November 11, 2009, 11:52:17 AM »
Hi All,
How would I render a Pane into a div of an existing XHTML Page. I am guessing that I would give the div an ID then render the pane to that div, but I haven't figured out how to do it.
A code example, Please.
Thank You
Logged
linb
Administrator
Hero Member
Posts: 433
Re: Sigma Form widgets in Existing XHTML Page
«
Reply #1 on:
November 11, 2009, 03:35:34 PM »
Just check it out :
http://www.linb.net/Samples/linb/misc/renderto/index.html
Logged
cfadam
Newbie
Posts: 3
Re: Sigma Form widgets in Existing XHTML Page
«
Reply #2 on:
November 11, 2009, 10:09:54 PM »
Thanks,
I can now render a simple component into the div, like the sample that you provided. But what would the syntax be to render a class from an external js file into to a div on the page?
Thanks again
Logged
linb
Administrator
Hero Member
Posts: 433
Re: Sigma Form widgets in Existing XHTML Page
«
Reply #3 on:
November 12, 2009, 04:56:39 AM »
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head></head> <body> <div id='divname' style="left:100px;top:100px;width:200px;height:200px;position:absolute;"> </div> <script type="text/javascript" src="../../../runtime/jsLinb/js/linb-debug.js"></script> <script type="text/javascript"> linb.main(function(){ // load class "App.Dialog" from App/js/Dialog.js file dynamically // and create a new instance linb.ComFactory.newCom("App.Dialog",function(){ // replace this.dialog.renderOnto("divname"); // or, append // linb("divname").append(this.dialog) }); }); </script> </body> </html>
App/js/Dialog.js
Class('App.Dialog', '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.Dialog) .host(host,"dialog") ); return children; // ]]code created by jsLinb UI Builder } } });
Logged
cfadam
Newbie
Posts: 3
Re: Sigma Form widgets in Existing XHTML Page
«
Reply #4 on:
November 12, 2009, 09:56:50 AM »
Thank you very much. Exactly what I was looking for.
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...