Author: scottbw
Date: Thu Mar 24 11:48:31 2011
New Revision: 1084914
URL: http://svn.apache.org/viewvc?rev=1084914&view=rev
Log:
Added a widget I've used for testing for basic JQuery issues like document.ready
Added:
incubator/wookie/trunk/scratchpad/widgets/jquery/
incubator/wookie/trunk/scratchpad/widgets/jquery/build.xml
incubator/wookie/trunk/scratchpad/widgets/jquery/config.xml
incubator/wookie/trunk/scratchpad/widgets/jquery/images/
incubator/wookie/trunk/scratchpad/widgets/jquery/images/icon.png (with
props)
incubator/wookie/trunk/scratchpad/widgets/jquery/index.html
incubator/wookie/trunk/scratchpad/widgets/jquery/legal/
incubator/wookie/trunk/scratchpad/widgets/jquery/lib/
incubator/wookie/trunk/scratchpad/widgets/jquery/scripts/
incubator/wookie/trunk/scratchpad/widgets/jquery/style/
Added: incubator/wookie/trunk/scratchpad/widgets/jquery/build.xml
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/jquery/build.xml?rev=1084914&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/jquery/build.xml (added)
+++ incubator/wookie/trunk/scratchpad/widgets/jquery/build.xml Thu Mar 24
11:48:31 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project default="build-widget" basedir="." name="widget build file">
+ <property name="wookie.widgets.dir" location="../"/>
+ <property name="widget.shortname" value="jquery"/>
+
+ <import file="../build.xml"/>
+</project>
\ No newline at end of file
Added: incubator/wookie/trunk/scratchpad/widgets/jquery/config.xml
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/jquery/config.xml?rev=1084914&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/jquery/config.xml (added)
+++ incubator/wookie/trunk/scratchpad/widgets/jquery/config.xml Thu Mar 24
11:48:31 2011
@@ -0,0 +1,47 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<widget xmlns="http://www.w3.org/ns/widgets"
+ id="http://wookie.apache.org/widgets/jquery"
+ version="0.1"
+ width="200"
+ height="320"
+ >
+ <name>jquery</name>
+ <description>test jquery support with proxy</description>
+ <content src="index.html"/>
+ <icon src="images/icon.png"/>
+ <access network="false"/>
+ <author>Apache Wookie (Incubating) Team</author>
+ <licence>Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.</licence>
+
+</widget>
+
+
+
Added: incubator/wookie/trunk/scratchpad/widgets/jquery/images/icon.png
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/jquery/images/icon.png?rev=1084914&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/wookie/trunk/scratchpad/widgets/jquery/images/icon.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/wookie/trunk/scratchpad/widgets/jquery/index.html
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/jquery/index.html?rev=1084914&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/jquery/index.html (added)
+++ incubator/wookie/trunk/scratchpad/widgets/jquery/index.html Thu Mar 24
11:48:31 2011
@@ -0,0 +1,46 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="pragma" content="no-cache"/>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jquery</title>
+ <script src="/wookie/shared/js/jquery/jquery-1.3.2.min.js"
type="text/javascript"></script>
+ <script>
+ $(document).ready(function() {
$("#loadtest_result").html("PASSED"); });
+ </script>
+ </head>
+ <body>
+ <h1>Hello World...</h1>
+ <script>
+ var loc = Widget.proxify('http://localhost:8080/wookie/widgets');
+
+ jQuery.get(
+ loc, { "all" : "true" },
+ function(xml){
+ $(xml).find('widgets').each(function(){
+ $("#ajaxtest_result").html("PASSED");
+ })
+ }
+ );
+ </script>
+
+ <div id="loadtest">Document.ready <span
id="loadtest_result"></div>
+ <div id="ajaxtest">AJAX with proxy <span
id="ajaxtest_result"></div>
+ </body>
+</html>
\ No newline at end of file