It looks like you're new here. If you want to get involved, click one of these buttons!
<!DOCTYPE html>
<html lang="en">
<head>
<title>Issue</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="Content/js/uploadify/uploadify.css">
<script type="text/javascript" src="Content/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="Content/js/uploadify/jquery.uploadify.min.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<br/><br/><br/>
<p><input type="file" name="file_upload" id="file_upload_1" /></p>
<br/><br/>
<hr/>
<script type="text/javascript">
$(function () {
$("#file_upload_1").uploadify({
"height": "30",
// "swf": "Content/js/uploadify/uploadify.swf",
"swf": "http://www.uploadify.com/uploadify/uploadify.swf",
"uploader": "",
"width": "120"
});
var test = "42dadfc7-0640-411d-9f63-f55fac4d4589_FTP\AttorneyOpinion";
// $.addslashes = function (str) {
// str = str.replace("\\", "\\\\");
//
//
// return str;
// };
// alert($.addslashes(test));
});
</script>
</body>
</html>
still_the_same said: damn, found the problem. The control is not workring in vs2010 while debugging, but is working when it is running from a webserver. So not sure what the problem is.... But it is working for me this way.
<script type="text/javascript">
SWFUpload.prototype.getFlashHTML = function () {
// Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay
var obj = ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">'].join(""),
params = [
'<param name="wmode" value="', this.settings.button_window_mode, '" />',
'<param name="movie" value="', this.settings.flash_url, '" />',
'<param name="quality" value="high" />',
'<param name="menu" value="false" />',
'<param name="allowScriptAccess" value="always" />',
'<param name="flashvars" value="', this.getFlashVars(), '" />'
].join("");
if (navigator.userAgent.search(/MSIE/) > -1) {
obj = ['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="', this.movieName, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">'].join("");
params += '<param name="src" value="' + this.settings.flash_url + '" />';
}
return [obj, params, '</object>'].join("");
};
</script>