Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11th Jun 2009, 08:02
mpastamatla mpastamatla is offline
Registered Developer
 
Join Date: May 2007
Posts: 18
Default Help can' get css to load with absolute path with fileloader

using this
var brandLink = "/branding/" + brandName + "/aome.css";
isc.FileLoader.loadCSSFile(brandLink);
added <script>window.isomorphicDir='isomorphic/'</script>

but won't load css( ignores it) in mac-FF, testing on other browsers now...
Reply With Quote
  #2  
Old 12th Jun 2009, 06:04
mpastamatla mpastamatla is offline
Registered Developer
 
Join Date: May 2007
Posts: 18
Default

more details: we currently have 6.0 version,
It works ok in Windows - IE7, FF2.x
but doesn't load absolute path file in windows-IE6 and MAC-FF
Reply With Quote
  #3  
Old 12th Jun 2009, 10:10
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,580
Default

Hi
We're looking into this. I'm getting a "works for me result" with 6.5.1 - so I'm testing it out against the 6.0 build now.
FYI my test case is a simple SmartClient page with the following code:
Code:
var brandLink = "/styleTest.css";
isc.FileLoader.loadCSSFile(brandLink);
isc.Canvas.create({
   styleName:"testStyle",
   contents:"foo foo",
   autoDraw:true
});
(And the styleTest.css file is a simple css file under my webroot, which defines the .testStyle).
I'll let you know what I find - if I can't reproduce it I may need to see some sample code

Thanks
Reply With Quote
  #4  
Old 12th Jun 2009, 10:26
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,580
Default

We're not reproducing this on 6.0, on IE6 / Windows or Mac / Firefox.
If you pop open the developer console, are you seeing any error messages that might explain this?
If there's nothing obvious, could you post your .css file and ideally a sample HTML file that demonstrates the problem and we'll take a look

Thanks
Reply With Quote
  #5  
Old 7th Jul 2009, 11:07
mpastamatla mpastamatla is offline
Registered Developer
 
Join Date: May 2007
Posts: 18
Default

Hi, so after testing more. I see it working in Windows IE7 and FF
MAC-FF
but not in MAC - Safari.
Does smartclient supports safari officially. if so then

we have weblogic server.. but will work with Apache too , I should guess. haven't tried myself but attaching 3 files below.

splashtester.html and loader.html can go anywhere test.css should go under the [server root]/branding/test.css . btw. I had trouble attaching .css extension so renamed test.css to test.html and uploaded it.

Thankyou.
We use 6.0 version currently
Attached Files
File Type: html splashtester.html (327 Bytes, 2 views)
File Type: html loader.html (1.1 KB, 3 views)
File Type: html test.html (24 Bytes, 2 views)
Reply With Quote
  #6  
Old 7th Jul 2009, 13:49
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,580
Default

Mac Safari is supported, however, you didn't mention your version.

You previously said Mac FF was not working, now you're saying it does work, right?

Again, are you seeing any Developer Console messages that might explain this?

Is there a request to load the CSS file at the wrong path, or just no request at all?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved