How to transmit the data?
in script create window edittext field , 2 buttons. user can write in edittext field. how read these data? want use pattern in regular expressions.
i made edittext field variable. how transmit data it?
function snpcreatedialog()
{
this.windowref = null;
}
snpcreatedialog.prototype.run = function()
{
// create window of type palette.
var win = new window("palette", "Поиск",[100,100,400,250]); // bounds = [left, top, right, bottom]
this.windowref = win;
// add frame contents.
win.pnl = win.add("panel", [25,15,275,135], "Введите данные для поиска");
// add components, 2 buttons
var txt = win.pnl.add("edittext", [15,25,230,45],"");
//win.pnl.txt = win.pnl.add("edittext", [15,25,230,45],"");
win.pnl.okbtn = win.pnl.add("button", [15,75,105,95], "ok");
win.pnl.cancelbtn = win.pnl.add("button", [140, 75, 230, 95], "cancel");
// register event listeners define button behavior
var re = new regexp(pattern);
win.pnl.okbtn.onclick = function() {
$.writeln("ok pressed");
alert(re);
//win.close();
};
win.pnl.cancelbtn.onclick = function() {
$.writeln("cancel pressed");
win.close();
};
// display window
win.show();
return true;
//var re = new regexp (txt);
//alert(re);
}
if(typeof(snpcreatedialog_unittest) == "undefined") {
new snpcreatedialog().run();
}
charlotte
this isn't place ask question, unless lucky. of folks in forum technical authors job document how software works end users or create knowledge bases. relatively few use regular expressions in way , fewer write scripts. few , fewer active supporters of forum.
i think better googling "regex forums" , trying somewhere http://regexadvice.com/forums/
good luck diploma project.
see www.grainge.org robohelp , authoring tips
More discussions in RoboHelp HTML
adobe
Comments
Post a Comment