Ajaxify page reloading…?

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
infinitiv
Registered User
Posts: 166
Joined: Sat Nov 15, 2014 3:47 pm
Location: PL
Name: Ficjusz

Ajaxify page reloading…?

Post by infinitiv » Tue Jul 18, 2017 9:54 pm

So I have some.php that assigns its result to a template after clicking on the submit button. Everything works fine but I don’t want the page to refresh after proceeding the form. Is there a possibility to ajaxify it?

Adding action="some" and data-ajax="true" to the <form> element doesn’t do the trick. Template probably sends the data from its form to the some.php which then assigns its results but the template itself doesn’t refresh to show it. Clicking the submit button does nothing.

infinitiv
Registered User
Posts: 166
Joined: Sat Nov 15, 2014 3:47 pm
Location: PL
Name: Ficjusz

Re: Ajaxify page reloading…?

Post by infinitiv » Wed Jul 19, 2017 7:48 am

I still haven’t found what I’m looking for and although I think it can be a bit annoying I could really use a help on this one. :oops:

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Ajaxify page reloading…?

Post by RMcGirr83 » Wed Jul 19, 2017 9:58 am

Look at any extension that uses ajax. My who posted extension uses ajax so that should be a good start.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Post Reply

Return to “phpBB Custom Coding”