Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encoded javascript issue for attached files in Script tag

Status
Not open for further replies.

jimmyweb

Programmer
Dec 9, 2004
37
US
Hi Friends,
Based on book of VBScript 2nd edition Adrian Kingsley-Hughes,....
I encoded a attached codes of javaScript by windows script encoder. After encoded and changed js source to kk.jse/kk.js from my.js, My html files does not work. I get a error message as "object expectd".

how to fix this issue.
by the way, I download windows script encoder version 1 from ms web site(any experience for using window script encoder?
Jim

--Source code---

<html><head><title>code testing</title>
<script language="javascript" SRC="kk.jse"> </script>
// or <script language="javascript" SRC="my.js"> </script>

</head>
<body>
<form name="ss" method="post">
<input type="test name="enter">
<input type="button" value="click me" onclick="tt()">
</form>
</body>
</html>
--kk.js code---

<!--
function tt()
{alert ("working")
}
//-->
 
>[tt]<script language="javascript" SRC="kk.jse"> </script>[/tt]
[tt]<script language="[red]jscript.encode[/red]" SRC="kk.jse"> </script>[/tt]
(ie-proprietary)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top