Tagged: jquery custom action scriptlink
- August 26, 2018 at 10:40 am #1867August 26, 2018 at 11:05 am #1868hzynstParticipant
… Couple more questions –
** Would it be possible to call / load SPEasyForms on demand … When entering into the NewForm / EditForm / DispForm? … I’m not sure how configuration would work … second bridge to cross…
* Might it be possible for me to insert a check for jQuery present before loading jquery.bundle.min.js?
—> Are there any dependencies in jquery.bundle.min.js ?September 18, 2018 at 12:22 pm #1883Joe McSheaKeymaster
Sorry, I dropped the ball on this, got busy and then went on vacation. jQuery, jQuery UI, and a small library called Session Storage Wrapper are all bundled in jquery.bunlde.min.js right now. So just not loading my bundle won’t work. Also, I have one script block custom action that runs on every page, to check to see if it’s a form, and that will crash if my dependencies aren’t loaded, so the on demand thing doesn’t really work either.
It’s too error prone trying to talk you through this, I need to try and come up with a bundle that works and send it to you to try. To do that, I’ll need to load jQuery 2.X just like you have and try to come up with a bundle that will use it instead of loading my own jQuery. I’m still pretty busy, but I’ll try to find some time for this by this weekend sometime and let you know. If I can get it working, I can start thinking about how SPEasyForms can be configured to use existing dependencies instead of loading it’s own, but that will always be at your own risk because I’m never going to have the time/resources to test SPEasyForms with every version of jQuery/jQuery-UI etc.
- You must be logged in to reply to this topic.