SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question fileupload and click simulation

    Hi,

    I have a little problem.
    I have the following code :

    Code:
    <input class='button_picture' style='display:none;' size=130 type='file' ACCEPT='image/png, image/jpeg, image/gif' id='id_button_browse' name='my_button_browse' onChange='id_upload_file.value = this.value;'></input>
    
    <input class='field_picture' name='upload_file' id='id_upload_file'/>
    <input class='button_picture' type='button' value="..." onClick='document.getElementById("id_button_browse").click();'></input>
    this code works great under IE7 but not under FF (firefox).

    What could be the problem ?

    thanks a lot,

    M.

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    click method is not supported for this field in Firefox... Sorry

  3. #3
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so how can i do that ?

    Is there a way to open the file dialog box somehow without using input type=file ?

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, sorry, there is no workaround for this.

  5. #5
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it could be ok for me but i want to change the style and text of the browse button... here also there is nothing we can do ?

  6. #6
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •