diff --git a/form_submit_forward_external.html b/form_submit_forward_external.html new file mode 100644 index 0000000..69cb962 --- /dev/null +++ b/form_submit_forward_external.html @@ -0,0 +1,22 @@ + + + +
+ + Run Request +
+ + + diff --git a/gadgets_io_makeRequest.js b/gadgets_io_makeRequest.js new file mode 100644 index 0000000..358ca78 --- /dev/null +++ b/gadgets_io_makeRequest.js @@ -0,0 +1,31 @@ +/************************************************************************************************************* +* gadgets_io_makeRequest.js +* OpenSocial Gadgets IO MakeRequest Examples +* +* Created by Jonathan LeBlanc on 06/08/09. +* Copyright (c) 2009 Yahoo! Inc. All rights reserved. +* +* The copyrights embodied in the content of this file are licensed under the BSD (revised) open source license. +*************************************************************************************************************/ + +//run ajax request using OpenSocial gagets.io.makeRequest +function runXHR(){ + var url = "URL HERE"; + //define callback function + var callback = xhrCallback; + var params = {}; + //define content type of return value + params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT; + //define method type (e.g. GET / POST) + params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST; + //run ajax request + gadgets.io.makeRequest(encodeURI(url), callback, params); +} + +//ajax request callback +function xhrCallback(response){ + //check if data is returned from the request + if (response.text){ + //do something + } +} diff --git a/gadgets_json.html b/gadgets_json.html new file mode 100644 index 0000000..aa84a83 --- /dev/null +++ b/gadgets_json.html @@ -0,0 +1,42 @@ + + +
+
+ diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..96a0ae6 --- /dev/null +++ b/license.txt @@ -0,0 +1,23 @@ +Yahoo! Application Platform (YAP) Samples Copyright License Agreement (BSD License) + +Copyright (c) 2009, Yahoo! Inc. +All rights reserved. + +Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +* Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +* Neither the name of Yahoo! Inc. nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior + written permission of Yahoo! Inc. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + diff --git a/tooltip_popup.html b/tooltip_popup.html new file mode 100644 index 0000000..5c90c90 --- /dev/null +++ b/tooltip_popup.html @@ -0,0 +1,70 @@ + + + +
+
Container
+
+ + diff --git a/update_small_from_cron.php b/update_small_from_cron.php new file mode 100644 index 0000000..f021dff --- /dev/null +++ b/update_small_from_cron.php @@ -0,0 +1,52 @@ +setSmallView($row['uid'], $html)){ + echo "$j : NO SESSION SET FOR {$row['uid']}
\n"; + } else { + echo "$j : SESSION SET FOR {$row['uid']}
\n"; + } + $j++; + } +} +?>