Welcome Guest, Not a member yet? Register   Sign In
Using lightbox with forms and ajax content
#4

[eluser]treeface[/eluser]
What you need to do is attach submit (click) event listeners to your forms (links), run your code to bring up the lightbox in there, and return false at the end of the function. Returning false kills the normal execution of your forms or links so that it follows through for people without javascript and performs the javascript action for people with it. This is a method that is sometimes referred to as hijax.


Messages In This Thread
Using lightbox with forms and ajax content - by El Forum - 07-27-2010, 09:07 PM
Using lightbox with forms and ajax content - by El Forum - 07-28-2010, 01:02 AM
Using lightbox with forms and ajax content - by El Forum - 07-28-2010, 04:08 PM
Using lightbox with forms and ajax content - by El Forum - 07-28-2010, 04:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB