This.submitForm posting twice !!!

Environment:
Acrobat Pro 9 with LifeCycle Designer ES 8.2
OS - Windows 2003
ToolKit used - Adding Javascript using PDFNet toolkit
Control - Adding Javascript to "Button" Control
Event - MouseDown [also tried with MouseUp]
Symptoms: this.submitForm action posting the form data twice, other actions like app.alert('testing'); displays only one time.
this.submitForm({
cURL: "/testPage.aspx?IsXML=true#FDF",
cSubmitAs: "XML",
cCharset: "utf-8"
How to aviod double post back? Eagerly waiting for the answer.
Thank You
inath

Hi Paul,
Thanks for your reply.
Intially we had Button Control Submit Url and Submit type properties setup in LC Designer (allowed to edit only button properties in LC designer).
(using button control to receive xml form data, whereas http submit button posting FDF format)
Based on our requirement we are not allowed to edit/modify the pdf document in life cycle designer to add javascript for validation, navigation control and etc. So we adopted pdfnet toolkit to inject javascript into pdf document to meet our client side requirement. Using this tool, adding javascript to radio button group need to be refresh the field (RefreshFieldAppearence()) then only JScript trigger event will take place into action. When I use this method submit button is not triggering (not posting to the URL), alternate solution would be injecting JavaScript to button control to post document data to the server and noticed this.submitForm posting twice.
Is there a way to notify the Event Manager or button control to post the document only once using javascript?
-regards
inath

Similar Messages

  • Genius can compile list but cannot locate songs from folder, any tips, sorry if this is posted twice, I'm very new

    Hi All
    Another atttempt at question, I'm new at this
    New computer, downloaded Itunes 10.5 imported songs from old folder from portable harddrive, all's well music plays, genius can compile list but can"t locate files from folder, I can do it 1 by 1 but it's very slow any suggestions
    regards
    Richard
    thanks

    I'm not certain, but it sounds like you are describing missing file syndrome where tracks show up with exclamation marks...
    This normally happens if the file is no longer where iTunes expects to find it. It may be a by-product of the way you moved the library. Other possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • This.submitForm fails to download target document

    after some probs with certificate installation (http://www.adobeforums.com/webx/.59b87b22/3) I can now successfully submit form information via this.submitForm in a Linux (Ubuntu) environment.
    I had a problem where the following was displayed: "Cannot process response due to unknown content type". This was a MIME issue: running install_browser_plugin resolved this: I ensured the plugin was present in firefox. I also attempted to open an fdf via firefox and this routes correctly to Acrobat and displays a pdf.
    The problem I am experiencing now is when submitting I get the following messages displayed:
    1. Preparing for Submit.
    2. Sending/Receiving data
    3. Download target document...
    The target document is never downloaded and I cannot view the success/failure response.
    What am I doing wrong?

    As per confirmation from Ben, this issue is solved now. In essence, it was same as SSL Issue reported earlier by Ben.
    Confirmation comments -    "Now I can submit and receive responses from Linux. You have resolved this problem!"
    A workaround has been posted at http://blogs.adobe.com/acroread/  ( SSL Error on Linux Reader - Resolution)
    Thanks,
    Vaibhav

  • PayPal IPN Posting Twice

    I have a test page called order.cfm. This page posts to
    PayPal for payments. I have a file called ipn.cfm which waits for
    PayPals verification. However, it is being executed twice. The
    first time through it has all the form variables, but the sencond
    time it does not. How can I stop it from being posted twice. Below
    is my code:
    ORDER.CFM
    <form action="https://www.paypal.com/cgi-bin/webscr"
    method="post">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="upload" value="1">
    <input type="hidden" name="business"
    value="mybusiness@mybusinesscom">
    <input type="hidden" name="item_name_1" value="Item Name
    1">
    <input type="hidden" name="amount_1" value="0.01">
    <input type="hidden" name="invoice" value="101">
    <input type="hidden" name="tax_cart" value="0.00">
    <input type="hidden" name="shipping" value="0.00">
    <input type="submit" value="PayPal">
    </form>
    IPN.CFM
    <cfheader statuscode="200" statustext="OK">
    <cffile action="append"
    file="#GetDirectoryFromPath(GetBaseTemplatePath())#IPN_log.txt"
    output="THIS PAGE HAS BEEN CALLED ON
    #DateFormat(Now(),'mm/dd/yyyy') & TimeFormat(Now(), '
    hh:mm:ss')#" addnewline="yes">
    <cfset x = GetHttpRequestData()>
    <cfset str="cmd=_notify-validate&" & x.content>
    <!---post back to PayPal for validation--->
    <cfhttp url="https://www.paypal.com/cgi-bin/webscr?#str#"
    method="GET" resolveurl="no">
    </cfhttp>
    <cffile action="append"
    file="#GetDirectoryFromPath(GetBaseTemplatePath())#IPN_log.txt"
    output="
    Paypal Says the transaction is: #CFHTTP.FileContent#
    Transaction status: #FORM.payment_status#
    Seller account: #FORM.RECEIVER_EMAIL#
    addnewline="yes">
    <cfloop index="TheField" list="#Form.FieldNames#">
    <cfset str = str &
    "#LCase(TheField)#=#URLEncodedFormat(Form[TheField])#">
    <cffile action="append"
    file="#GetDirectoryFromPath(GetBaseTemplatePath())#IPN_log.txt"
    output="#LCase(TheField)#----#(Form[TheField])#"
    addnewline="yes">
    </cfloop>
    <cfoutput>
    <!--- Payment verified --->
    <cfif CFHTTP.FileContent is "VERIFIED">
    VERIFIED<br />
    <!-- check that payment_status=Completed -->
    <cfif FORM.payment_status eq "Completed">
    Completed<br />
    <!-- check that receiver_email is your email address
    (that money went into your account -->
    <cfif FORM.RECEIVER_EMAIL eq
    "[email protected]">
    Paypal says the funds went into your account<br />
    <!--- Everything checked ok, add your action here
    (typically you would want to update your database here --->
    <cfelse>
    <!--- The receiver email doesn't match. Log this as
    possible fraud --->
    The receiver email, #FORM.RECEIVER_EMAIL#, doesn't match.
    </cfif>
    </cfif>
    <cfelseif CFHTTP.FileContent is "INVALID">
    <!-- The information is not valid, please investigate and
    trace invalid info -->
    Invalid Info<br />
    <!---Something that was purchased was invalid, either the
    order or the information provided. This is usually good to log in
    case someone is trying to purchase with stolen card numbers, etc.
    Here simply place a QUERY tag that insert the data above into a
    database.--->
    <cfelse>
    Error<br />
    <!-- ERROR -->
    <!---This usually means that something went wrong along
    the way, you can use this area to log it and keep for your
    records.--->
    </cfif>
    </cfoutput>

    What do you mean about entering details again, do you mean when they are on paypal?

  • Duty Posting has been posted twice

    Hello Experts,
    The start of Debugging Phase will be on Create Billing Document VF01.
    The issue of the user lies on the Accounting Document created upon Billing. On the Document Flow the Accounts were posted twice having the same Assignment Field.
    Instead of Reversing the Account, the system had double post the SIT Duty Account and COS Excise Duty.
    The expected outcome should be:
    50 MK1 22051 SITDutyUp Wh Spirit 34787653 -10,087.50 GBP
    40 MK1 45000 COS Excise Duty     34787653  10,087.50 GBP
    40 MK1 22051 SITDutyUp Wh Spirit 34787653 -10,087.50 GBP
    50 MK1 45000 COS Excise Duty     34787653  10,087.50 GBP
    And not: 
    50 MK1 22051 SITDutyUp Wh Spirit 34787653 -10,087.50 GBP
    40 MK1 45000 COS Excise Duty     34787653  10,087.50 GBP
    50 MK1 22051 SITDutyUp Wh Spirit 34787653 -10,087.50 GBP
    40 MK1 45000 COS Excise Duty     34787653  10,087.50 GBP
    Where can i start debugging this?what specific user exit can i debug to trace the problem.
    I appreciate your help guys
    Thanks!

    Dear Jan,
    Please do settings as per below SAP Note:
    *Note 551932 - Cancellation of Billing with Excise invoice
    Note Language: English Version: 2 Validity: Valid from 05.09.2002*
    Summary
    Symptom
    When a billing document is cancelled, the attached excise invoice also gets
    reversed. Again the user can go and cancel the excise invoice independently
    through CIN making double accounting of the reversal.
    More Terms
    Excise invoice, Cancellation of excise invoice, j1iH, VF11
    Cause and Prerequisites
    This is because of the new cancellation procedure of the billing.
    This happens because the accounting document for Excise invoice posting is
    linked to the document flow of SD. So when you cancel the billing all the
    related accounting documents are reversed.
    Solution
    This is because of the new Billing cancellation procedure. You have to
    implement the userexit mentioned in note 339928. This will ensure that the
    cancellation of excise invoice works as it used to do before the new
    cancellation procedure.
    In the userexit userexit_fll_xkomk1 in function rv_accounting_document
    create add the code attached below. The userexit is in rv60bfza. This will
    not get overwritten in upgrades.
    FORM USEREXIT_FILL_XKOMK1.
    rule_new_cancel = 'A'.
    ENDFORM.
    This will ensure that excise invoice related accounting document is not
    reversed at the time of billing. You may use the existing functionality to
    cancel the excise invoice
    *Related NotesNumber Short Text
    339928 New cancellation procedure cannot be deactivated*
    Regards,
    Barathi S.

  • This.submitForm() -- problem with my cgi script

    Thanks to George Johnson for an earlier answer to a related issue with this.submitForm.
    I am trying to use this.submitForm as per Example 1 on p. 348 of "JavaScript for Acrobat API Reference" document.
    To avoid any restrictions with my web hosting service, I am using the following JavaScript (on my form's Submit button) on my local XAMPP server:
    this.submitForm ("./cgi-bin/myscript.cgi");
    My question involves what should be in the myscript.cgi file before I submit to it.  If there is no file to start with, the
    submission will result in a "File not found" error.  So I guess I need the myscript.cgi file in the cgi-bin folder to begin with.
    When I put in a blank myscript.cgi file in that folder (hoping the submission will overwrite it), I can the following message:
    Server error!  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or
    there was an error in a CGI script.
    Can you tell me what is happening?  What should my original myscript.cgi have in it, if anything?

    Thanks for responding.
    I want CGI script to processes the incoming data from the PDF form submission. I want that process to save the FDF to a file on the server. 
    I also understand that the script has to return a response to the client.  I would like to send some kind of confirmation to the client.
    I realize that writing scripts isn't rocket science, but it would seem that Adobe would have some examples of scripts that deal specifically with fdf data.  Could you point me to any examples?

  • HT5622 This has happened twice now but when getting games it gives me no option to put password in. Please help

    This has happened twice now but when getting games it gives me no option to put password in. Please help

    Reset the network settings in Settings/General/Reset and you'll be able again to put in your password.
    Remember that this will reset the passwords for all networks you connected to up to this point.

  • Possible security problem with my iPhone4, it seems like it has been hacked into and my hotmail, facebook and university accounts (which all have different passwords) and proceed to change my passwords on me. This has happened twice.

    I seem to be having security problems with my iPhone4, it seems like someone has hacked into my hotmail, facebook and university accounts (which all have different passwords) and proceed to change my passwords on me. This has happened twice and I have not left my phone unattended at any time that I can recall nor have I accessed these accounts from another source (i.e. computer/laptop) since changing my passwords after the first hacking occurred. Please help.

    Anyone else at your university complaining about the same thing?  It is more likely someone is stealing passwords by sniffing traffic over the university wifi or with a man-in-the-middle attack or by other means external to your phone.  Try a Google search on "steal password" (without quotes) or "steal SSL password" and you'll learn more than you wanted to know about how passwords get stolen.
    Some related info:
    http://en.wikipedia.org/wiki/Session_hijacking
    http://en.wikipedia.org/wiki/Man-in-the-middle_attack

  • IPod Shuffle green/yellow flashing  APPLE READ THIS AND POST IT!!!

    This was posted by ipod user pcgoddess and this is the only way I got my ipod shuffle to work. It would not play it would just blink green and orange. Apple couldn't even put up a solution on their own website. If I were Apple I would be embarrassed.
    "After searching high and low, I found a solution in another chat area. It takes a few minutes, but it works.
    Place the Shuffle in your PCs USB.
    A dialog box may pop up. Do not click it.
    Do not click any dialog which pops up asking if you want to put songs from this pc onto this ipod, deleting the old ones.
    Click edit, preferences, then select the "ipod" tab.
    Check the box "enable disk use".
    Move the slider to the right so that it is set to more data (maximum), and 0 songs.
    Click ok.
    Right click your start button and select "Explore".
    Navitage to My Computer, and then seek the drive which represents the shuffle.
    Right click the drive and select format.
    Leave the options as they are.
    Click Start.
    After formatting, click eject ipod (icon in the bottom right of the itunes window).
    Remove the shuffle.
    Re-insert the shuffle. "

    nice try but that doesnt work... i had to return mine and the very same day the new one broke! this product is all around crappy...
    This was posted by ipod user pcgoddess and this is
    the only way I got my ipod shuffle to work. It would
    not play it would just blink green and orange. Apple
    couldn't even put up a solution on their own website.
    If I were Apple I would be embarrassed.
    "After searching high and low, I found a solution in
    another chat area. It takes a few minutes, but it
    works.
    Place the Shuffle in your PCs USB.
    A dialog box may pop up. Do not click it.
    Do not click any dialog which pops up asking if you
    want to put songs from this pc onto this ipod,
    deleting the old ones.
    Click edit, preferences, then select the "ipod" tab.
    Check the box "enable disk use".
    Move the slider to the right so that it is set to
    more data (maximum), and 0 songs.
    Click ok.
    Right click your start button and select "Explore".
    Navitage to My Computer, and then seek the drive
    which represents the shuffle.
    Right click the drive and select format.
    Leave the options as they are.
    Click Start.
    After formatting, click eject ipod (icon in the
    bottom right of the itunes window).
    Remove the shuffle.
    Re-insert the shuffle. "

  • HT3910 I am selling my Macbook Air 2008 and need to reformat it back to it's factory settings.  I've been reading the help but I don't seem to have a re-install drive for the USB port.  Is this something post 2008 or can I get one from somewhere?

    I am selling my Macbook Air 2008 and need to reformat it back to it's factory settings.  I've been reading the help but I don't seem to have a re-install drive for the USB port.  Is this something post 2008 or can I get one from somewhere?

    Hey Stella,
    Welcome to Apple Support Communities, and thanks for the question! I'd read through the following article before selling your Mac - it'll include instructions on how to reformat your hard drive:
    What to do before selling or giving away your Mac
    http://support.apple.com/kb/HT5189
    All the best,
    David

  • Colors Screwed Up (sorry if this posted twice)

    Last time I clicked post nothing happened so I'm not sure if this posted.
    Anyway, the light blue color used in Aqua in places like iChat buddylists (bg of every other person on list), Mail Sidebar, Aquasition........, for some reason used in color labels in finder, and other apps has somehow been replaced with ugly, plain old cyan.
    http://img419.imageshack.us/my.php?image=colorscrewupza6.png <-- Note that some of the parts of this picture are screwed up only because of poor quality. (sorry about that.) Those icons aren't messed up. Aquasition is a good example though, because it shows three common places where the color is used. 1)sidebars 2)lists 3)mixing colors (shown with that ad at the bottom which should be orange.)
    Things that led up to my problem are:
    1. Yesterday things were crashing and in the error message the unselected buttons were just like text; the button part was missing. *fixed after restart
    2. desktop icons weren't showing up until highlighted or single clicked. *fixed after restart.

    This is only in my account. I created a test account and everything is fine.
    In that case, it's very likely a corrupt preference file. Try deleting the following files from the ~/Library/Preferences/ folder in your user account.
    com.apple.desktop.plist
    com.apple.finder.plist
    com.apple.systempreferences.plist
    Actually, you could move those three items to the desktop. Restart and see if it fixes things. If not, you can then move them back and replace the new ones that were created. If it does fix things, you'll have to check and see if some of your other custom settings changed in the System Preferences, as the one .plist holds various settings.

  • F.05- Exchange  diff amnt getting posted twice in the same period

    We have an issue relating to the F.05 job run in SAP. This T-code will revaluate all the forex transactions to the specified rate only once during the month and post the differential entry to ensure that all the balances are restated.
    During the month of Mar 08, while we processed the F.05, we were not able to take the download in excel and hence we again processed F.05 inorder to extract the report. While we processed again F.05, the system has again posted another entry in SAP for the same amount as earlier.
    I am explaning with an example as below :
    First Run : System Entry
    Dr. Exch Difference Rs. 200
    Cr. Revaluation A/c Rs.(200)
    Second Run : System Entry
    Dr. Exch Difference Rs. 200
    Cr. Revaluation A/c Rs.(200)
    Net Imapact
    Dr. Exch Difference Rs. 400
    Cr. Revaluation A/c Rs.(400)
    Based on the above example, the system has processed the F.05 run twice and posted the amounts double. Let us know whether the F.05 needs to be processed only once a month (if yes, then how do we extract a report if needed later), or can we process multiple times in a month (in that case, there shouldn't be additional entries posted).

    Hi,
    Usually, F.05 only run once per month or per quarter. There are two kinds of FX run,
    1) balance sheet preparation valuation, it was selected if you check the box in the posting page. System would generate the FX posting, plus write a FX difference amount to each open item. And when you run the transaction 2nd time in next month, only the difference between 1st and 2nd time would be posted. Let's say if next month has the same valuation rate as 1st time, then, it would not have postings generated.
    2) Valuation without open item flagged, system would valuate the open items all the time as new, there is no flag in the open item which has been valuated. Therefore, every time when you run the valuation and postings would be generated no matter your valuation rate has been changed or not. And usually, would reverse the postings on the 1st day of next period.
    In your case, I think you are running the 2nd type since you have 2nd batch of postings generated which have the same value as the first one. Please check whether it is correct, because it would have different correction handling for each type.
    If you are the 2nd type, just simply reverse one of the batches documents by F.80 is ok.
    Regards,

  • Posting twice on JSSE socket

    Has anyone run into a problem of a POST request being sent twice on one call - the first time the data is sent without request for authorization and the second time with authorization information.
    Using a net mon I see the two Posts in different frames which besides confusing Oblix is a performance drag.
    Am using jdk 1.3x and the JSSE 1.0.3
    thanks

    The following has worked for me in the past:  URL orderURL = new URL(reqStr);
      HttpURLConnection cnx = (HttpURLConnection) orderURL.openConnection();
      cnx.setRequestMethod("POST");
      cnx.setRequestProperty("User-Agent", USER_AGENT);
      cnx.setRequestProperty("Content-length", _len);
      cnx.setRequestProperty("Authorization", "Basic " + _digestAuth);
      cnx.setDoInput(true);
      cnx.setDoOutput(true);
      cnx.connect();Replace "_digestAuth" with the Base64'd string of userid:pwd. Fill in "USER_AGENT" with whatever floats your boat. Make sure "_len" accurately represents the length of your content in bytes. Note that I use this for an HTTPS URL - but since I'm not trying to do anything HTTPS-specific with it, I only treat it as an HttpURLConnection.
    Since it hits the server with the uid:pwd already in place, I don't get the 403.
    Grant

  • Screen frozen, I have this screen frozen twice on my screen.

    I have a screen frozen on my computer screen twice. It says"All your music in one place" I was trying to download i tunes again and this came up as part of the process. It isn't progressing. I cannot cancel, it close it or even copy it to show you what it looks like. What is it, or how can I get rid of it.

    I don't know why your iGoogle page that worked with 3.6 would not work with 4.0. I assume iGoogle is important, but to get you some use of the browser, you might want to switch to a blank (or some other) home page.
    Try starting up from a link (e.g., in a document, PDF, or email message) or a shortcut (e.g., something you have saved on your desktop or something in your IE Favorites folder. Once you hit that page, go to
    Tools > Options > General
    and change your home page.
    Hopefully you can solve the iGoogle problem. If not and you want to roll back to Fx 3.6:
    First, make a backup of your computer for safekeeping. To back up Firefox, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, download and save Firefox 3.6 to your desktop for future installation. http://www.mozilla.com/firefox/all-older
    Close Firefox 4, and uninstall it. Do not remove your personal data and settings, just the program.
    Then finally you can reinstall Firefox 3.6. Unless you have installed an incompatible add-on, it should pick up where you left off. If there are serious issues, please post back with details.
    Note: I haven't actually tried this myself!

  • Messages posted twice - ALWAYS

    My boss is getting all her emails twice? Is there a setting that is causing this to happen? I have her email being retreived on 3 computers but I don't think that would be a problem. Also sometimes Mail does make us enter our passwords multiple times. Until we restart our computers sometimes.

    .oO(iigot2bme)
    >I am getting ready to post my own art work on my web site
    and would like to
    >copyright my images.
    Your images are protected by copyright already.
    >Using a watermark isn't an option at this time.
    It's your best option. Use it.
    >I do have
    >the Java Script code to disable the right-click on a page
    Impossible. Modern browsers will prevent that.
    >but I have no idea
    >where to put it in the code.
    Please look through the archive of this group, this issue was
    discussed
    often enough. In short - there's always only one answer:
    Don't do it.
    > Also, I was told that a better option was to place the
    image in the background
    >of a cell and layer a transparent image on top so that if
    someone right-clicks
    >to save, they get an empty white box. How would I go
    about doing this? I know
    >you would use an HTML wrapper, but I can't figure out
    how.
    Why do so many people always want to make things much more
    complicated
    for their visitors than they have to be?
    > I'm also open to any other suggestions.
    What about
    <img src="/path/to/your/image.jpg" alt="..."
    title="...">
    Nice, clean, userfriendly, reliable. That's how it's supposed
    to be.
    Micha

Maybe you are looking for