Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: [ADDED] Save Button for JQuery

[ADDED] Save Button for JQuery 21 Jun 2012 14:13 #2605

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
The save button on the front-end item view of my component doesn't work when I download the component and install it on a site. But when i have been testing/making the component on the j-cook website the save button has worked fine every time. please help... my component is finished apart from this one major problem!
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 22 Jun 2012 12:54 #2613

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Did you tried with the default Joomla Template (Atomic)

It is for sure a javascript error.

Your component is using js/formvalidator.js which overload the functionalities of the native weak formvalidator.
Try to empty the file (keeping it), and see if it is working. (maybe not sure)

Whatever.
Active the JS console to see where your error is.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 09:28 #2638

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Hi thanks for the reply I have done what you have suggested and whilst this does allow the callender picker to work (which also wasn't before) the save button is still doing nothing my js errors are saying "document.formvalidator.submitform is not a function" any ideas really need this to work now.
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 09:44 #2641

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Is it 1.5 component ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 09:47 #2642

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
the js error if i leave the formvalidator.js blank is el.getProperty is not a function.
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 09:47 #2643

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
no its for 2.5
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 09:48 #2644

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
sorry that second error is if formvalidator is not blank
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 09:55 #2646

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
el.getProperty() is a MooTool function.

What JS framework is your template using ?
Can you include MooTools without conflicts ?

You should be able to use another framework if you rewrite inside js/formvalidator.js of your component.
Functions : getValue(), getLabel(), ...


js/formvalidator.js is needed for a clean and nice form validation wich is still not handled by native Joomla.

Hope it helps.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 10:14 #2647

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Hi the template i am tring to use it on is jsnDome im trying to find out what framework it uses now but i do know that it uses a js/css compression technique, could this be to do with it? i am rather unsure who to use another framework within the formvalidator.js any help or guiding would be very much appreiciated. cheers
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 10:17 #2648

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
I just found this in the template documentation:

"It utilizes built-in Joomla! MooTools Javascript library so there is no need to integrate any other Javascript framework."
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 11:10 #2649

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Any further help towards what I'd need to change in the code i really dont know anything about implementing diffrent frameworks?
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 11:33 #2650

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Ok so i've fixed it, not an ideal fix but it works. I added a plugin called "jQuery Easy" to the website and tweaked the settings and eventually it worked. namely for the front end I turned "strip no-conflict mode" to "No" and "Add No Conflict Code" to "Thru script". This seemed to do the job.
The administrator has disabled public write access.

Re: Save Button not working on front-end of component 25 Jun 2012 11:54 #2651

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I think it is because your website was using some JQuery conflicting MooTools.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [SOLVED] Save Button not working on front-end of component 01 Jul 2012 13:32 #2725

  • andypooz
  • andypooz's Avatar
  • Offline
  • New Member
  • Posts: 18
  • Thank you received: 2
  • Karma: 0
Can I just add an observation on this. I am experiencing the same issue. Installing the jquery plug-in has not fixed the issue for me. I have been downloading free templates whether I can save forms while using them, and 9 out of 10 templates on joomla24 do NOT save. If this jquery issue emerges with so many templates, perhaps its time to take a look at making the javascript in j-cook a little bit more agreeable with jquery.

I'd be interested to know how many others are experiencing this issue or whether it is something particular to the setup of only a few of us.
The administrator has disabled public write access.

Re: [SOLVED] Save Button not working on front-end of component 02 Jul 2012 10:24 #2730

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
This is a good suggestion.

Now, I will investigate more.
Maybe for the V2.0

I really appreciate all efforts of the community. In answer to your requests and high interrest, I promise you to do something.

Stay in touch.
I move this topic in 'New functionalities'
Coding is now a piece of cake
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.303 seconds

Get Started