Bug submitting form with SpryUtils.submitForm

You can view this problem here:
http://www.bachelorsguide.ca/spry16Ajaxsubmit.html
In the SpryUtils.js file I have changed the final "return:
false;" to "return: true;" as I want the form to submit to the
defined action of the form after doing the ajax submit.
This works in IE... it submits the ajax hit with all the form
variables then submits to the a third party payment page with all
the form variables.
In FireFox it submits the ajax post but doesn't seem to be
passing the form variables with that submit, then it posts the form
to the thrid party and all the form variables are passed for that
hit.
The issue seems to be that the form variables are not
submitted with the Ajax post when using FF but are submitted when
using IE7.
When I leave the final "return: false;" then the Ajax hit
DOES work in FireFox... only when I change it to true; that FireFox
stops working...
Please help

Diana,
The line you gave me was giving me syntax error.
i played with it and found that if I removed all references
to any return that it worked.
So I this right now......
onsubmit="Spry.Utils.submitForm('order_form',
'',{method:'post', url:'modpython/index.py?aoi=true',
async:false});
No returns, and the Utils file has the original code with the
return false at the end.
I don't know what the syntax issue was but it is working in
Safari, IE7 and FF and I want to give you a big kiss!
Ok sorry for being inappropriate but I am extremely happy.
Thanks Diana so much... if you ever have DB issues let me
know. I owe you.

