Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader and Dialog questions Options
Bryan Hunt
Posted: Wednesday, March 25, 2009 9:09:28 PM
Rank: Member
Groups: Member

Joined: 3/11/2009
Posts: 24
Hello,

I am a new user of EO utilities so excuse me for asking some newbie questions.

1) Is there a way in AJAXUploader to specify the file extension filter before the browse dialog is shown? It seems as if the AllowedExtension Property is an after-the-fact check of the extension.

2) What is the absolute easiest way to implement the Dialog class like the MessageBox class in Windows Forms?

Thanks for the input.

Bryan Hunt
eo_support
Posted: Wednesday, March 25, 2009 9:24:19 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for contacting us. As to your questions:

1. No. We are thinking about adding this feature, however it will be implemented based on Adobe Flash. The feature is not possible with pure DHTML and JavaScript. There is still a debate about whether we should keep our product 100% pure DHTML and JavaScript, or extend it to utilize Flash to have a few more features. If we do so, all the features that can be implemented with DHTML and JavaScript will still be on DHTML and JavaScript and features that requires Flash will not be available if Flash is not installed on the user's machine;

2. You would use our Dialog control. It is built for that purpose.

Please feel free to let us know if you have any more questions.

Thanks!
Bryan Hunt
Posted: Wednesday, March 25, 2009 9:41:06 PM
Rank: Member
Groups: Member

Joined: 3/11/2009
Posts: 24
Wow, thanks for the quick reply!

1) Understood. Do I have to register an event handler for ClientSideOnError like I do for FileUploaded event?

2) I guess I'm not sure about the syntax of this call? Do I need to drag the control on to the .aspx form first, or can I simply call it from my code behind with something like MessageBox.Show()?

Thanks for your assistance.
eo_support
Posted: Wednesday, March 25, 2009 9:59:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can handle ClientSideOnError to provide customize error message. However ClientSideOnError is a client side event. Handling a client side event is very different than handling a server side event such as FileUpload. You will want to go over this topic first:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

As to the dialog, Yes. It is a control so you will need to drag it to the form first. You would then set the dialog's InitialState to "Visible" to display the dialog. The main difference between a Web dialog and a MessageBox.Show is that there is no such thing as "blocking" on the server side. Your server side code shows the dialog, but continues to run and finish rendering the page, only after that the rendered result will be sent to the client and the client can see the dialog, modal or modeless. So even for a modal dialog, the server side code will continue to run after displaying the dialog, this is different than MessageBox.Show where if the dialog is modal, the code would block.

There are various ways to customize the content/appearance of the dialog and different ways to display it. The dialog documentation/samples should help you get more familiar with those.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.