html and css
Thursday, 30 January 2014 · 2 messages · last reply 31 Jan 2014
LJ
Lars Johnsen30 Jan 2014 23:41 #
When running BaseX http-server, I wondered where resources like javascript and css should be located. The .xqm-file for the welcome RESTXQ module seems to fetch its svg and css from a static directory under webapp. However, when sending HTML code from within a home made query, it won't connect to any css neither within webapp nor webapp/static, nor even with an absolute path.
Best
Lars G Johnsen
National Library of Norway
CG
Christian Grün31 Jan 2014 05:44 #
Hi Lars,
as you already indicated, the default web application configuration of BaseX requires all static files (css, images, html, etc.) to be stored in the "static" directory. These files can then be referenced via ="/static/...." from your generated html files.
If I get it right, you are also producing HTML via RESTXQ? Just send us some example files, such as the contents of your webapp directory; we'll give you feedback as soon as possible.
Best,
Christian
Quoted text · Lars Johnsen · 20 lines
On Thu, Jan 30, 2014 at 11:41 PM, Lars Johnsen <yoonsen at gmail.com> wrote: > When running BaseX http-server, I wondered where resources like javascript > and css should be located. The .xqm-file for the welcome RESTXQ module > seems to fetch its svg and css from a static directory under webapp. > However, when sending HTML code from within a home made query, it won't > connect to any css neither within webapp nor webapp/static, nor even with > an absolute path. > > Best > Lars G Johnsen > National Library of Norway > > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery