[CLOSED] File Dialog on Image Click

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] File Dialog on Image Click

    I have this setup:


    <script runat="server">
      [DirectMethod]
      public void Banner_Click(object sender, DirectEventArgs e)
      {
        FileUpload1.Show();                
      }
    </script>
    <ext:Panel runat="server" ID="tabBanner" Title="Banner" Height="300" Padding="5">
        <Items>
            <ext:Image runat="server" ID="imgBanner" ImageUrl="~/Images/BannerItemBlank.png" StyleSpec="cursor: pointer;">
                <DirectEvents>
                    <Click OnEvent="Banner_Click" />
                </DirectEvents>
            </ext:Image>
        </Items>
    </ext:Panel>
    <ext:FileUploadField runat="server" ID="FileUpload1" Name="file" />
    I have two issues.

    1) File Upload Dialog does not open
    2) IE displays a loading green progress bar at the bottom of the page, reminiscent of the postback behaviors AJAX was supposed to do away with. I'm guessing it's something about the way I set up my click event, but if this can be avoided please let me know.

    Thanks!

    - jwf
    Last edited by Daniil; May 31, 2011 at 10:40 AM. Reason: [CLOSED]

Similar Threads

  1. Replies: 1
    Last Post: Nov 02, 2012, 4:07 AM
  2. [CLOSED] ext:Image - How I can show a menu when click in ext:Image?
    By supera in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 10, 2012, 8:56 PM
  3. Save as dialog on client side for image
    By vishal.jhala@gmail.com in forum 1.x Help
    Replies: 0
    Last Post: Aug 06, 2011, 8:02 PM
  4. [CLOSED] Download image file
    By skyone in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 04, 2010, 12:08 PM

Tags for this Thread

Posting Permissions