|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Injecting JavaScripts and CSS, a la Jason HuckI see there is a method not to inject javascripts on forms at the end of the page. Conversely is there a way to inject custom javascripts? I currently just put them on the cnt_page.inc, but I want better control over their loading, their order and eventually minimizing and compression. Ditto for CSS. Basically putting Jason Huck's optimization techniques into practice within Knop.
http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered-sites/ --steve -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckGood idea. Currently there isn't but the foundation is there (for the built-in injection) so it's a simple addition.
At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >I see there is a method not to inject javascripts on forms at the end of the page. Conversely is there a way to inject custom javascripts? I currently just put them on the cnt_page.inc, but I want better control over their loading, their order and eventually minimizing and compression. Ditto for CSS. Basically putting Jason Huck's optimization techniques into practice within Knop. > >http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered-sites/ > >--steve > >-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >Steve Piercy Web Site Builder Soquel, CA ><web@...> <http://www.StevePiercy.com/> > >-- >############################################################# >This message is sent to you because you are subscribed to >the mailing list <knop@...>. >To unsubscribe, E-mail to: <knop-off@...> >Send administrative queries to <knop-request@...> >List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >Project homepage http://montania.se/projects/knop/ >Google Code has the latest downloads at http://code.google.com/p/knop/ -- Johan Sölve [FSA Member, Lasso Partner] Web Application/Lasso/FileMaker Developer MONTANIA SOFTWARE & SOLUTIONS http://www.montania.se mailto:joh-n@... (spam-safe email address, replace '-' with 'a') -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckThat would be lovely!
I've been locking at Jasons technique with ave but haven't had time or brain to make use of it. HDB Jolle 24 aug 2009 kl. 08.17 skrev Johan Solve: > Good idea. Currently there isn't but the foundation is there (for > the built-in injection) so it's a simple addition. > > At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >> I see there is a method not to inject javascripts on forms at the >> end of the page. Conversely is there a way to inject custom >> javascripts? I currently just put them on the cnt_page.inc, but I >> want better control over their loading, their order and eventually >> minimizing and compression. Ditto for CSS. Basically putting >> Jason Huck's optimization techniques into practice within Knop. >> >> http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered-sites/ >> >> --steve >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Steve Piercy Web Site Builder Soquel, CA >> <web@...> <http://www.StevePiercy.com/> >> >> -- >> ############################################################# >> This message is sent to you because you are subscribed to >> the mailing list <knop@...>. >> To unsubscribe, E-mail to: <knop-off@...> >> Send administrative queries to <knop-request@...> >> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >> Project homepage http://montania.se/projects/knop/ >> Google Code has the latest downloads at http://code.google.com/p/ >> knop/ > > > -- > Johan Sölve [FSA Member, Lasso Partner] > Web Application/Lasso/FileMaker Developer > MONTANIA SOFTWARE & SOLUTIONS > http://www.montania.se mailto:joh-n@... > (spam-safe email address, replace '-' with 'a') > > -- > ############################################################# > This message is sent to you because you are subscribed to > the mailing list <knop@...>. > To unsubscribe, E-mail to: <knop-off@...> > Send administrative queries to <knop-request@...> > List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html > Project homepage http://montania.se/projects/knop/ > Google Code has the latest downloads at http://code.google.com/p/knop/ -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckWhen I last checked with Jason, there was a problem with getting the yuicompressor java app to run on CentOS 5.x (not sure which .version without looking it up). It's just fine on Windows and Mac. All the other techniques could be applied.
--steve On Monday, August 24, 2009, list@... (Jolle Carlestam) pronounced: >That would be lovely! >I've been locking at Jasons technique with ave but haven't had time or >brain to make use of it. > >HDB >Jolle > >24 aug 2009 kl. 08.17 skrev Johan Solve: > >> Good idea. Currently there isn't but the foundation is there (for >> the built-in injection) so it's a simple addition. >> >> At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>> I see there is a method not to inject javascripts on forms at the >>> end of the page. Conversely is there a way to inject custom >>> javascripts? I currently just put them on the cnt_page.inc, but I >>> want better control over their loading, their order and eventually >>> minimizing and compression. Ditto for CSS. Basically putting >>> Jason Huck's optimization techniques into practice within Knop. >>> >>> >http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered >-sites/ >>> >>> --steve >>> >>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>> Steve Piercy Web Site Builder Soquel, CA >>> <web@...> <http://www.StevePiercy.com/> >>> >>> -- >>> ############################################################# >>> This message is sent to you because you are subscribed to >>> the mailing list <knop@...>. >>> To unsubscribe, E-mail to: <knop-off@...> >>> Send administrative queries to <knop-request@...> >>> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>> Project homepage http://montania.se/projects/knop/ >>> Google Code has the latest downloads at http://code.google.com/p/ >>> knop/ >> >> >> -- >> Johan Sölve [FSA Member, Lasso Partner] >> Web Application/Lasso/FileMaker Developer >> MONTANIA SOFTWARE & SOLUTIONS >> http://www.montania.se mailto:joh-n@... >> (spam-safe email address, replace '-' with 'a') >> >> -- >> ############################################################# >> This message is sent to you because you are subscribed to >> the mailing list <knop@...>. >> To unsubscribe, E-mail to: <knop-off@...> >> Send administrative queries to <knop-request@...> >> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >> Project homepage http://montania.se/projects/knop/ >> Google Code has the latest downloads at http://code.google.com/p/knop/ > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckIt runs on CentOS sometimes -- YMMV. I haven't figured out why it
works in some instances but not others. - jason On Mon, Aug 24, 2009 at 4:46 AM, Steve Piercy - Web Site Builder<Web@...> wrote: > When I last checked with Jason, there was a problem with getting the yuicompressor java app to run on CentOS 5.x (not sure which .version without looking it up). It's just fine on Windows and Mac. All the other techniques could be applied. > > --steve > > > On Monday, August 24, 2009, list@... (Jolle Carlestam) pronounced: > >>That would be lovely! >>I've been locking at Jasons technique with ave but haven't had time or >>brain to make use of it. >> >>HDB >>Jolle >> >>24 aug 2009 kl. 08.17 skrev Johan Solve: >> >>> Good idea. Currently there isn't but the foundation is there (for >>> the built-in injection) so it's a simple addition. >>> >>> At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>>> I see there is a method not to inject javascripts on forms at the >>>> end of the page. Conversely is there a way to inject custom >>>> javascripts? I currently just put them on the cnt_page.inc, but I >>>> want better control over their loading, their order and eventually >>>> minimizing and compression. Ditto for CSS. Basically putting >>>> Jason Huck's optimization techniques into practice within Knop. >>>> >>>> >>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered >>-sites/ >>>> >>>> --steve >>>> >>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>>> Steve Piercy Web Site Builder Soquel, CA >>>> <web@...> <http://www.StevePiercy.com/> >>>> >>>> -- >>>> ############################################################# >>>> This message is sent to you because you are subscribed to >>>> the mailing list <knop@...>. >>>> To unsubscribe, E-mail to: <knop-off@...> >>>> Send administrative queries to <knop-request@...> >>>> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>> Project homepage http://montania.se/projects/knop/ >>>> Google Code has the latest downloads at http://code.google.com/p/ >>>> knop/ >>> >>> >>> -- >>> Johan Sölve [FSA Member, Lasso Partner] >>> Web Application/Lasso/FileMaker Developer >>> MONTANIA SOFTWARE & SOLUTIONS >>> http://www.montania.se mailto:joh-n@... >>> (spam-safe email address, replace '-' with 'a') >>> >>> -- >>> ############################################################# >>> This message is sent to you because you are subscribed to >>> the mailing list <knop@...>. >>> To unsubscribe, E-mail to: <knop-off@...> >>> Send administrative queries to <knop-request@...> >>> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>> Project homepage http://montania.se/projects/knop/ >>> Google Code has the latest downloads at http://code.google.com/p/knop/ >> >> > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > Steve Piercy Web Site Builder Soquel, CA > <web@...> <http://www.StevePiercy.com/> > > -- > ############################################################# > This message is sent to you because you are subscribed to > the mailing list <knop@...>. > To unsubscribe, E-mail to: <knop-off@...> > Send administrative queries to <knop-request@...> > List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html > Project homepage http://montania.se/projects/knop/ > Google Code has the latest downloads at http://code.google.com/p/knop/ > -- tagSwap.net :: Open Source Lasso Code <http://tagSwap.net/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckCorrection: Currently you CAN inject scripts through knop_form->afterhandler.
var('form'=knop_form); // can be a dummy form not used for anything else) // script will be placed before </head> (or at top if </head> is missing) $knop_form -> afterhandler(-headscript='alert("hello world in head")'); // script will be placed before </body> (or at end of page if </body> is missing) $knop_form -> afterhandler(-endscript='alert("hello world at end")'); You can call afterhandler as many times as you like with different headscripts or endscripts, they will be appended in the order they are added (duplicates are suppressed though). The scripts will be cached in a common internal page variable throughout the page and then a define_atend script will handle the injection when the page is about to finish. The documentation says that only one headscript can be inserted by I don't think that is true [anymore]. Let me know if you try it and I'll correct the docs. At 08.17 +0200 2009-08-24, Johan Solve wrote: >Good idea. Currently there isn't but the foundation is there (for the built-in injection) so it's a simple addition. > >At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>I see there is a method not to inject javascripts on forms at the end of the page. Conversely is there a way to inject custom javascripts? I currently just put them on the cnt_page.inc, but I want better control over their loading, their order and eventually minimizing and compression. Ditto for CSS. Basically putting Jason Huck's optimization techniques into practice within Knop. >> >>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered-sites/ >> >>--steve >> >>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>Steve Piercy Web Site Builder Soquel, CA >><web@...> <http://www.StevePiercy.com/> >> >>-- >>############################################################# >>This message is sent to you because you are subscribed to >>the mailing list <knop@...>. >>To unsubscribe, E-mail to: <knop-off@...> >>Send administrative queries to <knop-request@...> >>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>Project homepage http://montania.se/projects/knop/ >>Google Code has the latest downloads at http://code.google.com/p/knop/ > > >-- > Johan Sölve [FSA Member, Lasso Partner] > Web Application/Lasso/FileMaker Developer > MONTANIA SOFTWARE & SOLUTIONS >http://www.montania.se mailto:joh-n@... > (spam-safe email address, replace '-' with 'a') > >-- >############################################################# >This message is sent to you because you are subscribed to >the mailing list <knop@...>. >To unsubscribe, E-mail to: <knop-off@...> >Send administrative queries to <knop-request@...> >List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >Project homepage http://montania.se/projects/knop/ >Google Code has the latest downloads at http://code.google.com/p/knop/ -- Johan Sölve [FSA Member, Lasso Partner] Web Application/Lasso/FileMaker Developer MONTANIA SOFTWARE & SOLUTIONS http://www.montania.se mailto:joh-n@... (spam-safe email address, replace '-' with 'a') -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckI want to clarify that this method is for embedded scripts, not linked scripts. Jason's methods are mostly aimed at linked scripts if I'm not mistaken.
At 01.53 +0200 2009-08-25, Johan Solve wrote: >Correction: Currently you CAN inject scripts through knop_form->afterhandler. > > >var('form'=knop_form); // can be a dummy form not used for anything else) >// script will be placed before </head> (or at top if </head> is missing) >$knop_form -> afterhandler(-headscript='alert("hello world in head")'); >// script will be placed before </body> (or at end of page if </body> is missing) >$knop_form -> afterhandler(-endscript='alert("hello world at end")'); > >You can call afterhandler as many times as you like with different headscripts or endscripts, they will be appended in the order they are added (duplicates are suppressed though). > >The scripts will be cached in a common internal page variable throughout the page and then a define_atend script will handle the injection when the page is about to finish. > >The documentation says that only one headscript can be inserted by I don't think that is true [anymore]. Let me know if you try it and I'll correct the docs. > > > >At 08.17 +0200 2009-08-24, Johan Solve wrote: >>Good idea. Currently there isn't but the foundation is there (for the built-in injection) so it's a simple addition. >> >>At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>>I see there is a method not to inject javascripts on forms at the end of the page. Conversely is there a way to inject custom javascripts? I currently just put them on the cnt_page.inc, but I want better control over their loading, their order and eventually minimizing and compression. Ditto for CSS. Basically putting Jason Huck's optimization techniques into practice within Knop. >>> >>>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered-sites/ >>> >>>--steve >>> >>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>>Steve Piercy Web Site Builder Soquel, CA >>><web@...> <http://www.StevePiercy.com/> >>> >>>-- >>>############################################################# >>>This message is sent to you because you are subscribed to >>>the mailing list <knop@...>. >>>To unsubscribe, E-mail to: <knop-off@...> >>>Send administrative queries to <knop-request@...> >>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>Project homepage http://montania.se/projects/knop/ >>>Google Code has the latest downloads at http://code.google.com/p/knop/ >> >> >>-- >> Johan Sölve [FSA Member, Lasso Partner] >> Web Application/Lasso/FileMaker Developer >> MONTANIA SOFTWARE & SOLUTIONS >>http://www.montania.se mailto:joh-n@... >> (spam-safe email address, replace '-' with 'a') >> >>-- >>############################################################# >>This message is sent to you because you are subscribed to >>the mailing list <knop@...>. >>To unsubscribe, E-mail to: <knop-off@...> >>Send administrative queries to <knop-request@...> >>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>Project homepage http://montania.se/projects/knop/ >>Google Code has the latest downloads at http://code.google.com/p/knop/ > > >-- > Johan Sölve [FSA Member, Lasso Partner] > Web Application/Lasso/FileMaker Developer > MONTANIA SOFTWARE & SOLUTIONS >http://www.montania.se mailto:joh-n@... > (spam-safe email address, replace '-' with 'a') > >-- >############################################################# >This message is sent to you because you are subscribed to >the mailing list <knop@...>. >To unsubscribe, E-mail to: <knop-off@...> >Send administrative queries to <knop-request@...> >List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >Project homepage http://montania.se/projects/knop/ >Google Code has the latest downloads at http://code.google.com/p/knop/ -- Johan Sölve [FSA Member, Lasso Partner] Web Application/Lasso/FileMaker Developer MONTANIA SOFTWARE & SOLUTIONS http://www.montania.se mailto:joh-n@... (spam-safe email address, replace '-' with 'a') -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason Huck...and you really shouldn't have any embedded scripts (or styles),
other than to set javascript vars from Lasso to be used later in your linked scripts. ;) On Mon, Aug 24, 2009 at 7:57 PM, Johan Solve<inbox_js@...> wrote: > I want to clarify that this method is for embedded scripts, not linked scripts. Jason's methods are mostly aimed at linked scripts if I'm not mistaken. > > > At 01.53 +0200 2009-08-25, Johan Solve wrote: >>Correction: Currently you CAN inject scripts through knop_form->afterhandler. >> >> >>var('form'=knop_form); // can be a dummy form not used for anything else) >>// script will be placed before </head> (or at top if </head> is missing) >>$knop_form -> afterhandler(-headscript='alert("hello world in head")'); >>// script will be placed before </body> (or at end of page if </body> is missing) >>$knop_form -> afterhandler(-endscript='alert("hello world at end")'); >> >>You can call afterhandler as many times as you like with different headscripts or endscripts, they will be appended in the order they are added (duplicates are suppressed though). >> >>The scripts will be cached in a common internal page variable throughout the page and then a define_atend script will handle the injection when the page is about to finish. >> >>The documentation says that only one headscript can be inserted by I don't think that is true [anymore]. Let me know if you try it and I'll correct the docs. >> >> >> >>At 08.17 +0200 2009-08-24, Johan Solve wrote: >>>Good idea. Currently there isn't but the foundation is there (for the built-in injection) so it's a simple addition. >>> >>>At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>>>I see there is a method not to inject javascripts on forms at the end of the page. Conversely is there a way to inject custom javascripts? I currently just put them on the cnt_page.inc, but I want better control over their loading, their order and eventually minimizing and compression. Ditto for CSS. Basically putting Jason Huck's optimization techniques into practice within Knop. >>>> >>>>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso-powered-sites/ >>>> >>>>--steve >>>> >>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>>>Steve Piercy Web Site Builder Soquel, CA >>>><web@...> <http://www.StevePiercy.com/> >>>> >>>>-- >>>>############################################################# >>>>This message is sent to you because you are subscribed to >>>>the mailing list <knop@...>. >>>>To unsubscribe, E-mail to: <knop-off@...> >>>>Send administrative queries to <knop-request@...> >>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>Project homepage http://montania.se/projects/knop/ >>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>> >>> >>>-- >>> Johan Sölve [FSA Member, Lasso Partner] >>> Web Application/Lasso/FileMaker Developer >>> MONTANIA SOFTWARE & SOLUTIONS >>>http://www.montania.se mailto:joh-n@... >>> (spam-safe email address, replace '-' with 'a') >>> >>>-- >>>############################################################# >>>This message is sent to you because you are subscribed to >>>the mailing list <knop@...>. >>>To unsubscribe, E-mail to: <knop-off@...> >>>Send administrative queries to <knop-request@...> >>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>Project homepage http://montania.se/projects/knop/ >>>Google Code has the latest downloads at http://code.google.com/p/knop/ >> >> >>-- >> Johan Sölve [FSA Member, Lasso Partner] >> Web Application/Lasso/FileMaker Developer >> MONTANIA SOFTWARE & SOLUTIONS >>http://www.montania.se mailto:joh-n@... >> (spam-safe email address, replace '-' with 'a') >> >>-- >>############################################################# >>This message is sent to you because you are subscribed to >>the mailing list <knop@...>. >>To unsubscribe, E-mail to: <knop-off@...> >>Send administrative queries to <knop-request@...> >>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>Project homepage http://montania.se/projects/knop/ >>Google Code has the latest downloads at http://code.google.com/p/knop/ > > > -- > Johan Sölve [FSA Member, Lasso Partner] > Web Application/Lasso/FileMaker Developer > MONTANIA SOFTWARE & SOLUTIONS > http://www.montania.se mailto:joh-n@... > (spam-safe email address, replace '-' with 'a') > > -- > ############################################################# > This message is sent to you because you are subscribed to > the mailing list <knop@...>. > To unsubscribe, E-mail to: <knop-off@...> > Send administrative queries to <knop-request@...> > List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html > Project homepage http://montania.se/projects/knop/ > Google Code has the latest downloads at http://code.google.com/p/knop/ > -- tagSwap.net :: Open Source Lasso Code <http://tagSwap.net/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckYeah, actually I wasn't clear. I would like to inject a reference to an external compressed javascript, like this:
<script type="text/javascript" src="/jquery/jquery-1.3.2.min.js"></script> Only a few pages need javascript, and they are rarely hit, so I would prefer not to put this in index.lasso or in an odd place in the cnt_file.inc. Hmm... maybe I could do a simple define_atend that does a find/replace for </html> with [my.js]</html>? --steve On Tuesday, August 25, 2009, inbox_js@... (Johan Solve) pronounced: >I want to clarify that this method is for embedded scripts, not linked scripts. >Jason's methods are mostly aimed at linked scripts if I'm not mistaken. > > >At 01.53 +0200 2009-08-25, Johan Solve wrote: >>Correction: Currently you CAN inject scripts through knop_form->afterhandler. >> >> >>var('form'=knop_form); // can be a dummy form not used for anything else) >>// script will be placed before </head> (or at top if </head> is missing) >>$knop_form -> afterhandler(-headscript='alert("hello world in head")'); >>// script will be placed before </body> (or at end of page if </body> is missing) >>$knop_form -> afterhandler(-endscript='alert("hello world at end")'); >> >>You can call afterhandler as many times as you like with different headscripts or >endscripts, they will be appended in the order they are added (duplicates are >suppressed though). >> >>The scripts will be cached in a common internal page variable throughout the page >and then a define_atend script will handle the injection when the page is about to >finish. >> >>The documentation says that only one headscript can be inserted by I don't think >that is true [anymore]. Let me know if you try it and I'll correct the docs. >> >> >> >>At 08.17 +0200 2009-08-24, Johan Solve wrote: >>>Good idea. Currently there isn't but the foundation is there (for the built-in >injection) so it's a simple addition. >>> >>>At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>>>I see there is a method not to inject javascripts on forms at the end of the >page. Conversely is there a way to inject custom javascripts? I currently just put >them on the cnt_page.inc, but I want better control over their loading, their order >and eventually minimizing and compression. Ditto for CSS. Basically putting Jason >Huck's optimization techniques into practice within Knop. >>>> >>>>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso- >powered-sites/ >>>> >>>>--steve >>>> >>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>>>Steve Piercy Web Site Builder Soquel, CA >>>><web@...> <http://www.StevePiercy.com/> >>>> >>>>-- >>>>############################################################# >>>>This message is sent to you because you are subscribed to >>>>the mailing list <knop@...>. >>>>To unsubscribe, E-mail to: <knop-off@...> >>>>Send administrative queries to <knop-request@...> >>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>Project homepage http://montania.se/projects/knop/ >>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>> >>> >>>-- >>> Johan Sölve [FSA Member, Lasso Partner] >>> Web Application/Lasso/FileMaker Developer >>> MONTANIA SOFTWARE & SOLUTIONS >>>http://www.montania.se mailto:joh-n@... >>> (spam-safe email address, replace '-' with 'a') >>> >>>-- >>>############################################################# >>>This message is sent to you because you are subscribed to >>>the mailing list <knop@...>. >>>To unsubscribe, E-mail to: <knop-off@...> >>>Send administrative queries to <knop-request@...> >>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>Project homepage http://montania.se/projects/knop/ >>>Google Code has the latest downloads at http://code.google.com/p/knop/ >> >> >>-- >> Johan Sölve [FSA Member, Lasso Partner] >> Web Application/Lasso/FileMaker Developer >> MONTANIA SOFTWARE & SOLUTIONS >>http://www.montania.se mailto:joh-n@... >> (spam-safe email address, replace '-' with 'a') >> >>-- >>############################################################# >>This message is sent to you because you are subscribed to >>the mailing list <knop@...>. >>To unsubscribe, E-mail to: <knop-off@...> >>Send administrative queries to <knop-request@...> >>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>Project homepage http://montania.se/projects/knop/ >>Google Code has the latest downloads at http://code.google.com/p/knop/ > > >-- > Johan Sölve [FSA Member, Lasso Partner] > Web Application/Lasso/FileMaker Developer > MONTANIA SOFTWARE & SOLUTIONS >http://www.montania.se mailto:joh-n@... > (spam-safe email address, replace '-' with 'a') > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckWhat's preventing you from just using my asset management tags in
combination with Knop? - jason On Mon, Aug 24, 2009 at 8:20 PM, Steve Piercy - Web Site Builder<Web@...> wrote: > Yeah, actually I wasn't clear. I would like to inject a reference to an external compressed javascript, like this: > > <script type="text/javascript" src="/jquery/jquery-1.3.2.min.js"></script> > > Only a few pages need javascript, and they are rarely hit, so I would prefer not to put this in index.lasso or in an odd place in the cnt_file.inc. Hmm... maybe I could do a simple define_atend that does a find/replace for </html> with [my.js]</html>? > > --steve > > > On Tuesday, August 25, 2009, inbox_js@... (Johan Solve) pronounced: > >>I want to clarify that this method is for embedded scripts, not linked scripts. >>Jason's methods are mostly aimed at linked scripts if I'm not mistaken. >> >> >>At 01.53 +0200 2009-08-25, Johan Solve wrote: >>>Correction: Currently you CAN inject scripts through knop_form->afterhandler. >>> >>> >>>var('form'=knop_form); // can be a dummy form not used for anything else) >>>// script will be placed before </head> (or at top if </head> is missing) >>>$knop_form -> afterhandler(-headscript='alert("hello world in head")'); >>>// script will be placed before </body> (or at end of page if </body> is missing) >>>$knop_form -> afterhandler(-endscript='alert("hello world at end")'); >>> >>>You can call afterhandler as many times as you like with different headscripts or >>endscripts, they will be appended in the order they are added (duplicates are >>suppressed though). >>> >>>The scripts will be cached in a common internal page variable throughout the page >>and then a define_atend script will handle the injection when the page is about to >>finish. >>> >>>The documentation says that only one headscript can be inserted by I don't think >>that is true [anymore]. Let me know if you try it and I'll correct the docs. >>> >>> >>> >>>At 08.17 +0200 2009-08-24, Johan Solve wrote: >>>>Good idea. Currently there isn't but the foundation is there (for the built-in >>injection) so it's a simple addition. >>>> >>>>At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>>>>I see there is a method not to inject javascripts on forms at the end of the >>page. Conversely is there a way to inject custom javascripts? I currently just put >>them on the cnt_page.inc, but I want better control over their loading, their order >>and eventually minimizing and compression. Ditto for CSS. Basically putting Jason >>Huck's optimization techniques into practice within Knop. >>>>> >>>>>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso- >>powered-sites/ >>>>> >>>>>--steve >>>>> >>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>>>>Steve Piercy Web Site Builder Soquel, CA >>>>><web@...> <http://www.StevePiercy.com/> >>>>> >>>>>-- >>>>>############################################################# >>>>>This message is sent to you because you are subscribed to >>>>>the mailing list <knop@...>. >>>>>To unsubscribe, E-mail to: <knop-off@...> >>>>>Send administrative queries to <knop-request@...> >>>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>>Project homepage http://montania.se/projects/knop/ >>>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>>> >>>> >>>>-- >>>> Johan Sölve [FSA Member, Lasso Partner] >>>> Web Application/Lasso/FileMaker Developer >>>> MONTANIA SOFTWARE & SOLUTIONS >>>>http://www.montania.se mailto:joh-n@... >>>> (spam-safe email address, replace '-' with 'a') >>>> >>>>-- >>>>############################################################# >>>>This message is sent to you because you are subscribed to >>>>the mailing list <knop@...>. >>>>To unsubscribe, E-mail to: <knop-off@...> >>>>Send administrative queries to <knop-request@...> >>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>Project homepage http://montania.se/projects/knop/ >>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>> >>> >>>-- >>> Johan Sölve [FSA Member, Lasso Partner] >>> Web Application/Lasso/FileMaker Developer >>> MONTANIA SOFTWARE & SOLUTIONS >>>http://www.montania.se mailto:joh-n@... >>> (spam-safe email address, replace '-' with 'a') >>> >>>-- >>>############################################################# >>>This message is sent to you because you are subscribed to >>>the mailing list <knop@...>. >>>To unsubscribe, E-mail to: <knop-off@...> >>>Send administrative queries to <knop-request@...> >>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>Project homepage http://montania.se/projects/knop/ >>>Google Code has the latest downloads at http://code.google.com/p/knop/ >> >> >>-- >> Johan Sölve [FSA Member, Lasso Partner] >> Web Application/Lasso/FileMaker Developer >> MONTANIA SOFTWARE & SOLUTIONS >>http://www.montania.se mailto:joh-n@... >> (spam-safe email address, replace '-' with 'a') >> > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > Steve Piercy Web Site Builder Soquel, CA > <web@...> <http://www.StevePiercy.com/> > > -- > ############################################################# > This message is sent to you because you are subscribed to > the mailing list <knop@...>. > To unsubscribe, E-mail to: <knop-off@...> > Send administrative queries to <knop-request@...> > List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html > Project homepage http://montania.se/projects/knop/ > Google Code has the latest downloads at http://code.google.com/p/knop/ > -- tagSwap.net :: Open Source Lasso Code <http://tagSwap.net/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
|
|
Re: Injecting JavaScripts and CSS, a la Jason HuckLack of sleep causing brain fuzz. :P
Nothing actually, now that I got some sleep and cleared my head. I forgot that your tags do that insertion, and somehow got it into my brain that they just compressed the scripts and CSS. --steve On Monday, August 24, 2009, jason.huck@... (Jason Huck) pronounced: >What's preventing you from just using my asset management tags in >combination with Knop? > >- jason > > > >On Mon, Aug 24, 2009 at 8:20 PM, Steve Piercy - Web Site >Builder<Web@...> wrote: >> Yeah, actually I wasn't clear. I would like to inject a reference to an external >compressed javascript, like this: >> >> <script type="text/javascript" src="/jquery/jquery-1.3.2.min.js"></script> >> >> Only a few pages need javascript, and they are rarely hit, so I would prefer not >to put this in index.lasso or in an odd place in the cnt_file.inc. Hmm... maybe I >could do a simple define_atend that does a find/replace for </html> with >[my.js]</html>? >> >> --steve >> >> >> On Tuesday, August 25, 2009, inbox_js@... (Johan Solve) pronounced: >> >>>I want to clarify that this method is for embedded scripts, not linked scripts. >>>Jason's methods are mostly aimed at linked scripts if I'm not mistaken. >>> >>> >>>At 01.53 +0200 2009-08-25, Johan Solve wrote: >>>>Correction: Currently you CAN inject scripts through knop_form->afterhandler. >>>> >>>> >>>>var('form'=knop_form); // can be a dummy form not used for anything else) >>>>// script will be placed before </head> (or at top if </head> is missing) >>>>$knop_form -> afterhandler(-headscript='alert("hello world in head")'); >>>>// script will be placed before </body> (or at end of page if </body> is missing) >>>>$knop_form -> afterhandler(-endscript='alert("hello world at end")'); >>>> >>>>You can call afterhandler as many times as you like with different headscripts or >>>endscripts, they will be appended in the order they are added (duplicates are >>>suppressed though). >>>> >>>>The scripts will be cached in a common internal page variable throughout the page >>>and then a define_atend script will handle the injection when the page is about to >>>finish. >>>> >>>>The documentation says that only one headscript can be inserted by I don't think >>>that is true [anymore]. Let me know if you try it and I'll correct the docs. >>>> >>>> >>>> >>>>At 08.17 +0200 2009-08-24, Johan Solve wrote: >>>>>Good idea. Currently there isn't but the foundation is there (for the built-in >>>injection) so it's a simple addition. >>>>> >>>>>At 17.24 -0700 2009-08-23, Steve Piercy - Web Site Builder wrote: >>>>>>I see there is a method not to inject javascripts on forms at the end of the >>>page. Conversely is there a way to inject custom javascripts? I currently just >put >>>them on the cnt_page.inc, but I want better control over their loading, their >order >>>and eventually minimizing and compression. Ditto for CSS. Basically putting >Jason >>>Huck's optimization techniques into practice within Knop. >>>>>> >>>>>>http://devblog.jasonhuck.com/2008/09/23/an-asset-management-system-for-lasso- >>>powered-sites/ >>>>>> >>>>>>--steve >>>>>> >>>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >>>>>>Steve Piercy Web Site Builder Soquel, CA >>>>>><web@...> <http://www.StevePiercy.com/> >>>>>> >>>>>>-- >>>>>>############################################################# >>>>>>This message is sent to you because you are subscribed to >>>>>>the mailing list <knop@...>. >>>>>>To unsubscribe, E-mail to: <knop-off@...> >>>>>>Send administrative queries to <knop-request@...> >>>>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>>>Project homepage http://montania.se/projects/knop/ >>>>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>>>> >>>>> >>>>>-- >>>>> Johan Sölve [FSA Member, Lasso Partner] >>>>> Web Application/Lasso/FileMaker Developer >>>>> MONTANIA SOFTWARE & SOLUTIONS >>>>>http://www.montania.se mailto:joh-n@... >>>>> (spam-safe email address, replace '-' with 'a') >>>>> >>>>>-- >>>>>############################################################# >>>>>This message is sent to you because you are subscribed to >>>>>the mailing list <knop@...>. >>>>>To unsubscribe, E-mail to: <knop-off@...> >>>>>Send administrative queries to <knop-request@...> >>>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>>Project homepage http://montania.se/projects/knop/ >>>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>>> >>>> >>>>-- >>>> Johan Sölve [FSA Member, Lasso Partner] >>>> Web Application/Lasso/FileMaker Developer >>>> MONTANIA SOFTWARE & SOLUTIONS >>>>http://www.montania.se mailto:joh-n@... >>>> (spam-safe email address, replace '-' with 'a') >>>> >>>>-- >>>>############################################################# >>>>This message is sent to you because you are subscribed to >>>>the mailing list <knop@...>. >>>>To unsubscribe, E-mail to: <knop-off@...> >>>>Send administrative queries to <knop-request@...> >>>>List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >>>>Project homepage http://montania.se/projects/knop/ >>>>Google Code has the latest downloads at http://code.google.com/p/knop/ >>> >>> >>>-- >>> Johan Sölve [FSA Member, Lasso Partner] >>> Web Application/Lasso/FileMaker Developer >>> MONTANIA SOFTWARE & SOLUTIONS >>>http://www.montania.se mailto:joh-n@... >>> (spam-safe email address, replace '-' with 'a') >>> >> >> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- >> Steve Piercy Web Site Builder Soquel, CA >> <web@...> <http://www.StevePiercy.com/> >> >> -- >> ############################################################# >> This message is sent to you because you are subscribed to >> the mailing list <knop@...>. >> To unsubscribe, E-mail to: <knop-off@...> >> Send administrative queries to <knop-request@...> >> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html >> Project homepage http://montania.se/projects/knop/ >> Google Code has the latest downloads at http://code.google.com/p/knop/ >> > > > >-- >tagSwap.net :: Open Source Lasso Code ><http://tagSwap.net/> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@...> <http://www.StevePiercy.com/> -- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@...>. To unsubscribe, E-mail to: <knop-off@...> Send administrative queries to <knop-request@...> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/ |
| Free embeddable forum powered by Nabble | Forum Help |