From steve.heron at caplin.com Wed Oct 3 04:55:37 2007 From: steve.heron at caplin.com (Steve Heron) Date: Wed, 3 Oct 2007 12:55:37 +0100 Subject: [OpenAjax] Smash demos Message-ID: <9AEC5F50BD7E0F48891AE45ADC5611840173B5D1@ldnukms2.caplin.com> Hi, I'm trying to run the smash demo, but having trouble with the dojo dependencies. I'm not familiar with dojo and not certain which version/files I need to make the demo work. I've tried dropping in various dojo.js versions into a lib folder, but it always complains about not finding 'dojo.json'. A second question. What exactly are the compliance requirements for an OpenAjax compliant framework. I see the pubsub test suite, but none of the frameworks I've looked at that seem to claim OpenAjax compliance actually implement all the features tested here - the filtering feature and 'late binding' of method names to objects for example. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://openajax.org/pipermail/public/attachments/20071003/8e8b95e7/attachment.html From jferrai at us.ibm.com Wed Oct 3 10:04:57 2007 From: jferrai at us.ibm.com (Jon Ferraiolo) Date: Wed, 3 Oct 2007 10:04:57 -0700 Subject: [OpenAjax] Smash demos In-Reply-To: <9AEC5F50BD7E0F48891AE45ADC5611840173B5D1@ldnukms2.caplin.com> Message-ID: Hi Steve, I was successful in installing SMash by following the directions in the readme file. I installed dojo 0.4.2 in the lib directory. I set up my local web server such that dojo is located at htdocs/smash/lib/dojo/dojo.js as follows: htdocs/ smash/ lib/ dojo/ dojo.js release/ src/ tests/ etc. My understanding is that Dojo isn't necessary for the demos to work and is only used for something unessential such as console logging. I hope that helps. Jon "Steve Heron" To Sent by: public-bounces at op cc enajax.org Subject [OpenAjax] Smash demos 10/03/2007 04:55 AM Hi, I?m trying to run the smash demo, but having trouble with the dojo dependencies. I?m not familiar with dojo and not certain which version/files I need to make the demo work. I?ve tried dropping in various dojo.js versions into a lib folder, but it always complains about not finding ?dojo.json?. A second question. What exactly are the compliance requirements for an OpenAjax compliant framework. I see the pubsub test suite, but none of the frameworks I?ve looked at that seem to claim OpenAjax compliance actually implement all the features tested here ? the filtering feature and ?late binding? of method names to objects for example. thanks _______________________________________________ public mailing list public at openajax.org http://openajax.org/mailman/listinfo/public -------------- next part -------------- An HTML attachment was scrubbed... URL: http://openajax.org/pipermail/public/attachments/20071003/2099db14/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/2099db14/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic04688.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/2099db14/attachment-0001.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/2099db14/attachment-0002.gif From jferrai at us.ibm.com Wed Oct 3 11:24:13 2007 From: jferrai at us.ibm.com (Jon Ferraiolo) Date: Wed, 3 Oct 2007 11:24:13 -0700 Subject: [OpenAjax] Smash demos In-Reply-To: Message-ID: Hi Steve, Sorry for not responding to your second question. There is a distinction between an Ajax library that is OpenAjax Conformant (i.e., satisfies the conformance requirements in the OpenAjax Hub 1.0 specification) and a conformant implementation of the OpenAjax Hub 1.0 specification. For example, let's take Yahoo's YUI library. In order to have an OpenAjax Conformant Ajax library, the library has to do a handful of things, such as invoke OpenAjax.hub.registerLibrary() (if the OpenAjax Hub is present within the JavaScript environment). It does *not* have to implement things like filtering or wildcards because those features are implemented by the Hub's own JavaScript (which I assume is loaded separately via a separate SCRIPT tag). However, let's support that Yahoo decides to develop its own implementation of the OpenAjax Hub specification (versus relying on the reference implementation provided by OpenAjax Alliance) and bundle their implementation as a standard feature within the Yahoo library. In this case, that implementation must support all of the features in the OpenAjax Hub specification, including things like filters and wildcards. Make sense? Jon "steve heron" To Jon Ferraiolo/Menlo Park/IBM at IBMUS 10/03/2007 10:47 cc AM Subject Re: [OpenAjax] Smash demos thanks for the reply, I grabbed dojo 0.43 and its working now. very interesting. I don't suppose you can answer the second question above - re OpenAjax compliance requirements ? thanks Steve On 10/3/07, Jon Ferraiolo wrote: Hi Steve, I was successful in installing SMash by following the directions in the readme file. I installed dojo 0.4.2 in the lib directory. I set up my local web server such that dojo is located at htdocs/smash/lib/dojo/dojo.js as follows: htdocs/ smash/ lib/ dojo/ dojo.js release/ src/ tests/ etc. My understanding is that Dojo isn't necessary for the demos to work and is only used for something unessential such as console logging. I hope that helps. Jon Inactive hide details for "Steve Heron" "Steve Heron" < steve.heron at caplin.com> "Steve Heron" < steve.heron at c aplin.com> Sent by: To public-bounce s at openajax.or < g public at open ajax.org> 10/03/2007 cc 04:55 AM Subject [OpenAjax] Smash demos Hi, I'm trying to run the smash demo, but having trouble with the dojo dependencies. I'm not familiar with dojo and not certain which version/files I need to make the demo work. I've tried dropping in various dojo.js versions into a lib folder, but it always complains about not finding 'dojo.json'. A second question. What exactly are the compliance requirements for an OpenAjax compliant framework. I see the pubsub test suite, but none of the frameworks I've looked at that seem to claim OpenAjax compliance actually implement all the features tested here ? the filtering feature and 'late binding' of method names to objects for example. thanks _______________________________________________ public mailing list public at openajax.org http://openajax.org/mailman/listinfo/public _______________________________________________ public mailing list public at openajax.org http://openajax.org/mailman/listinfo/public -------------- next part -------------- An HTML attachment was scrubbed... URL: http://openajax.org/pipermail/public/attachments/20071003/93f8cfc4/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/93f8cfc4/attachment-0005.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic15246.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/93f8cfc4/attachment-0006.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/93f8cfc4/attachment-0007.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: 24875564.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/93f8cfc4/attachment-0008.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: 24694878.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071003/93f8cfc4/attachment-0009.gif From molly at snaplogic.org Wed Oct 10 10:29:27 2007 From: molly at snaplogic.org (Molly Morelock) Date: Wed, 10 Oct 2007 10:29:27 -0700 Subject: [OpenAjax] openAjax Logo Message-ID: <947768D6-7DB8-456F-BDFD-E5630BFF0A89@snaplogic.org> Hi OpenAjax Folks: We are members of the Open Ajax Alliance and would like to add your logo to our partners' page. Could you please send me a logo in jpg format, plus a brief description? Thanks, Molly Morelock SnapLogic Open Source Internet Data Services www.snaplogic. org tel: 650.655.7200 ext.1010 NEW mobile: 510.381.4811 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://openajax.org/pipermail/public/attachments/20071010/9d353f4e/attachment.html From jferrai at us.ibm.com Thu Oct 11 04:27:54 2007 From: jferrai at us.ibm.com (Jon Ferraiolo) Date: Thu, 11 Oct 2007 04:27:54 -0700 Subject: [OpenAjax] openAjax Logo In-Reply-To: <947768D6-7DB8-456F-BDFD-E5630BFF0A89@snaplogic.org> Message-ID: Hi Molly, The logos are at: * http://www.openajax.org/logos/OpenAjax_Alliance_Logos.zip * http://www.openajax.org/logos/OpenAjax_Alliance_Member_Logos.zip The ZIP files contain the original Photoshop files plus high-resolution PDF and EPS versions. To create a JPG, you'll need to load one of the high-resolution versions into an image editor, downsample, and then save as JPG. If you want me to do this for you, send me an email offline that indicates the size (width and height in pixels) that you need. The guidelines for using the logos are at: * http://www.openajax.org/legal/logosandtrademarks.html Jon Ferraiolo Molly Morelock To Sent by: public at openajax.org public-bounces at op cc enajax.org Subject Re: [OpenAjax] openAjax Logo 10/10/2007 10:29 AM Hi OpenAjax Folks: We are members of the Open Ajax Alliance and would like to add your logo to our partners' page. Could you please send me a logo in jpg format, plus a brief description? Thanks, Molly Morelock SnapLogic Open Source Internet Data Services www.snaplogic. org tel: 650.655.7200 ext.1010 NEW mobile: 510.381.4811 _______________________________________________ public mailing list public at openajax.org http://openajax.org/mailman/listinfo/public -------------- next part -------------- An HTML attachment was scrubbed... URL: http://openajax.org/pipermail/public/attachments/20071011/c3d8b147/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071011/c3d8b147/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic00844.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071011/c3d8b147/attachment-0001.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071011/c3d8b147/attachment-0002.gif From jferrai at us.ibm.com Mon Nov 12 09:14:32 2007 From: jferrai at us.ibm.com (Jon Ferraiolo) Date: Mon, 12 Nov 2007 09:14:32 -0800 Subject: [OpenAjax] publishing and subscribing in object initialisation In-Reply-To: <9cc0d1180711120602t7e95d627l61c942597f0385bc@mail.gmail.com> Message-ID: Hi Peter, OpenAjax Alliance has multiple mailing lists (http://openajax.org/mailman/listinfo), generally one for each of our committees. One of our lists, public at openajax.org, is read-write to non-members, but moderated in order to manage spam. I have copied this response to that email list. The other lists have been to be read-only to the public and read-write to the committee members, primarily to manage intellectual property contributions in order to protect the royalty-free nature of our activities. For a short period back in 2006, we used email lists at yahoogroups such as openajax at yahoogroups.com, but that was before we had established our own maillist software. Regarding your code, I'm not going to say whether what you are doing is good, bad, positive, negative, or whatever, except to provide some general guidelines that may or not apply to you: 1) We envision that OpenAjax.hub.registerLibrary() usually will be used by Ajax/JavaScript libraries that are posted on shared sites to be used by multiple applications. Most of the time, logic that is specific to one particular application will not invoke OpenAjax.hub.registerLibrary() on the application-specific JavaScript within that particular application. 2) I don't believe that we have written up any official Best Practices on this topic yet, but in general it is recommended that both Ajax toolkit developers and application developers minimize the number of global JavaScript objects that they create in order to minimize the chance of unexpected JavaScript naming collisions. Therefore, OpenAjax Alliance is strongly encouraging the Ajax toolkit developers to attach all of the JavaScript logic contained within a single toolkit to a small number of JavaScript globals, ideally at most one. For example, Google Web Toolkit puts all of its globals off of the global object [window.]gwt. Application developers (i..e, the developers who tend to use Ajax toolkits) should consider a similar approach and create a small number of global objects onto which they attach their variables and functions. For example, if you have a weather viewing application, perhaps you create a global variable named [window.]wview and then put all of our global variables and functions onto "wview". This helps to minimize JavaScript naming collisions and will make it easier to adapt the application should future browsers or JavaScript toolkits add new features that collide with any of your object names. 3) eval() is always dangerous, as is the use of innerHTML, because they can allow for cross-site scripting attacks (XSS) when the data comes from a source that might be untrustworthy. Instead of using eval() on arbitrary JavaScript, use the subset of JavaScript known as JSON and use a JSON parser to convert it into a JavaScript object. Only if the performance of JSON parsing is too slow for your needs and if you are absolutely certain that the source of the data is trustworthy, then maybe you consider the use of eval(). Jon "Peter Schonefeld" openajax at yahoogroups.com Sent by: cc openajax at yahoogro ups.com Subject [openajax] publishing and subscribing in object 11/12/2007 06:02 initialisation AM Please respond to openajax at yahoogro ups.com Hi All, I couldn't find a forum at openajax.org so I hope you don't mind me post my code here... I'm hoping to use OpenAjax as a general purpose client-side event hub in a new project and thought i'd play around with a way to keep most of my publish and subscribe calls in one place. Can anyone see any problems with doing as outlined in the below example? Also (a general javascript question), is it OK to use the eval statement in an object's member value as i've done here? Seems to work in Firefox, but is broken in IE7?? Cheers Pete example.js... . MESSAGE_ACTIVE_FLAG = true; function getMessageActiveFlag(){ return MESSAGE_ACTIVE_FLAG; } var Test = new function(){ this.welcome = "hi there"; this.person = "bobbie bob bobard from bobland"; this.doIt = function(){ return true; } }; /* Utils */ function getArg(arguments,pos){ return arguments[0][pos]; } /* Library Functions */ var _MYLIB_login_render = function() { return getArg(arguments,0)+getArg(arguments,1); } var _MYLIB_login_post = function(){ alert("post called"); } var _MYLIB_login_callback = function(){ alert("callback called"); } /* Subscriber Functions */ function doMessage(eventName, publisherData, subscriberData){ alert(publisherData); } function anotherTest(eventName, publisherData, subscriberData){ alert(eventName + " says, '"+subscriberData.welcome+"' to "+this.person); } /* Library Definition */ var MYLIB = { ns:"http://example.org/ns", version:"0.0", name:"My Ajax Library", components: { login: { render: eval("function(){ OpenAjax.hub.publish('MYLIB.components.login.render ',_MYLIB_login_render(arguments))}"), post: _MYLIB_login_post, callback: _MYLIB_login_callback } }, subscribers:[ OpenAjax.hub.subscribe("MYLIB.components.login.render",doMessage,null,null,getMessageActiveFlag), OpenAjax.hub.subscribe("MYLIB.components.login.render",anotherTest,Test,Test, Test.doIt) ] }; OpenAjax.hub.registerLibrary(MYLIB.name, MYLIB.ns, MYLIB.version,{}); /* Application Code */ MYLIB.components.login.render("render"," this!"); MESSAGE_ACTIVE_FLAG = false; MYLIB.components.login.render("render"," this again!"); __._,_.___ Messages in this topic (1) Reply (via web post) | Start a new topic Messages | Files | Photos | Links | Database | Polls | Members | Calendar Yahoo! Groups Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe Recent Activity 1 New Members Visit Your Group Search Ads Get new customers. List your web site in Yahoo! Search. Cat Groups on Yahoo! Groups discuss everything related to cats. Official Samsung Yahoo! Group for supporting your HDTVs and devices. . __,_._,___ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://openajax.org/pipermail/public/attachments/20071112/346090c4/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071112/346090c4/attachment-0005.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: pic04199.gif Type: image/gif Size: 1255 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071112/346090c4/attachment-0006.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071112/346090c4/attachment-0007.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: 23308531.gif Type: image/gif Size: 1833 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071112/346090c4/attachment-0008.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: 23946327.gif Type: image/gif Size: 43 bytes Desc: not available Url : http://openajax.org/pipermail/public/attachments/20071112/346090c4/attachment-0009.gif