• azaj_00199

    (@azaj_00199yahooin)


    i have created a plugin for wordpress but wordprss does not support my jquery.js file so from i can download jquery.js file that can support on wordpress.org plugin.

    Reply me urjuntly

    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • Why not use the jQjuery file that’s built into WordPress by default? that way there’s no need for you to worry about using any different file, no need for you to add in the extra programming to add it in, and no chance that it won’t work?

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    i have two jquery
    1. html5gallery.js
    2.jquery.js

    because of this my plugin is rejected so please give me tips what can i do if i delete this my slider was not working so help me to solve this issue with proper guidance.

    thanks

    As I said before, don’t use your own copy of jQuery. Use the one that’s already built in to WordPress. There is no reason at all to use your won version instead of the built-in one.

    That might help, but we’d probably need to see the actual reason that you were given about why your plugin was rejected.

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    how can i use default jquery of wordpress and from where ??

    i include my jquery in wordpress plugin like this
    wp_enqueue_script( ‘html5gallery’, plugins_url( ‘/html5gallery.js’, __FILE__ ));

    and in the theme folder bydefault there is jquery.js file

    so from where i can include ???

    You need to look at the codex page for wp_enqueue_script() a lot more. 🙂

    wp_enqueue_script( 'html5gallery', plugins_url( '/html5gallery.js', __FILE__ ), array ( 'jquery' ));

    When you do this WordPress will enqueue this file with a dependancy on it’s own jQuery file. That’s how that works. Then there’s no need for your theme to have it’s own jquery.js file. You onyl need to include your own file, that’s all.

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    i assign my script like this
    wp_enqueue_script( ‘html5gallery’, plugins_url( ‘/html5gallery.js’, __FILE__ ));
    from the wp_enqueue_script() so this is true of false ???

    if it is true to defining then why the plugin is rejected ? and if it is false then please help me to making it correfct.

    thanks

    Did you look at what I wrote above? Did you see how I’d chaned that part to make it work with WordPress’s version of jQuery?

    The line that you gave does not include jQuery at all.

    As for why it was rejected, we don’t know. You will have a lot more information about it then we do. There’s very (and I mean very) few people on here that are part of the plugin review panel, and we have o access to their information, review or results of your plugins submission.

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    with this line wp_enqueue_script( ‘html5gallery’, plugins_url( ‘/html5gallery.js’, __FILE__ )); my js file is included so it works perfect on local. and if i comment on this line means jquery is not included so its destroy the slider.

    so i think with this code js in included successfully.

    OK… For the last time… :/

    This is yours:

    wp_enqueue_script( 'html5gallery', plugins_url( '/html5gallery.js', __FILE__ ));

    This is what I gave you:

    wp_enqueue_script( 'html5gallery', plugins_url( '/html5gallery.js', __FILE__ ), array ( 'jquery' ));

    See the difference?

    That’s what you need to do. Don’t comment the line out (no one ever suggested that). That will get your script running.

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    ok thank you friend so can i submit my plugin for host ?

    I don’t know. As I said above I’m not a member of the plugin team, so I can’t tell you anything about their process or results. All that I cansay is to try and see what happens.

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    ok friend thank you verymuch for help me

    Thread Starter azaj_00199

    (@azaj_00199yahooin)

    hello,

    i am using html5.js it is readymade js for slider that is not supported as per GPLv2 License so how can i replace this html5 coding with GPLv2 supported code.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘jQuery’ is closed to new replies.