PDA

View Full Version : Jquery: Shadowbox + Niceforms Compatability issue - Beginner


david_beirne
05-08-2009, 03:20 PM
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 (http://www.shadowbox-js.com/) and the second that uses Niceforms (http://www.emblematiq.com/projects/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

Philip M
05-08-2009, 04:25 PM
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/javatutors/multiplejava.shtml

david_beirne
05-11-2009, 09:06 AM
Thanks for your Reply Phillip,

I am linking the Script files as external files:

<!--******************** 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>

Spudhead
05-12-2009, 11:44 AM
Does your page throw any javascript errors? Is it online somewhere we could look at it?

david_beirne
05-12-2009, 02:34 PM
Hey "SpudHead"

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

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

david_beirne
05-18-2009, 09:03 PM
*bump*