Dear all,
I'm a newbie of JS. I'm starting to write a web application that has
some fields where I want to put
an help icon. When the user click on the icon, appears a new little
browser with the help inside.
I have the following code:
var header = "<html><head><link REL='stylesheet' TYPE='text/css'
href='/css/help.css'></head><body><fieldset><legend>Help</legend>";
var footer = '</fieldset><center><input type=button class="button"
value="Click to close when finished"
onClick=window.close()></center></body></html>';
var cyana_protein_name = "Enter the protein name without spaces
inside";
function helpme(name) {
if (name=='cyana_protein_name') {
msg=cyana_protein_name;
}
newwin =
window.open('','','top=150,left=150,width=325,heig ht=200');
if (!newwin.opener) newwin.opener = self;
with (newwin.document)
{
open();
write(header);
write(msg + '<br>');
write(footer);
close();
}
}
So, for some help works well, but I'll have a lot of help to display.
Is it possible to read from the server disk a text file based on the
name passed to the helpme function
and display the file content?
Thanks Enrico