[OpenAjaxMobile] {Filename?} Some ideas on API loader
Jon Ferraiolo
jferrai at us.ibm.com
Thu Jul 17 07:56:13 PDT 2008
> Try this.
Hi Paddy,
I tried it and I like it. Thanks for pulling this together. IMO this is a
very good JavaScript approach.
My only question is the 'name' parameter to the load() and makeURI()
functions:
------
function makeURI(name,version,params){
return name+"?v="+version+encodeParams(params)+webvm.defaults.params;
}
------
What are some examples for 'name'? Would it be something like 'WebVM' or
'WebVM.js' or 'http://aplixcorp.com/code/WebVM.js'? In the OpenAjax
Registry, we key off of a short name that usually matches the global
JavaScript object that the given Ajax toolkit uses for most of its work.
For example, the Registry entries for jQuery and Dojo are "jQuery" and
"dojo", respectively. (Note: dojo actually uses dojo, dijit, and maybe one
or two other global objects.)
Jon
mobile-bounces at openajax.org wrote on 07/17/2008 12:33:48 AM:
> Dear MailScanner
> The original e-mail attachment "loader.js"
> is on the list of unacceptable attachments for this site and has been
> replaced by this warning message.
>
> Try this.
>
> Paddy
> [attachment "loader.zip" deleted by Jon Ferraiolo/Menlo Park/IBM]
> _______________________________________________
> mobile mailing list
> mobile at openajax.org
> http://openajax.org/mailman/listinfo/mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/mobile/attachments/20080717/06cc5326/attachment.html
More information about the mobile
mailing list