Thanks for the tips. I have been looking over core.ijs, which helped, and
managed to implement SlickGrid in jhs. The next step is to import data from
jdb.

I am still having issues with the CSS but the basic code works and looks
pretty nice. Once I get my code cleaned up and more functional I will post
it for anyone who is interested. Now we know how to use third-party
javascript code in jhs.

One of the issues was importing js and css files, which is normally done in
html with <script src="..."> tags. But Jhs only likes js code in the JS
noun, and css code in the CSS noun. We worked around this by just appending
all of the javascripts and css files we needed into their respective nouns.



On Fri, Jun 8, 2012 at 9:25 AM, Devon McCormick <devon...@gmail.com> wrote:

> Looking over the demo code, most of it starts by requiring 'jhs' -
> this points to "~addons/ide/jhs/core.ijs" - so this looks like a good
> place to start perusing the basic code.  There's an overview at the
> start of the file covering various general aspects of how the code is
> supposed to work and indicating where there may be gaps.
>
> On Thu, Jun 7, 2012 at 6:44 PM, Devon McCormick <devon...@gmail.com>
> wrote:
> > You may want to look at "demo6", which uses the J grid object, and
> > "demo9" which has multiple windows.
> >
> > On Thu, Jun 7, 2012 at 5:52 PM, Eric Iverson <eric.b.iver...@gmail.com>
> wrote:
> >> You're biting off a lot there in one chunk.
> >>
> >> I'm not familiar with "Hello World in JHS" wiki page you refer to so
> can''t
> >> comment on it as a starting point.
> >>
> >> My  advice would be to work through all the demo scripts carefully. Then
> >> pick the one closest to where you want to get to, clone it to create
> your
> >> own page, and then start modifying it to include the new stuff. Small
> steps
> >> and verify that things work as expected at each step.
> >>
> >> On Thu, Jun 7, 2012 at 5:34 PM, Justin Tirrell <jtirre...@gmail.com>
> wrote:
> >>
> >>> Hey all,
> >>>
> >>> I am trying to build an application in JHS with a grid (something
> >>> reminiscent of JGTK Grid). I found a javascript project on github that
> I
> >>> would like to use for this called SlickGrid. The sample html that I am
> >>> trying to implement can be found here:
> >>> http://mleibman.github.com/SlickGrid/examples/example1-simple.html
> >>>
> >>> I am also using the "Hello World in JHS" wiki page as a starting point
> to
> >>> simplify the J as much as possible, found here:
> >>> http://www.jsoftware.com/jwiki/NYCJUG/2011-02-08/HelloWorldInJHS
> >>>
> >>> I am having trouble with this since I don't know how JHS handles ijs
> files,
> >>> and the order in which it processes each section.
> >>>
> >>> Does anyone have any experience or ideas on how to do this?
> >>>
> >>> Much Thanks,
> >>> Justin Tirrell
> >>> ----------------------------------------------------------------------
> >>> For information about J forums see http://www.jsoftware.com/forums.htm
> >>>
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >
> >
> >
> > --
> > Devon McCormick, CFA
> > ^me^ at acm.
> > org is my
> > preferred e-mail
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to