I suppose, you can also give an id on the ajax link by passing id =>
'myid' in the options array.
Anyway, this is a problem if the rand() gives the same number (linked
to php version or plateform ?).
Maybe issuing an srand() or mt_srand() in beforeRender() would avoid
such collision ..
hth


On Jun 15, 5:10 pm, schneimi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> my site is working with tabs, so different views are present on one
> page at the same time, but only one is visible.
>
> Now I have the problem, that sometimes after working in different
> tabs, some sorting- and pagination-ajax-links stop working in the
> views, nothing happens on click anymore.
>
> I tracked the problem down to the ajax-links having same IDs in
> different tabs. I am not sure how this can be, each view is rendered
> by a different controller. For the sorting links I could set an ID
> manually, but the IDs for pagination-links coming with numbers() are
> given inside the paginator-helper.
>
> Is this a bug, or is there something I can do to avoid that problem?
>
> For now I edited the ajaxhelper to not just give a random ID for the
> links, but also place the calling controller/action within the ID to
> make it more unique, but I would really like not to have to edit it.
>
> (I am using cakePHP 1.2.0.6311 beta)
>
> Greetings,
> Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to