Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: jscript Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jhoski
Newbie
Newbie


Joined: January 12 2009
Online Status: Offline
Posts: 13
Posted: January 12 2009 at 16:34 | IP Logged Quote jhoski

I cannot seem to get PH to use jscript.
According to my searches here the input file should look something like this:

@language=jscript
function hello_world () { pj.usermessage("Hello World"); }


When I do a check script from the script editor I get:

Load Script Error
     An error occurred while loading the script file.
           Source: Microsoft VBScript compilation error
           Error Number: 1032
           Description: Invalid character
           Line: 1
           Column: 0
           Text: @language=jscript


The window header thinks its jscript.
Any suggestions?
Back to Top View jhoski's Profile Search for other posts by jhoski
 
JaredM
Newbie
Newbie


Joined: November 04 2007
Online Status: Offline
Posts: 36
Posted: January 12 2009 at 23:46 | IP Logged Quote JaredM

Double quotes around jscript should fix it. And a little typo before 'usermessage' to correct.

Code:

@language="jscript"
function hello_world () { ph.usermessage("Hello World"); }
Back to Top View JaredM's Profile Search for other posts by JaredM
 
jhoski
Newbie
Newbie


Joined: January 12 2009
Online Status: Offline
Posts: 13
Posted: January 13 2009 at 09:09 | IP Logged Quote jhoski

Thanks! That was it.
Back to Top View jhoski's Profile Search for other posts by jhoski
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

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