Got this one, the last parameter to ajax->link must be false(which indicates
that the title should not be html escaped) if some one has to insert some
html stuff in the $title variable of the ajax->link.

Thanks.


On 1/27/08, Novice Programmer <[EMAIL PROTECTED]> wrote:
>
> Hello guys,
>
> I am using following code to output custom tag in $ajax->link. The output
> is not exactly waht i want:
>
> <?php echo($ajax->link($html->tag("area", array('shape'=>"rect", 'coords'
> => "67,12,134,28")), '/main_tabs/index/random', array('onclick' =>
> 'changeImagemap(\'ran\');return true;', 'update' => 'ajaxtabloader',
> 'loading' => 'new Effect.Highlight(\'ajaxtabloader\')', 'complete' => 'new
> Effect.Appear(\'ajaxtabloader\')'))); ?>
>
> It produces:
> <a href="/main_tabs/index/random"  onclick="changeImagemap('ran');return
> true; event.returnValue = false; return false;" id="link1982745748">*&lt;area
> shape=&quot;rect&quot; coords=&quot;67,12,134,28&quot; /&gt;*</a><script
> type="text/javascript">Event.observe('link1982745748', 'click',
> function(event) { new Ajax.Updater('ajaxtabloader','/main_tabs/index/random',
> {asynchronous:true, evalScripts:true, onLoading:function(request) {new
> Effect.Highlight('ajaxtabloader')}, onComplete:function(request) {new
> Effect.Appear('ajaxtabloader')}, requestHeaders:['X-Update',
> 'ajaxtabloader']}) }, false);</script>
>
>
> I want the highlighted code to appear as tag rather than normal html
> content. Any help is appreciated.
>
> --
> Thanks & Regards,
> Novice (http://ishuonweb.wordpress.com/).
>



-- 
Thanks & Regards,
Novice (http://ishuonweb.wordpress.com/).

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to