I don't think it's possible to have the ajax helper generate the CData portion separately. I would do one of the following: 1) write the code out by hand. 2) create a hidden $ajax->submit button to submit your ajax call then create a link around your node that calls a javascript function to initiate a click on the hidden ajax button (ie <a onClick="functionthatfindsandclicksyourajaxbutton()">stuff </a>).
On Apr 2, 12:38 am, duncan_m <[EMAIL PROTECTED]> wrote: > Hi, > > I have a small Ajax question that I'm hoping someone can help me with. > > I'm trying to integrate the YUI (Yahoo UI) Treeview into an > application and I want to execute an Ajax update of a Div on the click > of a node in the tree. I need to attach the Ajax Update link to the > Treeview Node and to do that I need the HREF and CData portions of the > Ajax link seperately. > > A call to $Ajax->link() results in a string with both the fully formed > HTML Link AND the CData portion (wrapped in Javascript tags).. I would > like to be able to retrieve these two items seperately so that I can > attach the link to the Node and include the CData portion in the HTML > document. > > I understand the YUI portions etc just fine, I'm just struggling with > the mechanics of generating the seperate portions of the AJAX link.. > > I hope my question makes sense? > > With thanks, > > Duncan. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
