Felix , do you have any updates on this ?
I have in the meantime started using a bit of dojo code to initialise
dojo widgets downloaded as markup through an Ajax request produced by
a AjaxDirectLink or anything similar .
The dojo ContentPane seems to deal with a lot of theese problems , and
I was able to find some enlightenment in it's code . Here is a method
I'm using :
tacosInternal.initDojoComps = function(nodeName) {
var parser = new dojo.xml.Parse();
var node = document.getElementById(nodeName);
var frag = parser.parseElement(node, null, true);
dojo.widget.getParser().createComponents(frag);
}
The nodeName , is normally one of the updateComponents values . I
havn't edited tacos directly to add this , but I guess one could
integrate this through the code that deals with ... updating the
components specified in the updateComponents . Running this method for
each updated component will search each component for dojoWidgets and
start them up .
what do you guys think ?
Cosmin
On 1/21/06, Felix Sun <[EMAIL PROTECTED]> wrote:
> Actually I am thinking about create a component that not only be used to
> create FloatingPane but also could create other dojo Widget.
> but still not get through what the component should look like. may be we
> could discuss on that.
>
> I think any dojo widget can be created through dojo.widget.createWidget(...)
> method in Parse.js,
> so shall we create a component that can be used like this:
>
> <component id="floatingPane" type="tacos:DojoWidget">
> <binding name="name" value="FloatingPane"/>
> <binding name="props">
> literal:{
> title:"Countries",
> constrainToContainer:true,
> toggle:'fade',
> hasShadow:true,
> resizable:true
> }
> </binding>
> <binding name="refNode" value="selectCountryArea"/>
> <binding name="position" value="..."/>
> </component>
>
> and this component focus on dealing with the problems in ajax response, and
> also we may need to use script to create these widget.
> could we do it that way? how's your guys think about that?
>
>
>
>
> On 21/01/06, Cosmin Bucur <[EMAIL PROTECTED] > wrote:
> >
> > ok got the code , looks up to date indeed .
> >
> > Felix can you please take a look at bug37 ? It was related to this ,
> > and in there I sugested that the contrainToContainer should be made
> > dynamic not hard coded as true .
> >
> > This would allow easier transportation of the FloatingPane component
> > through ajax responses within a component .
> >
> > What do you think
> > Cosmin
> >
> > On 1/20/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> > > oh ok , thanks for the clarification Felix .
> > >
> > > will update from cvs tomorow morning and check to see if i'm getting
> > > the latest , many thanks on the fixes .
> > >
> > > Cosmin
> > >
> > > On 1/20/06, Felix Sun <[EMAIL PROTECTED]> wrote:
> > > > The dojo has been upgraded to 0.2.2 by jesse. Yes, the
> > > > constrainToContainer="1" should be boolean,
> > > > I forget to change it, but the demo works, do you? I'd like to change
> > > > constrainToContainer right now.
> > > >
> > > > PS, can you see the FloatingPaneExample page in demo? if that works,
> than
> > > > your code could be latest I think. ;-)
> > > >
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > _______________________________________________
> > Tacos-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> >
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel