When a browser is asked to display a webpage by giving it a url,
the brower knows where the anchor point is and can resolve other 
uri from path relative to the anchor (base url). However if one 
passes the html source directly, the browser cannot know where is
the anchor, so that the uri have to be in an absolute path
format (http:// or file:///) if a base url is not provided.

Alternatively, you may embed the javascript inline between
<script> and </script> tags without using the src=... element.

Does this make sense?

Сб, 11 янв 2014, Brian Schott писал(а):
> Joe, I am wanting to make the directory local so that the scripts and
> styles can be accessed by name without the directory path needed.
> 
> The standard JHS demo's use jhr to replace tags like RESULT in the example
> below. I guess I imagine using jhr with something like PATH. Maybe that is
> silly.
> 
> NB. create html page from HBS CSS JS
> NB. HBS body can have TAGS that are replaced
> create=: 3 : 0
> 'canvasdemo'jhr'RESULT';y NB. <RESULT> tag replaced by y
> )
> 
> 
> d3.ijs uses PATH and HPATH for this, but the PATH is addons, not a generic
> path.
> 
> 
> Thanks,
> 
> -- 
> (B=)
> ----------------------------------------------------------------------
> 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
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to