Need some suggestions :)

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

Need some suggestions :)

Brian Brown-2
Hello again,

I have a subclass of WACanvasTableReport, where columns can be turned  
on or off depending on who is logged in. What I am using this  
functionality for is to show a column with some editing functionality  
is an admin is logged in.

I am using a checkbox with the #submitOnClick: method, and that  
works, but some strange things are going on. Each of those cells in  
the resultant table have their own form with a unique name, and the  
#submitOnClick: in each case is keyed to the specific form name. The  
html looks correct when rendered, there are no nested forms on the  
page. When I click on a check box, it does the submit, but doesn't  
always submit the correct form, and this is what has me puzzled.

Is there a better way to do this possibly using scriptaculous?


Thanks for any help!

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

Re: Need some suggestions :)

Lukas Renggli
> I am using a checkbox with the #submitOnClick: method, and that
> works, but some strange things are going on. Each of those cells in
> the resultant table have their own form with a unique name, and the
> #submitOnClick: in each case is keyed to the specific form name. The
> html looks correct when rendered, there are no nested forms on the
> page. When I click on a check box, it does the submit, but doesn't
> always submit the correct form, and this is what has me puzzled.

That's odd. Could be a bug in Seaside. I already heard of several
people reporting strange things when multiple forms were active at
once.

- What version of Seaside are you using?
- Can you reproduce it with different browser?
- Can you provide a minimal package where the problem is reproducible?

> Is there a better way to do this possibly using scriptaculous?

Scriptaculous uses the same mechanism to trigger callbacks, I doubt
that this would help.

Lukas

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

Re: Need some suggestions :)

Brian Brown-2

On Dec 13, 2006, at 2:43 PM, Lukas Renggli wrote:

>> I am using a checkbox with the #submitOnClick: method, and that
>> works, but some strange things are going on. Each of those cells in
>> the resultant table have their own form with a unique name, and the
>> #submitOnClick: in each case is keyed to the specific form name. The
>> html looks correct when rendered, there are no nested forms on the
>> page. When I click on a check box, it does the submit, but doesn't
>> always submit the correct form, and this is what has me puzzled.
>
> That's odd. Could be a bug in Seaside. I already heard of several
> people reporting strange things when multiple forms were active at
> once.
>
> - What version of Seaside are you using?
> - Can you reproduce it with different browser?
> - Can you provide a minimal package where the problem is reproducible?
>
>> Is there a better way to do this possibly using scriptaculous?
>
> Scriptaculous uses the same mechanism to trigger callbacks, I doubt
> that this would help.
>

Hey Lukas,

As I kept debugging and playing with it, it is in fact doing the  
correct update, but is changing the sort order of the result set and  
my sample data looks too similar to easily tell the differences in  
the sort order.

Thanks for answering...

Regards,

Brian





> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

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