Jump to content

Recommended Posts

57 minutes ago, requinix said:

Context of what you're doing?

im developing an admin dashboard and some of the actions (button clicks, search, etc.) require that the page reloads so the new data from user input are submitted.

I was using xajax to handle such cases.

e.g user clicks button, with xajax i manipulate the DOM and show a loading animation, do some php execution, when done, remove the loading animation and show something else it may be a new form, success message, or anything

Link to comment
https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603569
Share on other sites

I think the "modern" things are more along the lines of React. I'm old-school myself, still using jQuery for literally DOM manipulation - not even using its AJAX features anymore because fetch() exists.

Something I had looked at a while ago was Backbone. Seemed like it was essentially the DOM updating stuff (like seen in React) coupled with some API conveniences.

Link to comment
https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603573
Share on other sites

I'll admit I personally am not a big fan of React - for whatever reason it doesn't sing to me. I have, however, found that Vue is not untenable from this crotchety old bastard's point of view insofaras a JavaScript framework is concerned if you're determined not to deal with vanilla JavaScript, fetch(), and writing the code yourself.

Link to comment
https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603574
Share on other sites

On 12/15/2022 at 7:58 PM, maxxd said:

I'll admit I personally am not a big fan of React - for whatever reason it doesn't sing to me. I have, however, found that Vue is not untenable from this crotchety old bastard's point of view insofaras a JavaScript framework is concerned if you're determined not to deal with vanilla JavaScript, fetch(), and writing the code yourself.

I had to maintain and enhance a React app a few years ago, and I also found it bothersome in many ways.  I'm sure having to get up to speed on someone else's convoluted code, while at the same time learning something that was in transition at the time, didn't help my level of enjoyment, but I left feeling like there had to be something better.  

I also have found Vue more to my liking.  I still have a ways to go to get to the point where I would reach for it as my first preference for UI, but I'm fairly confident that I'm not going back to React unless I have a significant incentive to do so.

Link to comment
https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603756
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.