addLoadScript not working in JQuery Tab panes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

addLoadScript not working in JQuery Tab panes

John Toohey
Hi,
I have a JQTabs object with four panes. I have a Comet script that I
add via addLoadScript when I create the initial tab objects, and I see
that in FireBug. However, I am now trying to add the JQUILayout script
to a single table, using a div wrapper on that pance, but the script
never shows up on the onLoad script for that page.

Stepping through the debugger, I think the Canvas that my tab's
#renderOn method gets handed is not the same as the one use to create
all the tabs. Is there a way to add onLoad scripts from inside the tab
panes?

--
~JT
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: addLoadScript not working in JQuery Tab panes

Paul DeBruicker
I thought the tab content was loaded through an Ajax request and as such
the onLoad event had already been fired.

Since by the time the tab content is loaded the DOM should be ready
can't you just include the script as

html script:

rather than

html document addLoadScript: ?


On 12-03-03 12:10 PM, John Toohey wrote:

> Hi,
> I have a JQTabs object with four panes. I have a Comet script that I
> add via addLoadScript when I create the initial tab objects, and I see
> that in FireBug. However, I am now trying to add the JQUILayout script
> to a single table, using a div wrapper on that pance, but the script
> never shows up on the onLoad script for that page.
>
> Stepping through the debugger, I think the Canvas that my tab's
> #renderOn method gets handed is not the same as the one use to create
> all the tabs. Is there a way to add onLoad scripts from inside the tab
> panes?
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: addLoadScript not working in JQuery Tab panes

John Toohey
That did it, many thanks.

On Sat, Mar 3, 2012 at 16:26, Paul DeBruicker <[hidden email]> wrote:

> I thought the tab content was loaded through an Ajax request and as such the
> onLoad event had already been fired.
>
> Since by the time the tab content is loaded the DOM should be ready can't
> you just include the script as
>
> html script:
>
> rather than
>
> html document addLoadScript: ?
>
>
>
> On 12-03-03 12:10 PM, John Toohey wrote:
>>
>> Hi,
>> I have a JQTabs object with four panes. I have a Comet script that I
>> add via addLoadScript when I create the initial tab objects, and I see
>> that in FireBug. However, I am now trying to add the JQUILayout script
>> to a single table, using a div wrapper on that pance, but the script
>> never shows up on the onLoad script for that page.
>>
>> Stepping through the debugger, I think the Canvas that my tab's
>> #renderOn method gets handed is not the same as the one use to create
>> all the tabs. Is there a way to add onLoad scripts from inside the tab
>> panes?
>>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
~JT
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside