[ 2 posts ]

Xiphos

  • Username: Xiphos
  • Joined: Mon Jun 20, 2011 1:09 pm
  • Posts: 2
  • Offline
  • Profile

DataSource, Remote XML

Post Posted: Mon Jun 20, 2011 1:29 pm
+0-
Hey all,
I read through every relevant topic on these boards in hopes of an answer, so I post here as a last resort. I have been asked to incorporate an AutoComplete feature in our webservice. I have been working with YUI 2.9 because previous work on this project used this release.
I am extracting data from an SQL Database, and converting it into XML format before returning the query. I then write the results of the query, in XML format to a blank webpage called GetData.aspx.
A sample source code of this looks like this:

Code:
<?xml version='1.0' encoding='ISO-8859-1'?>
<Client>
     <Name>
          <First>John</First>
          <Last>Doe</Last>
     </Name>
     <Name>
          <First>Jane</First>
          <Last>Doe</Last>
     </Name>
</Client>


I then create a Remote Datasource and an AutoComplete....

http://www.pastie.org/2098072

I have stepped through the script using Chrome development tools and I watch as it enters my code-behind page, executes the query with the query string I input from the textbox. It returns the query and use Response.Write to write the whole XML sting to the page.
. Any ideas why this isnt working? Thanks :)

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: DataSource, Remote XML

Post Posted: Mon Jun 20, 2011 11:04 pm
+0-
Hello Xiphos.

Short ansewer: resultNode vs. resultsList.

See "XML" section:
http://developer.yahoo.com/yui/datasource/#schemas

Hope that helps,
IceBox

P.S.: See also for instance the example: http://developer.yahoo.com/yui/examples ... stxml.html
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum