ExpandPath gives you a full path and "." in the terms of helper will be 
the location of your Application.cfc

What is your disk path for your Application.cfc?

Where are your js files stored (full path)?

Is your Application.cfc in the root of your domain or is it in a folder 
off of your domain?

Can you share the XML parameters you have set for the helper?

If you can answer all of the above questions, I can help you figure out 
the right settings.

Best,
.Peter

jarthel said the following on 08/20/2009 08:46 PM:
> as the wiki explain, webrootBasePath defaults to ExpandPath('.').
>
> So I created a test.cfm/. This file was saved in the same location as
> my application.cfc. The file contains the following code:
> -----------
> <cfoutput>#ExpandPath('.')#</cfoutput>
> ------------
>
> I when I viewed the file in a browser, The output is "C:\web\apache
> \htdocs\flinders\webapps\edss ".
>
> I copy and paste this text to my mach-ii.xml (change the
> webrootBasePath setting).
>
> I'm still getting the error "Cannot fetch a timestamp for an asset
> because it cannot be located. Check for your asset path.".
>
> If I set webrootBasePath to "/flinders/webapps/edss" (which is what
> appears on the browser after http://localhost), I still get the same
> error.
>
> thanks again.
>
>
> On Aug 21, 1:51 am, "Peter J. Farrell" <[email protected]> wrote:
>   
>> I would suggest reading the doco on how to set the base path. The js and css 
>> paths are then relative from your base path.
>>
>> -----Original Message-----
>> From: jarthel <[email protected]>
>>
>> Date: Wed, 19 Aug 2009 22:02:48
>> To: Mach-II for CFML<[email protected]>
>> Subject: [Mach-II] Re: timestampe in JS added using HTML helper
>>
>> full windows path is c:\web\apache\htdocs\flinders\edss\js. I suppose
>> I all of that ?
>>
>> thanks again :)
>>
>> On Aug 20, 1:14 pm, "Peter J. Farrell" <[email protected]> wrote:
>>     
>>> Your settings for the basepath, jspath etc are not resolving to a place on 
>>> disk. You'll have to change those settings to match your file structure. 
>>> The helper uses this info to compute a full path on disk so it can read the 
>>> date changed timestamp on the file on disk. Read the doco on the wiki for 
>>> more information.
>>>       
>>> .Pjf
>>>       
>>> -----Original Message-----
>>> From: jarthel <[email protected]>
>>>       
>>> Date: Wed, 19 Aug 2009 19:11:26
>>> To: Mach-II for CFML<[email protected]>
>>> Subject: [Mach-II] Re: timestampe in JS added using HTML helper
>>>       
>>> I changed "cachedAssetPaths" to true and now I'm getting "Cannot fetch
>>> a timestamp for an asset because it cannot be located. Check for your
>>> asset path" error.
>>>       
>>> On Aug 20, 10:09 am, "Peter J. Farrell" <[email protected]> wrote:
>>>       
>>>> Set the 'cacheAssetPaths' parameter to true... it doco implies that it
>>>> does not append the asset timestamps if set to false:
>>>>         
>>>>       cacheAssetPaths ΒΆ
>>>>       
>>>> <http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/HTMLHelperPrope...>
>>>>         
>>>> The cacheAssetPaths parameter is optional and takes a boolean. It
>>>> defaults to false if not defined. This parameter enables or disables
>>>> caching of the asset paths (paths passed into addJs and addCss methods)
>>>> and their respective timestamps. If the cache is enabled (true), the
>>>> asset tag makes fewer file system calls to compute the timestamp for the
>>>> specified asset. File system interaction can be expensive and therefore
>>>> can have a negative impact on application performance.
>>>>         
>>>> jarthel said the following on 08/19/2009 01:22 AM:
>>>>         
>>>>> this is the code from the "view source" => <script type="text/
>>>>> javascript" src="/fcrec/fcrecPartKForm.js"></script>
>>>>>           
>>>>> this is the code as displayed in my cfm file => <cfset getProperty
>>>>> ("html").addJavascript("/fcrec/fcrecPartKForm") />
>>>>>           
>>>>> +++++++++++++
>>>>>           
>>>>> According to the HTML helper wiki, timestamp is added by default. But
>>>>> as you can see, there's nothing in my source.
>>>>>           
>>>>> This is mach-ii.xml config:
>>>>> +++++++
>>>>>            <property name="html" 
>>>>> type="MachII.properties.HtmlHelperProperty">
>>>>>              <parameters>
>>>>>                    <parameter name="metaTitleSuffix" value=" - Mach-II" />
>>>>>                    <parameter name="cacheAssetPaths" value="false" />
>>>>>                    <parameter name="webrootBasePath" 
>>>>> value="/flinders/webapps/edss" />
>>>>>                    <parameter name="jsBasePath" 
>>>>> value="/flinders/webapps/edss/js" />
>>>>>                    <parameter name="cssBasePath" 
>>>>> value="/flinders/webapps/edss/css" />
>>>>>                    <parameter name="imgBasePath" 
>>>>> value="/flinders/webapps/edss/img" />
>>>>>              </parameters>
>>>>>            </property>
>>>>> ++++++++++++
>>>>>           
>>>>> It's mostly a copy/paste job from the wiki but I deleted extra
>>>>> settings.
>>>>>           
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to