Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

File input question

  • 04-10-2004 12:06pm
    #1
    Registered Users, Registered Users 2 Posts: 885 ✭✭✭


    I have created a small example of what I am talking about here

    http://www.killerrecords.com/FileSubmit.html

    Ok If I click on the normal browse button to select a file and submit it it will send ok.
    If I click on the button beside the file input it simulates a click on the browse button and I can select a file but then when I submit it does nothing. Is this some kind of security feature in Internet Explorer.


Comments

  • Registered Users, Registered Users 2 Posts: 6,571 ✭✭✭daymobrew


    Worked for me on Solaris with Firefox 1.0PR.

    Debugging JavaScript can be a pain.
    It might be an issue with the alert() and IE not liking something e.g. document.form.ffile.value reference.
    You could try just having a static string in onSubmit or:
    onSubmit="alert('Sent File: ' + document.form.ffile.value); [B]return true[/B]"
    
    to tell the browser that it is okay to continue with the submit.

    I used to find that IE would display an error message or a yellow warning triangle in the status bar. Clicking on this would open a window listing the error location.


  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    Its not a javascript error. The form simply wont send when I use the other button to select the file.


  • Registered Users, Registered Users 2 Posts: 1,031 ✭✭✭buddy


    Why do you need the other button?


  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    Its a design issue. I want a button called "Select Picture" for selecting a picture which turns into a "Remove Picture" button once one is selected. I also dont want the TextField to be visible.


Advertisement