onyxtacular
IS-IT--Management
My company has tons of PDF drawings listed in folders by sales order number. I already have script to access the information, but it returns a basic folder listing back. I would like to modify this to return a webpage which will allow me to put other information in the page. This is what I have so far. Any help at all is appreciated. ...Oh yes, this script also errors out the first page with a 404 error for some reason.
Thanks,
<SCRIPT LANGUAGE="JavaScript">
<!--start stealth
function GoToURL(j) {
window.status=('Connecting....')
var URLis;
URLis = document.URLframe.Dest.value
URLHeader = "GNC3/DRAWINGS/"
if (URLis == "" || URLis.length <2= 4)
{
j.value = "Try Again"
alert('\nOops!\n\nYou must enter a valid URL');
window.status=('Missing data or Invalid. Try again?.')
}
else
{
j.value = "Connecting to: http:\\" + URLHeader + URLis
var location=window.open(" + URLHeader +
URLis,'mywindow','width=800,height=600');
this.location.href = location;
window.status=('Connecting to ' + URLHeader + URLis + ' Please
wait........');
}
}
//-->
</SCRIPT>
<FORM NAME="URLframe">
<TABLE BORDER="0" ALIGN="CENTER">
<TR>
<TD VALIGN="MIDDLE" ALIGN="CENTER">
<FONT
COLOR="#FF0000"
FACE="VERANDA,ARIAL,HELVETICA"><B>Sales Order Number: <br>
</B></FONT>
<INPUT NAME="Dest" SIZE="8" MAXLENGTH="50">
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
<P>
<INPUT TYPE="button" VALUE=" Go to.. " ONCLICK="GoToURL(this)"
onchange="refresh" WIDTH="50">
</P>
</TD>
</TR>
</TABLE>
</FORM>
Thanks,
<SCRIPT LANGUAGE="JavaScript">
<!--start stealth
function GoToURL(j) {
window.status=('Connecting....')
var URLis;
URLis = document.URLframe.Dest.value
URLHeader = "GNC3/DRAWINGS/"
if (URLis == "" || URLis.length <2= 4)
{
j.value = "Try Again"
alert('\nOops!\n\nYou must enter a valid URL');
window.status=('Missing data or Invalid. Try again?.')
}
else
{
j.value = "Connecting to: http:\\" + URLHeader + URLis
var location=window.open(" + URLHeader +
URLis,'mywindow','width=800,height=600');
this.location.href = location;
window.status=('Connecting to ' + URLHeader + URLis + ' Please
wait........');
}
}
//-->
</SCRIPT>
<FORM NAME="URLframe">
<TABLE BORDER="0" ALIGN="CENTER">
<TR>
<TD VALIGN="MIDDLE" ALIGN="CENTER">
<FONT
COLOR="#FF0000"
FACE="VERANDA,ARIAL,HELVETICA"><B>Sales Order Number: <br>
</B></FONT>
<INPUT NAME="Dest" SIZE="8" MAXLENGTH="50">
</TD>
</TR>
<TR>
<TD ALIGN="CENTER">
<P>
<INPUT TYPE="button" VALUE=" Go to.. " ONCLICK="GoToURL(this)"
onchange="refresh" WIDTH="50">
</P>
</TD>
</TR>
</TABLE>
</FORM>