i have two bits of code in in java
i want to make a dialog or user interface in IE and depending on whats put in
transfer it to the array function
is it possible to use IE in this way ?
or am i just wasting my time and use VB.Net as a interface
the code is below if it helps
function createarray() { var text;var window = new
ActiveXObject("InternetExplorer.Application");
window.width = 520; window.height = 160;window.toolbar = false; window.menubar
= false;
window.statusbar = false; window.visible = true;
window.navigate("about:input");
window.Document.write("<div style=\"text-align: center;\"\><big\><big\><span
style=\"font-weight:bold;\"\>Create array</span\></big\></big\><br\>");
window.Document.write("<small style=\"color: rgb(255, 0, 0);\"\>High light
first the lines of text that you want to turn in to an array<br\>");
window.Document.write("</small\>$<input name=\"array\"\>[StartNo<input
size=\"3\" name=\"Num\"\>] = \"High lighted text\";<br\><input name=\"Submit\"
value=\"Create Array\" type=\"button\"\>");
}
//array in
function addphptxtarray(lable,text,num) { var c; var b=0+num; text = text +
"b";
puttext("unset($"+lable+");\n $"+lable+" = array();\n ");
var array = text.split("\n"); for (c in array){text =
array[c].substring(0,array(c).length - 1);
b=c++; puttext = puttext +"$"lable+"["+b+"] = \""+text+"\";\n"}return puttext;}
--
<http://forum.pspad.com/read.php?2,43162,43162>
PSPad freeware editor http://www.pspad.com