You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ma...@apache.org on 2013/12/19 13:49:01 UTC
svn commit: r1552299 - in /flex/site/trunk/content: data/ data/showcase.xml
js/showcase.js
Author: mamsellem
Date: Thu Dec 19 12:49:01 2013
New Revision: 1552299
URL: http://svn.apache.org/r1552299
Log:
IN PROGRESS - FLEX-33907 Showcase section in web site
ajax implementation (test)
Added:
flex/site/trunk/content/data/
flex/site/trunk/content/data/showcase.xml
Modified:
flex/site/trunk/content/js/showcase.js
Added: flex/site/trunk/content/data/showcase.xml
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/data/showcase.xml?rev=1552299&view=auto
==============================================================================
--- flex/site/trunk/content/data/showcase.xml (added)
+++ flex/site/trunk/content/data/showcase.xml Thu Dec 19 12:49:01 2013
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<apps>
+ <app title="bCommunities - Secure B2B Collaboration"
+ author="Dan Samper"
+ website="http://bcommunities.com">
+ <description> A disruptively efficient online platform that enables businesses to powerfully
+and securely interconnect their operations with their clients and suppliers in minutes.
+Features silo-bursting project management, communications, CRM and microblogging while fostering best practices and accountability.
+ </description>
+ </app>
+</apps>
\ No newline at end of file
Modified: flex/site/trunk/content/js/showcase.js
URL: http://svn.apache.org/viewvc/flex/site/trunk/content/js/showcase.js?rev=1552299&r1=1552298&r2=1552299&view=diff
==============================================================================
--- flex/site/trunk/content/js/showcase.js (original)
+++ flex/site/trunk/content/js/showcase.js Thu Dec 19 12:49:01 2013
@@ -80,6 +80,19 @@ added when document is ready
$("a.gallery").fancybox({ cyclic: false});
+ alert("showcase-ready");
+ // retrieve showcase XML file
+ // $.get("data/showcase.xml", "false", processShowcaseXML,"xml") ;
+
+ $.ajax({ url: "data/showcase.xml", type: "GET", dataType: "xml",
+ sucess: processShowcaseXML,
+ error: function (result, state, error) {
+ alert("data/showcase.xml file is not reachable:" + error)
+ }
+ });
+
+
+
/* add showcase entries when document is loaded */
addShowcaseEntry({
title: 'bCommunities - Secure B2B Collaboration',
@@ -183,3 +196,8 @@ added when document is ready
});
+
+function processShowcaseXML( xmlData) {
+ alert("XML="+xmlData);
+
+}