Similar Messages

  • Submitting form with attachments.

    Hi,
    I have a simple need. I am stucked in it. What i need to do is:
    Step 1: User1 starts opens a pdf form inside LC Workspace, fill it, attach files (Reader Extended) and then submit it.
    Step 2: User2 receives the filled form with attcachments. Can view attachments and save them in repository.
    I am stucked at step 1. User is able to fill the form, add attachments but can't submit it. If I am not enabling the Reader Extensions for attachments (Disabling functionality to attach files) then it works fine. But when using with attachments option, it fails. It gives no error, no message and does not passed to the 2nd user.
    Is there any special requirement in developing such process/form ??
    Please help me out on it.
    Abhinav

    I've studied the HTML generated by UIX and it has following bugs and misfeatures:
    1. Misfeature: Submitting with Enter works ONLY if there is exactly one text field in the form (no submit button is actually needed), as Brian Stoler wrote. I don't understand reason for this.
    2. Bug: UIX generates javascript function "_submitOnEnter" which is called as event handler for "onKeyPress" event. But this function is erroneously generated multiple times, once for each form in the page. Browsers (Mozilla and IE) use the latest implementation. This function is different for forms with one text field and for forms with more text field, but only the first one can do the job. As a consequence of this, Enter can submit the form only if the last form on a page has single text field (which is for example not the case of search form with single field above another form...)
    Tested with UIX 2.1.7 in JDeveloper 9.0.3.3, using UIX as JSP tag library.
    Workaround:
    1. Use Opera browser: it submits form with enter key even if there is no submit button (this does not work for the first text field in the form, because it has "onkeypress" event handler).
    2. Implement this feature by hand yourself, if you really need it (see below).
    3. Use accessKey: allows to submit form with Alt+<key> combination (followed by Enter with IE).
    Implementing Enter key submits with Javascript:
    1. Put the following function to the header (or to javascript library):
    function enter(e, frm) {
    var kc;
    if(window.event) kc=window.event.keyCode;
    else if(e) kc=e.which;
    else return true;
    if(kc==13) {
    submitForm(frm,1);
    return false;
    Function copied from UIX (C).
    2. Add this event handler to each input element:
    onKeyPress="return enter(event, 'formName');"
    It is obvious that this is error prone, but it works with all browsers...
    Will this be fixed in future versions?
    Why only form with one text field can be submitted?

  • Submitting form with Enter key

    Hello,
    in standard html form, when you have form with submit button, the enter key when any form element is selected submits the form.
    This is very convenient for users, so I want this with UIX forms. I know it is possible (I have one form where it is working), but I can't get it working anywhere else.
    This code works:
    <uix:form method="post" name="newRoleForm">
    <uix:inlineMessage prompt="Role name">
    <uix:textInput name="newRoleName" />
    <uix:spacer width="15" />
    <uix:submitButton text="Create" formName="newRoleForm" />
    </uix:inlineMessage>
    <uix:formValue name="jboEvent" value="newRole" />
    </uix:form>
    When I copy this code to another page, it does not work...
    Can somebody help, please?

    I've studied the HTML generated by UIX and it has following bugs and misfeatures:
    1. Misfeature: Submitting with Enter works ONLY if there is exactly one text field in the form (no submit button is actually needed), as Brian Stoler wrote. I don't understand reason for this.
    2. Bug: UIX generates javascript function "_submitOnEnter" which is called as event handler for "onKeyPress" event. But this function is erroneously generated multiple times, once for each form in the page. Browsers (Mozilla and IE) use the latest implementation. This function is different for forms with one text field and for forms with more text field, but only the first one can do the job. As a consequence of this, Enter can submit the form only if the last form on a page has single text field (which is for example not the case of search form with single field above another form...)
    Tested with UIX 2.1.7 in JDeveloper 9.0.3.3, using UIX as JSP tag library.
    Workaround:
    1. Use Opera browser: it submits form with enter key even if there is no submit button (this does not work for the first text field in the form, because it has "onkeypress" event handler).
    2. Implement this feature by hand yourself, if you really need it (see below).
    3. Use accessKey: allows to submit form with Alt+<key> combination (followed by Enter with IE).
    Implementing Enter key submits with Javascript:
    1. Put the following function to the header (or to javascript library):
    function enter(e, frm) {
    var kc;
    if(window.event) kc=window.event.keyCode;
    else if(e) kc=e.which;
    else return true;
    if(kc==13) {
    submitForm(frm,1);
    return false;
    Function copied from UIX (C).
    2. Add this event handler to each input element:
    onKeyPress="return enter(event, 'formName');"
    It is obvious that this is error prone, but it works with all browsers...
    Will this be fixed in future versions?
    Why only form with one text field can be submitted?

  • Do I gee a copy of submitted forms with the free account?

    Do I gee a copy of submitted forms with the free account?

    Hi;
    Using the Free account you can view the submitted data and export it to Excel, PDF or CSV (the data is in a table format).
    Email Notifications, where an email comes to you each time someone submits the form is a paid level feature.  Another Paid level feature is "Download Response as PDF" which allows you to save/download a PDF version of the filled out form that looks like the original.
    Thanks,
    Josh

  • Issues submitting form with Reader X

    I am using Adobe Reader X on a Mac and the program will not allow me to submit the form. When I click on the submit button, a message pops up that says this operation is not permitted. If I open the form in an older version of Reader, it works correctly. Why won't X work? Is there a way to fix it?

    Some questions:
    1. Is it a secured form with some printing restrictions? You can check this from the document properties under the Security tab.
    2. Is it happening with all the forms or some particular ones?
    3. Some specific detaills like printer/ OS etc might be helpful.

  • Submitting Form with MySLQ database...

    I need to set my form through a MySLQ database but I don't
    know how. My host sent me this Formmail:
    http://www.dtheatre.com/scripts/formmail_doc.php
    (download:
    http://www.dtheatre.com/scripts/formmail_files/formmail.v50.zip
    I saved it in my website root folder but I don't know how to
    set the php form with my html form. ...There is a demo included,
    but doesn't help.
    Please help me!!
    Thanks in advance!!

    Form mail scripts send form contents via email. It sounds
    like you want to just insert data from the form into a database.
    Just use the build in DW Insert Record behavior.

  • Submitting form with multiple records.

    Can any one help me how to implement following functionality.
    I have page flow portlet which renders list of 10 records. I need to display record name, record number and one check box for every record. User can select some of the records and add those to one group. I am able to disply the list successfuly by using <netui:repeater> tag. Problem is coming when i select some of the records and click on submit. It is not updating coresponding form bean. My form bean is as following.
    public static class RecordsListBean extends FormData{
    private String userId;
    private List recordList;
    setters and getter for above properties
    recordlist contains list of RecordBean. RecordBean class having two properties record name , record number , isSelected (boolean) and coresponding setters and getters.
    When i try to submit the form i am getting errors something like unable to edit actionForm.recordList[0].isSelected value for all records.
    Can anyone help me why i am getting this? and let me know if you know best practise method to implemet this.
    Thanks.
    Edited by: user10471254 on Feb 25, 2010 9:35 PM

    Hi
    I saw one weird issue with WLP 10.3. I have a form bean with one instance variable named as "iClassCard". I have setters and getters. In JSP I use this form object. When I put a netui:text field and assing the datasource value, when I type actionForm. it shows the list of all instance variables. Weird thing is it shows my instance varialbe with uppercase "i" like IClassCard instead of "iClassCard". If I forcefully change this to like datasource=actionForm.iClassCard, it shows yellow line waring saying variable not defined. To fix this I just changed my instance variable in form bean to uppercase like IClassCard. Or worstcase just do not use "i" as the beginning character for any instance variable. So give a try renaming the variable isSelected on your side and see if this works.
    Coming to your usecase you can use List type and netui-data:repeater tag. Make sure that incase if you use netui:anchor tags to sumbit the form ations, please do add formSubmit="true" something like <netui:Anchor formSubmit="true" action="yourActionName" ...>. If you do not set formSubmit = "true", the List will not be updated with the user entered values when you view on pageflow side in that submit action method.
    Thanks
    Ravi Jegga

  • Submitting form with 'jump menu' and PHP?

    I have a form that can reveal one of two question sets,
    depending on the
    setting of a drop-down list, e.g.,
    <select>
    <option>Set 1</option>
    <option>Set 2</option>
    </select>
    Up to this stage in the development of this page, I have
    solved this
    requirement by using an onchange event in the <select>
    tag to submit the
    form to itself. The PHP code in the head of the page
    evaluates the set
    selected, and then writes the page containing the 'selected'
    fields (either
    set1 or set2).
    But now, I also need to submit this form's data to the
    processing page! So,
    there are two competing functions here -
    1. Deciding which field set to display
    2. Processing the filled in fields by submitting the form to
    a second
    process page
    How can I get these two together on the same form?
    Or should I just use two separate form pages, and a
    javascript jump menu?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================

    Never mind, I figured it out. :-)
    mark
    > I have a page that contains a jump menu and an iframe. I
    use the jump menu
    > to load different pages into the iframe. Works fine in
    IE but will not work
    > in Firefox. Here's the code:
    >
    > <form name="form1">
    > <select name="odm"
    onChange="MM_jumpMenu('odmframe',this,0)">
    > <option value="/solutions/odm/blank.html">Choose a
    Product</option>
    > <option
    value="/solutions/odm/vpn.html">VPN/Firewall
    > appliance</option>
    > <option value="/solutions/odm/2100e.html">2100E
    Enterprise Class
    > Server</option>
    > <option value="/solutions/odm/4300e.html">4300E
    Enterprise Class
    > Server</option>
    > <option
    value="/solutions/odm/4300edp.html">4300EDP Enterprise Class
    > Server</option>
    > <option
    value="/solutions/odm/sc4100,html">SC4100</option>
    > <option
    value="/solutions/odm/2120.html">SA2120</option>
    > <option
    value="/solutions/odm/na1400.html">NA-1400</option>
    > <option
    value="/solutions/odm/sc6000.html">SC6000</option>
    > <option
    value="/solutions/odm/ecobay.html">Ecobay</option>
    > </select>
    > </form>
    > <iframe src="/solutions/odm/blank.html" id="odmframe"
    frameborder="0"
    > style="width:650px; height:500px;"></iframe>
    >
    > What do I need to do to get this to work in Firefox?
    > Thanks
    > mark
    >

  • Problems submitting form with Adobe Reader X?

    Our agency created a PDF fillable form, and recently three respondants using Adobe Reader X (on PCs) have contacted us to say that the submit button is not working and they are unable to save the contents of the form to a file on their computer.  The Forms Central Forum had said Adobe 8.0 or higher would support the fillable form, so we are surprised to be running into this.  Has anyone else encountered this problem and found the solution?  Is there a step we are missing?  Thank you!

    @melissasnider : make sure that the form filler are using Adobe Acrobat, Adobe Reader or Acrobat Mobile to fill up the form.  Any other PDF viewers doesn't support the submission functionality. More information can be found here : http://forums.adobe.com/docs/DOC-2653.
    Hope this helps
    Gen

  • Submitting Form with Return Key?

    I have a form at www.bsatshirts.com login page that will not allow logging in without clicking the login button.  The question I have is; is there a way to set the return key to submit the form as well as hitting the login button? I look forward to any solution, or help that can be offered.  Thank you.  the code is as follows:
    Login to your account below
            or<br />
            <a href="http://www.bsatshirts.com/store/pc/form.html">create a new account.</a><br />
            User Name
            <input type="text" name="LoginEmail" size="12" />
            Password</span>
            <input type="password" name="LoginPassword" size="12" />
            <input name="PassWordExists" type="hidden" value="YES" />
                            <a href="JavaScript:document.login.submit();"><img src="images/login.gif" alt="" border="0" /></a>
            <input type="hidden" name="SubmitCO.y" value="1" />
            </h5>
        </form>

    your form uses javascript to make the click of an image submit the form. Use submit input type to have the return key submit the form:
    <input type="submit" value="login" />

  • Submiting HTML Forms with JavaFX Webview

    I've long been searching for a good web robot framework. And I also need a gui for my robot.
    So w/ the advent of JAVAFX Webengine it seemed my needs have been met finally. Specially because on the webview tutorial here , Alla Redko says: "+It supports user interaction such as navigating links *and submitting HTML forms*+".
    But after looking at the api it doesn't seem that webengine supports submiting forms, only loading pages w/ the load() method. I guess I could populate the form fields and submit them w/ executeScript() but that's just sloppy.
    Is there a way to actually submit forms w/ webengine? Are there plans to implement this feature, analogous to the load() method?
    Thanks,
    JC

    Yea, as I mentioned in the first post, I could do all that w/ JS but it's just sloppy, since I'm using Java language, not JS.
    The finding certain fields part is easy w/ the Document model and xpath, it's the populating the fields and submiting the form along w/ its hidden input fields that is the missing part.
    Does anyone know if these things are planned for the future of Webview/Webengine?You can already do this in Java today using the existing APIs if you so wished.
    import javafx.application.Application;
    import javafx.beans.property.*;
    import javafx.beans.value.*;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.*;
    import javafx.scene.layout.*;
    import javafx.scene.web.*;
    import javafx.stage.Stage;
    import org.w3c.dom.*;
    import org.w3c.dom.html.*;
    public class WebViewFormPost extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(Stage stage) {
        final TextField fxUsername = new TextField();
        final TextField fxPassword = new PasswordField();
        final BooleanProperty loginAttempted = new SimpleBooleanProperty(false);
        final WebView webView = new WebView();
        final WebEngine engine = webView.getEngine();
        engine.documentProperty().addListener(new ChangeListener<Document>() {
          @Override public void changed(ObservableValue<? extends Document> ov, Document oldDoc, Document doc) {
            if (doc != null && !loginAttempted.get()) {
              if (doc.getElementsByTagName("form").getLength() > 0) {
                HTMLFormElement form = (HTMLFormElement) doc.getElementsByTagName("form").item(0);
                if ("/oam/server/sso/auth_cred_submit".equals(form.getAttribute("action"))) {
                  HTMLInputElement username = null;
                  HTMLInputElement password = null;
                  NodeList nodes = form.getElementsByTagName("input");
                  for (int i = 0; i < nodes.getLength(); i++) {
                    HTMLInputElement input = (HTMLInputElement) nodes.item(i);
                    switch (input.getName()) {
                      case "ssousername":
                        username = input;
                        break;
                      case "password":
                        password = input;
                        break;
                  if (username != null && password != null) {
                    loginAttempted.set(true);
                    username.setValue(fxUsername.getText());
                    password.setValue(fxPassword.getText());
                    form.submit();
                    System.out.println("Submitted login for user: " + username);
        engine.getLoadWorker().exceptionProperty().addListener(new ChangeListener<Throwable>() {
          @Override public void changed(ObservableValue<? extends Throwable> ov, Throwable oldException, Throwable exception) {
            System.out.println("Load Exception: " + exception);
        GridPane inputGrid = new GridPane();
        inputGrid.setHgap(10);
        inputGrid.setVgap(10);
        inputGrid.addRow(0, new Label("Username: "), fxUsername);
        inputGrid.addRow(0, new Label("Password: "), fxPassword);
        Button fxLoginButton = new Button("Login to Oracle Forums");
        fxLoginButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override public void handle(ActionEvent t) {
            if (notEmpty(fxPassword.getText()) && notEmpty(fxPassword.getText())) {
              loginAttempted.set(false);
              engine.load("https://forums.oracle.com/forums/login!withRedirect.jspa");
        final VBox layout = new VBox(10);
        layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 10;");
        layout.getChildren().addAll(
          new Label("Enter your Oracle Web Account credentials"),
          inputGrid,
          fxLoginButton,
          webView
        stage.setScene(new Scene(layout));
        stage.show();
      private boolean notEmpty(String s) {
        return s != null && !"".equals(s);
    }Personally, I think using JavaScript via engine.executeScript calls in combination with jquery might be a less messy solution (as I don't like writing against the raw dom apis), but I understand that there are valid reasons why you might prefer to use a Java only solution.
    https://gist.github.com/jewelsea/3077942 "Embeds jQuery in a document loaded into a WebView."

  • Email with attachement as pdf of submitted form

    Hi all,
    Can anyone suggest me how to get an email as an acknowledge ment with the submiteed form as an pdf format.?
    I want to get an acknowledgement mail after submitting the form through the work space..
    and email should contain the submitted form as an attachment in a PDF format
    Please assist...
    Thank you

    You can add an email submit button in your form to achieve this.
    Check this - http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000323.html and http://help.adobe.com/en_US/livecycle/10.0/DesignerHelp/WS107c29ade9134a2c5324ea7712a81c8d a6b-8000.html
    Som more pointers which could help
    https://groups.google.com/forum/#!topic/livecycle/81OXCQfsNys
    http://livecycleapps.wordpress.com/2008/07/28/a-submit-button-that-will-send-an-entire-pdf /
    ~ Varun

  • Bug: 4.1.1 Tabular form with all columns conditional

    I need to make all the columns in a tabular form conditional because in some situations the editable elements should not be shown. For some reason just changing the columns to conditional stops the form working, the ApplyMRU/ApplyMRD process runs but does not action the changed rows. I can't figure out why at all or any workaround.
    You can easily reproduce this in 4.1.1 by creating a tabular form with the wizard selecting one column in the form. Then make the row selector colunn and your editable column conditional using the plsql expression 1=1. The form is displayed the just the same with these true conditions but it doesn't work. How weird is that?
    Rod West

    Rod,
    In your scenario the tabular form rendering engine is unable to place the hidden, internal tabular form status columns in your form, i.e. the columns that contain checksums, etc. The logic that places these columns looks for the last unconditional, visible column in your tabular form, and includes the hidden fields there. So you need at least one column that's always shown for this to work. This can be an otherwise empty column. I filed a bug (#13881803) for this, so we can look into improving this logic.
    Regards,
    Marc

  • Submiting reports with copies option from forms

    Hi ,
    I am submitting a report from the form with copies = 3 , but the copies are printed 3x3 = 9.
    Does any one know why it is printing 3 x 3 instead of 3
    the code is as follows:-
    IF par_destination = 'PRINTER' THEN
         SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESTYPE,PRINTER);
         SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESFORMAT, v_desformat);
         SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESNAME, par_printer_name);
    ELSE
         SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESTYPE,CACHE);
         SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_DESFORMAT, v_desformat);
    END IF;
         SELECT substr(par_rep_filename,1,instr(par_rep_filename,'.')-1) || '-' || v_next_reqno
         || '.' || DECODE(v_desformat, 'dflt', 'lst', 'wide', 'lst', v_desformat)
         INTO v_rep_output_filename
         FROM DUAL;
    v_file_path := v_file_path || v_rep_output_filename;
    v_url_path := v_url_path || v_rep_output_filename;
    SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_SERVER, v_repserver);
    v_report_other_params := 'mode='||v_mode || ' orientation='||par_orientation || ' paramform=no'
    ||' copies='||3||' blankpages=no'
    || ' ' || par_rep_user_params;
    message('other value -'||v_report_other_params);
    SET_REPORT_OBJECT_PROPERTY(v_repid,REPORT_OTHER, v_report_other_params);
    v_rep_instance := RUN_REPORT_OBJECT(v_repid);
    Please could some one help me with this.
    Thanks
    Bain

    Hi,
    if copies='||3||' isn't the problem, as it should be 'copies=3' then I would check the user parameters you append at the end.
    Frank

  • Submitting a form with an anchor tag

    How could I do this? I'm using a self submitting html form with JSP. I want an anchor tag to send some parameters to update the content of the page.

    Hi,
    You can use query string to pass the parameter values to the page.
    Ex:
    firstname and secondname are the two parameter values which you can pass it to the page.
    <ahref=http://website2.com/action?val1=' firstname' & val2='secondname'> Page2</a>
    if you click on the 'Page2' then those values are pass to the corresponding page
    Regards
    Reegan

Maybe you are looking for

  • Can no longer play .mpg files

    I just noticed this. iTunes will not play any .mpg files on my Intel Mini runing SnowLeopard. I don't know if this is confined to video files or not. I have iTunes 9. whatever, it's the latest. The same files play fine in Leopard on my G5 Tower in th

  • Convert a webpage to PDF ,the Arabic font does not display ie,blank

    When I trying to convert a webpage to PDF ,the Arabic font does not display ie,blank.how to solve this problem.

  • Adobe Reader X / Windows 7: "Internal error occurred"

    I installed Adobe Reader X for my Windows 7 OS, but each time I attempt to open it I receive an error message: "internal error occurred." There are two (2) user accounts, but only my user account is affected.

  • How to map development object with quality object

    Hi    I have problem regarding to mapping development object with quality  object  i.e the  development object will be order_dev  and quality object will be order_ qa ..i have to map this two wat is the process.. thanku

  • RFC APIS

    Please send some exmple ABAP program to expose a set of RFC Apis for accesing the function from a remote machine. The RFC API can take necessary parameters such as SAP device name, LOMS name and . The new RFC should work on both on Netweaver and R/3