[symfony-users] Newbie problems: sfFlashMessagePlugin installation
Dear friends, I've just finished the Jobeet tutorial from symfony-project web site, and started to build my own project here. I'm having some problems to install a plugin called *sfFlashMessagePlugin*. To install it, I first installed the jQueryReloaded plugin, so that its one of its Dependencies. My problem is, after I install, it seem that the php function are okay called by the use_helper function, but the Javascript files are not ok. I tried copying them to my web/js instead of leaving them inside plugins/pluginname directory. The thing is, I followed all steps of README from both of them, but I can't make them work. Any ideas of what problem can still be happening here? The messages from Error Console at Firefox are: - Before copying the JS files to web/js $ is not defined ... that's because it couldn't find the jQuery js file. So I copied it to web/js and it's ok. - After copying jquery js file to web/js: Now I'm facing the error "$.notifyBar is not a function". It meand that the JS of sfFlashMessagePlugin is not being referenced. Hope you can help me. Thanks! -- Dineu Assis -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.
[symfony-users] Re: Newbie problems: sfFlashMessagePlugin installation
Problem solved! The answer was: Windows is helpless!... I just created all the environment at Kubuntu and the things worked all fine. After all, I realized that to make it run on Windows it was needed to copy the plugin /web directory to my project /web directory and rename it to plugin name. Now its easy to flash a message :) Thanks all, and happy new year! -- Dineu Assis On Wed, Jan 6, 2010 at 2:50 PM, Dineu Henrique wrote: > Dear friends, > >I've just finished the Jobeet tutorial from symfony-project web site, > and started to build my own project here. I'm having some problems to > install a plugin called *sfFlashMessagePlugin*. To install it, I first > installed the jQueryReloaded plugin, so that its one of its Dependencies. > My problem is, after I install, it seem that the php function are okay > called by the use_helper function, but the Javascript files are not ok. I > tried copying them to my web/js instead of leaving them inside > plugins/pluginname directory. >The thing is, I followed all steps of README from both of them, but I > can't make them work. Any ideas of what problem can still be happening here? > > The messages from Error Console at Firefox are: > - Before copying the JS files to web/js >$ is not defined >... that's because it couldn't find the jQuery js file. So I copied it > to web/js and it's ok. > > - After copying jquery js file to web/js: >Now I'm facing the error "$.notifyBar is not a function". It meand that > the JS of sfFlashMessagePlugin is not being referenced. > > Hope you can help me. > Thanks! > -- > Dineu Assis > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.
[symfony-users] Append Javascript in actions.class.php
Hi guys, I'm having some trouble here trying to output an alert script after loading a Form. Look what I've done until now: 1) Created a Form using Ajax to embed another form inside it. (The user clicks on a link called "embed it!" and than the embed field appears) 2) User clicks on Save button, the form is saved (the common field inside its refered table, and the embed field in another table) 3) User is redirected to Edit Page Here I've got the problem... Is there a way to fake a click on "embed it!", so that the embed fild appears and gets filed? If I use "echo" inside executeEdit function, the script appears first than the rest of the page, so that the element "embed it!" isn't accessible yet. Hope you can help me. Thanks. -- Dineu Assis -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.
Re: [symfony-users] Append Javascript in actions.class.php
Thanks! But I was wondering if there is another way to do this, I mean, using some symfony's function (like renderText() or something like this). But it worked :) Bye -- Dineu Assis On Tue, Jan 19, 2010 at 5:12 PM, ashton honnecke wrote: > put your js inside a document.ready function: > http://www.learningjquery.com/2006/09/introducing-document-ready > > On Tue, Jan 19, 2010 at 11:44 AM, Dineu Henrique > wrote: > > Hi guys, > > > > I'm having some trouble here trying to output an alert script after > loading > > a Form. > > Look what I've done until now: > > > > 1) Created a Form using Ajax to embed another form inside it. (The user > > clicks on a link called "embed it!" and than the embed field appears) > > 2) User clicks on Save button, the form is saved (the common field inside > > its refered table, and the embed field in another table) > > 3) User is redirected to Edit Page > > > > Here I've got the problem... Is there a way to fake a click on "embed > it!", > > so that the embed fild appears and gets filed? > > > > If I use "echo" inside executeEdit function, the script appears first > than > > the rest of the page, so that the element "embed it!" isn't accessible > yet. > > > > Hope you can help me. > > Thanks. > > -- > > Dineu Assis > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@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. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.