Hello, Yes it is working now.
Thanks Deepak On Fri, Jul 24, 2009 at 12:47 PM, DEEPAK BHATIA<toreachdee...@gmail.com> wrote: > Hi, > > I have removed the body tag even then the yahoo ui is not working. > > Regards > > Deepak Bhatia > > > On Fri, Jul 24, 2009 at 12:11 PM, Frank Stelzer<d...@bleedingmoon.de> wrote: >> >> But your former posted ajax template works (the alert example)?? Why >> the hell do use the body tag there? ... >> The body tag should be listed in your decoration template. >> >> >> Am 24.07.2009 um 08:34 schrieb DEEPAK BHATIA: >> >>> >>> Hi, >>> >>> Thanks for the info. But the code below in test2Success.php is YUI >>> Javascript code which is not running. Please help me in this >>> >>> ========================================================= >>> >>> >>> <link rel="stylesheet" type="text/css" >>> href="http://yui.yahooapis.com/2.7.0/build/fonts/fonts-min.css" /> >>> <link rel="stylesheet" type="text/css" >>> href="http://yui.yahooapis.com/2.7.0/build/autocomplete/assets/skins/sam/autocomplete.css >>> " >>> /> >>> <script type="text/javascript" >>> src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js >>> "></script> >>> <script type="text/javascript" >>> src="http://yui.yahooapis.com/2.7.0/build/animation/animation- >>> min.js"></script> >>> <script type="text/javascript" >>> src="http://yui.yahooapis.com/2.7.0/build/datasource/datasource- >>> min.js"></script> >>> <script type="text/javascript" >>> src="http://yui.yahooapis.com/2.7.0/build/autocomplete/autocomplete-min.js >>> "></script> >>> >>> >>> <body class=" yui-skin-sam"> >>> >>> <div id="myAutoComplete"> >>> <input id="myInput" type="text"> >>> <div id="myContainer"></div> >>> </div> >>> >>> <script type="text/javascript"> >>> YAHOO.example.BasicRemote = function() { >>> // Use an XHRDataSource >>> var oDS = new YAHOO.util.XHRDataSource("/crb/ysearch_flat.php"); >>> // Set the responseType >>> oDS.responseType = YAHOO.util.XHRDataSource.TYPE_TEXT; >>> // Define the schema of the delimited results >>> oDS.responseSchema = { >>> recordDelim: "\n", >>> fieldDelim: "\t" >>> }; >>> >>> >>> // Instantiate the AutoComplete >>> var oAC = new YAHOO.widget.AutoComplete("myInput", "myContainer", >>> oDS); >>> oAC.useShadow = true; >>> oAC.maxResultsDisplayed = 39; >>> oAC.forceSelection = true; >>> oAC.typeAhead = true; >>> oDS: oDS, >>> oAC: oAC >>> }; >>> }(); >>> </script> >>> >>> On Fri, Jul 24, 2009 at 11:16 AM, Frank Stelzer<d...@bleedingmoon.de> >>> wrote: >>>> >>>> You need the "script" flag in your remote function call, otherwise >>>> you >>>> permit to execute javascript within ajax responses: >>>> http://www.symfony-project.org/book/1_2/11-Ajax-Integration#chapter_11_sub_authorizing_script_execution >>>> >>>> >>>> Am 24.07.2009 um 07:41 schrieb DEEPAK BHATIA: >>>> >>>>> >>>>> Hi, >>>>> >>>>> The code in javascript section in test2Success.php is not executed. >>>>> Why is that when link_to_remote is called, the associated >>>>> action/module doesn't execute Javascript code ? >>>>> >>>>> ========================================= >>>>> My main page has the following code >>>>> >>>>> <?php echo link_to_remote('Delete this post', array( 'update' => >>>>> 'feedback','url' => 'test/test2',)) ?> >>>>> >>>>> <div id="feedback"> >>>>> </div> >>>>> >>>>> ======================================== >>>>> >>>>> test2Success.php has the following code >>>>> =============================== >>>>> >>>>> <body> >>>>> <h1>TEST</h1> >>>>> >>>>> <script type="text/javascript"> >>>>> alert("TEST"); >>>>> </script> >>>>> </body> >>>>> =============================== >>>>> >>>>> >>>>> >>>>> On Fri, Jul 24, 2009 at 1:42 AM, Szabolcs >>>>> Heilig<szabolcs.hei...@gmail.com> wrote: >>>>>> Hi, >>>>>> I think your problem is based on the behavior of Symfony >>>>>> in "AJAX mode". When you load your action through >>>>>> link_to_remote() it doesn't decorate that with your layout. >>>>>> Without that it is possible to your ui-magic never initialized. >>>>>> 2009/7/23 DEEPAK BHATIA <toreachdee...@gmail.com> >>>>>>> >>>>>>> I have a web page which is referenced by link_to_remote action. >>>>>>> >>>>>>> This web page/template has yahoo user interface javascript api's. >>>>>>> >>>>>>> When I call this page as normal form submission, I get the >>>>>>> functionality of yahoo user interface javascript api but not >>>>>>> when it >>>>>>> is called as link_to_remote. >>>>>> >>>>>> >>>>>>> >>>>>> >>>>> >>>>>> >>>> >>>> >>>>> >>>> >>> >>> > >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---