Javascript form.submit() fails when imbeded in table

Before updating this worked fine, but now version 3.6.12 is failing to respond to javascript form.submit() inside a html select option control!
Operating system is Windows 7
The problem seems to be, because the form is imbeded inside a table.
Internet Explorer is still working ok, so looks like Firefox is now going to take second fiddle until / unless this is solved!
Yes, I know the easy way would be to remove the table! But then I have to use some other way of displaying data on the page!

Yeah, but it worked fine untill the last update!
I also have trouble with other javascript things, for example fckeditor no longer works in firefox.
I have been avoiding Internet explorer, but now it looks like I will be forced to use it, because it is still working with the things that I use on a regular basis...

Similar Messages

  • Submit fails when "OK" button added to form

    I have a PDF form that I import to Forms central, then distribute. Users can submit the form just fine. However, as soon as I add an "OK" button to the form (using Adobe Pro XI) and re-import and distribute, all the "Submit" attempts fail. I can add checkboxes, no problem... Just the OK buttons that choke the submission. Any known work-around for this? Thanks!

    We are working on this issue via email but I just want to post here in case someone else encouter a similar issue.
    Make sure that the button you add is not used to make a hidden field visible. This will cause issue during submission as FormsCentral doesn't know about hidden fields and therefore the form will try to submit data that FormsCentral is not expecting resulting in a fail submission.
    Gen

  • Form onsubmit ignored when using h:commandLink

    Hi
    I was looking for a way to catch all form submission in javascript by automatically setting a method to each form.onsubmit. But I ran into trouble with h:commandLink.
    I tested using a simple example:
    <h:form onsubmit="alert(123);">
    <h:commandButton value="commandButton"/>
    <h:commandLink value="commandLink"/>
    </h:form>Using this code, clicking the commandButton will display and alert with 123. But when clicking the commandLink, the onsubmit is ignored. The commandLink submit the form by javascript code using the form.submit() method. I tested it out (with firefox) and it seem to be the normal behavior... the onsubmit event is not triggered, unliked at normal <input type="submit"/> (like the commandButton).
    Looking at the javascript used the commandLink, I could see that it is completely ignoring the possibility that the user specified a onsubmit:
    //com/sun/faces/sunjsf.js
    function jsfcljs(f, pvp, t) {   
        apf(f, pvp);
        var ft = f.target;
        if (t) {
            f.target = t;
        f.submit();  
        f.target = ft;
        dpf(f);   
    };Wouldn't it make more sense to verify if a onsubmit method was set on the form and execute it before submitting the form?
    function jsfcljs(f, pvp, t) {   
        apf(f, pvp);
        var ft = f.target;
        if (t) {
            f.target = t;
         if (typeof(f.onsubmit) == "function") {
              var os = f.onsubmit();
              if (os != undefined && os == false) {
                   return false
        f.submit();  
        f.target = ft;
        dpf(f);   
    };The behavior of the commandLink would then match the JSF-API description:
    Tag commandLink : "Render an HTML "a" anchor element that acts like a form submit button when clicked."

    Wow! That worked when I removed the include directive. The only problem is that the include directive for the page is needed. When I use <c:import> or <jsp:include> it doesn't really include it correctly.
    Is there some special way I'm supposed to import JSF pages?
    Thanks again!

  • Onclick form submit from link

    Guys,
    I am calling onclick="document.form.submit();" in a hyper
    clink.
    On click, it goes to a fuseaction where
    act_load_structure.cfm loads the structure with form variable.
    But the form fields are not avaibale in
    act_load_structure.cfm . It says form fields are not defined. Do
    you know why.
    I appreciate your help in advance.

    Still does not work. Here is the dsp page
    <cfoutput>
    <cfform name="form" id="form" action="index.cfm"
    method="post">
    <table>
    <tr>
    <td>
    <input type="text" name="log" value="#attributes.log#"
    />
    <input type="text" name="AcctId"
    value="#attributes.AcctId#" />
    <input type="text" name="tablename" value="test" />
    </td>
    </tr>
    </table>
    <table width="100%">
    <tr>
    <td align="left">
    <a
    href="index.cfm?fuseaction=#XFA.test#&amp;log=#attributes.lo
    g#&amp;AcctId=#attributes.AcctId#&amp;rn=#attributes.rn#"
    onclick="document.form.submit();">test</a>
    </td>
    </tr>
    </table>
    </div>
    </cfform>
    </cfoutput>
    Here is the destination page
    <cfoutput> tablename =
    #form.tablename#</cfoutput>
    <cfabort>
    or
    <cfoutput> tablename = #tablename#</cfoutput>
    <cfabort>
    I appreaciate your help

  • Please debug my javascript (error with form.submit())

    help!! help!! i have used form.submit() where form = document.forms[0] but this time it gives me an error, please help, i will give you $10
    <html>
    <head>
    <script>
    <!--
    var sw;//switch
    sw=true;//default true
    var str;//string used if invalid data
    //validates all required form fields
    function validate(form){
    sw=true;//default true
    str="The following errors occurred while processing...\n";
    form = document.forms[0];
    //check name
    if(isWhitespace(form.fullName.value)){
    str += "-You must enter your Full Name\n";
    sw=false;
    }else
    if(!isAlphabetic(form.fullName.value)){
    str += "-Your Full Name must consist of only letters\n";
    sw=false;
    //check company name
    if(isWhitespace(form.compName.value)){
    str += "-You must enter your Company Name\n";
    sw=false;
    //check address
    if(isWhitespace(form.add1.value)){
    str += "-You must enter your Address\n";
    sw=false;
    //check city
    if(isWhitespace(form.city.value)){
    str += "-You must enter your City\n";
    sw=false;
    //check state
    if(isWhitespace(form.state.value)){
    str += "-You must enter your State\n";
    sw=false;
    //check zip
    if(isWhitespace(form.zip.value)){
    str += "-You must enter your Zip Code\n";
    sw=false;
    }else
    if(!isZIPCode(form.zip.value)){
    str += "-Your Zip Code must be digits only\n";
    sw=false;
    //check email
    if(isWhitespace(form.email.value)){
    str += "-You must enter your E-Mail\n";
    sw=false;
    }else
    if(!isEmail(form.email.value)){
    str += "-You must have a valid E-Mail address\n";
    sw=false;
    //check dayPhoneNumber
    if(isWhitespace(form.dayPhone.value)){
    str += "-You must enter your Day Time Phone Number\n";
    sw=false;
    }else
    if(form.dayPhone.value.length < 10 || form.dayPhone.value.length > 14 )
    str += "-You must enter a valid Day Time Phone Number (XXX)XXX-XXXX\n";
    sw=false;
    //check evePhoneNumber
    if(isWhitespace(form.evePhone.value)){
    str += "-You must enter your Evening Phone Number\n";
    sw=false;
    }else
    if(form.evePhone.value.length < 10 || form.evePhone.value.length > 14 )
    str += "-You must enter a valid Evening Phone Number (XXX)XXX-XXXX\n";
    sw=false;
    if(sw)
    form.submit();
    else
    alert(str);
    }//end validate
    // whitespace characters
    var whitespace = " \t\n\r";
    // non-digit characters which are allowed in ZIP Codes
    var ZIPCodeDelimiters = "-";
    // our preferred delimiter for reformatting ZIP Codes
    var ZIPCodeDelimeter = "-";
    // U.S. ZIP codes have 5 or 9 digits.
    // They are formatted as 12345 or 12345-6789.
    var digitsInZIPCode1 = 5;
    var digitsInZIPCode2 = 9;
    var defaultEmptyOK = false;
    // Returns true if string s is empty or
    // whitespace characters only.
    function isWhitespace (s)
    {   var i;
    // Is s empty?
    if (isEmpty(s)) return true;
    // Search through string's characters one by one
    // until we find a non-whitespace character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    // Check that current character isn't whitespace.
    var c = s.charAt(i);
    if (whitespace.indexOf(c) == -1) return false;
    // All characters are whitespace.
    return true;
    // Check whether string s is empty.
    function isEmpty(s)
    {   return ((s == null) || (s.length == 0))
    // isAlphabetic (STRING s [, BOOLEAN emptyOK])
    // Returns true if string s is English letters
    // (A .. Z, a..z) only.
    // For explanation of optional argument emptyOK,
    // see comments of function isInteger.
    // NOTE: Need i18n version to support European characters.
    // This could be tricky due to different character
    // sets and orderings for various languages and platforms.
    function isAlphabetic (s)
    {   var i;
    if (isEmpty(s))
    if (isAlphabetic.arguments.length == 1) return defaultEmptyOK;
    else return (isAlphabetic.arguments[1] == true);
    // Search through string's characters one by one
    // until we find a non-alphabetic character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    // Check that current character is letter.
    var c = s.charAt(i);
    if (!isLetter(c))
    return false;
    // All characters are letters.
    return true;
    // Returns true if character c is an English letter
    // (A .. Z, a..z).
    // NOTE: Need i18n version to support European characters.
    // This could be tricky due to different character
    // sets and orderings for various languages and platforms.
    function isLetter (c)
    {   return ( ((c >= "a") && (c <= "z")) || ((c >= "A") && (c <= "Z")) )
    // isZIPCode (STRING s [, BOOLEAN emptyOK])
    // isZIPCode returns true if string s is a valid
    // U.S. ZIP code. Must be 5 or 9 digits only.
    // NOTE: Strip out any delimiters (spaces, hyphens, etc.)
    // from string s before calling this function.
    // For explanation of optional argument emptyOK,
    // see comments of function isInteger.
    function isZIPCode (s)
    {  if (isEmpty(s))
    if (isZIPCode.arguments.length == 1) return defaultEmptyOK;
    else return (isZIPCode.arguments[1] == true);
    return (isInteger(s) &&
    ((s.length == digitsInZIPCode1) ||
    (s.length == digitsInZIPCode2)))
    // isEmail (STRING s [, BOOLEAN emptyOK])
    // Email address must be of form [email protected] -- in other words:
    // * there must be at least one character before the @
    // * there must be at least one character before and after the .
    // * the characters @ and . are both required
    // For explanation of optional argument emptyOK,
    // see comments of function isInteger.
    function isEmail (s)
    {   if (isEmpty(s))
    if (isEmail.arguments.length == 1) return defaultEmptyOK;
    else return (isEmail.arguments[1] == true);
    // is s whitespace?
    if (isWhitespace(s)) return false;
    // there must be >= 1 character before @, so we
    // start looking at character position 1
    // (i.e. second character)
    var i = 1;
    var sLength = s.length;
    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++
    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;
    // look for .
    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
    // isInteger (STRING s [, BOOLEAN emptyOK])
    // Returns true if all characters in string s are numbers.
    // Accepts non-signed integers only. Does not accept floating
    // point, exponential notation, etc.
    // We don't use parseInt because that would accept a string
    // with trailing non-numeric characters.
    // By default, returns defaultEmptyOK if s is empty.
    // There is an optional second argument called emptyOK.
    // emptyOK is used to override for a single function call
    // the default behavior which is specified globally by
    // defaultEmptyOK.
    // If emptyOK is false (or any value other than true),
    // the function will return false if s is empty.
    // If emptyOK is true, the function will return true if s is empty.
    // EXAMPLE FUNCTION CALL: RESULT:
    // isInteger ("5") true
    // isInteger ("") defaultEmptyOK
    // isInteger ("-5") false
    // isInteger ("", true) true
    // isInteger ("", false) false
    // isInteger ("5", false) true
    function isInteger (s)
    {   var i;
    if (isEmpty(s))
    if (isInteger.arguments.length == 1) return defaultEmptyOK;
    else return (isInteger.arguments[1] == true);
    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    // Check that current character is number.
    var c = s.charAt(i);
    if (!isDigit(c)) return false;
    // All characters are numbers.
    return true;
    // Returns true if character c is a digit
    // (0 .. 9).
    function isDigit (c)
    {   return ((c >= "0") && (c <= "9"))
    //-->
    </script>
    <body>
    <form method="post" enctype="text/plain" action="mailto:[email protected]">
    <table border="0" bgcolor="yellow">
    <tr>
    <td width="150">Name*</td>
    <td width="250"><input type="text" size="30" maxlength="60" name="fullName"></td>
    </tr>
    <tr>
    <td width="150">Company Name*</td>
    <td width="250"><input type="text" size="30" maxlength="50" name="compName"></td>
    </tr>
    <tr>
    <td width="150">Address- Line1* </td>
    <td width="250"><input type="text" size="30" maxlength="50" name="add1"></td>
    </tr>
    <tr>
    <td width="150">Address- Line 2</td>
    <td width="250"><input type="text" size="30" maxlength="50" name="add2"></td>
    </tr>
    <tr>
    <td width="150">City*</td>
    <td width="250"><input type="text" size="15" maxlength="30" name="city"></td>
    </tr>
    <tr>
    <td width="150">State*</td>
    <td width="250"><input type="text" size="10" maxlength="25" name="state"></td>
    </tr>
    <tr>
    <td width="150">Zip Code*</td>
    <td width="250"><input type="text" size="5" maxlength="10" name="zip"></td>
    </tr>
    <tr>
    <td width="150">E-mail*</td>
    <td width="250"><input type="text" size="30" maxlength="50" name="email"></td>
    </tr>
    <tr>
    <td width="150">Day Phone*</td>
    <td width="250"><input type="text" size="15" maxlength="25" name="dayPhone"></td>
    </tr>
    <tr>
    <td width="150">Evening Phone*</td>
    <td width="250"><input type="text" size="15" maxlength="25" name="evePhone"></td>
    </tr>
    <tr>
    <td width="150">Fax Number</td>
    <td width="250"><input type="text" size="15" maxlength="25" name="fax"></td>
    </tr>
    </table>
    <br>
    <table>
    <tr><td><input type="button" value="next" size="20" name="submit" onClick="validate(this.form)"></td></tr>
    </table>
    </form>
    </body>
    </html>

    With this changes your program works:
    function validate(){
    if(sw)
    return true;
    else {
    alert(str);
    return false;}
    <form method="post" enctype="text/plain" action="mailto:[email protected]" onSubmit:"return validate()">
    <tr><td><input type="submit" value="next" size="20" name="submit"></td></tr>
    (also, note that you should advice that you need 5 digits in the ZIP field.
    Fill the field with 3 digits to see what I mean).
    �am �am duke duke duke :) dollarssss

  • Error message when trying to sign in to HP ePrint "ajax submit failed: error = 403, forbidden"

    HP Photosmart 7525
    Windows 7
    Ajax submit failed: error = 403, Forbidden
    Installed new printer: Photosmart 7525
    I am trying to set up my ePrint account and add my printer and it won't let me sign in or create a new account.
    Thanks for your help!
    Deb
    This question was solved.
    View Solution.

    One can also restart the computer.After it shuts down leave it off for at least a minute and then reattempt access the site once computer is back on and running. I would also check to make sure that Java is up to date and that Adobe Flash is up to date. 
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Acrobat 9: Error when PDF form submit with file attachment

    Hi all,
    Hope you can provide some help with my PDF form submit issue. I am getting this error "There is no PDDoc associated with this CosDoc." in Acrobat 9 (Reader and Pro) when I try to submit a PDF form with a file attachment field (the file is specified). The same PDF form works fine in Acrobat 7 or 8 (Reader and Pro) with file attachment.
    If no file attachment is specified (user did not select a file) then the PDF form submits fine in acrobat 9. The form data submission format is in FDF. Same problem if I change to XFDF.
    There are no differences in the problem if the PDF form is created in Acrobat 7 or Acrobat 9, the same submit issue exists in Acrobat 9 but not in the older Acrobat versions.
    Is this a known issue and are there any workarounds/solutions?
    Thanks.

    Sounds like a bug to me. Please report it: http://www.adobe.com/support/feature.html
    George

  • What does "ajax submit failed: error = 403, forbidden" mean when trying to sign up for eprint?

    what does "ajax submit failed: error = 403, forbidden" mean when trying to sign up for eprint?

    Hi,
    Please use different browser such as Firefox or Chrome and try again.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Ajax submit failed: error =403, Forbidden error when signing in

    when trying to log in or create a new account for www.eprintcenter.com this is the error I get, and I can't get past the log in page.

    Try here..
    http://www.google.com/search?q=Ajax+submit+failed%3A+error+%3D403&sourceid=ie7&rls=com.microsoft:en-...=
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Error "Ajax submit failed: error =403, Forbidden" when trying to sign up

    Hi,
    I am trying to sign up for eprint, but get this error when ever I try to create an account "Ajax submit failed: error =403, Forbidden" Does anyone have any ideas.
    thanks,
    Bob

    If you are experiencing this issue through the desktop browser, if available, try downloading the mobile app and see if you still experience issues signing up. Another recommendation is to try a different browser (Firefox, Chrome, etc) after restarting your machine.
    Hope this helps!
    Help the community by marking this post as a solution if it solved your issue!.
    If my post helped you in any way, please click the blue KUDOS star under my name! It would mean a great deal.

  • Ajax submit failed: error =403, Forbidden, Forbidden when trying to register account

    I get: "Ajax submit failed: error =403, Forbidden" when trying to register with ePrint
    This question was solved.
    View Solution.

    Tim_H wrote:
    Hi BOLAINE,
    I'm sorry you're having this problem.  The best way to work around it is to try using a different browser.  Preferably either nternet Explorer, Firefox, or Chrome.
    Let me know if this helps, please.
    I  having the same problem getting Ajax submit failed=403 when trying to register account.  All I have is a new Chromebook. Am I stuck?  Don't seem to have an option of other browsers...?
    cg

  • When I sign to eprint center I get this error message Ajax submit failed: error =403, Forbidden

    When I sign in to the eprint enter I get the following error message
    Ajax submit failed: error =403, Forbidden
    This question was solved.
    View Solution.

    Hope you are doing well and welcome to the HP Forum.
    Sorry to learn that you are having this issue.
    Let's do this 1st
    -  Reboot the computer.
    -  Open the browser (Internet Explorer, chrome, FireFox, Safari,Opera ) of your preference and clear cookies  and internet (Browsing) history. In the browser of your preference try singing-in or registering to e-print.
    If the above did not solved your issue, Please try this;
    - Use another browser (Internet Explorer, Chrome, firefox, safari, Opera).
    Also this is what I heard from other members of the forum.
    I heard here (other members of the community) that there is an issue that engineer are working on diligently that may be affecting this particular process. At the same time I know that other members have some success using this steps aforementioned.
    Hope this helps!
    RobertoR
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • Weirdness when trying to use javascript to submit a button on a jsf page

    code in question:
    document.forms['logoutForm'].elements['logoutForm:_id7'].click();
    alert("button clicked");
    This works fine as is, the form gets submitted. I have to use this because there are multiple submits in this form for different things. Edit: What I mean is that I am submitting if the user presses the enter key from a text input and since I have multiple submits, I have to choose a particular one, I can't just use the form.submit() function.
    The problem arises if I take out the alert. No alert box, it stops working - no submit. Alert popup included, I get the popup, but the page submits correctly AFTER I close the popup, even though the alert is after the submit in the code.
    Anyone know what gives and how I can get the submit to work without the alert?
    Message was edited by:
    kdavenport
    It appears that this might be an IE issue as it works in Firefox. Any thoughts?
    Message was edited by:
    kdavenport

    This reply skirts around your actual question, but perhaps it may be useful for your situation. This link describes a JSF component that allows you to define the default action for your page, that is, the one that gets submitted when the Enter key is pressed:
    http://www.jsftutorials.net/defaultActionTag.html
    Note that you will see some warnings flash across the console when this component loads on the page (if you're monitoring that). As I understand it, this is because no renderer is specifically assigned for this component. Your default renderer will kindly do the job, but you'll still see the warning in development. It's nothing to worry about.

  • 2 sweepstakes I have played for months are not allowing me to submit my form Microsoft Office IW/Sour Patch IW.Says on the bottom left javascripts form "0" this just started today. Internet Expl let's me play but my games are on Firefox. Plz advise.

    played both after midnight last night (sour patch kids IW & microsoft office instant win). microsoft office just does nothing when I hit enter & sour patch let's me fill in my email & password then does nothing when I hit enter. I have played both for months. on the bottom left corner as I keep hitting enter it indicates "javascript forms zero & something else. it goes away when I stop hitting enter. I then exited firefox and went to the explorer and then facebook and both games let me in. Please help as all my games and sweeps are listed on firefox. thank you.

    Just an update... A rep contacted me and we did a screen share. They were convinced that I wasn't full of <insert proper word here>. They promised to get back to me in a few days, and now? A few months later? Nothing.
    Still no files. Still no correction... Still no nothing from Adobe.
    The person I spoke to was kind, saying he'd make sure I got CC for free for a while...
    Still though, no follow up.
    Adobe, are you going to correct this or just let your customer suffer at your mistakes?

  • I recieve an error: "Ajax submit failed: error = 403", Forbidden when I try to create an account.

    I can't login to the ecenter; i'm constantly recieving an error message of Ajax submit failed: error = 403", Forbidden when I try to create an account.  When I try to login with either my google or facebook password, i recieve the same style of message...help! 

    Are you using a browser different to IE by any chance?  I dont think their web pages work properly with certain browsers (I cant use Chrome and Safari in IOS - get exactly the same error).. Try with a different browser.

Maybe you are looking for