[Dojo-interest] dojo.require(), Shrinksafe and compression
Karl Tiedt
ktiedt at gmail.com
Mon Dec 17 21:32:10 UTC 2007
Since you continue to harp about this... how about a search fo onLoad (you
wanted something to run when everything was loaded right?) Context works in
search engines, thats why Google is so good... "Dojo onload" "dojo
shrinksafe require" things like that find pages related to what you need,
and often finds the "unknown" you are so stuck on claiming is unfindable
without knowing its name... I learned practically everything I know about
PHP, and JS this way... Google "Javascript 'date object' time" and you have
a page that probably lists all the javascript DateObject methods with the
word "Time" in them... (and I bet its the w3Schools page since thats often
the reference I would use).
Lack of knowledge can be worked around... its what search was made for....
lack of information cant... but all this stuff is there...
Anyways, my 2 cents on this whole thing.
-Karl
On Dec 17, 2007 3:20 PM, Daniel <daniel.carrera at zmsl.com> wrote:
> Keep in mind that searching only works if I know the name of what I'm
> looking for. Yes, in _this_ instance I did have that, I'm speaking in
> general. I'll never forget the time when I asked "I don't know how to
> start a Dojo app. Is there something similar to Ext's Ext.OnReady()?"
> and the response I got was that if I had done a web search for
> dojo.addOnLoad() I would have found the answer (me: if I had know the
> name of the function I wouldn't have had to search for it).
>
> When I can make a reasonable stab at the function name I use Google (the
> search on the Dojo website doesn't seem to work well). Ok, I didn't this
> time, but generally I do.
>
> Daniel.
>
> Shane O'Sullivan wrote:
> > You're welcome. I admit that the documentation could really do with
> > some better naming/organization. However, a search on the
> > Dojotoolkit.org website for any particular term generally tends to
> > show up the book page relating to it on the first page of results, so
> > it's always worth a shot. You'll also get answers a lot quicker than
> > waiting for an answer from the email lists.
> >
> > Google is also quite good for this. It'll show up previous emails
> > from this list, stored on Nabble and other places, and is pretty good
> > at finding useful Dojo info. Like I said, this is also quicker that
> > the lists.
> >
> > thanks
> >
> > Shane
> >
> > On 17/12/2007, Daniel <daniel.carrera at zmsl.com> wrote:
> >> Not to say that I'm not thankful for your help.
> >>
> >> Thank you very much for the link. I'm reading the documentation and
> >> other relevant blogs.
> >>
> >> Daniel wrote:
> >>> I read the documentation a lot, but I find it very difficult to locate
> >>> information in it if you don't already know where it is.
> >>>
> >>> Shane O'Sullivan wrote:
> >>>> Daniel,
> >>>>
> >>>> Please first do a search on the book
> >>>> ( http://dojotoolkit.org/book/dojo-book-0-9-0) when you have a query,
> >>>> as these mails are sent to hundreds of people. Often, though not
> >>>> always, the answers are there.
> >>>>
> >>>> In this case, see
> >>>> http://dojotoolkit.org/book/dojo-book-0-9/part-4-meta-dojo/package-system-and-custom-builds
>
> >>>>
> >>>> thanks
> >>>>
> >>>> Shane
> >>>>
> >>>> On 17/12/2007, Daniel <daniel.carrera at zmsl.com > wrote:
> >>>>> Dylan Schiemann wrote:
> >>>>>> The Dojo build system gives you ShrinkSafe's capabilities
> automatically,
> >>>>>> including knowing which files to build in. ShrinkSafe as a
> stand-alone
> >>>>>> is really intended for people not using Dojo's build system.
> >>>>> How do I use "the Dojo build system"? What do I do? I don't imagine
> that
> >>>>> running dojo.require() automatically compresses the file, since I
> know
> >>>>> that ShrinkSafe runs on Rhino and I don't have that.
> >>>>>
> >>>>> Having a single package with everything would allow me to use gzip.
> You
> >>>>> see, I don't control the server, so I don't get to install mod_gzip.
> So
> >>>>> I have to do a PHP trick:
> >>>>>
> >>>>> <?php
> >>>>> /* Save as dojo.compressed.js.php or some such */
> >>>>> ob_start ("ob_gzhandler");
> >>>>> header("Content-type: text/js; charset: UTF-8");
> >>>>> header("Cache-Control: must-revalidate");
> >>>>> $offset = 60 * 60 ;
> >>>>> $ExpStr = "Expires: " .
> >>>>> gmdate("D, d M Y H:i:s",
> >>>>> time() + $offset) . " GMT";
> >>>>> header($ExpStr);
> >>>>> ?>
> >>>>> /* dojo code goes here */
> >>>>>
> >>>>>
> >>>>> Cheers,
> >>>>> Daniel.
> >>>>> _______________________________________________
> >>>>> FAQ: http://dojotoolkit.org/support/faq
> >>>>> Book: http://dojotoolkit.org/docs/book
> >>>>> Forums: http://dojotoolkit.org/forum
> >>>>> Dojo-interest at dojotoolkit.org
> >>>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >>>>>
> >>>> _______________________________________________
> >>>> FAQ: http://dojotoolkit.org/support/faq
> >>>> Book: http://dojotoolkit.org/docs/book
> >>>> Forums: http://dojotoolkit.org/forum
> >>>> Dojo-interest at dojotoolkit.org
> >>>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >>>>
> >>> _______________________________________________
> >>> FAQ: http://dojotoolkit.org/support/faq
> >>> Book: http://dojotoolkit.org/docs/book
> >>> Forums: http://dojotoolkit.org/forum
> >>> Dojo-interest at dojotoolkit.org
> >>> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >>>
> >> _______________________________________________
> >> FAQ: http://dojotoolkit.org/support/faq
> >> Book: http://dojotoolkit.org/docs/book
> >> Forums: http://dojotoolkit.org/forum
> >> Dojo-interest at dojotoolkit.org
> >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >>
> > _______________________________________________
> > FAQ: http://dojotoolkit.org/support/faq
> > Book: http://dojotoolkit.org/docs/book
> > Forums: http://dojotoolkit.org/forum
> > Dojo-interest at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org<http://dojotoolkit.org/forumDojo-interest@dojotoolkit.org>
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
--
-Karl Tiedt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20071217/7f3fb522/attachment.html
More information about the Dojo-interest
mailing list