ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using SafeCracker with only custom JQuery & JQuery UI

January 14, 2013 4:03am

Subscribe [2]
  • #1 / Jan 14, 2013 4:03am

    FiSt

    40 posts

    Hi everyone!

    Seems, that my pages already have full and latest versions of JQuery and JQuery UI.

    And now I try to find out how can I use all SafeCracker features with only my own custom version of these libraries?

    Unfortunately, SafeCracker tag support only include_jquery option. How can I disable Jquery UI library including but leave any other necessary scripts (like datepicker initialization, custom fields javascript etc.) ?

  • #2 / Jan 14, 2013 11:07pm

    FiSt

    40 posts

    Up!

  • #3 / Jan 15, 2013 5:56pm

    ciadeveloper

    10 posts

    Are you sure that this doesn’t achieve what you are looking for?

    include_jquery="no"

    —Christian

  • #4 / Jan 15, 2013 11:05pm

    FiSt

    40 posts

    Hi, ciadeveloper! Thanks for reply.

    Yes, I’m sure that this parameter disable only Jquery library, but leave UI core and widgets still included.

    Seems, I need to remove this part of one of the SafeCracker head script tags:

    http://mydomain.com/ACT=59&ui=core,widget,mouse,position,draggable,resizable,button,dialog,datepicker&plugin=scrollable,scrollable.navigator,markitup,thickbox,toolbox.expose,overlay,tmpl&v=1339031768

    As I can see, SafeCracker loads probably the same scripts set which basically is used in CP, but on front-end I don’t need most of these scripts.

  • #5 / Jan 16, 2013 10:46am

    Bhashkar Yadav

    727 posts

    try with parameter:

    safecracker_head="no"


    Best Regards,

  • #6 / Jan 17, 2013 10:46pm

    FiSt

    40 posts

    Hi, Bhashkar. Thanks for reply.

    try with parameter:

    No, I can’t use this parameter. Please, read my first post once again.

    use all SafeCracker features with only my own custom version of these libraries (read JQuery & Jquery UI)?

    disable Jquery UI library including but leave any other necessary scripts (like datepicker initialization, custom fields javascript etc.)

    Seems, if I’ll set safecracker_head=“no” not only JQuery UI library will be removed from output, but all necessary scripts.  I need to leave opportunity use {field:custom_field} in my templates.

  • #7 / Feb 26, 2013 12:54am

    CJWEB

    56 posts

    I have this problem also.

    Already using Jquery + UI.

    Have set include_jquery=“no” however Jquery UI is still being included creating the error:

    e.widget.extend is not a function

    ..which a search reveals to be caused by Jquery UI being included twice.

    As my SafeCracker form is included on every page, I will try NOT including my version of UI, but I think a include_jquery_ui=“no” parameter might be a better long term solution for SafeCracker.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases