Problem using two jquery plugins
Hi,
I'm a beginner with jquery, and I'm sorry to disturb.
I'm facing up a problem: I need to use both uplodify and validation jquery plugins.
I've been able to use them separately, but when I use them in the same page, the validation plugin doesn't work.
Here comes the <head> of my webpage.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="myscripts.js"></script>
<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript" src="form_validation.js"></script>
<style type="text/css">
* { font-family: Verdana; font-size: 96%; }
label { width: 10em; float: left; }
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
p { clear: both; }
.submit { margin-left: 12em; }
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
</style>
<script>
$(document).ready(function(){
$("#frm").validate();
});
</script>
<!-- link uploadify files -->
<link rel="stylesheet" href="./upload/uploadify.css" type="text/css" />
<script language="javascript" src="./upload/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="./upload/swfobject.js"></script>
<script type="text/javascript" src="./upload/jquery.uploadify.v2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#uploadify").uploadify({
'uploader' : './upload/uploadify.swf',
'script' : './upload/uploadify.php',
'cancelImg' : './upload/cancel.png',
'folder' : 'upload/files',
'queueID' : 'fileAttente',
'multi' : true,
'buttonText' : 'BROWSE',
'checkScript' :'./upload/check.php'
});
});
function changeFolder(select)
{
var numero = select.selectedIndex;
var valeur = select.options[numero].value;
$('#uploadify').uploadifySettings('folder', valeur);
}
</script>
</head>
I've read many things, but I've found no solutions.
I've seen this, but it doesn't change anythingCould you help me?:
-
$
(document
).
ready
(
function
(
)
{
-
// some code here
-
}
);
-
$
(document
).
ready
(
function
(
)
{
-
// other code here
-
}
);
Could anyone help me please?