Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Uploader in Jquery Dialog
Uploader in Jquery Dialog
Last post 09-15-2010, 2:51 AM by
Kenneth
. 3 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
09-13-2010, 2:53 AM
63947
agerled
Joined on 11-06-2009
Posts 6
Uploader in Jquery Dialog
Reply
Quote
Hi
I cant get the browse file window to open when the uploader is in a jquery dialog.
Anyone have a solution for this..
Thanx
Jacob
09-14-2010, 12:22 AM
63972
in reply to
63947
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Uploader in Jquery Dialog
Reply
Quote
Hi agerled,
Please create a simple example which can reproduce this issue and send it to
[email protected]
. I will check it and get back to you as soon as possible.
Regards,
ken
09-14-2010, 2:07 PM
64001
in reply to
63972
agerled
Joined on 11-06-2009
Posts 6
Re: Uploader in Jquery Dialog
Reply
Quote
Hello Ken
I have now sent you a sample project.
Jacob
09-15-2010, 2:51 AM
64020
in reply to
64001
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Uploader in Jquery Dialog
Reply
Quote
Hi agerled,
Try put the Jquery dialog code into method "CuteWebUI_AjaxUploader_OnInitialize". Like the example below.
<%@ Page Language=
"vb"
%>
<%@ Register
Assembly
=
"CuteWebUI.AjaxUploader"
Namespace
=
"CuteWebUI"
TagPrefix=
"cc1"
%>
<!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 runat=
"server"
>
<title></title>
<script language=
"javascript"
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
type=
"text/javascript"
></script>
<script language=
"javascript"
src=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"
type=
"text/javascript"
></script>
<link rel=
"stylesheet"
type=
"text/css"
href=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
/>
<script language=
"javascript"
type=
"text/javascript"
>
function CuteWebUI_AjaxUploader_OnInitialize()
{
$(function() {
$(
"#dialog"
).dialog({
height: 450,
width: 850,
modal: true,
autoOpen: true
});
});
}
</script>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<div id=
"dialog"
title=
"Dialog"
>
<div>
</div>
<div style=
"width: 500px;"
>
<div id=
"divAddFiles"
>
<asp:Button runat=
"server"
ID=
"btnAddFiles"
Text=
"Select files"
/>
</div>
<div id=
"divCancelUpload"
style=
"margin-top: 4px;"
>
<asp:Button runat=
"server"
ID=
"btnCancelUpload"
Text=
"Cancel"
/>
</div>
</div>
</div>
<cc1:Uploader runat=server ID=
'uploader1' InsertButtonID='btnAddFiles' />
</div>
</form>
</body>
</html>
Regards,
ken