2013年11月18日星期一

uploadify upload button Regardless


Click the button did not respond , the code :
js:
$ (document). ready (function () {
$ ("# fileuploadify"). uploadify ({
'uploader': '',
'swf': '<% = path%> / images / uploadify.swf',
'buttonText': ' Choose file ',
'auto': true,
'multi': true
})
});
html:


IE8 browser should at least be able to upload window pops up Come on, toss quickly the day. . .

------ Solution ------------------------------------ --------
there is no js error ?
------ Solution ---------------------------------------- ----
does this demo you can use it properly in IE8 ?  
can
long into eclipse or myeclipse publish what can be used
------ Solution -------------------------- ------------------
can go to my blog uploadify instance view a demo , I believe you have more help, your buttons behind the best path to add a timestamp
------ Solution ---------------------------------------- ----
this is my upload files.
$ (document). ready (function () {
$ ("# uploadify"). uploadify ({
'uploader': '<% = request.getContextPath ()%> / img / uploadify.swf ',
'script': '<% = request.getContextPath ()%> / web / resFile / add ', / / ​​background processing requests
'cancelImg': '<% = request.getContextPath ()%> / img / cancel.png ',
'fileDataName': 'uri', / / ​​server according to the received document
'queueID': 'fileQueue', / / ​​id correspond with the following
'queueSizeLimit': 30,
'fileDesc': ' Image File' ,
'fileExt': '*. png; *. jpg; *. gif; * . bmp ', / / ​​control can upload the file extension to enable the entry to simultaneously declare fileDesc
'auto': false,
'multi': true,
'simUploadLimit': 2,
'buttonText': 'BROWSE',
'onError': function (event, queueID, fileObj, errorObj) {
alert (" Upload Failed " + ; errorObj.info + " error Type " + errorObj.type);
},
'onComplete': function (event, queueID, fileObj, response, data) {
var msg = response;
if (msg! ='') {
if (msg == "success") {
alert (" Operation Successful ! " ) ;
} else if (msg == "failed") {
alert (" Operation failed ! " ) ;
} else if (msg = "exist") {
alert (' the picture already exists ! ' ) ;
}
}
}
});

});
I hope you can help .
------ For reference only -------------------------------------- -
not prompt any errors
------ For reference only ----------------------------- ----------
error exclamation browser does not prompt
------ For reference only ------------------- --------------------
< ;/ a>
I wrote a uploadify plugin Demo, add a lot of comments. Can learn from , do not understand you can ask me !
------ For reference only -------------------------------------- -
uploadify of flash_Java version Demo
I wrote a uploadify plugin Demo, add a lot of comments. Can learn from , do not understand you can ask me !
------ For reference only -------------------------------------- -
does this demo you can use it properly in IE8 ?
------ For reference only -------------------------------------- -
script file has to introduce it
http://www.cnblogs.com/oec2003/archive/2010 / 01/06/1640027.html Although I do not know what the problem is but you can refer to this
------ For reference only ---------------- -----------------------
are introduced , can be modified in buttonText button text , that is, not bombs upload window .
------ For reference only -------------------------------------- -
absolutely wrong , open your browser 's error console to see what is wrong
------ For reference only ------------------ ---------------------
you can not use the Upload button is probably SWF wrong path
------ For reference only --- ------------------------------------
with firebug look ah. Js error estimate is
------ For reference only ---------------------------------- -----
'uploader': ''

not so when I used to write, direct write path
------ For reference only ---------------------- -----------------
path is correct , but it does not load the swf file, right- click the button will display not loaded movie . Use the tiles layout page , I wonder if affected loaded. Continue to investigate . . .
------ For reference only -------------------------------------- -
wrote a simple html, which introduced relevant css, js and swf files , an input type = file,
swf files can be loaded , the mouse pointer turns into a hand when the button , but the click is still open. Alas .
official demo in IE8 and Firefox to run to well, just do not get their own pop, not being given , in the end for Shaya . . .

$(function() {
    $("#fileuploadify").uploadify({
        height        : 30,
        swf           : 'uploadify.swf',
        uploader      : '/uploadify/uploadify.php',
        width         : 120
    });
});


<head>
<title>asdf</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="jQuery_v1.10.2.js"></script>
<script type="text/javascript" src="jquery.uploadify.js"></script>
</head>
<body>
<input type="file" name="fileuploadify" id="fileuploadify" />
</body>

html documents are in the same directory.
------ For reference only -------------------------------------- -

you less of a div
<div id="fileQueue"></div>

------ For reference only ----------------------------------- ----
this div is to save uploaded file queue
------ For reference only ----------------------- ----------------
added body again, and did not work .
------ For reference only -------------------------------------- -
thanks for your help .
------ For reference only -------------------------------------- -
added body again, and did not work .  
put your stickers out the full HTML

------ For reference only ---------------------------------- -----

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>fileuploadify</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.uploadify-3.1.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
$("#fileuploadify").uploadify({
'height'   : 30,
'swf'      : 'uploadify.swf',
'uploader  : '/uploadify/uploadify.php',
'width'    : 120,
'buttonText': 'Select Files',
'auto'     : true,
'multi'    : true
});
});
</script>
</head>
<body>
<input type="file" name="fileuploadify" id="fileuploadify" /><br/>
<div id="fileQueue"></div>
</body>
</html>

------ For reference only --------------------------- ------------

seemingly nothing bad, you add me QQ314919271, the project made ​​me I can help you tune

没有评论:

发表评论