When I open the login form (/user) in colorbox, using colorbox_node it works fine - if I fill out user/password correct. It redirects me.
But on pages that doesn't redirect (f.ex. if I enter wrong password) - I get a whole bunch of json output.
I would very much appreciate any hints to what could be the issue..
The problem can be viewed here: (click the Login link in the top menu)
http://legacy.fosshosting.com/
I'm using logintoboggan module to combine user and register form on 1 page.
Comments
Comment #1
iLLin commentedYou need to add ajax to your form, so it reloads within the colorbox.
Comment #2
klavs commentedI thought you meant add ajax to the form class. But that obviously wasn't it.
Is there some std. ajax that isn't loaded in the colorbox, that I need to include somehow?
The colorbox has set iframe: false.
Comment #3
iLLin commentedYou need to do a form alter on that login form. Login Tobbagan I believe has this somewhere, or you can just do it your self with a form alter.
Comment #4
klavs commentedwhat do I need to alter in the form? I've altered the form so it has class="ajax" - but that didn't change anything.
According to the description of colorbox_node - it seems it should handle this:
uses the built in AJAX Framework and menu callback functions. You can display any page now, not just nodes. Support for webforms was added and the module will dynamically add AJAX support to the displayed modal box to keep error messages and confirmation pages inside the modal box.
but that somehow fails :(
Sorry for being slow - and thank you for trying to help me
Comment #5
iLLin commentedThe user login is not a webform, my description is accurate. I suggest you do a search on how to alter the form to provide ajax support.
Comment #6
iLLin commentedComment #7
iLLin commentedPatch to try out #2468797: Ajaxify core forms (User/Node/Login/Registration)