Edit Save Server Side XML [HELP]

I have an XML that is keeping a few scores. ( 5 entries ).
I need a Flash interface to be able to edit these nodes and save the XML back to the server.
Has anyone done anything like this ?  I am open to using PHP with it to make it work.
Any guidance with this is appreciated.

Exactly you need a server side language to do it, PHP is good option.
You need save the scores to a database (using PHP) then load the data from the Data base (using PHP) in a XML format
To call the PHP files from Flash use URLLoader
http://library.creativecow.net/articles/brimelow_lee/php_mysql.php

Similar Messages

  • Server Side XML Class

    Hi,
    Everything I read in from my XML is of nodeType Element. I am trying to extract  the data. However because the type coming back is of type 1 (Element) I am unable to use nodeValue. What am I doing wrong? I wish to extract the directory and server information.
    This is my XML
    <?xml version="1.0" encoding="UTF-8"?>
    <mainlist version="1" xmlns="http://xspf.org/ns/0/">
              <subList>
                        <id>
                                  <title></title>
                                  <creator></creator>
                                  <directory>dir_data_here</directory>
                                  <meta rel="server">server_info_here</meta>
                                  <meta rel="version">version_here</meta>
              </id>
              </subList>
    </mainlist>
    This is my code:
         // Create a new XML object.
         var flooring = new XML();
         //load in the external xml data
         flooring.load("data.xml");
         // Set the ignoreWhite property to true (the default value is false).
         flooring.ignoreWhite = true;
         // After loading is complete, trace the XML object.
         flooring.onLoad = function(success) {
              //trace(flooring);
              trace( flooring.childNodes[0].childNodes[0].childNodes[0].parentNode);
              trace( flooring.childNodes[0].childNodes[0].childNodes[0].nodeValue);
              trace( flooring.childNodes[0].childNodes[0].childNodes[0].nodeType);
              trace( flooring.childNodes[0].childNodes[0].childNodes[0].nodeName);
              trace(flooring.childNodes[0].childNodes[0].childNodes[0].toString());
    reference:
    http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7 e2eSSASLR.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f20SSASLR
    Many thanks.

    In fact my actual code was pulling XML from a HTTP server, like the code below.
    var flooring = new XML();
    flooring.onLoad = function(success) {
         do some stuff
         do some stuff
    flooring.load(HTTP_SERVER);
    Your comment does not explain why the tags are elements and not text type. It does not matter as I have solved it another way using attributes and I decided to pull in a SMIL file rather than XML.

  • Server-side xml parsing

    hi.
    when a user submits a form i need my CGI script to run a java program using
    system "java -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser App"
    to do some parsing of the input. the script works fine when i run it at the command line but when i run it from the web browser it doesn't work and the error_log entry says
    java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:121)
         at MySAXApp.main(MySAXApp.java:26)
    i think this is due to a security policy preventing the setting of a default parser by the script when it's run by a browser or something...
    how can i fix this?
    thank you in advance.
    L

    probably because two subsequent calls to system affect different images of the runtime environment, therefore the setenv command has no effect for the next call...
    simply put the classpath in your call to Java VM.

  • Need FMS Guru! to Read substitution.xml from Server Side Apps

    I know how to read XML file from HTTP using XML.load(url),
    but there are some config node i need to read from substitution.xml
    from conf folder. Seems like XML.load doesn't allow accessing
    Physical path from "D:\Program Files\Adobe\Flash Media Server
    3\conf" - I am new in FMS Development, I dont know how to access
    them from Server side. Help pls.

    Thanks by your help Shanu.
    Nevertheless, finally I tryed the easiest way (pass the parameter with 'GET'). Moreover I found why my code wasn't working. It was a fool thing. I though PDA connect throught a proxy, but it wasn't true. Whatever.
    Regards.
    FSG.
    The final script on the xml-report is:
    <report type="Validacion Online" required="false" multiple="false" attachments="false" scriptref="store://this/reportdef/script[@name='ValidacionOnlineValidation1']">
         <field sortid="0" id="Poliza" inputtype="textbox" label="Poliza" rows="1" wide="false" required="false"/>
    </report>
    <script name="ValidacionOnlineValidation1" script="if (0 == 0)
    var szURL="http://URL/vonline/vonline?parameter1=";+Poliza.value;                         
    var m_HttpReq = new ActiveXObject("Pocket.HTTP");                                             m_HttpReq.timeout = 15000;
    var m_HttpResponse = m_HttpReq.GetResponse(szURL,"");
    window.alert(m_HttpResponse.string);
    if (m_HttpResponse.statusCode==200)  {....}
    else {....}

  • Is any server side cursor concept in jdbc

    hello friends,
    i am new programmer in java, i am doing one project in which
    i have to show the record in group (like user click one <1> link then
    he can view first 10 record if <2> then he can view 11 -20 record list) on
    same page.
    tech - jsp/servlet
    database - mysql
    and if u know any tutorial jsp and mysql connectivity please tell me.
    waiting 4 reply
    thanx
    nil4u

    You will have to implement the caching of the results on the server side and return the results as the user requests them. You can use the CachedRowSet on the server side to help you do this. There may be some utilities and tools available to help with this, try googling.

  • Save editable pdf on server side

    Hiii Friends ,
    I have create editable pdf . Can I save this pdf on server side.
    Thanks

    Hiii Paul ,
    I have an another question. As I told ,I have PDF form created in Adobe LiveCycle Designer.
    I put on Submit button connect to my server URL .
    Now when I access this form , on web-server , It give warning each time
    Acrobat is attempting to connect my server url.
    If you trust the side , choose allow
    Can I block this warning message.
    Thanks

  • How to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

    hi all
    It would be appreciated if any one let me know how to edit
    bitmap which is imported in flash using xml and save the edited
    bitmap back to xml in flash.
    Is it posible to save the bitmap data in flash?
    thanks in advance

    Yes you can... but like I said before you need to upload the
    data from the changes you make to a server.
    In terms of the solution... its unlikely that you'll find one
    specifically for your needs. You will have to learn whatever you
    don't know how already and maybe adapt some existing examples to
    your needs.
    To change the visual state of a movie clip... you just do all
    the regular things that you want to do to it using flash... scale,
    rotation, drawing API , textfields etc in actionscript. If you
    don't know how to how to do that stuff, then you need to learn that
    first. That's basic actionscript.
    You can capture the visual state of a movieclip using the
    BitmapData class. That includes a loaded jpeg. You can also
    manipulate bimatp data using the same class. You should read up on
    that if you don't know how to use it or check out the examples
    below for uploading info.
    For uploading to the server:
    Here's an as2 solution that took 15 secs to find using
    google:
    http://www.quasimondo.com/archives/000645.php
    If you're using as3, google search for "jpeg encoder as3" and
    look through that info. There are also historical answers in the
    forums here related to this type of thing that might help as
    well.

  • How to parse XML in server side javascript (XSJS)?

    Hi Experts,
    I can get the XML file content through this method:var xmlString = $.response.body.asString() and I need to parse XML. If there XML parser in server side javascript? thanks very much!

    Hi Wenwen Hou,
    There is a blog available at
    Parse XML in server side javascript (XSJS)
    This can help you achieve parsing xml in server side javascript.
    Regards,
    Anjali.

  • Save the page in server side

    Hi all,
    I have some iViews in my page. That iViews are draggable like as in iGoogle. Now what i want is if i change the position of the iView , after refreshing the iView should be in the same position(what i have changed) . The page should be save in cookies or server side like igoogle.
    The URL of the iGoogle
    [iGoogle|http://www.google.com/ig]
    How can i achieve this using script?
    Help me in this regard.
    Thanks & Regards,
    Hemalatha

    Hi,
    When ever an Iview is dropped to a new position, you will have to reflect this position change in pcd.
    An idea would be to use AJAX and call a portal service where logic is implemented to change Iview position in pcd. You can implement this in personalized context of user, so that the change is made only for current user.
    PCDAPI Remove iView from Page
    Regards,
    Praveen Gudapati

  • Automatically save file in server side...

    how can i save a file(text or excel) automatically without anyuser intervention?
    lets say a query is done and the result of that query is goin to save into a file(textfile or excel file) how im i going to save it in the server side? maybe a there is a foldername /extract file/.
    Hope somebody can help me... Thanks in advanced!

    hello again.. this is a part of my codes that writes text files into the server
    public void ReadWrite(ActionForm form){
        AdminAccountBean adminForm = (AdminAccountBean)form;
        String directory1="";
        String directory2="";
        File f = new File("DBConn.txt");
        File f1 = new File("DBConn1.txt");
        String dconnectString = "jdbc:oracle:thin:@"+adminForm.getDserv()+":"+adminForm.getDport()+":"+adminForm.getDbname();
        String dconnectString1 = "jdbc:oracle:thin:@"+adminForm.getDserv1()+":"+adminForm.getDport1()+":"+adminForm.getDbname1();
        try{
        boolean success = (new File(adminForm.getDirectory())).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
        directory1 = f.getAbsolutePath().toString();
        directory2 = f1.getAbsolutePath().toString();
        try{
        boolean success = (new File(f.getAbsolutePath().toString())).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
        try{
        boolean success = (new File(f1.getAbsolutePath().toString())).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
       Convert co = new Convert();
       /*try {
            BufferedWriter adminto = new BufferedWriter(new FileWriter(directory));
            adminto.write(co.Encoder("encoded"));
            adminto.write("\n");
            adminto.write(co.Encoder(uname));
            adminto.write("\n");
            adminto.write(co.Encoder(pword));
            adminto.close();
        } catch (IOException e) {
        e.printStackTrace();
        try{
        boolean success = (new File(directory1)).delete();
        if (!success) {
            System.err.println("Error on deleting previous file");
        }catch(Exception e){
          e.printStackTrace();
        try {
            DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
            Connection conn = DriverManager.getConnection(dconnectString,adminForm.getDuname(),adminForm.getDpword());
            conn.setAutoCommit (false);
            String sqldelete ="DELETE FROM GIIS_WEB_ADMIN";
            PreparedStatement stmt = conn.prepareStatement(sqldelete);
            stmt.executeUpdate();
            String sql ="INSERT INTO GIIS_WEB_ADMIN VALUES('"+adminForm.getUname()+"','"+co.Encoder(adminForm.getPword())+"','A','encoded')";
            PreparedStatement  pstmt = conn.prepareStatement(sql);
            pstmt.executeUpdate();
            conn.commit();
            conn.close();
            Decode de = new Decode();
            String encoded2 = co.Encoder(dconnectString1);
            BufferedWriter adminto1 = new BufferedWriter(new FileWriter(directory1));
            adminto1.write(co.Encoder(dconnectString));
            adminto1.write("\n");
            adminto1.write(co.Encoder(adminForm.getDuname()));
            adminto1.write("\n");
            adminto1.write(co.Encoder(adminForm.getDpword()));
            adminto1.write("\n");
            adminto1.write(co.Encoder(adminForm.getDsid()));
            adminto1.write("\n");
            adminto1.close();
            BufferedWriter adminto2 = new BufferedWriter(new FileWriter(directory2));
            adminto2.write(co.Encoder(dconnectString1));
            adminto2.write("\n");
            adminto2.write(co.Encoder(adminForm.getDuname1()));
            adminto2.write("\n");
            adminto2.write(co.Encoder(adminForm.getDpword1()));
            adminto2.write("\n");
            adminto2.write(co.Encoder(adminForm.getDsid1()));
            adminto2.write("\n");
            adminto2.close();
        } catch (Exception e) {
        e.printStackTrace();
      }

  • Keynote Crashing - with Lion.   Most often when I switch out of Keynote to another program - Keynote freezes - says Application Not Responding.  If I save the Keynote before switching, it does not crash - only when it says it is an "edited" file....help

    Keynote Crashing - with Lion.   Most often when I switch out of Keynote to another program - Keynote freezes - says Application Not Responding.  If I save the Keynote before switching, it does not crash - only when it says it is an "edited" file....help

    I posted this on another thread. See if this works:
    1) Uncheck "Backup previous version" in Keynote's Preferences.
    2) Make a duplicate copy of your file that has issues and save it.
    3) If you still get spinning wheels from switching between apps after editing or 10 seconds of inactivity, manually save with command+s. It may beach ball here but be patient and wait for it to finish! Try editing and resume doing work now.
    Command+s may be a bit slow but I think that might be normal since the files are so big.
    Good luck and let me know if this works.

  • Need Help Writing Server side to submit form via API

    Hey
    I need help writing a serverside application to submit
    information via API to a separate server.
    I have a client that uses constant contact for email
    campaigns. We want to add to her website a form taht submits the
    information needed to subscribe to her email list, to constant
    contact via API.
    FORM.asp :: (i got this one under control)
    name
    email
    and submits to serverside.asp
    SERVERSIDE.ASP
    In serverside.asp i need to have
    the API URL
    (https://api.constantcontact.com/0.1/API_AddSiteVisitor.jsp)
    username (of the constant contact account)
    password (of the constant contact account)
    name (submited from form.asp)
    email (submitted from form.asp)
    redirect URL (confirm.asp)
    Can anyone help get me going in the right direction?
    i have tried several things i found on the net and just cant
    get anyone to work correctly.
    One main issue i keep having is that if i get it to submit to
    the API url correctly - i get a success code, it doesnt redirect to
    the page i am trying to redirect to.
    ASP or ASP.NET code would be find.
    THANKS
    sam

    > This does require server side programming.
    > if you dont know what that is, then you dont know the
    answer to my question. I
    > know what i need to do - i just dont know HOW to do it.
    If you are submitting a form to a script on a remote server,
    and letting
    that script load content to the browser, YOU have no control
    over what it
    loads UNLESS there is some command you can send it that it
    will understand.
    No amount of ASP on your server is going to change what the
    remote script
    does.
    http://www.constantcontact.com/services/api/index.jsp
    they only allow their customers to see the instructions for
    the API so i
    can't search to see IF there is a redirect you can send with
    the form info.
    But posts on their support board say that there is.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • PLEASE help with server-side form validation using PHP!!!

    I feel like im going round and round in circles with this, after looking into all sorts of server-side advice i've come to the conclusion that i want to validate my form using server-side validation with PHP.
    So my form has several drop down menu's and  textareas  (not all of them need validation). For the part of my form i would like to validate, all i want is the drop downs to have to be changed/selected. So just a simple message like "You must select an option" if customers haven't done so. For the textareas, they just need to be filled out, so a message like "Information required" to come up if customers haven't done so.
    I believe i need to create a PHP page say for example 'error.php' place  the validation code in there and set this part of the the form to -
    <form name="product"form action="error.php" method="post" class="product_form">
    BUT im getting really confused with creating the code for the error.php. Please please can anyone help me with this!!!???
    Here are the drop down menu's i need validation on, error message being "You must select an option",
    "figurine"
    "engraving"
    "font"
    and here are the textareas that need validating, error message "Information required",
    "test"
    "Name"
    "house"
    "line_1"
    "line_2"
    "county"
    "postcode"
    "tel"
    www.milesmemorials.com/product-GK1.html
    I'd really appreciate any help!!!

    Ness_quick wrote:
    Great thats good enough for me. In that case, would you please be able to help me create the javascript for the above validation?? If you could just help me create it for this page i can amend it for all the other pages. I'd really really appreciate it!!!
    Can you follow the below example?? Obviously AFTER validation has been successful you need to collect the information from the form and send it to the recipient email address...that's where you can use php. I'll check back tomorrow and see how you are doing.
    <!DOCTYPE HTML>
    <html><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Form validation</title>
    <!-- VALIDATE ORDER FORM  -->
    <script type="text/javascript">
    <!--
    function RequiredFormFields() {
        // inform customer to provide figurine choice
    var figurine = document.forms.product.figurine.value;
    if (figurine == "-- Select figurine --")
    alert("Please provide figurine choice");
    return false;
    // inform customer to provide engraving choice
    var engraving = document.forms.product.engraving.value;
    if (engraving == "-- Select engraving --")
    alert("Please provide engraving choice");
    return false;
    // inform customer to provide font choice
        var font = document.forms.product.font.value;
    if (font == "-- Select style --")
    alert("Please select font style");
    return false;
    // inform customer to provide their name
    var Name = document.forms.product.Name.value;
    if (Name == null || Name == "")
    alert("Please provide your name");
    return false;
    // inform customer to provide their house number/name
    var house = document.forms.product.house.value;
    if (house == null || house == "")
    alert("Please provide your house number/name");
    return false;
    } // end function
    -->
    </script>
    </head>
    <body>
    <form name="product" form action="processForm.php" method="post" class="product_form" onsubmit="return RequiredFormFields()">
    <p class="product_form_options">Choice of Figurine<br>
    <select name="figurine" class="productButton" id="figurine" onChange="Recalculate()">
    <option selected>-- Select figurine --</option>
    <option value="7031">Tropical Green Granite with bronze sacred heart figurine as pictured(&pound;7031)</option>
    <option value="5216">Tropical Green Granite with bronze effect sacred heart figurine (&pound;5216)</option>
    <option value="5216">Tropical Green Granite with reconstituded figurine MF122(&pound;5216)</option>
    </select>
    </p>
    <p class="product_form_options">Engraved Lettering<br>
    <select name="engraving" class="productButton" id="engraving" onChange="Recalculate()">
            <option selected>-- Select engraving --</option>
            <option value="2.30">Sandblast and enamel painted (&pound;2.30/letter)</option>
            <option value="2.80">Sandblast and guilded (&pound;2.80/letter)</option>
            <option value="2.20">Maintenance free (&pound;2.20/letter)</option>
            <option value="3.73">Traditionally hand cut and enamel painted (&pound;3.73/letter)</option>
            <option value="3.98">Traditionally hand cut and gilded (&pound;3.98/letter)</option>
            <option value="4.34">Raised lead and enamel painted (&pound;4.34/letter)</option>
            <option value="4.59">Raised lead and gilded (&pound;4.59/letter)</option>
          </select>
    </p>
    <p class="product_form_options">Letter/Font Style<br>    
          <select name="font" class="productButton" id="font" >
               <option selected>-- Select style --</option>
               <option value="Maintenance free">Maintenance free </option>
               <option value="White painted block">White painted block</option>
               <option value="White painted roman">White painted roman</option>
               <option value="White painted Script">White painted Script</option>
               <option value="White painted Celtic">White painted Celtic</option>
               <option value="White painted Nova">White painted Nova</option>
               <option value="Sliver painted block">Sliver painted block</option>
               <option value="Sliver painted roman">Sliver painted roman</option>
               <option value="Sliver painted Script">Sliver painted Script</option>
               <option value="Sliver painted Celtic">Sliver painted Celtic</option>
               <option value="Sliver painted Nova">Sliver painted Nova</option>
               <option value="Gold leaf painted block">Gold leaf painted block</option>
               <option value="Gold leaf painted roman">Gold leaf painted roman</option>
               <option value="Gold leaf painted Script">Gold leaf painted Script</option>
               <option value="Gold leaf painted Celtic">Gold leaf painted Celtic</option>
               <option value="Gold leaf painted Nova">Gold leaf painted Nova</option>
               <option value="Gold leaf painted Old English">Gold leaf painted Old English</option>
             </select>
             </p>
             <p>
    <p>Name<br>
    <input name="Name" type="text" id="Name" value="">
    </p>
    <p>House name or number:<br>
    <input name="house" type="text" id="house" size="67">
    </p>
    <p>
    <input name="submit" type="submit" class="place_order" id="submit" value="Place order">
    </p>  
    </form>
    </body>
    </html>

  • Xml parser on O8i server side

    Hi,
    I am having problems using xml parser 2.0.2.0.0 from JSP. In my
    case a simple SQLJ procedure takes a string representation of an
    xml document. DOMParser.parse() method throws an exception with
    the message body of 'null'. Since this is server side java I am
    unable to debug it. Does anyone experienced this or have a cure.
    Thanks a lot,
    vad...
    null

    If you are attempting to parse a
    document inside 8i which has a
    DTD with a SYSTEM identifier that
    is a URL, this is one case that I
    know can cause a java.lang.SecurityException
    because it is not, by default, allowed
    for any user inside the database to
    open an aribtrary URL or URLConnection.
    In particular, when the Oracle XML Parser
    attempts to read the DTD (even in non-validating
    mode it must read the DTD to see if there
    are default attribute values specified there)
    it will get a security violation.
    If you GRANT JAVASYSPRIV TO YOURUSER it
    works as expected.
    Steve Muench
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • Need Help Finding a Server-Side printing solution - CFMX 7.0.2

    I would like some help in figuring out how I can print PDFs
    to a specified server-side printer. I am running MX 7.0.2.
    Simplifying my process a bit, I would like to create a pdf,
    send that pdf to a server-side printer, then write to a database
    the date&time of when that pdf was printed (actually when it
    was sent to the printer).
    Any advice or a good place to look to help me?
    Thanks.

    First thing I would look at is the capabilities of the
    printer. Good
    quality network printers meant for the job should have all
    you need
    built in. You will just need to send the file to be printed
    to a
    specified directory, URL:port, email address or other network
    protocol
    the printer has been designed to monitor and print anything
    that comes
    its way.
    If your printer is a desktop printer doing a network job you
    will have
    more work to do. The next thing to check out is the printer
    driver
    capabilities, can it be run from the command line or some
    other method
    that is automate-able. ColdFusion can fairly easy send
    command line
    instructions in this type of situation.
    If that is not an option you may be down to the hardest
    choice. If you
    can run some application that can print the document you may
    be able to
    use COM objects to do this programatically. This is a
    challenging task
    and usually very fragile. For example, using COM objects to
    interact
    with MS Word is very difficult - since Word will often
    generate dialog
    boxes that can only be responded to by a user directly
    interfacing with
    the server.
    HTH
    Ian

Maybe you are looking for

  • IPhone 3G - 3G Does not work after upgrading to 4.2.1

    Once again Apple has screwed something up. Upgraded to 4.2.1 on Friday and now my 3G reception does not work. I've factory restored and still no good. Whats up with the quality control these days? Seems as if every software update across iOS and Mac

  • ITunes will not open after (12) update!!!!!!!

    Just updated iTunes to (12) and now it will not open. Two messages. The procedure entry point ADAdPolicyEngine_DidEnterStation could not be located in the dynamic link library iAdCore.dll. and then iTunes was not installed correctly. Please reinstall

  • Can no longer print to shared printer on mac running 10.5

    We have an old G5 that we use to share a printer between various macs all running 10.9. I recently upgraded the G5 to 10.5 to see if that helped with some  issues we had, but now that we can no longer print to the printer. What I have done so far: #1

  • Need CMYK for printer... but msg "document is using CMYK blend space..." concerning

    Hello all, I need to create an output PDF that is CMYK for the printer. I thought I was doing everything correctly until I got this message that was generated when I selected Export (to PDF), "The document is using CMYK space. Colors are converted to

  • How To Install Classic?

    How do I install Classic on my iBook G4 (1Ghz)? I already have 10.4.10 installed. I have the Mac OS X Tiger Install DVD, but cannot find Classic to install. I booted from the DVD, but there were no options to install Classic. Is Classic not available