Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Jquery: Shadowbox + Niceforms Compatability issue - Beginner

    Hi All,

    I am new to Javascript and have been trying to implement two different types of plugins together on a webpage, one that uses Shadowbox and the second that uses Niceforms.

    They both use Jquery Framework so i presumed there would be no compatability issu, the shadowbox works fine but Niceforms stops working, i tested both separate and they work fine.
    I have narrow the issue down to these two files

    It might be similar value been used? Any help would be great!!
    Both pieces of Code are the ones causing issue:

    Nice Forms
    http://rapidshare.com/files/230610582/niceforms.js.html

    Shadowbox
    http://rapidshare.com/files/230610840/shadowbox.js.html

    Thanks

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,036
    Thanks
    203
    Thanked 2,539 Times in 2,517 Posts
    Quote Originally Posted by david_beirne View Post
    They both use Jquery Framework so i presumed there would be no compatability issu, the shadowbox works fine but Niceforms stops working, i tested both separate and they work fine.
    I have narrow the issue down to these two files

    It might be similar value been used?
    Yes, the suspicion is that one or more function and/or variable names has been duplicated. Beyond that it is hard to comment. I take it that you are calling the scripts in the proper manner - see http://www.javascriptkit.com/javatut...iplejava.shtml

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your Reply Phillip,

    I am linking the Script files as external files:

    Code:
    <!--******************** Java ****************-->
    <script type="text/javascript" src="js/jquery/jquery.js"></script>
    <script type="text/javascript" src="js/jquery/forms/niceforms.js"></script>
    
    <script type="text/javascript" src="js/jquery/videobox/shadowbox-base.js"></script>
    <script type="text/javascript" src="js/jquery/videobox/shadowbox.js"></script>
    <script type="text/javascript" src="js/jquery/videobox/shadowbox-custom.js"></script>
    Do you suggest i go through all the functions / variables to find similarites or are the are java programs i could use to find conflicting variables /functions ?

    I have looked at the "The solution" from most asked questions but i am unable to find the same function been called to add them to the body.onload

    Thanks





    </head>
    Last edited by david_beirne; 05-11-2009 at 09:20 AM. Reason: Update**

  • #4
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Does your page throw any javascript errors? Is it online somewhere we could look at it?

  • #5
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey "SpudHead"

    The Page is Valid Xhtml and CSS -
    I am using firebug to check errors and got the following error:

    Code:
    niceforms[q].unload is not a function
    NFDo("stop")niceforms.js (line 46)
    NFFix()niceforms.js (line 52)
    onresize()()niceforms.js (line 499)
    [Break on this error] niceforms[q].unload();
    Unfortunatly i am unable to show the page online due to privacy of the project, i have uploaded the two scripts on my previous post

    Thanks for any help

  • #6
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    *bump*


  •  

    Posting Permissions

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