Sending a variable to a web page

Hi,
I am trying to post the score that the player achieves to a database. I have set a web page "highScores.aspx" which gets a query string variable "webScore" and puts it in a database. This works fine as tested in a browser.
The problem I have is getting the correct information into the query string variable. I have:
form.loadVariables("http://www.rightjustified.co.uk/highScores.aspx", "GET");
where the text in question is located inside "form" (which is a movie clip). I've been following this tutorial http://www.kirupa.com/developer/actionscript/flash_php_email.htm and while not really relevant, it's got me further than anything else. The problem with this tutorial is it relies on the user entering text, whereas I am just displaying out the score in some dynamic text. This means that in output I get the following error:
Error opening URL 'http://www.rightjustified.co.uk/highScores.aspx?webScore=%3CTEXTFORMAT+LEADING%3D%222%22%3 E%3CP+ALIGN%3D%22CENTER%22%3E%3CFONT+FACE%3D%22HelveticaNeueLT+Pro+33+ThEx%22+SIZE%3D%2293 %22+COLOR%3D%22%23FFFFFF%22+LETTERSPACING%3D%220%22+KERNING%3D%220%22%3E0%3C%2FFONT%3E%3C% 2FP%3E%3C%2FTEXTFORMAT%3E'
I should point out, I do not need to read the text to get the value as it is stored in a variable beforehand, I just display it to the player via some dynamic text, but I'm not sure how to use this to my advantage.
Many thanks,
Chris

Okay no problem, I got it sorted! Not sure how exactly, I just seemed to start over again (with regards to the posting to a web page bit) and it fixed it.
Have a play with it and give some feedback: http://www.rightjustified.co.uk/flash/squares/

Similar Messages

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • How to send Parameters FORM to PHP WEB Page with method POST (secure)?

    Hello everyone,
    i hope someone can help me to find a solution to this problem!
    i have to send "+precious+" parameters from an oracle form to php page, like username and password, with a secure method... i tried with WEB.SHOW_DOCUMENT procedure but it uses GET Method and when the web page open up you can read those parameters in the url...no good!
    some suggestion?
    Thank a lot in advance... FMicio

    The other way you have is to make a PJC java bean ...
    which uses HTTPClient library..
    for example:
    PostMethod post = new PostMethod("http://jakarata.apache.org/");
            NameValuePair[] data = {
              new NameValuePair("user", "joe"),
              new NameValuePair("password", "bloggs")
            post.setRequestBody(data);
            // execute method and handle any error responses.
            InputStream in = post.getResponseBodyAsStream();
            // handle response.I have done a multipart form data post to upload files to my db over httpClient.. and other things...
    Or with java.net.* api-s
    try {
        // Construct data
        String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
        data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
        // Send data
        URL url = new URL("http://hostname:80/cgi");
        URLConnection conn = url.openConnection();
        conn.setDoOutput(true);
        OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
        wr.write(data);
        wr.flush();
        // Get the response
        BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String line;
        while ((line = rd.readLine()) != null) {
            // Process line...
        wr.close();
        rd.close();
    } catch (Exception e) {
    }Or you can call your web page (post data) from your database
    http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
    Edited by: Peterv6i on Mar 30, 2012 3:49 PM
    Edited by: Peterv6i on Mar 30, 2012 3:55 PM

  • Passing an APEX variable to another web page outside of APEX

    I need to pass an item variable from an APEX page to another web site outside of APEX. Does anyone know what syntax I would need to use? It needs to keep the session in tact.
    Thanks.
    Kelly

    Ah, as I read more closely ...   You say
    FIND_USER_IN_DB is defined as an application item.
    Application items get treated differently from Page Items.  They aren't on any page so there's nothing to directly tie them to a particular page operation. [You may have tried an obvious approach that doesn't work.]  Please check where you
    sets FIND_USER_IN_DB to the value in &P8_USERNAME.
    Does it say "Page Item" / "Item" there?   Check the selector?  Can you select an Application Item.  If memory serves, my (sad) experience is that you can list an Application Item here but it doesn't "work" and there's no warning that it's a problem -- except it doesn't work!  Application Items can't be given values this way.  Hey, it is what it is.  That's the way it doesn't work!
    So I believe you must "Submit" FIND_USER_IN_DB and then you can reference it on Page 11.  There must be several ways to do this.  I'll seaarch / ponder for a plain vanilla one.
    Howard
    (more)
    Well, maybe I have to take it back.   There is this documentation that suggests you can pass Application Items. http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_item_app.htm#BCEHFDDJ   See Note in Paragraph 8.
    "Note: If you must set this item's value in session state using Ajax, then an Unrestricted protection level must be used for the item (for example in Dynamic Actions, Set Value, Page Items to Submit or Cascading LOVs, Page Items to Submit)."
    I'll try to run a test.  Still, the best solution for me still seems to assign the value of P8_USERNAME to FIND_USER_IN_DB and then submit the page which will plce the value in session.
    (more)  I was able to pass an Application Item if I set Session State Protection to Unrestricted.  Probably not a good idea!

  • How to send quiz results to a web page?

    Okay, this should have taken 2 minutes, not 2 hours. Very frustrating. Here is the situation:
    * Downloaded Captivate 5 Trial Version
    * Created based quiz (which took forever to figure out how to set the correct answers -- HORRIBLE user interface for setup, but that is another issue)
    * I want the results sent to a web page. I will code the web page & database calls, etc. to handle the information (I am a web developer). Just need the information sent somewhere!
    Several big issues here:
    1. When setting up a URL for the "Pass or Fail", nothing happens. User not taken anywhere. No "Post Results" button shown. The Captivate file just ends and that's it. ??
    2. Finally figured out that I needed the "Internal Server" option chosen to have a Post Results button shown. Okay.
    So when I click Post Results (after answering the 5 questions correctly), I am shown a login box. Why? What is this for? This is not needed. I am going to an INTERNAL SERVER. It is none of Adobe's business what this person's name/email is. What gives? Okay... anyways, I enter my own Adobe login information. It then says "Connecting..." then I get a Status Message that says "Unknown Error". Keep in mind this will be used by a general audience, of which approximately 99.9% will not have an Adobe ID, nor should they need one.
    How I can easily have the Captivate file redirect the user to pages like this: Confirm.aspx?pass=yes or Confirm.aspx?pass=no.
    I don't need anything fancy. But I do need something that works. This is terribly frustrating and I'm about to say it just doesn't work. Please tell me I am wrong.
    Thank for your time and for reading this.
    -Randy

    The Quiz Results slide's Continue button actions are set under Quiz Preferences > Pass or Fail > If Passing Grade etc. By default, the Continue button is set to just continue on to the next slide after the Quiz Results.
    After the user clicks the Continue button on the Quiz Results slide any Pass/Fail actions you've set up there will be evaluated and executed.
    So if the user achieved a passing score, and you set up an action such as Go to URL in Current Window for that case, then the user should find themselves redirected to that URL.  If there was a different action for Failure, and the user failed, then that should happen.  But either of these will only happen after the Continue button is clicked.
    I tested this by setting www.google.com as the go to URL and it worked.  To see if the URL is the issue, try using another URL that you know everyone can get to.  If that works, try to find out why the URL you want to use is not working.  If no URL works, something else is interfering with the action.

  • Send e-mail from a Web page

    I need to add a new functionality to my Web application running on 9iAS. The user will be able to select an e-mail address and text on a page and click a button to send an e-mail to the selected recipient. That means the user doesn't edit anything on the mail, just clicks a button and the preformatted text gets sent. The user shouldn't have to see the e-mail dialog window.
    Is there a way to do it without using "javascript mailto:", which displays a warning then opens a regular e-mail dialog window?
    null

    hi,
    this is a code which sends email from oracle.
    create or replace
    PROCEDURE send_mail(sender IN VARCHAR2,
    recipient IN VARCHAR2,
    message IN VARCHAR2)
    IS
    mailhost VARCHAR2(30) := '150.100.100.37';
    mail_conn utl_smtp.connection;
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost, 25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    utl_smtp.data(mail_conn, message);
    utl_smtp.quit(mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    -- Handle the error
    dbms_output.put_line(sqlerrm);
    END;
    null

  • Since upgrading to Firefox 4 I can no longer send a link to a web page. I use Windows XP. Can anyone please help?

    I have used Firefox for some time and have enjoyed the bsend a link feature in the File drop dwon menu. Since installing Firefox 4 this feature no longer works. I click the option and nothing happens. In preferences and applications the mailt0 icon on the far left is not as distinct as it was and the option is set to googlemail which is correct. I have an Apple mac and also installed Firefox 4 and send a link works on the mac with no problem!

    You can try to delete the file mimeTypes.rdf
    See "Reset Download Actions"
    * http://kb.mozillazine.org/File_types_and_download_actions

  • Firefox does not send a link to a web page when I click this option even though I have marked Gmail as the mail to option in the Options tab of the tools menu. links in the Firefox tab.

    I have asked this question several times and have never gotten a response.

    I did upgrade, but I still get nothing when I go to a website and click send a link.

  • HT4864 How do I stop icloud email address being used when I send an email from a web page.  also why are icloud emails not received

    When I click on the email on a website my Icloud email address is used when I want to use my normal one.  It does it automatically.  Can this be stopped.  Also may icloud emails don't get to the recipient why?

    Hi Sylver123,
    Thanks for posting, please use the 'contact the mods' link in my forum profile to send in your details and we'll get this issue with your email looked into further. You can find the link by clicking on my username.
    Thanks
    Neil
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Is adobe send down? I just signed up and when I try to access the Adobe Send site I get "this web page is not available".

    ?

    This is the error.  I have an appointment this afternoon with our IT to see if it is at our end—this is what the Adobe Tech recommended.
    The server at ims-na1.adobelogin.com can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventingGoogle Chrome from accessing the network.
    Error code: DNS_PROBE_FINISHED_NXDOMAIN
    Sylvia Benavides | Assistant to the Board and Office of the President
    UNIVERSITY OF PUGET SOUND
    [private information removed by moderator]

  • Sending a HTML web page in email question please.

    Sorry, the "Mail and address" section of the group is down.
    A long time ago using windoze, I use to be able to send a entire embedded HTML Web page, not a link, in my emails so the reader does not have to click a link but can see the page right in the email.
    I know email in Leo did not have this but can't find any product info as to Snow Leo allows me to do this. Can you please advise?
    Thank you much.

    this only works with safari. Mail uses safari engine to render html. you can also just copy+paste parts of html pages but also only from safari. it will not work well if you try it from firefox.

  • How to send Variable from a web dynpro abap application to anthor

    HI all:
        I have two web dynpro abap applications .
        I want to send a Variable from a web dynpro abap application to another  web dynpro abap application  using post method.
        Because, now I have used append_field_url  to send Variable,but this method will display the Variable in the URL.
        I do not need this result.
        I need the Variable from a web dynpro abap application to another  web dynpro abap application  and the Variable will not display in the URL.
        Can you give me an example?
        Thanks.

    HI Nawal Kishor Mittal :
    I have tried your method,but I can not get the value of variable.
    My code is as follows:
    The first web dynpro abap application:
    DATA:BEGIN OF l_send,
         l_value TYPE string,
         END OF l_send.
    l_send-l_value = '400001'.
    EXPORT l_send-l_value FROM l_send TO SHARED MEMORY indx(aa) ID 'YTEST_MATNR'.
    The second web dynpro abap application:
    DATA:BEGIN OF m_send,
         s_value TYPE string,
         END OF m_send.
    IMPORT m_send-s_value TO m_send FROM SHARED BUFFER indx(aa) ID 'YTEST_MATNR'.
    DELETE FROM MEMORY  ID 'YTEST_MATNR'.
    Thanks.

  • Refreshing web page

    hi when i sending data from mobile iam receiving data in web page
    <html>
    <%! String name; %>
    <%
    name = request.getParameter("name");
    java.util.Date today = new java.util.Date();
    out.println("Got: "+name);
    out.println("Date&time: "+today);
    %>
    <html>after sending data when i view web page from my mobile i can see that i got data .but when i come and see my web page from pc i caunt see the updated data .how to dispay that received data .
    do i need to use refresh command .how to use refresh command ?

    I believe what you are seeing is the browser caching your page.
    If you push F5 to refresh the page, it will then update the date/time.
    You can include the following html in your jsp to try and prevent the browser caching it...
    <META HTTP-EQUIV="Expires" CONTENT="-1">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">

  • WiFi user start up web page/How do you create one with an AirPort Extreme?

    I have an AirPort Extreme Base Station, a 17" PowerBook and a 12" PowerBook.
    I also have a website with a dedicated server. How could I set-up my AirPort Extreme to send people to a specific web page each time they access my WiFi?
    I have seen this work at various businesses that offer WiFi and I would like to do something kind of similar. I don't mind people using my WiFi. But, this could be a way to get more free advertising for what I do.
    Jeff Purtle
    www.purtle.com

    You would need a server between the Airport base station and the internet.
    Something like this
    http://www.wifi.com.ar/english/hotspot.html
    iFelix

  • Cannot send email when clicking lonk on web page

    I cannot send email when clicking link on web page. 
    When I would click the link to send via email I was being directed to hotmail to open new account.
    Today the tech tried to assist me and completely messed up my email capabilities by setting up
    windows live account.
    I am thoroughly disgusted with FIOS internet services..Every time I've called them in the past month problem has been with someone else whose portal services they are using.
    I cannot send emails because all my contact information cannot be moved.
    I'm paying for FIOS internet service that is almost non existent.
    THe VZ in home agent doesn't work nor does the FIOS information site.
    My next move is to get rid of FIOS.
    They create more problems then they solve with me.

    If I understand your problem correctly, you are having trouble when clicking on a MailTo link on any webpage? What loads when you click this type of link is a setting in your browser. If you tell us what browser you are using, we can try to direct you to the setting.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

Maybe you are looking for

  • B2B vs general submission to Apple

    I have a single edition for a product directed to construction engineers. It's a lot of technical information and not something most people would be interested in. It uses slides shows, a movie and one MSO. Apple rejected it saying to enough interact

  • A device which is not part of this management group has attempted to access this Health Service.

    Has anyone found an answer to this yet?  I have uninstalled/reinstalled the agents both manually and through the push. Rebooted the client, rebooted the  sce server. Forced the group policy to reapply, forced the health agent to /reportnow and I stil

  • My HP PSC 1315 Cartridge Error Does Not Respond To Troubleshooting

    My printer  HP PSC 1315 has never given me problems. About a month ago I replaced the black ink cartridge (it was all I could afford). It was working fine and then out of the blue it came up with an error saying to check my cartridges. I did. Nothing

  • Disable  Lock Screen in Apple Music App

    I play my iPhone on a speaker dock and Pandora and Audible Apps have an option to disable the Lock Screen while they play. Since it is on the speakers it is charging anyway so a logical choice. This is so nice as it remains lit and album cover shows

  • Cannot set class in form

    I have a form that has an embedded table. The contents of several cells are calculated by a script using viewer inputs from other cells. Each cell has a class defining the font, size, color, etc. Both the input and calculated cells display correctly