Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
Call javascript function

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
sammy.jankins
Smarty n00b


Joined: 09 Apr 2010
Posts: 3

PostPosted: Mon Apr 19, 2010 12:47 pm    Post subject: Call javascript function Reply with quote

Hi to all,

I have a function write in javascript inside my template.tplm
Code:

function write(FileName) {ldelim}
      var fso = new ActiveXObject("Scripting.FileSystemObject");
      var s = fso.CreateTextFile("C:\\_temp\\" + FileName, true);
      //s.WriteLine('Hello');
      s.Close();
{rdelim}

</script>


I try to call this function from smarty, but without success.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP