XWidgetSoft Forum
https://www.bbs.xwidget.com/

Changing diskcore.DiskName with JavaScript
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=2524
Page 1 of 1

Author:  rezammf [ January 16th, 2013, 12:04 pm ]
Post subject:  Changing diskcore.DiskName with JavaScript

I want to change a DiskName on a JavaScript code, did anyone know and give me a script code that can change a DiskName (drive A~Z) of a diskcore with a JavaScript script language in Xwidget?? I've tried doing this when widget load

function widgetOnLoad()
{
diskcore1.DiskName("F")
}

but it (diskcore1) isn't changing it's DiskName from C into F..

help me if someone know :)
thank you :)

Author:  Tony [ January 16th, 2013, 6:24 pm ]
Post subject:  Re: Changing diskcore.DiskName with JavaScript

Code:
  diskcore1.cmd(null,"!diskname=F");

Author:  rezammf [ January 18th, 2013, 3:03 am ]
Post subject:  Re: Changing diskcore.DiskName with JavaScript

Thank you Tony, even i change the "!diskname=F" with a var script, It's work flawlessly :D

Author:  happymeng [ March 4th, 2013, 6:59 pm ]
Post subject:  Re: Changing diskcore.DiskName with JavaScript

This is just the thing i am looking for. Thanks very much for sharing.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/