George Murphy said the following on 10/3/2008 2:16 PM:
>  
> I understand that you need to add some additional properties in the 
> Machii config file for this and you call the BuildURL function to 
> create your links.  I was able to get all of that to work.  The thing 
> that I was never able to get work is how to resolve all of my CSS 
> includes and JavaScript includes.  Did you have to use MOD rewrite?  
> Whatever you can share on this would be most appreciated.
>  
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/wiki/URLManagementFeatures#AdditionalInformationandConsiderations3

Just use absolute paths instead of relative paths.  Like so will work:

<link rel="stylesheet" type="text/css" href="/css/basic.css" 
media="screen,projection" />

So "/css/basic.css" is absolute from the domain name.  If your domain is 
example.com, then this css file should be located at:

http://example.com/css/basic.css

The reason why you have to do this is that SES urls appear to the 
*browser* to be a complete path.  So using relative paths for CSS / JS 
would cause the browser to look for it like so:

http://example.com/index.cfm/event/someEvent/css/basic.css

If your application doesn't sit at the root of the domain and is located 
in a sub directory, you might need to use <base> tag in HTML to set the 
root path for resolving absolute paths.

Best,
.Peter

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: https://greatbiztoolsllc-svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to