Groups | Blog | Home
all groups > dotnet jscript > january 2008 >

dotnet jscript : Jscript and Windows Mobile



אביעד טויטו
1/28/2008 1:52:00 AM
Hi

I'm trying to run a short jscript script file that popup a window to the
user and the user can press OK or Cancel buttons.

When I run the script (via CScript or WScript) it runs properly but in
Windows Mobile (on HTC Tytn2 device) nothing happens.

Here is an example of the script:

function disp_confirm()
{
var r;
r=app.confirm("Press a button");
if (r==true)
{
return true;
}
else
{
return false;
}
}

Thanks

Aviad
Dr J R Stockton
1/29/2008 2:25:35 PM
In microsoft.public.dotnet.languages.jscript message
<D368E441-6B63-47CB-A383-828F1E0D7E5C@microsoft.com>, Mon, 28 Jan 2008
01:52:00, =?Utf-8?B?15DXkdeZ16LXkyDXmNeV15nXmNeV?= <?@?.?.invalid>
posted:

[quoted text, click to view]

I cannot answer your question; but

function disp_confirm()
{
return app.confirm("Press a button");
}

should do the same.

It's a good idea to read the newsgroup c.l.j and its FAQ. See below.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE6 IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
AddThis Social Bookmark Button