Quantcast

Issue with AJAX updates to widgets

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue with AJAX updates to widgets

zecke-2
Hi,

today I spent some time trying to figure out why the
iliad.js:updateWidget failed to update the widget. After some looking
I saw that 'jQuery('.' + id)' returns an empty array. The issue was
that I used 'e cssClass: self cssClass' for the main part of the
contents of my widget.

Can the API to be changed to have something like appendCssClass:,
replaceCssClass:. or have another mean to warn me if one attempts an
AJAX update and the update will fail?

thanks
  holger
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with AJAX updates to widgets

Nicolas Petton

Sure, it can be done. Would you mind doing it and pushing to
squeaksource.com/IliadDev?

Nico

zecke <[hidden email]> writes:

> Hi,
>
> today I spent some time trying to figure out why the
> iliad.js:updateWidget failed to update the widget. After some looking
> I saw that 'jQuery('.' + id)' returns an empty array. The issue was
> that I used 'e cssClass: self cssClass' for the main part of the
> contents of my widget.
>
> Can the API to be changed to have something like appendCssClass:,
> replaceCssClass:. or have another mean to warn me if one attempts an
> AJAX update and the update will fail?
>
> thanks
>   holger

--
Nicolas Petton
http://nicolas-petton.fr
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with AJAX updates to widgets

zecke-2


On Jan 7, 2:26 pm, Nicolas Petton <[hidden email]> wrote:
> Sure, it can be done. Would you mind doing it and pushing to
> squeaksource.com/IliadDev?

Do you have any magic how to get this change from GST to Squeaksource
or is doing the modification in GST and then re-doing it in Pharo the
best way forward?

holger
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with AJAX updates to widgets

Nicolas Petton

Hi,

Right, I forgot that you are using GST ;) Ok, then a push request to
Github would be fine, and I'd backport it to Pharo!

And no, no magic. You can export from GST format to Squeak format though.

Cheers,
Nico

zecke <[hidden email]> writes:

> On Jan 7, 2:26 pm, Nicolas Petton <[hidden email]> wrote:
>> Sure, it can be done. Would you mind doing it and pushing to
>> squeaksource.com/IliadDev?
>
> Do you have any magic how to get this change from GST to Squeaksource
> or is doing the modification in GST and then re-doing it in Pharo the
> best way forward?
>
> holger

--
Nicolas Petton
http://nicolas-petton.fr
Loading...