[symfony-users] Re: form_remote_tag and updating multiple divs
hi pedro- bear with me, since i'm pretty new to ajax. can you give me an example of what would go in 'executeWhenFinished(request)'? l. On Aug 19, 5:15 pm, Pedro Bastos [EMAIL PROTECTED] wrote: Hi, I can see two possible solutions for your question: a) Set a handler on your Ajax.Update object. Insert complete in your options. Eg: ?php echo form_remote_tag(array( 'update' = 'badgeHolder', 'url' = '@login_badge', 'complete' = 'executeWhenFinished(request)' )) ? Then you have to create a javascript handler to update any DOM object. b) Set a global Ajax handler. Insert this BEFORE you execute Ajax.Updater: Ajax.Responders.register({ onComplete: function(){ // handle all Ajax requests } }); This will handle ALL xmlHttpRequest requests made in your page. I suggest you to use the first one. It is clean and easy. Questions? Reply back. :) Pedro On Tue, Aug 19, 2008 at 1:29 PM, laura [EMAIL PROTECTED] wrote: hi- i've seen this type of question posted elsewhere, but haven't been able to figure out how to do it. i have a form_remote_tag that logs a user into our site. upon login, it updates the login div to be a logged-in div. but, i also have a component at the top of the page that needs to be updated: ?php echo form_remote_tag(array( 'update' = 'badgeHolder', 'url' = '@login_badge', )) ? there other div has a component in it that would need to be swapped out upon logging in. so to summarize, how would i update 2 components upon submitting the form? thanks! laura- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: custom admin filter
thanks! i got it working. laura On Jul 18, 10:33 am, EddieG [EMAIL PROTECTED] wrote: Hi Laura, first you need to have a partial for the filter GUI (that you already have). Then you need to overwrite the addFiltersCriteria method (the one you find in the cached action class) in your own action class. If you only add new filters, a parent::addFiltersCriteria( ) should be alright, if you intend to adopt existing filters you need to overwrite it totally (no parent call). Anyway, there you add your own filter criterias, have a look at how the generated ones work! You need to have the right naming for your form fields! Eddie --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] system will not write session cookie
hi- i have two versions of the same site: one is a new redesign. i have local sites running on my windows desktop, along with a bunch of other symfony sites for various clients. i'm having a problem with the redesign version my site and logging in: it won't write the session cookie, so i can never truly login. i'm using a custom name for the session_name parameter in factories.yml. i tried changing it so that it isn't the same as the one in the old site, tried setting it back to the default ('symfony'), and no luck. i am able to login using a different browser though. any ideas? thanks! laura --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] custom admin filter
hi- i need to create a custom filter for our admin site, but not sure how to go about it (or if it's possible). i have a table, members, and another table, member_editions. one member can have multiple member_editions. i would like to be able to filter members based on which editions they are on. is this possible? i created a file _filter_editions.php and put it in the generator.yml file. i then put a list of checkboxes for each edition. but when i view the admin, the filter shows as a disabled input box. thanks, laura --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] putting non-symfony code in web folder
hi- i have a symfony site and a non-symfony site, which is a sort of microsite. i would like the microsite to be called like this: http://www.example.com/microsite but, i'm running into problems with 404s, since symfony doesn't recognize 'microsite' as a module. any ideas? thanks, laura --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---