Click to See Complete Forum and Search --> : Scripts


angeleye1171963
01-17-2003, 01:52 PM
How do I create a script that will obtain the contents from a javaScript client-side source file

Webskater
01-17-2003, 02:05 PM
What do you mean by "javaScript client-side source file
"?

mawood
01-17-2003, 02:09 PM
I did something like this before...



<select name="server_name" class="dropreq">

<SCRIPT LANGUAGE="JavaScript" src="http://223.4.202.197:8081/ftp_auto/servers.js" type="text/javascript"></script>

</select>


and the servers.js file held the contents of the drop down:




document.write ('<option value="none" SELECTED>CHOOSE ONE</option>');
document.write ('<option value="dwprod">DWPROD</option>');
document.write ('<option value="trbftp01">trbapp-ftp01</option>');
document.write ('<option value="trbfr01">trbfile-fr01</option>');
document.write ('<option value="orthonet">orthonet</option>');
document.write ('<option value="merallis">merallis</option>');
document.write ('<option value="midway2">Midway2</option>');
document.write ('<option value="adp">adp</option>');
document.write ('<option value="OxfordSLC1">OxfordSLC1</option>');
document.write ('<option value="magsvr1">magsvr1</option>');
document.write ('<option value="magsvr2">magsvr2</option>');
document.write ('<option value="dps">dps</option>');
document.write ('<option value="athena">athenahealth</option>');
document.write ('<option value="nymi">nymi</option>');
document.write ('<option value="monte">monte</option>');
document.write ('<option value="ccs">ccs</option>');






.....is this what you are talking about?

angeleye1171963
01-17-2003, 02:17 PM
Well I am taking a class in college and I have to make a file header called headSS.inc and link it to the default page called defaultSS.asp then I need to create a script that will obtain the contents from a javaScript client-side source file named deptSS.js Then I need to create a javaScript source file deptSS.js all using notepad using the client-side script write out the names of the depts with the write in method with a link to each dept home page that will have the exrention asp. I also have to add commit to the page that don't show up on the webpage but on the source code if user wanted to see it. thanks for the help