Login
Register
Menu
Home
Help
Search
rejetto forum
PROBLEMS? QUESTIONS? CLICK HERE!
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
macros - filesize
macros - filesize
Guest ·
3 ·
2236
« previous
next »
Print
Pages:
1
0 Members and 1 Guest are viewing this topic.
Warp
Guest
macros - filesize
on:
December 26, 2008, 04:06:01 PM
Hi,
another macro related question.
I wrote a text file (Test.txt).
Using a javascript interval i write the filesize to another frame every second:
parent.frames[1].document.write ('{.filesize|warp2001\test.txt.}');
So far it works.
If a manualy edit and save the text file the size changes.
But the javascript function with the macro always write the old filesize.
Maybe i don't understand the macro concept ?
Any idea or help ?
Warp
rejetto
Administrator
Tireless poster
Posts:
13523
Re: macros - filesize
Reply #1 on:
December 27, 2008, 12:19:27 AM
macros run server side, once.
when your javascript code is downloaded, the macro is ran once, the result is passed to the browser as a number.
that's why.
you can't use macros for that purpose (client side).
Warp
Guest
Re: macros - filesize
Reply #2 on:
December 27, 2008, 10:15:06 AM
Hi,
ok, i understand.
Thank you for the answer.
Warp
Print
Pages:
1
rejetto forum
»
Software
»
HFS ~ HTTP File Server
»
macros - filesize
Search
Username
Password
Always stay logged in
Forgot your password?