Results 1 to 10 of 10

Thread: jquery conflict

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    5

    Default jquery conflict

    I'm trying to add a WOWslider to my site but the jquery version used by it is conflicting with the version used by NOF for the nav buttons. I tried pointing both to the older version and both to the newer version and neither option works. Anyone know if NOF12 uses a newer version of jquery that won't conflict? I really don't want to have to upgrade but will if I absolutely have to...or anyone know of a slider that WILL work with NOF11?? I tried to manually use the Nivo Slider but couldn't ever get it to work either...

  2. #2
    Senior Member Thomas Frei-Herrmann's Avatar
    Join Date
    Apr 2010
    Location
    Berlin, Germany
    Posts
    1,000

    Default

    Hi,

    this is (unfortunately) because NOF is still using a historic jQuery. Just put the new jQuery below the one of NOF. My pages are in German - but maybe it helps ( there is an odd Google translate on each of my pages).

    http://www.tommyherrmanndesign.com/n...uery-tut2.html
    Tommy

    Administrator at the German NOF-Forum

    NOF-Tutorials.com | German NOF-Forum | Overview of my tutorials | Facebook

  3. #3
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    OK. This has been on my list of things to figure out.

    Thomas, can you briefly explain: What does setting the order of the two jQuery files accomplish? My understanding is the second one would replace the first.

    The techniques I typically use are what SKS has tried. If my understanding above is correct, how is the load sequence different from simply using only the newer jQuery.

    And here's my real stumbling block that I've never figured out: Under what circumstances does NOF insert jQuery, and what is it used for?

    If I create a new, blank site, jQuery is added as an asset, but in Assets View it is marked as Not In Use. If I select "Delete Unused File Assets", the jQuery file is removed, and seems to have no impact on the site.

    So, again, why does NOF include jQuery, and what is it used for? I can't test to see if using a newer jQuery has a negative impact on the NOF functions if I don't know what functions to test...
    Ray Cambpell
    Sounds In Sync
    Linked in

  4. #4
    Senior Member Thomas Frei-Herrmann's Avatar
    Join Date
    Apr 2010
    Location
    Berlin, Germany
    Posts
    1,000

    Default

    Hi,

    since I did not even know how to spell anything coming from the Internet a few years ago - I must tell you - I am not an expert (but working on this one).

    jQuery is a JavaScript class-library and used for many effects like fading in and out - such things.

    NOF is using a very old jQuery file and nobody (at least not me) can understand why. Commands did change - others have been added in newer files, therefore this might create conflicts. If there are same variable names the second file will overwrite the ones of the first file and here is the problem - or not.

    In fact - I believe (but I do not know) that the default (old) jQuery file of NOF could be just replaced with a new one and live would be much easier. Why NOF is not doing this - no idea.
    Tommy

    Administrator at the German NOF-Forum

    NOF-Tutorials.com | German NOF-Forum | Overview of my tutorials | Facebook

  5. #5
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    Quote Originally Posted by Thomas Frei-Herrmann View Post
    Hi,

    since I did not even know how to spell anything coming from the Internet a few years ago - I must tell you - I am not an expert (but working on this one).
    LOL. And I thought you were the master that would teach me!

    Your understanding of jQuery is much the same as mine. However, I thought that the entire jQuery library would be replaced by whatever was loaded last. Interesting to think only the duplicated variables will be replaced...

    Quote Originally Posted by Thomas Frei-Herrmann View Post
    In fact - I believe (but I do not know) that the default (old) jQuery file of NOF could be just replaced with a new one and live would be much easier. Why NOF is not doing this - no idea.
    Which makes me wonder why SKS couldn't get the slider to work simply by referencing only the newer jQuery.

    And I still cannot figure out what NOF uses jQuery for. The file is placed in the assets folder, but is not "In Use".
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	jQuery.asset..gif 
Views:	361 
Size:	44.9 KB 
ID:	1131  
    Ray Cambpell
    Sounds In Sync
    Linked in

  6. #6
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    OK. Donning my Shelock Holmes cap, I've deduced the following:
    1. Even though jQuery is placed in the assets list, it will not actually be published if not "In Use."
    2. One thing that makes use of jQuery is MLRs. If anyone knows of anything else, please post.
    Ray Cambpell
    Sounds In Sync
    Linked in

  7. #7
    Senior Member franko's Avatar
    Join Date
    Apr 2010
    Location
    Tasmania Australia
    Posts
    2,642

    Default

    On doing a search I found that the jquery.js file is in the /selectors/ folder in every NoF style. So before starting a project why couldn't one copy a more recent Jquery file to the style. Presumably then when the style was applied the new JQuery file would be used in the new site.

  8. #8
    Senior Member RayC's Avatar
    Join Date
    Apr 2010
    Location
    Toronto-ish, Canada
    Posts
    1,732

    Default

    I had played with that idea and was trying it, but never fully completed testing it out.

    IIRC, there were multiple places where jQuery was stored in the NOF system folders and I wasn't sure which copy was pulled in and used in a site.

    • In the subfolder ...\NetObjects System\FSI\lib\jquery you can see jquery-1.3.2.js and jquery-1.4.2.js
    • In ...\NetObjects System\Resources\js\external\jquery you can find jquery.js which is also v.1.3.2
    • In ...\NetObjects System\StyleView\selectorsView there is also jquery.js which is version 1.2.6


    So which one gets used where and when?
    Are some of these used as part of NOF program functionality?

    I think I might insert a comment line into each jQuery file so I can check which file gets included into a site.

    Wouldn't it be nice to have a little drop-down where you could select a different jQuery file to use, like they do with Java Runtime?
    Ray Cambpell
    Sounds In Sync
    Linked in

  9. #9
    Senior Member franko's Avatar
    Join Date
    Apr 2010
    Location
    Tasmania Australia
    Posts
    2,642

    Default

    Wouldn't it be nice if they simply included the latest version?

  10. #10
    Junior Member
    Join Date
    Mar 2012
    Posts
    5

    Default

    I tried both replacing the NOF file with the current version and that made NOF not work (that was a month or so ago so I can't remember what broke but I think it was the menus) and then I tried replacing the WOWSlider version with the NOF version and that killed the WOWSlider so there is something in each that is needed - so much for backwards compatibility. I'm thinking of upgrading to NOF 12 since it's half-priced but the website has SO LITTLE information about what the upgrade contains, I'm not sure if it will make a difference.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •