Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Djax the url changes but the contents of the page did not #17

Open
hitplay opened this issue Dec 21, 2012 · 1 comment
Open

Djax the url changes but the contents of the page did not #17

hitplay opened this issue Dec 21, 2012 · 1 comment

Comments

@hitplay
Copy link

hitplay commented Dec 21, 2012

Here's a snippet of the markup

<div id="resultContent" class='updatable'></div>
<ul>
    <li><a id="thankyou" href="views/thankyou.jsp?menuId=2"
        targets="resultContent">Thank You Message</a></li>
</ul>
When I click that the url changes but the result is not showing but when I view the page source it displays the proper markup(or should I say the markup of thankyou.jsp)

here is the code that Is js code

jQuery(document).ready(function($) {
$('body').djax('.updatable');
});

the url changes and when I view the page source it also changes but the page itself did not change its contents even if I view the page source it has change up any ideas why?

@beezee
Copy link
Owner

beezee commented Feb 10, 2013

The source changes because when you view source it generates a brand new page request, so that content is not being loaded by js.

I can't really say much based on the info you've given, need more context for the code or at least a console error to be of more help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants