Spry and JSON

pleases Help!
I am trying to get a basic example working using spry and
JSON and i keep getting the following errors:
Spry.Data.HTTPSourceDataSet has no properties
Spry.Data.HTTPSourceDataSet has no properties
I am trying to get my json data from a cfc like this
var dsEmployees = new
Spry.Data.JSONDataSet("./model/CS3/Employee.cfc?method=getAllEmployees",{path:"employeeLi st"});
What am i doing wrong?
Thank you

Actually it is the first java file include...
Below is my code
dsp_MasterDetail.cfm
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:spry="
http://ns.adobe.com/spry/">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<script language="JavaScript"
src="./SpryAssets/SpryData.js"
type="text/javascript"></script>
<script language="JavaScript"
src="./SpryAssets/SpryEffects.js"
type="text/javascript"></script>
<script language="JavaScript"
src="./SpryAssets/SpryJSONDataSet.js"
type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
var dsEmployees = new
Spry.Data.JSONDataSet("./model/CS3/Employee.cfc?method=getAllEmployees",{path:"employeeLi st"});
//-->
</script>
<style type="text/css">
<!--
.selected {
background-color: #0099FF;
.hover {
background-color: #FFFFCC;
.even {
background-color: #CCCCCC;
.style1 {
font-size: large;
font-weight: bold;
-->
</style>
</head>
<body>
<table border="1">
<tr>
<td>
<div spry:region="dsEmployees">
<div spry:state="loading">Loading employee data <br
/><img src="ajax-loader.gif" /></div>
<div spry:state="error">An error occured loading your
dataset.</div>
<div spry:state="ready" style="height:200px;
width:200px;overflow:auto;">
<table border="1" >
<tr>
<th spry:sort="FullName">Employee</th>
</tr>
<tr spry:repeat="dsEmployees" spry:setrow="dsEmployees"
spry:hover="hover" spry:select="selected"
onClick="MM_effectAppearFade('Detail_DIV', 1000, 0, 100,
false)">
<td>{FULLNAME}</td>
</tr>
</table>
</div>
</div>
</td>
<td valign="top">
<div align="left" spry:region="dsEmployees"
spry:state="ready"
id="details"><strong>Details</strong><br
/><hr align="left" width="75"/></div>
<div id="Detail_DIV" spry:detailregion="dsEmployees">
<table id="Detail_Table" border="0" width="50%">
<tr>
<th>NT_ID</th><td>{NT_ID}</td>
</tr>
<tr>
<th>EMPLID</th><td>{EMPLID}</td>
</tr>
<tr>
<th>EMAIL</th><td>{EMAIL}</td>
</tr>
<tr>
<th>PHONE</th><td>{PHONE}</td>
</tr>
<tr>
<th>DEPTID</th><td>{DEPTID}</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
Employee.cfc
<cfcomponent displayName="employees" output="yes">
<cffunction name="getAllEmployees" access="remote"
output="yes">
<cfset var allPersons = queryNew("FullName, NT_ID,
EMPLID,EMAIL,PHONE,DEPTID") />
<cfset var toXML = "" />
<cfset var toJSON = "" />
<cfset var xmlQuery = "" />
<cfset var JSONQuery = "" />
<cfquery name="allPersons" datasource="cams_dev"
blockfactor="100">
SET CONCAT_NULL_YIELDS_NULL Off;
SELECT TOP 25 LAST_NAME + ', ' + FIRST_NAME AS FullName,
NT_ID, EMPLID, EMAIL, PHONE, DEPTID
FROM dbo.vwKscUsaPerson
ORDER BY LAST_NAME, FIRST_NAME
SET CONCAT_NULL_YIELDS_NULL On;
</cfquery>
<cfset JSONQuery =
application.toJSON.queryToJSON(allPersons, "employees")>
<cfsetting showdebugoutput="no">
<cfoutput><cfcontent type="text/html"
reset="true">#htmlcodeformat(JSONquery)#</cfoutput>
</cffunction>
</cfcomponent>
this cfc returns this json code
{"employees":[{"DEPTID":"014A420","EMAIL":"[email protected]","EMPLID":"025044","FULLNAME":"Aa dsen,
Ronald","NT_ID":"USATX\AadsenRP","PHONE":"123
456-7891"},{"DEPTID":"IDI-8011","EMAIL":"[email protected]","EMPLID":"KS997E7R","FULLNAME":"A aron,
Earnestine","NT_ID":"KSCBOC\AARONED","PHONE":"123
456-7891"},{"DEPTID":"IDI-KICS","EMAIL":"[email protected]","EMPLID":"KSANC4CD","FULLNAME":"A arts,
Bryan","NT_ID":"ICDNET\AartsBR","PHONE":"123
456-7891"},{"DEPTID":"0162230","EMAIL":"[email protected]","EMPLID":"011000","FULLNAME":"Abad ejos,
Ernesto","NT_ID":"USATX\abadejea","PHONE":"123
456-7891"},{"DEPTID":"0351480","EMAIL":"[email protected]","EMPLID":"004479","FULLNAME":"Abbe y,
David","NT_ID":"USAFL\ABBEYDA","PHONE":"123 456-7891"}]}

Similar Messages

  • Developer-Online New Tutorial Released: Create a Flickr gallery using jquery and JSON

    Create a Flickr gallery using jquery and JSON
    Hello everyone, In this tutorial I'll show how is simple to build your Flickr photo gallery using jQuery framework and JSON. We'll see how to setup thumbnail's numbers, convert your RSS Flickr in a JOSOn format and display theme. Thank You for your attention!
    Posted on:                                       2010-01-11 10:20:48
    Author: patrizio Quatrini
    Best Regards
    Waleed Barakat

    Heya,
    When I first read your post I originally thought you were posting a tutorial about whether a chosen username has already been resigtered or not on the signup page like this tutorial:
    http://DwFAQ.info/signup_demo.php
    Spry Check Username Availability
    Date Created: Sunday, July 5, 2009 2:29 PM
    Then after looking at the page you've linked to and trying to understand the objective of the tutorial I've noticed that you are talking about something like this:
    http://DwFAQ.info/home.php?id=7
    Spry Search
    Date Created: Sunday, March 1, 2009 8:51 PM
    It's pretty simple to do with the link I've referenced. Simply create your database with populated tables, use the mentioned script to convert the database data into xml syntax, then enter your dynamic database script as the location of the xmlDataSet in the spry page linked.
    View source on this page which shows the non-destructive filter in action to see how it's done! You can also spice it up a little for products, etc. by using this method. The key is to create a dynamic xml syntax from your database and then use the dynamic xml script location as your xmlDataSet in the search page.
    I have an example of the auto suggest search on my homepage http://DwFAQ.info
    On the top-left side of the page click on the link that says Search Tutorials to reveal the search form. Then start typing characters into the search box to see the entries instantly filter according to the characters that are typed. You can also filter further by clicking on the category checkboxes to filter by keywords AND category.
    You can view the source code on my homepage to see the location of the dynamic xml syntax referenced as the xmlDataSet location and how it was implemented into the site.

  • Flash not rendering correctly in IE using Spry and SWFObject.

    Hi,
    Tools that I'm using (Flash, Spry and SWFObject)
    I just finished converting portions of the image gallery to a
    video gallery using FLV Files.
    It works great in FireFox and Opera, I guess all mozilla
    based browsers.
    Now my problem is that I pass the Path variable to Flash for
    it to load the FLV file using SWFObject.
    Code:
    <div spry:detailregion="dsVideos"
    class="AccordionPanelContent">
    <div id="flashcontent"> You need to upgrade your Flash
    Player. </div>
    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("VideoPlayer.swf", "videoplayer",
    "427", "288", "8", "#161616");
    so.addVariable("video", "{@path}");
    so.write("flashcontent");
    // ]]>
    </script>
    </div>
    The FLV files won't load at all in IE meaning the variable is
    not going thru when Flash is rendered for a second time.
    So I added another variable just to see Flash reaction once
    the page loaded for the first time.
    Code:
    so.addVariable("Variable1", "I Love This Bug!");
    I added Variable1 to the Flash Movie as a textbox and It
    loads in a split second for the first render but when Spry loads it
    datasets and renders the region where Flash resides the variable
    doesnt go thru and Flash gets a undefined variable.
    When Spry renders that region the video variable is not going
    thru and no video is shown. :(
    Any suggestion?

    Don -
    Have you had any success here? I've been trying to get any
    kind of Flash
    to load properly in IE in a spry:region (or :detailregion),
    and have
    failed entirely.
    I added spry:state="ready" to the div with the Flash movie,
    but no fix.
    I've tested with both IE 6 and IE 7 beta, and with FP 8 and
    FP 9.
    I have a few test pages (everything works great in FireFox):
    - www.imagicdigital.com/portfolios/video_state7.html
    (uses SWFObject to write the movie, with spry info as
    FlashVars)
    IE: Flash movie is hidden. No FlashVars are passed.
    - www.imagicdigital.com/portfolios/video_state7_noso.html
    (same page as above, but with the standard Object/Embed tags,
    no SWFObject)
    IE: Flash movie is hidden. No FlashVars are passed.
    - www.imagicdigital.com/portfolios/video_state7a_noso.html
    (same page as above but with hardcoded FlashVars)
    IE: Flash movie is hidden. No FlashVars are passed.
    - www.imagicdigital.com/portfolios/video_state7b_noso.html
    (a Flash movie with no FlashVars at all)
    IE: Flash movie is hidden.
    - www.imagicdigital.com/portfolios/video_state7c_noso.html
    (same as 7a but with spry:region removed from the flash div)
    IE: Works perfectly. Flash movie shows up, FlashVars are
    passed.
    I noticed a few things:
    - In IE, the spry:debug generated markup shows FlashVars="",
    empty.
    - I don't see an innerHTML fix call for the FlashVideo div,
    even if I
    make it into a spry:region instead of detailregion. Can this
    help omehow?
    - In IE 7, if I right-click where my flash movie is supposed
    to show up,
    it does become visible (with no FlashVars). However, IE often
    crashes
    after that, either right away or on window close. The error
    shown in
    the alert is "Out of Memory at Line 56". This is both with
    and without
    passing FlashVars.
    NOTE: This error was just recently discussed on the SWFObject
    mailing
    list. Geoff Stearns found a sort of bug in FP 9 that was also
    causing
    this same error when 2 Flash movies were embedded with
    SWFObject and
    each making different ExternalInterface calls. He fixed it by
    removing
    the function written by Flash when it loads called
    "__flash_unloadHandler()". Link to the relevant discussion
    thread:
    http://lists.deconcept.com/htdig.cgi/swfobject-deconcept.com/2006-July/000795.html
    It would be great (crucial, I think) to get Spry to work with
    SWFs. Any
    ideas or progress? Thanks in advance.

  • Rest method that can support request/responce in both xml and json formats

    Hi,
    I want  to create rest method that can support request/responce in both xml and json formats.
    I am trying in bellow way, but its not working getting error.
    any idea on this?
    Code in IService.cs :
    [OperationContract]       
    [WebGet(UriTemplate = "/Login/{UserID}/{Password}")]
    Responce Login(string UserID, string Password);
    Code in Service.cs :
    public Responce Login(string UserID, string Password)
                try
                    objResponce = new Responce();
                    objResponce.MessageType = Responce.ResponceType.Warning.ToString();
                    string Con = GetConnectionString(UserID, Password);  //Method to check valid user or not
                    if (Con.Trim().Length != 0)            
                        objResponce.Message = "you have logged in Successfully";                   
                    else
                        objResponce.Message = "Please Enter Valid UserID,Password";                
                catch (Exception ex)
                    through ex;             
                return objResponce;
    My Config settings :
    <services>
          <service name="OnePointAPI.OnePointAPIService">
               <endpoint address="JSON" binding="webHttpBinding" contract="OnePointAPI.IOnePointAPIService" behaviorConfiguration="webJSON" ></endpoint>
               <endpoint address="XML" binding="basicHttpBinding" contract="OnePointAPI.IOnePointAPIService" behaviorConfiguration="webXML" ></endpoint>     
          </service>   
     </services>
     <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
              <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
            <behavior name="webJSON">
              <webHttp defaultOutgoingResponseFormat="Json"/>
            </behavior>
            <behavior name="webXML">
              <webHttp defaultOutgoingResponseFormat="Xml" />
            </behavior>
          </endpointBehaviors>
     </behaviors>  
    Anwar Shaik

    In several days (in the 19th) i will lecture at
    SQLSaturday #360 and my last demo (hopefully I will have the time) is
    Full implementation of JSON, I will show several function using JSON serializer and deserializer, and as mentioned full implementation including fast
    indexes on JSON column (finding specific Node in 10 million rows
    in less then a second). If you want to wait, then I will publish it latter probably, or you can come the lecture if you want :-)
    * I am using Json.NET framework, by the way.
    regarding your question, all you need is to find a nice serializer/deserializer framework (you can use
    Json.NET framework) in order to do what you are looking for (if I understand what you asked)
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Spry and Iframe event handlers

    Hi,
    I am trying to implement an ajax simulated file upload using
    spry and iframes. With Spry's power to attach event handlers and
    $$() notation for accessiblities is there a way that you can detect
    when an iframe is loaded using any of spry's utilities.?

    there is nothing other than the basic delay in web overlay.
    I suppose the only thing to do would be to create the whole article as HTML, but I'm sure that would be over the top, it would put me off!
    Alistair

  • Spry and Lightbox II

    I just finished a photo Gallery using Spry and Lightbox, any
    feedback would be greatly appreciated.
    http://www.daishocreative.com/ourWork/index.html
    Thank you and happy Holidays

    This is what you get with script disabled:
    http://www.projectseven.com/cs4public/spgalusable.gif
    You also need a loading image to indicate something is
    happening when you
    click a thumbnail and your VCR controls are not apparent
    enough.
    Al Sparber - PVII
    http://www.projectseven.com
    The Finest Dreamweaver Menus | Galleries | Widgets
    http://www.projectseven.com/go/pop
    The Ultimate DW Menu System
    "extrem94" <[email protected]> wrote in
    message
    news:gjavpb$7uf$[email protected]..
    >I just finished a photo Gallery using Spry and Lightbox,
    any feedback would
    >be greatly appreciated.
    >
    http://www.daishocreative.com/ourWork/index.html
    >
    > Thank you and happy Holidays

  • REST and JSON in OC4J?

    Hi,
    Pardon my ignorance with web technologies as I'm still starting. Just wanted to ask, is it possible to create and deploy RESTful Web Services and JSON format in OC4J?
    Thanks,
    Allen

    I think you can work that within the orion-application.xml file:
    <imported-shared-libraries>
         <remove-inherited name="oracle.xml"/>
         <import-shared-library name="xalan" />
         <import-shared-library name="xerces" />
    </imported-shared-libraries>
    Where you've defined shared-lib entries for the above.
    Reference:
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
    I don't know if this is handled in the same way for the version you are dealing with, however.

  • JSON.parse Response parse failed. I can not open files and JSON.parse Response parse failed. shows up it dosn't happen with I E browser

    JSON.parse Response parse failed.
    I can not open files. And JSON.parse Response parse failed. shows up.
    It doesn't happen when i use the I E browser, so I can't use firefox

    Hi
    I'm trying to make a movie from the JpegImagesToMovie class. But i get a null point exception :(
    java.lang.NullPointerException
         at com.sun.media.multiplexer.video.QuicktimeMux.writeVideoSampleDescription(QuicktimeMux.java:936)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeSTSD(QuicktimeMux.java:925)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeSTBL(QuicktimeMux.java:905)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeMINF(QuicktimeMux.java:806)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeMDIA(QuicktimeMux.java:727)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeTRAK(QuicktimeMux.java:644)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeMOOV(QuicktimeMux.java:582)
         at com.sun.media.multiplexer.video.QuicktimeMux.writeFooter(QuicktimeMux.java:519)
         at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
         at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
         at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
         at com.sun.media.BasicController.close(BasicController.java:261)
         at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
         at com.sun.media.BasicController.close(BasicController.java:261)
         at movieclear.MovieManager.JpegImagesToMovie.controllerUpdate(JpegImagesToMovie.java:179)
         at com.sun.media.BasicController.dispatchEvent(BasicController.java:1254)
         at com.sun.media.SendEventQueue.processEvent(BasicController.java:1286)
         at com.sun.media.util.ThreadedEventQueue.dispatchEvents(ThreadedEventQueue.java:65)
         at com.sun.media.util.ThreadedEventQueue.run(ThreadedEventQueue.java:92)
    Please please help me out.. I'm totally stuck in this thing. A MOV file is created, but it's a 0kb file.
    Please help me out..
    Sootie.

  • Spry and Dereamweaver 8

    Can I use Spry 1.6 with Dreamweaver 8? If so, how do I do
    it?

    I believe you can, but DW8 won't doesn't display any Spry
    menu bars for dropping in Spry widgets into your code
    automatically. You have to hand code everything. I would recommend
    downloading the latest version of Spry and working through the
    samples. As long as you are including the javascript and css files
    in the head of your html it should work.
    Simon

  • Spry and Search Engines

    I like the framework and the ease of use. Does anyone know to
    what
    degree the search engines will evaluate the spry tags, if at
    all? My
    guess is that a hybrid will be needed as discussed at the
    bottom of this
    page:
    http://labs.adobe.com/technologies/spry/articles/data_set_overview/,
    and
    here:
    http://domscripting.com/blog/display/41.
    Any other ideas? All of my customers are extremely
    search-engine sensitive.
    Rod

    Hey Rod,
    As far as I know, search engines read source code. In that
    regard, Spry Data in general will fail since, the content is not
    kept in the source code.
    Check out the data set overview about the spry:content
    attribute. That is used so that pages are more accessible and it
    helps search engine stuff as well.
    It allows you to have static content on the page, but
    spry:content will replace that content on the screen with its data.
    So this allows for content for search engines to read, plus
    the dynamic aspect of spry data.
    But in general, Spry and Ajax, doesn't yet play well with
    these other technologies.
    Hope this helps.
    Donald Booth
    Adobe Spry Team

  • Spry and Sitemaps?

    Hi, I used an external company to generate my XML Sitemap. It did not pick up the URL for the pages containing the data tables used in my Spry Regions. On the company's Forum they blame the use of Spry/Java. To be a little clearer. I have a table with data in sportsdata.html Sports.html use the data in sportsdata.html to generate the dataset for the Spry Regions. In the sitemap.xml the sportsdata.html page is not listed. I am concerned since most of the data needed for keyword (SEO) is with-in the data page. Do Spry and SEO really get along? Thanks for your help.

    Thanks Arnout. I did mean Javascript. If I move the tabel to the sports.html then the table will be visable? The reason I have it set up this way is there is a ton of information in the table, but, by using Spry regions on a seperate page it makes it all available in very little space. Would this work? I put a hidden link to the sportsdata.html on sports.html. I would then think it would get picked up by the spiders. Is it possible to then redirect anyone trying to go to sportdata.html to sports.html? Sorry for the ignorance.

  • Spry and FileMaker

    I'm using Spry in CS3 along with FileMaker as the databse where I want to store data that is built in a Spry framework.  Does anyone know if it is possible to stuff data into FileMaker from Spry?  And if so, how ??
    dm225

    Yes Spry and FileMaker Play very well together, both of my websites are driven by FileMaker 10 and Adobe Spry.
    There is a complete FileMaker API for PHP.  You do need to have the FileMaker files hosted by FileMaker Server.
    Get the file from my 2008 Presentation on FileMaker and Adobe Spry off my site http://apphiasolutions.com/downloads.php
    It contains a complete sample cms solution with the powerpoint.
    If you need more info contact me directly.
    Joe
    Apphia Solutions, LLC
    [email protected]
    http://apphiasolutions.com

  • Spry and Google  Open Social

    ciao all ,
    I'm too curiuos to start a new project using spry and the
    Google " toy" OPENSOCIAL , just to know before starting , do the
    Spry team knows if there's any incompatibility between your great
    ajax framework and their APIS
    for example :
    http://code.google.com/apis/opensocial/articles/readwrite.html
    excuse me if this post is out of topic
    thanks in advance
    Paolo

    5h4k42u1u wrote:
    > if i'd use the spry tables with an RSS feed, it'll work
    with IE but not with
    > FF, but then when i try it with a local XML file, it'll
    work with FF but not
    > IE? In fact, why does it have trouble at all with the
    local file, there should
    > be no cross domains to worry about, right?
    You're right that there should be no problem with a local
    file, but
    without seeing the XML file and your code, it's impossible to
    say what's
    causing the problem. I think your best bet is to post a more
    detailed
    question in the Spry forum.
    http://www.adobe.com/go/labs_spry_pr1_forum
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Spry and prototype in jetspeed

    Hi!
    I have the same problem as some others with spry and
    prototype. I want to use spry in a portlet in liferay. Liferay use
    prototype.js. I have tried to put the spry before and after the
    prototype and I have tried it with prototype.js versions 1.4
    1.5_rc1 and 1.5. The spry version I use is 1.4.
    If have both at one page I get always:
    Spry.Data.updateRegion(toJSONString) caught an exception:
    TypeError: Spry.Data.regionsArray[regionName].updateContent is not
    a function
    If you have fixed this in your current version of spry - when
    will this be available?
    Thank you! marc.

    Hi again!
    If prototype.js is in the page the sorting does not work. So
    again my question.. is there a newer version of spry, which works
    with prototype.js and this jason.js?
    Its critical for us, that spry works with the liferay portal!
    best regards, marc.

  • Spry and ColdFusion :: Improve Performance By Cutting Out ColdFusion

    Another in my series of Spry and ColdFusion Articles:
    http://www.infoaccelerator.net/client/index.cfm/2006/10/17/Spry-and-ColdFusion--Improve-Pe rformance-By-Cutting-Out-ColdFusion

    Andy,
    Good subject.... I don't use CF, but I understand your
    motivation to write the article - which to me underlines the sub
    structure issues involved with using a front end xml technology
    such as spry. I personally don't have much to say about spry
    because I think the core of it works brilliantly, any improvements
    are a bonus to me - don't flame me for this but I am not interested
    in widgets and effects - the core data manipulation is what floats
    my boat.
    It would be even more brilliant if adobe could contribute to
    the ‘spry package’ useful information about managing
    XML data on the backend – I realise this would be broad - I
    don’t really know how it would be approached. This would give
    us 'designers' some confidence in building the applications we
    choose - don't ask me specifically what that entails (if I knew I
    would do it myself) – to my mind there is a lot more to the
    power to spry than front end effects to display data if coupled up
    with good backend coordination – although the effects
    solutions are good - I am not knocking the effects etc… I am
    simply supporting the above fore-mentioned article as a cause for
    interest when developing with spry.
    Andy

Maybe you are looking for