Jump to content

Problems in jquery..


haku87

Recommended Posts

I got a main page which contain a main div called main

 

In the main page,

I inserted a hyperlink to load test.php into div main

 

However in test.php, it contain pagination. When i clicked on page 2. the whole page reload.

 

How can i solve this problem?

Link to comment
Share on other sites

 

I assume your doing this with AJAX or that jQuery is doing this with AJAX. I would set the pagination up where it would display some where else; instead of in your "main" div. Otherwise you will have to create another AJAX function for the pagination too load the php page back into your div; instead of reloading the page. Even if your pagination is outside your "main" div; your probably going to need to have a AJAX function for your pagination anyway (that's my guess).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.