owldesign / QARR

Grow your business by allowing visitors to leave reviews or ask a questions.
https://qarr.tools
Other
6 stars 5 forks source link

[Request] Non-jquery JavaScript functionality #6

Closed 23d1 closed 5 years ago

23d1 commented 5 years ago

Are there any plans on releasing a non-jquery version of this plugin?

If not, would it be possible to bundle or format the frontend to include jquery, as to not have to add that manually to the ?

Thanks!

owldesign commented 5 years ago

@23d1 I didn't have any plans for that, but I think I'm going to change it to vanilla javascript so to avoid any dependencies in the long run. I'll try to do that this week sometimes

23d1 commented 5 years ago

Perhaps a version that is completely without JavaScript would be a good idea as well (could be a lightswitch or something).

That way, one could build the functionality on top of what is working without.

For example; that would mean clicking to write a review would update the page/navigate to a new page for input, then navigate to a new page for success or errors. Kind of how Contact Form works and so forth, where you navigate between pages, or update the current one. Then it would be up to the user to ajaxify that process.

owldesign commented 5 years ago

@23d1 true, yeah i'll look into making something that gives 2 options. Use JS or not.

Thanks

owldesign commented 5 years ago

Ok so with the new update it will load the jQuery scripts if people are not manually including them. I've also added an option for custom forms check here: https://docs.qarr.tools/custom/reviews/

23d1 commented 5 years ago

Fantastic work. The custom templating functionality solved this beautifully, as one is able to build custom functionality around that.