Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

jQuery to cross fade between 2 pages

Using jQuery, is there a way to cross fade two pages?  Meaning if I go from page 1 to page 2 they cross fade to the next instead of an abrupt change?  Is there an example?
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

AFAIK that's not possible with the standard request / response. You could potentially do it if you have a single page website, in which case you never switch pages - you just load different content into the same page, but I can't imagine it being a particularly smooth operation.
Avatar of Robert Granlund


What the deal is, I have two forms on a page (Code Ignitor)  And they both won't work.  If there is code to open and close a form, the second for won't open its open and code close. How can you get two open and close form tags to work in CI?  The reason I ask about the code fade is because that is the animation on the page. It fades from one section to another.  

I also noticed that the tag does appear if I change the url to the correct method in the controller. So maybe a better question is, how do I change the url (add to it) without changing the page?
Not entirely sure what you're after, and don't really understand what you mean by open and close a form.

You can have as many forms on a page as necessary, and the easiest way to deal with them may be to hook them up to an AJAX request. This way, each form can be posted without ever have to leave the page.

Just because you're using CodeIgniter shouldn't make a difference - CodeIgniter views are just html pages with some added functionality (you can use the built-in form helper is you want).
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial