The general case of what you are asking for here is a trigger -- a feature which J currently does not implement.
-- Raul On Thu, Jan 26, 2012 at 2:49 AM, June Kim (김창준) <junea...@gmail.com> wrote: > Yes. Just before receiving your reply, I figured it myself by running > through debug (I was very unfamiliar with J701's though) > > So I interchanged BOXCHAR refernce with 9!:6 '' and it works okay. However, > is there any proper way to run user's picked scripts after BOXCHAR is set? > (I think it's set at core.ijs) > > > On Thu, Jan 26, 2012 at 4:30 PM, bill lam <bbill....@gmail.com> wrote: > >> I guess box chars was modified after loading thh, try use >> 9!:6'' directly. >> >> Чтв, 26 Янв 2012, June Kim (김창준) писал(а): >> > Hello >> > >> > I've been using Ric's html table output code quite usefully. I wanted to >> > add it to my z namespace. >> > >> > I saved the definitions to '~user/temp/htmltab.ijs' >> > >> > And inside '~config/startup.ijs': >> > >> > ==== >> > load '~user/temp/htmltab.ijs' >> > ==== >> > >> > However, when I run ijix in jhs: >> > >> > thh 10 >> > <style type="text/css"> >> > .jarray {font-family:monospace;} >> > table.jarray {border-collapse:collapse;} >> > table.jarray td {border:solid black thin; vertical-align:top; >> padding:0.4em;} >> > table.jarray tr.spacer td {border:none;} >> > </style> >> > <div class=jarray>10</div> >> > thh <10 NB. why length error here? Compare this with the following >> > |length error: thh >> > | z=.h thh&.>"2,:^:(0>.2-#$y)y >> > load '~user/temp/htmltab.ijs' >> > thh <10 NB. it works here >> > <style type="text/css"> >> > .jarray {font-family:monospace;} >> > table.jarray {border-collapse:collapse;} >> > table.jarray td {border:solid black thin; vertical-align:top; >> padding:0.4em;} >> > table.jarray tr.spacer td {border:none;} >> > </style> >> > <div class=jarray><table class=jarray><tr><td>10</td></tr></table> >> > </div> >> > >> > >> > Strangely, it works okay in jconsole without explicit loading needed. It >> > fails in jgtk as in jhs. Am I missing something obvious? >> > >> > June >> > ---------------------------------------------------------------------- >> > For information about J forums see http://www.jsoftware.com/forums.htm >> >> -- >> regards, >> ==================================================== >> GPG key 1024D/4434BAB3 2008-08-24 >> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm