Converting HTML form to Flash for Paypal!

Hello! Im currently in the process of converting my HTML website to Flash. On my website, i am using Paypal buttons (add to cart) so now i need to convert my 3 buttons/form to Flash. Here is my website: http://www.tubesjujubes.com/En/buyonline.html
I found this tutorial to help me: http://www.actionscript.org/resource...ash/Page1.html
but something is still wrong! Everytime i click on the button, it brings me to the log in page of Paypal instead of 'your cart' page. See HTML site for what i mean.
Ive only tried the tutorial on one button so far since i wanted it to work before i applied it to the others. This is the HTML code on my website for my first button:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="1699962" />
<input type="hidden" name="on0" value="Choose your membership" />Choose your membership:
<select name="os0">
<option value="1 kid + 1 parent">1 kid + 1 parent $99.00
</option><option value="2 kids + 2 parents">2 kids + 2 parents $178.00
</option></select>
<br /><br />
<input type="hidden" name="currency_code" value="CAD" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
Now this is how i created my form/button in flash:
Every component and input box are on the same layer.
The actions are on a separate action layer.
I create a ComboBox for my choices with an instance name of 'os0'. I imported the button img, converted it to a button and called it 'submit'. For the action of the button, i used: on (release) {
getURL ("https://www.paypal.com/cgi-bin/webscr", "POST");
Then i created 4 hidden input box, that i placed outside of the scene. I gave them a var title, using the 'name' from the HTML code and then added the values for each input box on the action layer like this:
cmd = "_s-xclick";
hosted_button_id = "1700073";
on0 = "Choose your membership";
currency_code = "CAD";
And its still wont work! And i have no clue what im doing wrong! PLEASE HELP!

I was able to figure out how to get my btn to redirect to my shopping cart. Basically, you just need to make sure everything is on the btn action layer. At first i have my hidden values on a action layer in the main page and the getURL my btn layer. Now my btn layer looks like this:
on (release) {
// Hidden Input fields for Form
cmd = "_s-xclick";
hosted_button_id = "1699962";
on0 = "Choose your membership";
currency_code = "CAD";
getURL ("https://www.paypal.com/cgi-bin/webscr", target="paypal", "POST");
Now my problem is that the values of my combo box arent read and i have no idea how to code it. Can anyone help me with this? Should i code it in actionscript or can i just do it in property inspector box? I know what the problem is but i dont know how to fix it! My button is missing some coding since its not picking up the values of the combo box.
Anything could help! Thanks!

Similar Messages

  • Re-build HTML Form in Flash?

    Hi
    Wonder if someone can help. Please excuse my incompetence, I am fairly new to Flash / Actionscript
    Basically I am trying to re-build this simple HTML form in Flash, I have not shown the actual URL here, but this is a functioning form when the correct URL is in place:
    <form action="http://www.customersURLhere/" method="post">
      <input type="text" name="vrm"/>
      <input type="submit" value="go"/>
      <input type="hidden" name="update" value="false"/>
      <input type="hidden" name="source" value="aexp"/>
      <input type="hidden" name="supplier" value="AEMP" />
    </form>
    I have attempted to re-build this in flash. I have 1 text input field which I have set the variable name to 'vrm' to match the input field above. I then created a basic flash button and set the following action:
    on (release) {update = "false";source = "aexp";
    supplier = "AEMP";
    getURL ("http://www.customersURLhere", "", "POST");
    Can anyone spot any obvious errors???
    Any help would really be appreciated.

    Thanks for your help.
    Unfortunately I am still struggling to get this to work.
    I have applied your script to the button, is that correct? (The button is on it's own layer and has one keyframe at the start or the movie.)
    Do I need to label/name the button 'submitBtn' in some way?
    You added a comment '//do whatever'... do I need to add something here?
    Sorry, I'm a complete novice!!

  • HTML form over Flash bkd in Safari

    Hi, I've got a site which uses an animated Flash background
    element which is overlayed with a div containing an HTML form. It
    works fine in every browser I have, except Safari. In Safari, as
    soon as I click in the form, the entire HTML content of the page
    disappears. The form and links will still function, but are
    invisible.
    Does anyone know about this problem? Is there a workaround,
    or am I doing something wrong?
    The page is
    here.
    Please note that the site is in a pretty early stage of
    development, and not a lot of it works, but at least it
    demonstrates the Safari problem.
    Thanks!
    Michael

    i got someone to check on safari if their browser needed
    updating for the flash plug-in but it didnt, still no luck with
    this... I think I will try a few things and see what happens, any
    other ideas though, I really can't explain why its doing
    this?

  • Converting html forms to java

    having viewed an earlier post in this forum i managed to create the following code but am having a few problems.
    here are the active parts of the html form on googles search, engine. i am trying to convert this into java form and have so far succeeeded in generating the code shown below, but keep getting the following error
    "IOException; Server returned HTTP response code: 501 for URL: http://www.google.co.uk/search"
    the form:
    <form action=/search name=f>
    <input type=hidden name=hl value=en>
    <input maxlength=2048 size=55 name=q value="" title = "Google Search">
    <input type=submit value="Google Search" name=btnG>
    <input type=submit value="I'm Feeling Lucky" name=btnI>
    </form>
    in the following code baseURL is the domain of the server... in this case http://www.google.co.uk/, method is the method as defined in the form method attirbute, if the attribute is not there, as in this form the default method is called which is GET
                URL url;
                HttpURLConnection urlConn;
                DataOutputStream printout;
                BufferedReader input;
                if(action.startsWith("http")) {
                    url = new URL(action);
                } else if(action.startsWith("/")) {
                    url = new URL(baseURL+action.substring(1,action.length()));
                } else {
                    url = new URL(baseURL+action);
                urlConn = (HttpURLConnection) url.openConnection();
                urlConn.setDoInput(true);
                urlConn.setDoOutput(true);
                urlConn.setUseCaches(false);
                //      set request method
                urlConn.setRequestMethod(method);
                //      set request type
                urlConn.setRequestProperty("Content-Type",
                        "application/x-www-form-urlencoded");
                //       data-value pairs are separated by &
                String content ="hl=en&q="
                // imitate someone searching for "hello" in i feel lucky
                content+="hello&btnI=I'm Feeling Lucky";
                urlConn.setRequestProperty("Content-Length", content.length() + "");
                //       Send POST output.
                printout = new DataOutputStream(urlConn.getOutputStream());
                printout.writeBytes(content);
                printout.flush();
                printout.close();
                //       Get response data.
                input = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
                String str;
                while (null != ((str = input.readLine())))
                    System.out.println(str);
                input.close();
            } catch (MalformedURLException me) {
                System.err.println("MalformedURLException; " + me);
            } catch (IOException ioe) {
                System.err.println("IOException; " + ioe.getMessage());
                ioe.printStackTrace();
            }i also tried self adding in the question mark that appears after the search text bu again get the same error. any ideas what im doing wrong when connecting to the server? thanks in advance for any help

    Just saw this topic on the forum,
    For each web crawlers the web sites maintain a file called Robots.txt which can be assessed by : http://www.google.co.uk/robots.txt
    You would see following on that file :
    User-agent: *
    Allow: /searchhistory/
    Disallow: /search
    Disallow: /groups
    which means that crawlers are not allowed to scrap this site on search, due to which our code wasnt working
    Thanks

  • Converting HTML Forms to PDF - Field Names

    When I use Adobe 8 to convert and HTML form to PDF all the field names in the resulting PDF have the crazy long names that are jumble of letters and numbers. So I always have to go back through and manually rename every field because I'm using another program to autopopulate the fields with data. Is there any way to get Acrobat to automatically name the fields in the PDF the same as they are named in the form either using the "name" or "id" properties of the HTML fields? I don't understand why this isn't the default behaviour to begin with.

    The reason this is done is due to a fundamental difference between HTML forms and Acrobat forms. In HTML forms, fields with the same name do not necessarily share the same value, whereas in Acrobat forms they do.
    In the conversion process, Acrobat gives each field a unique name, but also sets a field's mapping name to the name the field had in the original HTML form. This is so that if the PDF form is used to submit as "HTML", then the original field names will be used and any server process that is capable of dealing with the HTML form is capable of dealing with the resulting PDF form. So be aware that if you want to use your modified form to submit to a web server using the "HTML" format, the new field names that you set will not be used. What will be used are the hidden mapping names.
    Unfortunately, I don't think there's anything you can do about any of this to make it work like you want.
    George

  • Running Sync BPEL process doesn't show any HTML form /XML source for input

    Hi
    I designed,compiled and deployed SYNC BPEL process on to server
    but when I opened console and try to run the process, it doesn't show any form for input
    Actually it has to take input
    Where I am doing wrong...?
    Thanks for any help...

    Hi Praveen,
    That is correct, you're not doing anything wrong. The BPEL Console doesn't show any forms for testing the services if the service is synchronous.
    I test my synchronous webservices with Eviware SoapUI. This is a freeware tool. Check: http://www.soapui.org/
    Just create a new project in soapUI, create a new request from WSDL, copy and paste the WSDL in soapUI. It will generate a default request for you, which you can edit and execute.
    HTH,
    Bas

  • Regular Expressions for converting HTML to Structured Plain Text

    I'm writing a PL/SQL function that will convert HTML to plain text, but still preserve some of the formatting/line breaks. One of my challenges is in writing a regular expression to capture the text blocks while ignoring the markup. I'm trying to write an expression that will grab all of the text between start/end tags, but discard the tags. For example, to find all of the text between a start/end paragraph, I want to do something like:
    REGEXP_REPLACE('&lt;p style=&quot;text-align:center&#59;&quot;&gt;This is the body of the paragraph&lt;/p&gt;', '&lt;p.*&gt;(.*)&lt;/p&gt;', '\1||v_crlf' )
    where \1 returns the contents of the paragraph and v_crlf (declared earlier in the function) inserts a line break. I know there are more general expressions that will remove all tags, but I want to specifically identify the tags so I can process them appropriately. This way I can easily convert HTML to plain text for email and reporting without having to keep two versions around. Any help would be greatly appreciated. Once I get this worked out, I will repost with the function code for others to use. Thanks.
    Edited by: jritschel on Oct 26, 2010 9:58 AM

    Here's a function I wrote for an app. I'm not making in promises on it's accuracy as the app was just a proof of concept and never made it to production.
    function strip_html( p_clob in clob )
    return clob
    is
        l_out clob;
        l_test  number := 0;
        l_max_loops constant number := 20;
        i   pls_integer := 0;
    begin
        l_out := regexp_replace(p_clob,'<br>|<br />',chr(13)||chr(10),1,0,'imn');
        l_out := regexp_replace(l_out,'<p>',chr(13)||chr(10),1,0,'imn');
        l_out := replace(l_out,'<li>',chr(13)||chr(10)||'*<li>');
        l_out := regexp_replace(l_out,'<b>(.+?)</b>','*\1*',1,0,'imn');
        l_out := regexp_replace(l_out,'<u>(.+?)</u>','_\1_',1,0,'imn');
        loop
            l_test := regexp_instr(l_out,'<([A-Z][A-Z0-9]*)[^>]*>.*?</\1>',1,1,0,'imn');
            exit when l_test = 0 or i > l_max_loops;
            l_out := regexp_replace(l_out,'<([A-Z][A-Z0-9]*)[^>]*>(.*?)</\1>','\2',1,0,'imn');
            i := i + 1;
        end loop;
        return l_out;
    end strip_html;{code}
    The loop is there to handle nested HTML.
    Tyler Muth
    http://tylermuth.wordpress.com
    "Applied Oracle Security: Developing Secure Database and Middleware Environments": http://sn.im/aos.book
    Edited by: Tyler on Oct 26, 2010 10:03 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Render html form & send forms's input values as params via HTTP POST

    Hello,
    I'm using appache commons http client to send HTTP post queries to a given url and receive HTTP response then process it.
    one of the requirements of my Application is the following: one of these HTTP Post requests is supposed to return an HTML form with different html types (text filed, text area etc..) that i will need to display in my swing application. one important requirement is that i can't know in advance what the html form field types will be.. it depends on a given parameters that my application send as part of HTTP Post method (using apache http client).
    I Longly searched for a simple solution to this problem . There are many solutions but each one has it's limitations :
    1-i can render the html form inside a JEditorPane .but how can I collect the user entered data inside JEditorPane ? i'm not sure this swing component offers the capability to detect its html contents and more it will be difficult to know what are the values entered by user inside html form rendered by JEditorPane.
    2-are there any Java Embedded browsers that offer some API to enable me detect the html form fields ,capture the data entered by user inside the html form ?
    3-the solution i currently opted for is : parse html & convert html form to swing dialog. currently this solution i use works well but the cost of implementing it is high : it involves difficult parsing logic. this makes me worried .I'm not sure if i'm now using the right & easiest solution.
    I need some advice on What is the simplest and clean solution to render a html form & yet be able to collect user entered inputs & send the user input values as params via java HTTP POST request ?

    dragzul wrote:
    In my opinion, your actual solution is what you need to do. You're trying to "merge" two different kinds of view. Actually, the "easiest" way may be: if you have your data to display, you decide to show it on html or swing.Yes i believe that my current solution may be the unique one for my special requirements. when doing research about this problem i found a multitude of java libraries to convert xml to swing (ex: www.swixml.org) .However i was surprised there are no java libraries to convert HTML forms to swing dialogs -as far as i know-. this is a bit strange. The Limitation is that the developers of the server API are not Java guys and are reluctant to use an xml format that i can easily convert to swing . probably they have their own reasons as they might be using the HTML Response for some other server side work. So I was obliged to deal with an HTML stream that i need to display in my client application and process its data. in my opinion the only way to do this is by developing a HTML form to swing converter package. that's what i did now. i was only worried if i'm complicating things and if there are some easier solutions to this issue.
    thanks

  • HTML Form Not Displaying Correctly in Outlook 2010 (Exchange 2013)

    Hello,
    I have recently migrated to Exchange 2013. Clients are still using Outlook 2010. There is an application that automatically sends an HTML form by email for the users to fill in. The form consists of radio buttons, text areas and drop down list. However,
    in Outlook 2010, the form is not rendered properly.
    When I clicked the "If there are problems with how this message is displayed, click here to view it in a web browser" link, the email is opened in
    IE and the form is displayed correctly.
    I also tried opening the same email in other clients, such as Thunderbird, Apple Mail Client and in mobile phones - the form is displayed correctly. I wonder
    why it fails to do so in Outlook 2010. The user mentioned that this does not happen in Outlook 2003 and prior to migration (I used Exchange 2010 previously). I have also tried using OWA, but the form does not display correctly
    Any help?
    Note: I can't attach any images or links as it is mentioned that my account is not verified yet. I will post some screenshots when it is possible to do so

    Hi 
    Outlook 2007 or newer use Microsoft Word for their HTML engine.
    You can refer this page http://www.campaignmonitor.com/css/ shows
    many things that do not work in different clients.I think Someone needs to re-code
    the HTML form to make it work in the current versions of Outlook. You can try formatting with text and HTML and see the results.
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
    (MVP)

  • After migration from SP2010 to SP2013 HTML Form Webpart doesnt works

    Hi,
    Before migration to SharePoint 2013, our html form webpart works fine in sharepoint 2010. After migrated our webpart was not working. When we tried to edit the html form webpart , and when we specified apply we got the
    following errors, Cannot retrieve properties at this time, as well cannot save you changes. Can anyone help us to sort this issue.
    Regards
    Nalwyn Nessiah.N

    Hi,
    According to your description, the HTML Form Web Part not working after upgraded to SharePoint 2013.
    What version of IE browser you use?
    Also please try to add a new HTML Form Web Part for a test to see if the issue still exists.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Convert HTML Web form to a PDF

    I have an HTML web form which will be filled out by a user online. Is it possible for me to convert this form and the data which has been filled in by the user to a pdf and save it to a file after the user selects submit?
    Thanks,
    Patti.

    Hi,
    Check out JasperReports / iReport. ( SourceForge )
    Nick

  • Is it possible to create a contact form via Flash cs5.5 and package out app for desktop?

    I need to create a desktop app for windows.  Im using Flash cs5.5 and I wanted to know of an easy to way to create a simple contact form that would work once installed on a desktop/
    Thanks guys for any input!

    If you want a contact form you can either use StageWebView or HTMLLoader to show an HTML page in your web server with a contact form.
    Or you can create the form with Flash textfields and then send the whole thing with a POST request to a PHP script in the server, for example.

  • Strategy for converting HTML mockups to JSF

    This is a summary of our front-end development process:
    - designers create PNG mockups
    - UXers create HTML mockups
    - developers create final JSF
    Now, these HTML mockups are pretty complete. They use all our in-house JavaScript widgets, production CSS files, responsive design, accesibility requirements, SEO-friendly code, proper semantics etc. So basically the final HTML we need from the JSFs has to nail these mockups, otherwise widgets might not work, styles might not appear correctly, accesibility errors might crop in and SEO might suffer. The developers tend to have limited experience in HTML/JavaScript/CSS/accesibility, especially compared to the UXers, so the less they can do to screw up the HTML the better.
    With this in mind we tell our developers to just convert the very minimum to JSF. So that basically means forms & form elements and the occasional loop. For example we tell them to avoid h:dataTable and just use the given HTML table and a loop - for some reason (probably lack of experience) we found it very difficult to nail the right HTML in terms of thead, tbody, th and td (or to get a rowspanned "There are no results" output for empty lists). We even tell them to use straight EL instead of h:outputText (unless they really need it) for i18n literals or form outputs. Then there is the added complication in that we use HTML5 (currently using a RenderKit for that). I also prefer to avoid tying my HTML to a given technology: I don't want my JavaScript/CSS to depend on JSF (or PrimeFaces or whatever) output, I want it to depend on what we consider the "correct" HTML in terms of semantics (ie, unobtrusive frameworks).
    Would you say this is a correct strategy? I find it helps reduce developer workload (less to convert), reduces front-end errors (less to screw up), and might it also reduce memory footprint on the server (less component tree)? Or am I missing something?

    Hi!
    You can import your html page into project.
    1) Click 'File->Add Existing Item->Web Page'.
    2) In field 'File or URL' enter path to your html.
    3) Check that 'Convert HTML tags to JSF Components' checkbox is checked.
    4) Click OK.
    Your HTML page will be transformed to JSP page.
    Thanks,
    Roman.

  • HTML Form-like behavior in Flash

    Hello,
    I'm looking to find a reference that can help me in the
    creation of Flash user input screens that behave in a manner
    analogous to an HTML form. Specifically I'm concerned with error
    checking and data validation. For example, if a user is creating a
    new record or editing an existing record and they choose to
    navigate away from the page, the code should check for data
    changes, and on finding any offer the user an option to save the
    data. Once the offer is made and responded to the flow of the
    application should proceed appropriately.
    In an HTML form this type of behavior would be accomplished
    with an appropriately worded JavaScript "confirm" dialog. This
    dialog allows for a synchronous interaction between the user and
    the flow of the JavaScript code in which user choice results in how
    the code flow proceeds. With Flash, such a synchronous event is not
    inherently possible (to the best of my admittedly limited
    experience). Without this type of "confirm" dialog, one must create
    a custom messaging system to communicate with the user, and must
    also structure the code in such a way that everything is able to
    achieve the desired effects in an asynchronous manner.
    I've tried searching this forum but I don't know how to
    phrase my search in order to find good results. If anyone has any
    ideas, links to resources, links to threads, or any other items
    that might help in my quest to build fully optimized and robust
    user input forms in Flash CS3, I'd really appreciate the help.
    Thanks in advance for any advice!
    Regards,
    Dave

    Why not just use a DataGrid component? They're pretty easy to
    use actually.
    Try this: start a new AS2 project and drag a DataGrid from
    the components
    panel onto the stage. Use the properties panel to size it to
    500 x 300. When
    you add data to a grid it will just show a scroll bar if
    necessary, it
    doesn't resize... Give it an instance name of "theGrid".
    Now, add the following script to the frame:
    import mx.controls.gridclasses.DataGridColumn;
    function doGrid(gridRef, gArray:Array)
    for (var i = 0; i < gArray.length; i++) {
    var cat:DataGridColumn = new DataGridColumn(gArray
    [0]);
    cat.width = gArray[2];
    cat.headerText = gArray
    [1];
    cat.editable = false;
    gridRef.addColumn(cat);
    var gFormat = new Array(["fname", "First Name:", 120],
    ["lname", "Last
    Name:", 200], ["date", "Win Date:", 80]);
    doGrid(theGrid, gFormat);
    If you compile now, you'll see the grid with the field
    titles... I use the
    doGrid function, and an array like this to make formatting
    the grid easy.
    The first item in the array matches the dataProvider
    property, as you will
    see in a moment - the second is the title, and the third the
    width of the
    column... change these as you need.
    To add data, you just create an array of objects, with the
    object properties
    matching the first item in the format array - like so - add
    the following
    and test again:
    var gridData = new Array({fname:"Dave", lname:"Mennenoh",
    date:"09/14/08"},
    {fname:"giga", lname:"saurus", date:"10/14/08"});
    theGrid.dataProvider = gridData;
    That's all there is to it... If you add more data than can be
    shown, you'll
    get a scroll bar. You can add en event listener to know when
    someone selects
    an item, etc...
    good luck
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Convert Sharepoint forms to html

    Hello 
    My assign task is to import Sharepoint Forms to Online Forms so for that i need to convert Sharepoint forms into HTML by using any API/SDK/DLL
    So I want to know how can i convert Sharepoint forms into HTML Programatically
    Thanks in Advance
    Manish K. Bhalodi

    Hi Paul
    Thanks for your such quick reply
    We have a Online Form making project like Wufoo & Frevvo,
    in that we have a functionality to import forms from Sharepoint List & Infopath, for Infopath i manage to convert it in HTML,
    In sharepoint i have no idea, and i never work in sharepoint, but i know sharepoint has designer and whatever we design in sharepoint that i need to convert in HTML, and user can import simple textbox, checkbox, label, multiline textbox template not too
    much advance control
    We have a requirement of importing SharePoint List Form.
    Manish K. Bhalodi

Maybe you are looking for