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/).

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