Problem in input tag of type file

Hi,
I am using FireFox v.22, whenever i browse Default.aspx page in browser with <input type="file" />
it allows me to show a dialog box to select file from local drive. but when i add my own custom javascript it doesn't shows me a select file dialog box for input tag of file type.
can anybody tel me what is an compatibility issue with file input tag with javascript functions?

This forum focuses more on end-user support and the built-in features. For scripting issues, I suggest trying the unofficial [http://forums.mozillazine.org/viewforum.php?f=25 mozillaZine Web Development board]. It's a separate site with separate registration. For best results, please note the tips in the Sticky Post at the top of the forum before posting.

Similar Messages

  • JS error while using input fields with type=file on XP SP2

    Hi all,
    we found a new problem in applications which use input fields with type=file running in a browser on Microsoft Windows XP with SP2.
    A typical test layout might look like:
    <html>
      <head>
        <title>File-Upload</title>
      </head>
      <body>
        <form action="/cgi-bin/upload.pl" method=post
              enctype="multipart/form-data">
          <input type=file size=50 maxlength=100000 name="file"
                 accept="text/*"><br>
          <button onclick="document.forms[0].submit();">Send</button>
        </form>
      </body>
    </html>
    When you add a link without the fully qualified path (for example pic01.jpg instead of c:\pictures\pic01.jpg) and click on the 'Send' button, nothing happens and you get a Javascript error 'Access denied'.
    The solution can be found in the MS Knowledge Base article 892442:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;892442
    We still investigate this issue and will inform you about the further proceeding.
    Regards,
    Rainer

    Hi Yepin Jin,
    I am facing the same issue did you solved it?
    Regards,
    Orlando Covault

  • Problem with custom tag attribute types

    Hi,
    I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
    In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
    My tag looks like this:
    <tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
    I always get the message that the attribute ce is empty.
    Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
    Thanks a lot!
    Regards Patrick

    In JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
    <attribute>
       <name>attr1</name>
       <required>true|false|yes|no</required>
       <rtexprvalue>true|false|yes|no</rtexprvalue>
       <type>fully-qualified_type</type>
    </attribute> Notice the XML element <type>fully-qualified_type</type>
    Not sure if you can do this in JSP 1.1

  • Problem with jsp tag in jsf file c:import

    <!-- <c:import url="#{backing_Home.whichMenu}"/>-->
    <jsp:include page="#{backing_Home.whichMenu}"/>
    I am trying to use a JSF variable in jsp tag
    I am getting error like this
    javax.servlet.jsp.JspTagException: /#{backing_Home.whichMenu}     at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:318)     at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:186)     at _Home_2e_jsp._jspService(Home.jsp:24) I want to add a page dynamically using that variable
    Is there any other method

    This code works fine for me:
    <%@ taglib uri="/jstl-c" prefix="c" %>
    <html>
         <body>
         <%
              int array[] = new int[] {1,2};
              session.setAttribute("array", array);
              String arrayNames[] = new String[]{"One", "Two"};
              session.setAttribute("arrayNames", arrayNames);
         %>
              <form action="?">
              <select name="select">
                   <c:forEach items='${ sessionScope.array}' var="row">
                        <c:choose>  
                             <c:when test="${param.select== row}"> >
                                  <option value="<c:out value='${row}'/>" selected><c:out value="${sessionScope.arrayNames[row-1]}"/></option>
                             </c:when>   
                             <c:otherwise>
                                  <option value="<c:out value='${row}'/>"><c:out value="${sessionScope.arrayNames[row-1]}"/></option>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
              <input type="submit" name="submit" value="submit"></input>
              </form>
         </body>
    </html>
    good luck.
    MatrixPooh
    www.bizdisplay.com

  • Problem with import tag in xsl files and include in xsd files

    Hello,
    I've been developing an application using JBoss as server. Then, i created an especific path for xsd and another path for xsl files. In both cases, i created a main file that include (xsd) or import (xsl) the other files. My problem is that i have to specify the exactly path where the imported xsl or the included xsd files are, even though they are in the same path as the main file. What i want to know is how i say that the other xsd and xsl files are in the same path that the main file that is importing them?
    here's an example of my import and include declarations:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:import href="../server/jboss/deploy/application.ear/pack.jar/xsl/transformer1.xsl"/>
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              elementFormDefault="qualified">
         <xsd:include schemaLocation="../server/jboss/deploy/application.ear/pack.jar/xsd/schema1.xsd"/>
    thanks for your help

    yes, thats not the value returned of
    URL url = this.getClass().
                        getResource("/xsl//transformer.xsl");the expression i posted is an string i'm using to test.... but i think it's not incorrect, because if the files i'm trying to open are not in the path, he throws the following exception:
    java.io.FileNotFoundException: C:\cpqd\isp\tools\third-party\jboss\server\jbossISP1\deploy\cpqd-ispeng-EngEJB-3.3.0.0.ear\cpqd-ispinv-ServiceEJB.jar\xsl\isp_transformer_manufacturer.xsl
        at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:80)
        at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:89)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:323)
        at org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:192)
        at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:668)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:972)
        at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:788)
        at br.com.cpqd.oss.isp.service.adapter.FrameworkAdapter.createExternalData(FrameworkAdapter.java:131)
        at br.com.cpqd.oss.isp.service.message.ExternalDataMDBBean.onMessage(ExternalDataMDBBean.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:458)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
        at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:284)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150)
        at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
        at org.jboss.ejb.Container.invoke(Container.java:709)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:928)
        at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1205)
        at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:276)
        at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
        at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:159)
        at org.jboss.mq.SpySession.run(SpySession.java:351)
        at org.jboss.jms.asf.StdServerSession.run0(StdServerSession.java:200)
        at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
        at java.lang.Thread.run(Thread.java:534)and when the files are in the path, he throws the other exception... thats why i think the problem it's not the URL....

  • Problems with input tags

    When i use a input text with a modelReference to a Bean the
    input field shows the data from the bean. this is OK !
    But when i delete the data from this input field
    and submit the form the data will not be delete in the Bean.
    At start time the Bean attribute is null.
    Why ?
    <jsp:useBean id="TestBean" class="net.wcms.jsf.tests.model.TestBean" scope="session" />
    <f:use_faces>
    <h:form formName="testForm" id="testForm">
    <h:input_text id="testname"
    modelReference="TestBean.name"/>
    <h:command_button id="a_insert" label="speichern" commandName="save">
    <f:action_listener type="net.wcms.jsf.tests.listener.TestFormActionListener"/>
         </h:command_button>
    </h:form>
    </f:use_faces>
    Sorry for my English !

    I think also this is a bug.
    It was a good idea to Change the Model in application handler or
    in action listener.
    This is a good workaround for search forms to access the
    values over the UIComponent.
    I dont need a Bean in the SessionScope to review the Values after submit the Form.
    Thanks ! :-)

  • Input type FILE wanted

    Hi all!
    Do anybody know if anywhere exists <h:input> tag for type=file ?
    Thank you in advance
    /Alexander

    Hi,
    this has been discussed already,
    http://forum.java.sun.com/thread.jsp?forum=427&thread=473135
    Frederic

  • HTML form posting with input type="file"

    Hi,
    I am trying to create a servlet to accept POST requests sent from a form which has an input field of type="file".
    When I first tried I found that I was only recieving the filename of the file and not getting any contents.. I then found out that I needed enctype="multipart/form-data" in my html form tag.
    Now my servlet isn't picking up any of the form data plus the reader returned by HttpServletRequest.getReader() just throws an IOException whenever I use it..
    I have tried to google for how to get this working but I haven't found much. Any help would be appreciated.

    Thanks cool..
    I also found this after some late night googling..
    http://www.jguru.com/faq/view.jsp?EID=1045507
    I'm trying to not use one of these utility classes for now until I find out exactly how they get their data from the HttpServletRequest object..

  • Simulate FileUpload via HTTP Plain Adapter (input field type = file)

    Our Partner would like to get the payload via html input parameter with type=file.
    The Szenario:
    The payload is generatet in one CRM System as an individual structure. We send the payload via proxy to the integration enginge. Is it possible to simulate the fileupload technology of a simple html form with input field with type=file.
    Any idea is helpfull. Thanks!

    Hi Stefan,
    thank you for the tipps. I know about epilog parameters of plain http adapter and i. e. xslt mappings.
    I don' t know how the simple html upload works and if it is possible to build multipart upload?
    Manualy upload is resolvable with
    <HTML>
         <HEAD>
              <TITLE>Upload</TITLE>
         </HEAD>
         <BODY>
              <FORM ACTION="/cgi-sample/upload.pl" METHOD="post"
                                                ENCTYPE="multipart/form-data">
                         File: <INPUT TYPE="file" NAME="file"><BR>
                                   <INPUT TYPE="submit">
              </FORM>
         </BODY>
    </HTML>
    Meanwhile, we have solved the problem with a simple xslt mapping for plain html on the receiver side.
    Kind regards
    Jochen

  • Input type file go outside portal

    Hi i'm writing a portlet that allow the user to save files to a server, to do that i got a classic button:
    <input id="Attachment1" type="file" runat="server" NAME="Attachment1">
    everything works fine, but in the portlet i got a link button to navigate to a previous page inside the portlet, pressing the button i go outside the portal. Does anybody have a solution?
    Thanks.

    If you need kind of UI wizard in plumtree you have 4 options (at list known to me), all of them have + and -
    1) Popup. You have base portlet UI inside page/community but make real submit in popup. Then you have popup in place and can navigate (forwad/back) there. URL still need to be gatewayed. Here you also need to work around Plumtree session expired issue and take care about close popup in case user close parent window. Here you can use Struts as well in case MVC and so on.
    2) Hosted mode. This is where you have the only instance of portlet in place. All you need to make sure your navigation URL is gatewayed (transfered by plumtree, just see source). No plumtree expired session issue, you can
    use Struts. Works fine for applications that required some advanced navigation and you don't need other portlets on the page.
    3) Navigation in base portlet (JSR-168, view mode).
    Here you will have render for all portlets on the page but your portlet is the only one who does real action. The way to do this is CHANGE portlet state by using portlet settings. No Struts, no session Plumtree session expired issue. So you portlet will be rendering different and you can navigate whatever you want. All you need to do here is call your action, change state (some portlet settiongs) and then be back to portal:
    ptpContext.getResponse().returnToPortal()
    Then you will need to write base portlet to render different depends of portlet settings.
    4) Adaptive portlets. Here is kind of Plumtree implementation of AJAX idea. You can make asyncronous call to server side. I don't think this is what you need now.
    NOTE: Make sure your URL to be back IS gatewayed. The best way to do it is view HTML source you got on client.

  • How to get the path of input type="file" tag

    -- im using <input type="file"> tag to get an input file from a local host, it returns only the filename but not the complete path of the filename,,,
    -- i need to know on how to get the compelete path /directory of the filename using <input type="file"> tag , or is there any other way to get an input file from a local host aside from <input type="file"> tag?
    thanks

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • HTML tag input type="file"

    hello!
    i used the html tag <input type="file" name="fp"> to have a browse File in my html Page and succesfully gets the file,path and directory when i used fp.value on my windows but when i Load the Html file in Linux
    i only get the filename (excluding the Path)
    can someone tell how to get through this any solution ?
    nid yur help badly!
    Gud day!
    p.s. i used a javascript to get the pf.value.

    Here is a solution:
    Post your question on a relevant forum. These forums are for Java. Java is not Javascript. Javascript is not Java.

  • Problems with clearing files from input type="file"

    I'm using &lsaquo;input type="file".. to upload files in some javascript.
    The page containing the &lsaquo;input type="file".. is not reloaded, so data on the &lsaquo;input type="file".. is not cleared.
    I've done this with form.reset() in IE, which cleares files from &lsaquo;input type="file".., but this doesn't work in Firefox. The next time I try to submit a file two files are submitted.
    I've even tried to replace the &lsaquo;input type="file".. to clear all data, but if i replace it with a &lsaquo;input type="file".. with same id, the files is still there from before.
    So my question is, how do I clear files selected
    ''(Edited to make the HTML code display properly -TonyE)''

    The firmware/file system on the iPhone is locked unless you jailbreak your iPhone. The sync function via a USB cable and iTunes is the only way to add or retreive data unless your phone is jailbroken (and that is limited to music, movies, contacts, pictures, etc)
    There are applications in App Store which will create a file storage system on your iPhone and allow your PC to access those folders/files via WiFi network (iFiles is one, there are others)
    iBluetooth requires your phone to be jailbroken.
    You can use a bluetooth connection from iPhone to PC to play music only thru the PC speakers without having a jailbroken phone.
    If all you want to do is transfer pictures, iTunes will do that.  It is already set up, just plug in the phone, and go to the photos tab and choose which picture app on the PC to transfer the photos into.  Then everytime you sync your phone, it pulls the new pictures off the camera roll.
    What was I thinking when I bought an HP ?
    Oh yea, I wasn't !
    IQ504 & IQ506

  • [SOLED] Firefox input type = file selects the wrong file

    When I have use a webpage in firefox that has an upload feature, Firefox often selects the wrong file. I can reproduce this problem by simply creating a form with an input tag like this:
    <input type="file" />
    When I enter the file selection screen and open fileA the input box contains fileA, fileB or fileC. It seems kind of random to me. I use KDE 4.5 btw, if that matters.
    Last edited by Wilco (2010-08-07 08:24:35)

    It seems to be some kind of kde problem. When I delete ~/.kde4/share/config/* it works fine. I tried deleting the all files in share/config starting with a-m and it still didn't work. Then I deleted every file from n-z and it didn't work so it's probably a combination of files that give these problems. I don't feel like setting up KDE all over again so damn, it's back to Icewm, again...

  • CFFORM/CFINPUT Type = File Problem

    Hello everyone-
    I'm trying to use a CFINPUT/FILE field in a CFFORM:
    <CFINPUT TYPE="file" NAME="scanArticleLocation"
    class="sans9">
    Clicking on the Browse button appears to populate the text
    input box with a valid path, but when the field
    "scanArticleLocation" is passed on by the form, I get this:
    <INPUT TYPE="hidden" NAME="ScanArticleLocation"
    VALUE="C:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp12527.t mp">
    Wether I click on the form's "Browse" button to specify the
    file's path, or manually enter it, the result is the same (only the
    .tmp file name changes). Anyone ever come across this one?
    Thanks in advance...
    - Tom Tedeschi

    It appears that the problem was in the CFFORM tag itself. I
    originally had specified that it be multi-part:
    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm"
    enctype="multipart/form-data" METHOD="POST">
    When I removed the enctype parameter, it worked fine:
    <CFFORM name="UpdateForm" ACTION="insertForm2.cfm"
    METHOD="POST">
    - TRT

Maybe you are looking for

  • PO Output in R/3 for ECS PO's - Adding new output messages in R/3

    Hi, We are on SRM_SERVER 550, SAP 4.7 backend and are moving to ECS scenario (from Classic scenario). Currently the PO output gets trigerred from R/3 (since its in Classic scenario) and we would like to keep it the same way. I understand that there i

  • HR BDC updates Infty 40 and 15 in Quality but only Infty 40 in production.

    Hi SDNers, I am facing a peculiar problem . I have a program which updates infotype 0040 and thereafter Infotype 0015 with the remaining amount value for a employee card when the employee is doing his settlement post-resignation . This program works

  • Scaling distorts my objects

    Scaling an object up or down doesnt seem to work anymore. I feel like the effect is random but my points dont scale correctly. there are small distortions in various instances. The distortion is random, I can scale the same object down 20 different t

  • User Setting Crashing

    Hey there, I have a Macbook 2008 running Lion and every time I go onto User/Account Settings on System Preferences, it crashes. What do I do?

  • Administration : create multiple users

    Hello everybody Can we create users with a console command or batch function ? Because, I've to create new users in parrallele with an another database of users and I can't manage this operation with the user interafce provided by "/adminiui..." ( 50