One thing to think about working with scripts and browsers.

Remember to refresh, load etc.

Otherwise changes may not show.
On Sep 14, 2013 1:17 PM, "Brian Schott" <[email protected]> wrote:

> Great, Bill.
>
> I replaced `ev_roll_click` with `ev_body_load` and I now have my canvas.
> How encouraging!!
>
> I still would like to know how supply the code mentioned below regarding
> ajax.googleapis without altering utilh.ijs. Can it be added as plain old
> html in the HBS noun somehow?
>
> *******Below is a quote from earlier in this thread******
> Also, you may recall that I added the following lines to utilh.ijs in the
> <head> element. I am wondering if that is necessary, or does JHS already
> access similar content?
>
>
> <script type="text/javascript" src="
> http://ajax.googleapis.com/ajax/libs/jquery$
> <script type="text/javascipt"> $(document).ready(function() {
> });
> </script>
>
>
>
> On Sat, Sep 14, 2013 at 8:27 AM, Brian Schott <[email protected]
> >wrote:
>
> > Bill,
> >
> > Thanks.
> >
> > I tried your test code and was encouraged by a short delay, but only the
> > text `hello world` appears, still. I am curious what the role of `roll`
> is
> > in that code you suggested, because there is no `roll` in this html code?
> >
> > function ev_roll_click()
> >
> >
> > Also, you may recall that I added the following lines to utilh.ijs in the
> > <head> element. I am wondering if that is necessary, or does JHS already
> > access similar content?
> >
> >
> > <script type="text/javascript" src="
> > http://ajax.googleapis.com/ajax/libs/jquery$
> > <script type="text/javascipt"> $(document).ready(function() {
> > });
> > </script>
> >
> >
> > For completeness, I am including the remaining stuff, too.
> >
> >
> >    JS_test2_
> >
> > function ev_roll_click(){
> >
> > var canvas = $("#myCanvas");
> >
> > var context = canvas.get(0).getContext("2d");
> >
> > context.fillRect(40, 40, 100, 100);
> >
> > }
> >
> >
> > --
> (B=)
> ----------------------------------------------------------------------
> 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