dontknowphp Posted December 15, 2022 Share Posted December 15, 2022 What is the best alternative to xajax to manipulate HTML easily? I found a more modern solution called Jaxon, are there any other better alternatives? Quote Link to comment https://forums.phpfreaks.com/topic/315649-xajax-alternative/ Share on other sites More sharing options...
requinix Posted December 15, 2022 Share Posted December 15, 2022 Context of what you're doing? Quote Link to comment https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603567 Share on other sites More sharing options...
dontknowphp Posted December 15, 2022 Author Share Posted December 15, 2022 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 Quote Link to comment https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603569 Share on other sites More sharing options...
requinix Posted December 16, 2022 Share Posted December 16, 2022 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. Quote Link to comment https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603573 Share on other sites More sharing options...
maxxd Posted December 16, 2022 Share Posted December 16, 2022 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. Quote Link to comment https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603574 Share on other sites More sharing options...
gizmola Posted December 21, 2022 Share Posted December 21, 2022 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. Quote Link to comment https://forums.phpfreaks.com/topic/315649-xajax-alternative/#findComment-1603756 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.