ASP XML Replacement

I have a little ASP code that I need to get rid of and am wondering if anyone has any ideas on how this can be done in JSP. It needs to do two thing:
1) Read and write the HTML code from a URL.
2) The HTML code that is written out has some fom elements. I need to be able to read send these values. In ASP this was done using Request.form("parameter_name")
Here is the current ASP I want to replace:
<%
Dim xml, results
Response.Buffer=true
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", "http://some_url?parameter1="&Request.form("parameter1")", false
xml.Send
results= xml.responseText
Response.Write(results)
%>

See for example XML related tags in Coldtags suite:
http://www.servletsuite.com/jsp.hm

Similar Messages

  • Display Share Price on Webpage (ASP/XML???)

    Hi all
    Long time since I last posted, but I have a problem that I
    know you clever
    people will be able to help with.
    A client wants their share price showing on the front page of
    their site. I
    have been searching the net to have a look but things are
    getting unclear
    for me. What I really want is an XML stream or some ASP
    server side
    solution.
    Has anyone done this?
    How did you go about it?
    Do you know of any XML (or other) feeds for UK share prices?
    Preferably
    free! but if not subscription.
    Thanks for your help in advance
    Matt Houldsworth
    Digitalquill

    http://www.investis.com/investis/services/shareprices/#shareprice
    "Digitalquill" <[email protected]> wrote in
    message
    news:edm4t1$dqo$[email protected]..
    > Hi all
    >
    >
    >
    > Long time since I last posted, but I have a problem that
    I know you clever
    > people will be able to help with.
    >
    >
    >
    > A client wants their share price showing on the front
    page of their site.
    > I have been searching the net to have a look but things
    are getting
    > unclear for me. What I really want is an XML stream or
    some ASP server
    > side solution.
    >
    >
    >
    > Has anyone done this?
    >
    > How did you go about it?
    >
    > Do you know of any XML (or other) feeds for UK share
    prices? Preferably
    > free! but if not subscription.
    >
    >
    >
    > Thanks for your help in advance
    >
    >
    >
    > Matt Houldsworth
    >
    > Digitalquill
    >
    >

  • XML replace text help

    Hi All,
    In a webservice I am getting an XML file as input. I can get the nodes info with:
    <cffunction name="insertCode" access="remote" returntype="string" output="no">
            <cfargument name="myXML" type="any" required="yes" >
            <!--- Define the local scope. --->
            <cfset var LOCAL = {} />
            <cfset LOCAL.ValueNodes = XmlParse(ARGUMENTS.myXML) />
            <!--- Check Login --->
            <cfset agency = LOCAL.ValueNodes[1].Root.Header.Agency.xmltext>
            <cfset user   = LOCAL.ValueNodes[1].Root.Header.User.xmltext>
            <cfset pwd    = LOCAL.ValueNodes[1].Root.Header.Password.xmltext>
    Now I want to do a response the same XML file structure but replace some of the data of the nodes, per example:
    <Root>
        <Header>
            <Agency>IBM</Agency>
            <User>Andrew</User>
            <Password>demo</Password>
            <Operation>SEARCH_REQUEST</Operation>
            <OperationType>Request</OperationType>
        </Header>
        <Main>
            <ReferenceName>New893</ReferenceName>
            <StatusCode>I</StatusCode>
       </Main>
    </Root>
    I want to have this as response:
    <Root>
        <Header>
            <Agency>IBM</Agency>
            <User>Andrew</User>
            <Password>demo</Password>
            <Operation>SEARCH_RESPONSE</Operation>
            <OperationType>Response</OperationType>
        </Header>
        <Main>
            <ReferenceName>New893</ReferenceName>
            <StatusCode>C</StatusCode>
       </Main>
    </Root>
    Any ideas how to do this?
    Thanks

    Lets see.
    Change the "do schell script" line to:
    do shell script "echo sed -i \"\" 's/<ACCNTTYPE>CREDITLINE/<ACCNTTYPE>CREDIT/g' " & quoted formof (POSIX pathof (itemioffs) asstring) & " > ~/Desktop/debug.txt"
    This adds "echo" to the start and "> ~/Desktop/debug.txt" to the end to create a file called debug.txt on the Desktop so that we can see if the command is correct.
    Post the contents of debug.txt
    If a debug.txt file is not created, then that means that a file with the ext .qbo was not "dropped"

  • XML replace method

    Hi,
    I have a section of an XML which I'd like to replace.  I'm using this method however it won't work.  Although both strings (myString & mystring2) are giving the expected results, the XML (XML2) remains the same after I use the replace method.  Any ideas how I can go about this? Thanks
    trace ("Relevant XML part to change: ")
        var xnList:XMLList = MovieClip(root).myXML2.*.(@label== MovieClip(root).combobox.selectedItem.label);
        var mystring2:String = xnList;
    trace ("New string: ")
        myString = myString + "\u0009" + "<Section label = \"" + "\u0009 </Section>";
    MovieClip(root).myXML2.replace (mystring2,myString);
        XMLString = MovieClip(root).myXML2;
        trace (XMLString);

    Actually both arguments of replace () are strings
    Well, the first argument needs to be the name of the node (or the index number of the node, or "*"), and the second argument needs to be an XML. You cannot pass an XMLList as a string
    You are basically adding a child node to a node. You can do so dynamically using E4X:
    var myXML2:XML = <requirements>
                        <Section label="P">
                           <Requirement_1>
                              <Name>P1</Name>
                           </Requirement_1>
                           <Requirement_2>
                              <Name>P2</Name>
                           </Requirement_2>
                        </Section>
                        <Section label="M">
                           <Requirement_1>
                              <Name>M1</Name>
                           </Requirement_1>
                           <Requirement_2>
                              <Name>M2</Name>
                           </Requirement_2>
                        </Section>
                        <Section label="C">
                           <Requirement_1>
                              <Name>C1</Name>
                           </Requirement_1>
                           <Requirement_2>
                              <Name>C2</Name>
                           </Requirement_2>
                       </Section>
                    </requirements>;
    var selectedLabel:String = "M";
    var n:uint = myXML2.Section.(@label == selectedLabel).children().length();
    var newNode:XML = new XML("<Requirement_" + (n + 1) + "><name>" + selectedLabel + (n + 1) + "</name></Requirement_" + (n + 1) + ">");
    myXML2.Section.(@label == selectedLabel).children()[n] = newNode;
    trace(myXML2);
    Trace
    <requirements>
      <Section label="P">
        <Requirement_1>
          <Name>P1</Name>
        </Requirement_1>
        <Requirement_2>
          <Name>P2</Name>
        </Requirement_2>
      </Section>
      <Section label="M">
        <Requirement_1>
          <Name>M1</Name>
        </Requirement_1>
        <Requirement_2>
          <Name>M2</Name>
        </Requirement_2>
        <Requirement_3>
          <name>M3</name>
        </Requirement_3>
      </Section>
      <Section label="C">
        <Requirement_1>
          <Name>C1</Name>
        </Requirement_1>
        <Requirement_2>
          <Name>C2</Name>
        </Requirement_2>
      </Section>
    </requirements>
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • XML Replace Element

    Hi, I am struggling with replacing XML element in web.config file
    I have got:
    <data>
    <variable name="MPS">
    <row>
    <deny users="?" />
    </row>
    </variable>
    </data>
    and I have to get:
    <data>
    <variable name="MPS">
    <row>
    <alow users="?" />
    </row>
    </variable>
    </data>
    I can remove element, but I feel I am doing it wrong way:
    [xml]$xml = Get-Content "data.xml"
    $xpath = "/data/variable/row/deny"
    $node = Select-Xml -Xml $xml -XPath $xpath | Select-Object -ExpandProperty Node
    $node.ParentNode.RemoveChild($node)
    $xml.Save("data-otp.xml")
    Please advise.
    Thanks, Przemek

    Solution:
    [xml]$xml = Get-Content .\Desktop\data.xml
    $xpath = "/data/variable/row"
    $node = Select-Xml -Xml $xml -XPath $xpath | Select-Object -ExpandProperty Node
    $elem = $xml.CreateElement("alow")
    $elem.SetAttribute("users", "?")
    $node.ReplaceChild($elem, $node.deny)
    $xml.Save(".\Desktop\data-otp.xml")

  • Flash Charts - How to manipulate the #data# replacement string in XML

    I have a problem with the XML file for a flash chart. I am trying to display a 2dColumn chart of an SQL query with the general form:
    select null link, x as name, sum(y) as value from z group by (x);
    this generates multiple rows, which are displayed as a bar in the chart. So far so good. The problem is, that each row is defined as a block in the chart, but only one name entry is created "value", which is displayed in the legend of the chart.
    I can display the block names on the x-axis of the chart, however, I can't rotate them, so that they don't overlap in the display, which I would be able to do with names. I assume, that the blocks are defined in the #data# replacement string of the XML file. I would like to change the generated XML replacement string from the SQL to make each row selected a different name, and only have one block ("value").
    What would be the easiest way to achieve this?

    user587996,
    There's no way to manipulate the #data# replacement directly, but you could generate your own XML (see Re: Apex changing nulls to zeroes when creating Flash Charts for one way to do it).
    When you say "I can't rotate them, so that they don't overlap in the display" -- have you tried the Labels Rotation chart attribute, or is that not working?
    - Marco

  • Catalog manger "search and replace " using xml script

    Hi ,
    we have renamed 6 rpd columns names in rpd & alias is not removed yet .In catalog manager i can search and replace using string .But it takes lot time as they are stored in different reports , which are existing . I am trying to use xml script for replacing them.I got sample script from help file for single column . can anyone help for doing that for multiple strings.I will provide with my inputs .
    my inputs:
    <?xml version="1.0" encoding="utf-8"?>
    <actions>
    <action command="textReplace" oldValue="column 1 " newValue="column one" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 2" newValue="column two" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 3" newValue="column three" ignoreCase="true"/>
    </actions>
    please correct me .

    Given xml content looks okay but just in case check this oldValue="column 1 ", there is additional space at the end.
    I would suggest to extract Analysis report (.csv) using Catalog Manager and find out the list of reports based on those columns.
    This would help you learn with list of reports based on report owners, and then go for the fixing those reports.
    If you go by xml replace you never know the affected reports and you may not confirm until report owners come back to you with issues.
    This might take little bit time but your changes based on proper doc.
    Let me know updates, if helps mark
    Edited by: Srini VEERAVALLI on Feb 19, 2013 3:21 PM

  • Why doesn't this replace the XML in my file?

    I am trying to write some code that replaces some XML in a file. The first part works (opening the file, locating the XML, replacing it). When I save the file, it contains the original XML not the modified XML.
    I used the Get XML method to retrieve the text I wanted to change, Setting the Value property of the node doesn't seem to work but I don't know what else to try - I need the equivalent of a 'Set XML' invoke node but I haven't found it.
    Any ideas? Am I even close?
    (I'm new to XML and manipulating it in LabVIEW and I'm glazing over now so ideas which don't involve reading another 20 documents would be really appreciated, thank you  )
    Attachments:
    Replace XML in file snippet.png ‏70 KB

    Well, Darin was first and I had same idea with XPath... So I'll post it anyway, just for the sake of effort taken
    Actually, using XPath does not require "20 documents", it is quite easy, so I'd recommend you to take a look at it if you're going to use XML.

  • How to parse XML document returned by webservices

    Hi,
    I have a form (version 10.1.2.0) which has to display the credit card types using webservices. I created the webstub and jar file through jdeveloper and then after adding the jar files in the respective classpaths, I import it in the forms. I write the code in when-button-pressed and it gives the result in xml document like this:
    <?xml version="1.0" encoding="UTF-8"?><WSAnswerTO><error>false</error><errorMessage></errorMessage><
    results><CardTypeTO><carTypId>3</carTypId><type>AMERICAN
    EXPRESS</type><numLength>15</numLength><cvvLength>4</cvvLength><comments>1 800-639-0002</comments></CardTypeTO><CardTypeTO><carTypId>4</carTypId><type>DISCOVER</type><numLength>16</numLength><cvvLength>3</cvvLength><comments>1 800-347-2683</comments></CardTypeTO><CardTypeTO><carTypId>1</carTypId><type>MASTERCARD</type><numLength>16</numLength><cvvLength>3</cvvLength><comments>1 800-633-7367</comments></CardTypeTO><CardTypeTO><carTypId>2</carTypId><type>VISA</type><numLength>16</numLength><cvvLength>3</cvvLength><comments>1 800-945-2000</comments></CardTypeTO></results></WSAnswerTO>
    From the above xml document, I only need to display the type (such as AMERICAN EXPRESS, VISA, ETC) in my forms. Can somebody please tell me how to do it. Do I need to store the values in a table first and then retrieve it. Please advise. I have already read a otn document in xml parsing but I didnt understand anything from it.
    Please help. Thanks in advance.

    Hello,
    It probably exists a database package/function to parse this kind of stuff.
    If you want to keep the process into the Forms, here is a PL/SQL package you can use:
    CREATE OR REPLACE PACKAGE Pkg_Tools AS
      --  Types  --
      -- table of strings --
      TYPE TYP_TAB_CHAR IS TABLE OF VARCHAR2(4000) INDEX BY BINARY_INTEGER;
      --  Methodes   --
      -- function that return all contents for a given XML tag --
      FUNCTION Get_Xml_Tag
         PC$XmlContent  IN VARCHAR2,                 -- XML string
         PC$Tag         IN VARCHAR2,                 -- searched tag
         PC$NewLine     IN VARCHAR2 DEFAULT CHR(10)  -- defaull NL character
      RETURN TYP_TAB_CHAR ;
    END Pkg_Tools;
    CREATE OR REPLACE PACKAGE BODY Pkg_Tools
    IS
      -- fonction de retour du contenu d'une balise XML  --
      FUNCTION Get_Xml_Tag
         PC$XmlContent  IN VARCHAR2,                 -- contenu XML
         PC$Tag         IN VARCHAR2,                 -- tag recherche
         PC$NewLine     IN VARCHAR2 DEFAULT CHR(10)  -- defaull NL character
      RETURN TYP_TAB_CHAR
      IS
       TC$Table      TYP_TAB_CHAR ;
       LC$Ligne      VARCHAR2(32000) ;
       LC$Xml        VARCHAR2(32000) ;
       LN$INDEX      PLS_INTEGER := 0 ;
       LN$TagDeb     PLS_INTEGER ;
       LN$TagFin     PLS_INTEGER ;
       LN$TagLength  PLS_INTEGER ;
       LN$LigLength  PLS_INTEGER ;
       LN$Occur      PLS_INTEGER := 1 ;
      BEGIN
        IF ( PC$XmlContent IS NOT NULL AND PC$Tag IS NOT NULL ) THEN
          LC$Xml := REPLACE( PC$XmlContent, CHR(13), '' ) ;
          LN$TagLength := LENGTH( PC$Tag ) ;
           LOOP
          LN$TagDeb := INSTR( LC$Xml, PC$Tag, 1, LN$Occur ) ;
          LN$TagFin := INSTR( LC$Xml, '</' || SUBSTR(PC$Tag,2, 256), 1, LN$Occur ) ;
          LN$LigLength := (LN$TagFin - ( LN$TagDeb + LN$TagLength ) ) ;
          IF (LN$TagDeb > 0 AND LN$TagFin > 0 ) THEN
             LN$Occur := LN$Occur + 1 ;
             LC$Ligne := SUBSTR( LC$Xml, LN$TagDeb + LN$TagLength, LN$LigLength ) ;
             LOOP
               LN$INDEX := LN$INDEX + 1 ;
               LN$TagDeb := INSTR( LC$Ligne, PC$NewLine ) ;
               IF LN$TagDeb > 0 THEN
                 IF Trim( SUBSTR( LC$Ligne, 1, LN$TagDeb - 1 )) IS NOT NULL THEN
                   TC$Table(LN$INDEX) := SUBSTR( LC$Ligne, 1, LN$TagDeb - 1 ) ;
                 ELSE
                   LN$INDEX := LN$INDEX - 1 ;
                 END IF ;
                 LC$Ligne := SUBSTR( LC$Ligne, LN$Tagdeb + LENGTH( PC$NewLine ), 30000 ) ;
               ELSE
                 IF Trim(LC$Ligne) IS NOT NULL THEN
                    TC$Table(LN$INDEX) := LC$Ligne ;
                 END IF ;
                 EXIT ;
               END IF ;
             END LOOP ;
          ELSE
              EXIT ;
          END IF ;
           END LOOP ;
        END IF ;
        RETURN TC$Table ;
      END Get_Xml_Tag ;
    END Pkg_Tools;
    /Then the call:
    DECLARE
       LC$t  VARCHAR2(2000);
       LT$Table Pkg_Tools.TYP_TAB_CHAR ;
    BEGIN
       lc$t := '<?xml version="1.0" encoding="UTF-8"?><WSAnswerTO><error>false</error><errorMessage></errorMessage><results>'
    ||'<CardTypeTO><carTypId>3</carTypId><TYPE>AMERICAN EXPRESS</TYPE><numLength>15</numLength><cvvLength>4</cvvLength>'
    ||'<comments>1 800-639-0002</comments></CardTypeTO><CardTypeTO><carTypId>4</carTypId><TYPE>DISCOVER</TYPE>'
    ||'<numLength>16</numLength><cvvLength>3</cvvLength><comments>1 800-347-2683</comments></CardTypeTO>'
    ||'<CardTypeTO><carTypId>1</carTypId><TYPE>MASTERCARD</TYPE><numLength>16</numLength><cvvLength>3</cvvLength>'
    ||'<comments>1 800-633-7367</comments></CardTypeTO><CardTypeTO><carTypId>2</carTypId><TYPE>VISA</TYPE>'
    ||'<numLength>16</numLength><cvvLength>3</cvvLength><comments>1 800-945-2000</comments></CardTypeTO></results></WSAnswerTO>' ;
       LT$Table := Pkg_Tools.Get_Xml_Tag(LC$T,'<TYPE>') ; 
       IF LT$Table.COUNT > 0 THEN
         FOR i IN LT$Table.First .. LT$Table.Last LOOP
            dbms_output.put_line( 'Table(' || i || ')=' || LT$Table(i) ) ;
         END LOOP ;
       ELSE
         dbms_output.put_line( 'tag xml not found' ) ;
       END IF ;
    END;Francois

  • Replaceregexp tag in build.xml to pass the value dynamically

    Hi,
    First of all I apologizes as this is not a java question, but sure you guys can help me out. In my build.xml, i have some thing like this:-
    <target name="all"
    depends="compile,clean_classes,replaceTemplates"/>
    <target name="compile"
    depends=" create.dir,compileclasses,jar,run"/>
         <target name="clean">
         <delete dir="${build.dir}"/>
         </target>
    <target name="clean_classes">
    <delete dir="${classes.dir}"/>
    </target>
    <target name="create.dir" depends="clean_classes">
    <mkdir dir="${classes.dir}"/>
    </target>
         <target name="replaceTemplates" depends="clean_classes">
              <replaceregexp file="${sourcefiles}/com/test/BusinessService.java"
                                  match="%%VALUE%%"
    replace="1"/> // this will be fetched dynamically from .properties
    </target>
    In my BusinessService.java,
    I have a String strValue = "%%VALUE%%";
    When i ran the build.xml, the strValue is not replaced with the value "1" as been specified in the build.xml. It seems that everything is fine the class file name path, etc. But some how it is not displaying the value "1" inplace of the placeholder? Please clarify.
    One more question on this:-
    If the value "1" is displayed for strValue variable, and if i have updated the value in the build.xml replace="2" for <replaceregexp>, in such case the updated value "2" wont be populated. Hence what is the approach we need follow, whether we need to create another folder and copy the "src" code there and make the changes in it like instead of:-
    <target name="replaceTemplates" depends="clean_classes">
              <replaceregexp file="${sourcefiles}/com/test/BusinessService.java"
                                  match="%%VALUE%%"
    replace="1"/> // this will be fetched dynamically from .properties
    </target>
    the new one will be like:-
    <target name="replaceTemplates" depends="clean_classes">
              <replaceregexp file="*${build}/*src/com/test/BusinessService.java"
                                  match="%%VALUE%%"
    replace="1"/> // this will be fetched dynamically from .properties
    </target>
    Please clarify.
    Thanks

    Don't be so impatient and don't multipost! I've deleted your other thread about the same topic.

  • What is the best program language for mass email (PHP,  ASP, Coldfusion)?

    I want to be able to send mass email (from a SQL db) with
    stability and reliability.
    I've used Coldfusion for some time (CFmail tag) and have not
    been impressed.
    It seems, at times, it has a mind of it's own, and is a
    little unreliable, especially
    when sending hundreds of emails at one shot. I'm not dogg'n
    Codfusion,
    that's what I program in, I just am looking for a method that
    I can build on.
    My question is this: What is the best and most reliable
    coding when sending mass email?
    Is it PHP, ASP, XML, Coldfusion....what?
    You would think there has to be an optimum option out
    there...right?
    Thanks for the knowledge!

    Beezy wrote:
    > say ...500-5,000, maybe larger. Any ideas?
    >
    I've used CF to send out as many as 50,000+ emails in a
    single blast and
    haven't ever had any problems with it. Particularly with CF
    Enterprise,
    CF is an extremely high-performance mail generation engine.
    Remeber
    that CF itself doesn't send the mail so you're dependent upon
    the speed
    of your mail server as a large part of the equation as well.
    Matt
    Matt Woodward
    [email protected]
    Adobe Community Expert - ColdFusion

  • SQL Replace function - error

    I am little bit struggling to get the my sql function below, to execute the correct output:
    ALTER FUNCTION [dbo].[ReplaceTags](@XML VARCHAR(MAX))
    RETURNS VARCHAR(MAX)
    AS
    BEGIN
    SELECT @XML = REPLACE(@XML,[Name],'<a href="<a href="pagename.aspx?tag='+[name]+'">'+[name]+'</a>')
    FROM [dbo].[database_tags]
    where UploadDate >= '2014-09-01'
    RETURN @XML
    END
    When I call the function (select title, [dbo].[ReplaceTags](XML) from article ), it outputs the following result below, whereas the original data is this - (One is a 1m block of AIREM 2006-1X 2A3,).
    Query output:
    One is a &amp;#163;1m block of <a href="<a href="pagename.aspx?tag=<a href="<a href="pagename.aspx?tag=<a href="<a href="pagename.aspx?tag=<a href="<a href="pagename.aspx?tag=<a href="<a
    href="pagename.aspx?tag=AIREM 2006-1X 2A3">AIREM 2006-1X 2A3</a>"><a href="<a href="pagename.aspx?tag=AIREM 2006-1X 2A3">AIREM 2006-1X 2A3</a></a>"><a href="<a href="pagename.aspx?tag=<a
    href="<a href="pagename.aspx?tag=AIREM 2006-1X 2A3">AIREM 2006-1X 2A3</a>"><a href="<a href="pagename.aspx?tag=AIREM 2006-1X 2A3">AIREM 2006-1X 2A3</a></a></a>"><a href="<a
    href="pagename.aspx?tag=<a href="<a
    I am not sure, why it keep duplicating the name.  Please advice, where I may be going wrong. 
    Thank you for your help and time.

    Hi,
    There is no problem do this using CLR in the database side, as well. You can use SQLCLR regular expression function.
    In any case your HTML is wrong in the original question. You asked for 
    SELECT @XML = REPLACE(@XML,[Name],'<a href="<a href="pagename.aspx?tag='+[name]+'">'+[name]+'</a>')
    but you need 
    SELECT @XML = REPLACE(@XML,[Name],'<a href="pagename.aspx?tag='+[name]+'">'+[name]+'</a>')
    Please post DDL+DML for the [database_tags] table.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Can i search and replace in the itunes library database file?

    Hi --
    I need to update the file location in the itunes database for a few thousand songs. These songs are just part of my full collection. A few hundred of these songs are referenced in playlists. Rebuilding the libarary, consolidating the library, adding the new folder to library -- none of these suggested solutions to similar problems will work for me. (My collection is too large for one drive and is spread over several drives, and I have many playlists with hundreds of songs, and the playlists would be ruined with any of these approaches.)
    I thought I had an easy solution by doing a search and replace in "itunes library.xml," replacing the old file path with the new one. But then I learned (as you probably already know) that the real information is stored in "itunes library," and the xml file is just a downstream copy of that information. All my edits were overwritten as soon as I opened itunes.
    The solution to my problem is completely straight-forward if I can just do a search and replace in "itunes libray." Is it possible to edit that file directly? The only database program I have is MS Access, on windows, and it couldn't open the file.
    Thanks very much
    - Mark

    How to Move Your Music to a New Computer.

  • Using xml within thumbnail gallery

    I'm creating a portfolio of websites I have designed.
    I have it working with classic ASP & XML, but want a
    Flash version too.
    So far:
    1) I have a sliding thumbnail gallery working in Flash MX
    (using AS2) whereby clicking on thumbnails loads in a larger view
    of the image. These images are screenshots of the websites.
    2) I have loaded an xml file which contains locations of
    thumbnails & larger images, as well as URL of each website, and
    some text to describe each site's content. I am able to loop
    through the xml to retrieve the data I need for each site.
    I would now like to merge the 2.
    i.e. click on thumbnail to slide in the larger image, and
    dynamically add the URL and text descriptions for each site.
    Can someone just point me in the right direction... I'll then
    try to fill in the blanks, and post again with more specific
    queries if needed.
    Thanks.

    Hi,
    It would be helpful if you added a new unique identifier field to your collection to ensure that the correct record gets updated. In the discussion below, I am assuming you have a collection named Col1 with columns ID, ImageURL and Description.
    ImageURL points to the images that get displayed in the gallery. The text in Description is bound to the input text box (named Text1) instances.
    Now, set the Behavior > OnChange property of the input text box to: UpdateIf(Col1, ID=ThisItem!ID, {Description:Text1!Text}).
    Whenever the input text is changed and you shift focus by clicking anywhere else on the canvas, the OnChange rule gets executed and your collection will be updated with the new text.
    Thanks
    Robin

  • [iPhone sdk] DOM/create XML support?

    Is there any way to create arbitrary XML on the iPhone other than the low-tech solution of using strings?
    Most environments I've worked in have support for building up a document, i.e.
    document doc = new document(root);
    addElement("myelem1").setText("sometext1");
    addElement("myelem2").setText("sometext2");
    mystring = doc.asXml();
    You get the idea. The underlying API handles all the tag generation, entity replacement, etc. Is this available in the iPhone SDK somewhere?
    Thanks in advance.

    Google has written an almost drop in replacement of NSXMLDocument. I say almost because initWithContentsOfURL is not implemented, nor is -nodesForXPath:error. There may be others that are missing, but it worked for me once I initialized it with an NSString instead of a URL. This replacement is part of the Google Data API. There are only 3 classes that need to be imported out of the whole library. You will also need to add libxml2 to the Frameworks and update your build headers.
    See http://notes.bikemonkey.org/post/47351363/googles-nsxmldocument-replacement-for- iphone
    The XML replacement is only in SVN for the moment, see http://code.google.com/p/gdata-objectivec-client/source/checkout to get it.

Maybe you are looking for

  • Why 0FISCVARNT is not shown in Query Analyzer?

    I have a cube, when I look at its dimensions from RSA1->Info provider under Time Dimension, I see Fiscal Year, Fiscal year Variant and Fiscal Year Period. But when I go to Query Analyzer and develop a query on it, under Dimensions Fiscal Year Variant

  • SAP CRM 7.0.2 issue regarding authorizations

    Hello, I have noticed that the role change is not reflecting immediately for the user in CRM 7.0.2 Web UI. Is anyone facing the same issue like this? If so, any solution to this for immediate effect? Thanks in Advance.

  • Cant open apps/icons on my macbook pro

    For some reason, i am unable to open my app store, imessage, facetime, and a couple other apps on my macbook pro. Any suggestions?

  • SLOW IMAIL SINCE INSTALLING MAVERICK

    I have read through several comments and don't see a solution.  My phone will register emails and there's nothing I can do to get it to come into my computer imail, it just comes in slowly on its own.  It is extremely frustrating.

  • Printhead suddenly stopped working

    About 4 years ago I bought the photosmart plus b210a all-in-one and about a year later after replacing the ink cartridges as instructed for this particular model and as i had done everal times already, It suddenly stopped working. It ran the test pag