BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }Ah
thanks for the pointer Justin
 After some quick tinerking in the FB Console I noticed that
 script.substring(0,script.length - ("/" +
Sling.NAME_OF_THIS_FILE.length)); 
 doens't really compute because its adding a / to the integer thats
produced by the length command, not concatenating the strings and
then working out the length.
 Tom
 On Fri 10/09/10  2:44 PM , Justin Edelson [email protected]
sent:
 There's some code in sling.js that tries to set up the base url.
Perhaps
 that's buggy. Since you have this set up and Firebug open, can you
set a
 breakpoint on line 413 of sling.js and see if you can see the issue?
 On line 415, Sling.baseurl should be set to "/sling" whereas it
sounds
 like it's being set to ""
 Justin
 On 9/10/10 9:29 AM, [email protected] [1] wrote:
 >   BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
 > }Thanks for the reply Jos,
 >  Thanks the thing (I don't think I'm completely derranged)
 >  in my tomcat/webapps folder I have a folder called sling that
 > contained the webapp.
 >  So obviously the docroot is http://localhost:8080/sling/ [1]
 >  And if I go to http://localhost:8080/sling/system/console/bundles
 > [2] that works.
 >  And if I go to http://loclahost:8080/sling/content/tom.html, [3]
 > that also works.
 >  But I can either put an absolute path or relative path to the
 > sling.js file:
 >  and I can see in firebug that the file is loaded, but then the
call
 > to info.sessioninfo.json fails because the url is wrong (missing
the
 > /sling/)
 >  I know whatever it is, is something dumb, I just dunno what :)
 >  Thanks
 >  Tom
 >  On Fri 10/09/10  2:22 PM , Jos Snellings [email protected]
[2]
 > sent:
 >  Hi Tom,
 >  Just rename sling webapp to whatever you want the top of your
webapp
 > to be.
 >  Tomcat will pick that up.
 >  your urls will look like:
 >  http://localhost:8080/{yourtopname}/{pathtoresource}
 >  Jos
 >  On 09/10/2010 02:51 PM, [email protected] [3] [4] wrote:
 >  >    BODY { font-family:Arial, Helvetica,
sans-serif;font-size:12px;
 > }Hi
 >  > Guys,
 >  >   I've been playing around with sling on and off for a few
weeks
 > and
 >  > in development jetty mode my app runs fine, but I want to
deploy
 > to
 >  > tomcat where my sling install no longer resides on root.
 >  >   Is it possible to set a base url of some sort, so if I do
import
 >  > sling.js in my esp it knows where to look for resources?
 >  >   At the moment when I import it it looks to the root :)
 >  >   http://localhost:8080/system/sling/info.sessionInfo.json
 >  >   Sorry, noob question, still trying to get my head around all
of
 >  > this..
 >  >   Thanks
 >  >   Tom
 >  >
 >  >    
 > 
 > 
 > Links:
 > ------
 > [1] http://localhost:8080/sling/
 > [2] http://localhost:8080/sling/system/console/bundles
 > [3] http://loclahost:8080/sling/content/tom.html,
 > [4] [email protected] [4]
 > 


Links:
------
[1] mailto:[email protected]
[2] mailto:[email protected]
[3] mailto:[email protected]
[4] mailto:[email protected]

Reply via email to