Forums

ASP

This topic is locked

ASP Upload 2.09

Posted 21 Jan 2003 04:36:33
1
has voted
21 Jan 2003 04:36:33 Anonymous User posted:
I just added the upload behavior to my page, but it displays a bunch of stray code at the top of my document. What's making this happen and how do I get rid of it?

The output follows:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/base_scoutDB.dwt.asp" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Camp Pendleton</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/Stylesheets/style.css" rel="stylesheet" type="text/css" />
<link href="/Stylesheets/basestyle.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript"></script>




<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --></head><!-- InstanceEnd --></html>
ÿ
function checkOneFileUpload(field,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight)
{ //v2.09 document.MM_returnValue = true;
if (extensions != '') var re = new RegExp(&quot;\.(&quot; + extensions.replace(/,/gi,&quot;|&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>.replace(/\s/gi,&quot;&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
+ &quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>$&quot;,&quot;i&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>; if (field.value == '') {
if (requireUpload) {alert('File is required!');document.MM_returnValue
= false;field.focus();return;} } else {
if(extensions != '' &amp;&amp; !re.test(field.value)) {
alert('This file type is not allowed for uploading.\nOnly the following
file extensions are allowed: ' + extensions + '.\nPlease select another file
and try again.'); document.MM_returnValue = false;field.focus();return;
}
document.PU_uploadForm = field.form;
re = new RegExp(&quot;.(gif|jpg|png|bmp|jpeg)$&quot;,&quot;i&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>;
if(re.test(field.value) &amp;&amp; (sizeLimit != '' || minWidth != '' || minHeight
!= '' || maxWidth != '' || maxHeight != '' || saveWidth != '' || saveHeight !=
'')) { checkImageDimensions(field,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight);
} }
}
&yuml;
function showImageDimensions(fieldImg) { //v2.09
var isNS6 = (!document.all &amp;&amp; document.getElementById ? true : false);
var img = (fieldImg &amp;&amp; !isNS6 ? fieldImg : this);
if (img.width &gt; 0 &amp;&amp; img.height &gt; 0) {
if ((img.minWidth != '' &amp;&amp; img.minWidth &gt; img.width) || (img.minHeight != ''
&amp;&amp; img.minHeight &gt; img.height)) {
alert('Uploaded Image is too small!\nShould be at least ' + img.minWidth
+ ' x ' + img.minHeight); return;} if ((img.maxWidth != '' &amp;&amp; img.width &gt; img.maxWidth)
|| (img.maxHeight != '' &amp;&amp; img.height &gt; img.maxHeight)) {
alert('Uploaded Image is too big!\nShould be max ' + img.maxWidth + ' x '
+ img.maxHeight); return;} if (img.sizeLimit != '' &amp;&amp; img.fileSize &gt; img.sizeLimit)
{
alert('Uploaded Image File Size is too big!\nShould be max ' + (img.sizeLimit/1024)
+ ' KBytes'); return;} if (img.saveWidth != '') document.PU_uploadForm[img.saveWidth].value
= img.width;
if (img.saveHeight != '') document.PU_uploadForm[img.saveHeight].value = img.height;
document.MM_returnValue = true;
} }

function checkImageDimensions(field,sizeL,minW,minH,maxW,maxH,saveW,saveH) {
//v2.09 if (!document.layers) {
var isNS6 = (!document.all &amp;&amp; document.getElementById ? true : false);
document.MM_returnValue = false; var imgURL = 'file:///' + field.value.replace(/\\/gi,'/').replace(/:/gi,'|').replace(/&quot;/gi,'').replace(/^\//,'');
if (!field.gp_img || (field.gp_img &amp;&amp; field.gp_img.src != imgURL) || isNS6)
{field.gp_img = new Image(); with (field) {gp_img.sizeLimit = sizeL*1024; gp_img.minWidth
= minW; gp_img.minHeight = minH; gp_img.maxWidth = maxW; gp_img.maxHeight = maxH;
gp_img.saveWidth = saveW; gp_img.saveHeight = saveH; gp_img.onload = showImageDimensions;
gp_img.src = imgURL; }
} else showImageDimensions(field.gp_img);}
}

function showProgressWindow(progressFile,popWidth,popHeight) { //v2.09
var showProgress = false, form, field;
for (var f = 0; f&lt;document.forms.length; f++) {
form = document.forms[f];
for (var i = 0; i&lt;form.elements.length; i++) {
field = form.elements[i];
if (field.type.toUpperCase() != 'FILE') continue;
if (field.value != '') {showProgress = true;break;}
} }
if (showProgress &amp;&amp; document.MM_returnValue) {
var w = 480, h = 340;
if (document.all || document.layers || document.getElementById) {
w = screen.availWidth; h = screen.availHeight;}
var leftPos = (w-popWidth)/2, topPos = (h-popHeight)/2;
document.progressWindow = window.open(progressFile,'ProgressWindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width='
+ popWidth + ',height='+popHeight); document.progressWindow.moveTo(leftPos, topPos);document.progressWindow.focus();
window.onunload = function () {document.progressWindow.close();};
} }
&yuml;&lt;html xmlns="www.w3.org/1999/xhtml"&gt;&lt;!-- InstanceBegin template="/Templates/base_scoutDB.dwt.asp" codeOutsideHTMLIsLocked="false" --&gt;&lt;head&gt;&lt;!-- InstanceBeginEditable name="head" --&gt;&lt;!-- InstanceEndEditable --&gt;&lt;/head&gt;&lt;!-- InstanceEnd --&gt;&lt;/html&gt;
function checkFileUpload(form,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight)
{ //v2.09 document.MM_returnValue = true; for (var i = 0; i&lt;form.elements.length;
i++) { field = form.elements[i]; if (field.type.toUpperCase() != 'FILE') continue;
checkOneFileUpload(field,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight);
} }&yuml;function checkOneFileUpload(field,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight)
{ //v2.09 document.MM_returnValue = true; if (extensions != '') var re = new
RegExp(&quot;\.(&quot;+ extensions.replace(/,/gi,&quot;|&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>.replace(/\s/gi,&quot;&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
+&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>$&quot;,&quot;i&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>; if (field.value == '') { if (requireUpload) {alert('File
is required!');document.MM_returnValue = false;field.focus();return;} } else
{ if(extensions != ''&amp;&amp;!re.test(field.value)) { alert('This file type
is not allowed for uploading.\nOnly the following file extensions are allowed:
' + extensions + '.\nPlease select another file and try again.'); document.MM_returnValue
= false;field.focus();return; } document.PU_uploadForm = field.form; re = new
RegExp(&quot;.(gif|jpg|png|bmp|jpeg)$&quot;,&quot;i&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>; if(re.test(field.value)&amp;&amp;(sizeLimit
!= '' || minWidth != '' || minHeight != '' || maxWidth != '' || maxHeight !=
'' || saveWidth != '' || saveHeight != '')) { checkImageDimensions(field,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight);
} }
}&yuml;function showImageDimensions(fieldImg) { //v2.09 var isNS6 = (!document.all&amp;&amp;document.getElementById
? true : false); var img = (fieldImg&amp;&amp;!isNS6 ? fieldImg : this); if (img.width&gt;0&amp;&amp;img.height&gt;0)
{ if ((img.minWidth != ''&amp;&amp;img.minWidth&gt;img.width) || (img.minHeight
!= ''&amp;&amp;img.minHeight&gt;img.height)) { alert('Uploaded Image is too small!\nShould
be at least ' + img.minWidth + ' x ' + img.minHeight); return;} if ((img.maxWidth
!= ''&amp;&amp;img.width&gt;img.maxWidth)
|| (img.maxHeight != ''&amp;&amp;img.height&gt;img.maxHeight)) { alert('Uploaded
Image is too big!\nShould be max ' + img.maxWidth + ' x ' + img.maxHeight); return;}
if (img.sizeLimit != ''&amp;&amp;img.fileSize&gt;img.sizeLimit) { alert('Uploaded
Image File Size is too big!\nShould be max ' + (img.sizeLimit/1024) + ' KBytes');
return;} if (img.saveWidth != '') document.PU_uploadForm[img.saveWidth].value
= img.width; if (img.saveHeight != '') document.PU_uploadForm[img.saveHeight].value
= img.height; document.MM_returnValue = true; } } function checkImageDimensions(field,sizeL,minW,minH,maxW,maxH,saveW,saveH)
{ //v2.09 if (!document.layers) { var isNS6 = (!document.all&amp;&amp;document.getElementById
? true : false); document.MM_returnValue = false; var imgURL = 'file:///' + field.value.replace(/\\/gi,'/').replace(/:/gi,'|').replace(/&quot;/gi,'').replace(/^\//,'');
if (!field.gp_img || (field.gp_img&amp;&amp;field.gp_img.src != imgURL) || isNS6)
{field.gp_img = new Image(); with (field) {gp_img.sizeLimit = sizeL*1024; gp_img.minWidth
= minW; gp_img.minHeight = minH; gp_img.maxWidth = maxW; gp_img.maxHeight = maxH;
gp_img.saveWidth = saveW; gp_img.saveHeight = saveH; gp_img.onload = showImageDimensions;
gp_img.src = imgURL; } } else showImageDimensions(field.gp_img);}
}&yuml;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;&lt;!-- InstanceBegin template="/Templates/base_scoutDB.dwt.asp" codeOutsideHTMLIsLocked="false" --&gt;&lt;head&gt;&lt;!-- InstanceBeginEditable name="head" --&gt;&lt;!-- InstanceEndEditable --&gt;&lt;/head&gt;&lt;!-- InstanceEnd --&gt;&lt;/html&gt;
&lt;!-- function MM_displayStatusMsg(msgStr) { //v1.0 status=msgStr; document.MM_returnValue
= true; } function checkFileUpload(form,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight)
{ //v2.09 document.MM_returnValue = true; for (var i = 0; i&lt;form.elements.length;
i++) { field = form.elements[i]; if (field.type.toUpperCase() != 'FILE') continue;
checkOneFileUpload(field,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight);
} } function checkOneFileUpload(field,extensions,requireUpload,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight)
{ //v2.09 document.MM_returnValue = true; if (extensions != '') var re = new
RegExp(&quot;\.(&quot;+ extensions.replace(/,/gi,&quot;|&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>.replace(/\s/gi,&quot;&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
+&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>$&quot;,&quot;i&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>; if (field.value == '') { if (requireUpload) {alert('File
is required!');document.MM_returnValue = false;field.focus();return;} } else
{ if(extensions != ''&amp;&amp;!re.test(field.value)) { alert('This file type
is not allowed for uploading.\nOnly the following file extensions are allowed:
' + extensions + '.\nPlease select another file and try again.'); document.MM_returnValue
= false;field.focus();return; } document.PU_uploadForm = field.form; re = new
RegExp(&quot;.(gif|jpg|png|bmp|jpeg)$&quot;,&quot;i&quot<img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>; if(re.test(field.value)&amp;&amp;(sizeLimit
!= '' || minWidth != '' || minHeight != '' || maxWidth != '' || maxHeight !=
'' || saveWidth != '' || saveHeight != '')) { checkImageDimensions(field,sizeLimit,minWidth,minHeight,maxWidth,maxHeight,saveWidth,saveHeight);
} } } function showImageDimensions(fieldImg) { //v2.09 var isNS6 = (!document.all&amp;&amp;document.getElementById
? true : false); var img = (fieldImg&amp;&amp;!isNS6 ? fieldImg : this); if (img.width&gt;0&amp;&amp;img.height&gt;0)
{ if ((img.minWidth != ''&amp;&amp;img.minWidth&gt;img.width) || (img.minHeight
!= ''&amp;&amp;img.minHeight&gt;img.height)) { alert('Uploaded Image is too small!\nShould
be at least ' + img.minWidth + ' x ' + img.minHeight); return;} if ((img.maxWidth
!= ''&amp;&amp;img.width&gt;img.maxWidth)
|| (img.maxHeight != ''&amp;&amp;img.height&gt;img.maxHeight)) { alert('Uploaded
Image is too big!\nShould be max ' + img.maxWidth + ' x ' + img.maxHeight); return;}
if (img.sizeLimit != ''&amp;&amp;img.fileSize&gt;img.sizeLimit) { alert('Uploaded
Image File Size is too big!\nShould be max ' + (img.sizeLimit/1024) + ' KBytes');
return;} if (img.saveWidth != '') document.PU_uploadForm[img.saveWidth].value
= img.width; if (img.saveHeight != '') document.PU_uploadForm[img.saveHeight].value
= img.height; document.MM_returnValue = true; } } function checkImageDimensions(field,sizeL,minW,minH,maxW,maxH,saveW,saveH)
{ //v2.09 if (!document.layers) { var isNS6 = (!document.all&amp;&amp;document.getElementById
? true : false); document.MM_returnValue = false; var imgURL = 'file:///' + field.value.replace(/\\/gi,'/').replace(/:/gi,'|').replace(/&quot;/gi,'').replace(/^\//,'');
if (!field.gp_img || (field.gp_img&amp;&amp;field.gp_img.src != imgURL) || isNS6)
{field.gp_img = new Image(); with (field) {gp_img.sizeLimit = sizeL*1024; gp_img.minWidth
= minW; gp_img.minHeight = minH; gp_img.maxWidth = maxW; gp_img.maxHeight = maxH;
gp_img.saveWidth = saveW; gp_img.saveHeight = saveH; gp_img.onload = showImageDimensions;
gp_img.src = imgURL; } } else showImageDimensions(field.gp_img);} }
//--&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;&lt;!-- InstanceBegin template="/Templates/base_scoutDB.dwt.asp" codeOutsideHTMLIsLocked="false" --&gt;&lt;head&gt;&lt;!-- InstanceBeginEditable name="head" --&gt;&lt;!-- InstanceEndEditable --&gt;

&lt;/head&gt;
&lt;body bgcolor="#FFFFFF" text="#000000" link="#3399FF" vlink="#3399FF" alink="#3366CC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"&gt;
&lt;script language="JavaScript" src="/menu_array.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script language="JavaScript" src="/mmenu.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;table width="100%" border="0" cellspacing="4" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="#PageContent"&gt;&lt;img src="/Images/spacer.gif" alt="" name="SkipNav" width="0" height="0" border="0" id="SkipNav" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td background="/Images/banners/righttexture_150.png"&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#006600"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#009933"&gt;
&lt;tr&gt;
&lt;td width="100%" class="Folio"&gt; &lt;div align="right"&gt;&lt;a href="www.usmc.mil/" target="_blank" class="nav"&gt;USMC
Links&lt;/a&gt; &gt;&gt; &lt;a href="www.hqmc.usmc.mil/" target="_blank" class="nav"&gt;HQMC&lt;/a&gt;
| &lt;a href="www.marines.com/" target="_blank" class="nav"&gt;recruiting&lt;/a&gt;
| &lt;a href="www.usmc.mil/marinelink/websites.nsf/unitsalpha" target="_blank" class="nav"&gt;units&lt;/a&gt;
| &lt;a href="www.usmc.mil/marinelink/ind.nsf/career" target="_blank" class="nav"&gt;career&lt;/a&gt;
| &lt;a href="www.mol.usmc.mil/system/tfas/login.asp" target="_blank" class="nav"&gt;MOL&lt;/a&gt;
| &lt;a href="www.usmc.mil/marinelink/mcn2000.nsf/news" target="_blank" class="nav"&gt;news&lt;/a&gt;
| &lt;a href="www.usmc-mccs.org/" target="_blank" class="nav"&gt;family&lt;/a&gt;
| &lt;a href="www.usmc.mil/marinelink/ind.nsf/publications" target="_blank" class="nav"&gt;publications&lt;/a&gt;
| &lt;a href="www.usmc.mil/marinelink/ind.nsf/locator" target="_blank" class="nav"&gt;locator&lt;/a&gt;
| &lt;a href="www.usmc.mil/marinelink/websites.nsf/associations" target="_blank" class="nav"&gt;links&lt;/a&gt;&nbsp;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;div align="center"&gt;&lt;a href="/index.asp"&gt;&lt;img src="/Images/banners/texturebanner_430.png" alt="Return to the Camp Pendleton Home page" name="TitleImage" width="430" height="60" border="0" id="TitleImage" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
&lt;td width="150" background="/Images/banners/righttexture_150.png" class="Cutline"&gt; &lt;table width="144" border="0" cellspacing="0" cellpadding="1" bgcolor="#006600"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#009933"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="www.usmc.mil/" target="_blank"&gt;&lt;img src="/images/ads/252x80_marinesega.jpg" alt="Link to the Official Marine Corps Website" name="USMCImage" width="154" border="0" id="USMCImage" /&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
This page viewed 1 times. &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="148"&gt;&lt;img src="/Images/spacer.gif" width="150" height="10" /&gt; &lt;/td&gt;
&lt;td colspan="2"&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FF6600"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FF9933"&gt;
&lt;tr&gt;
&lt;td class="Folio"path_info")')"&gt; /scout/admin/insert.asp &lt;/td&gt;
&lt;td class="Folio"&gt; &lt;div align="right"&gt;Last Modified
&lt;!--#echo var="Last_Modified" --&gt;
&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="150"&gt;&nbsp; &lt;/td&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#333399"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#3366CC"&gt;
&lt;tr&gt;
&lt;td class="Pagetitle"&gt;Story and Photo Administration&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#999999"&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="Folio"&gt;&lt;a href="/media/admin/admin.asp" target="_self" class="Nav"&gt;All
Stories&lt;/a&gt; | &lt;a href="/media/admin/noiseadv.asp" target="_self" class="Nav"&gt;News&lt;/a&gt; | &lt;a href="/media/admin/pressrelease.asp" target="_self" class="Nav"&gt;Focus&lt;/a&gt; | &lt;a href="/media/admin/mediaadv.asp" target="_self" class="Nav"&gt;Sports&lt;/a&gt; | &lt;a href="/media/admin/mediaadv.asp" target="_self" class="Nav"&gt;@Ease&lt;/a&gt; | &lt;a href="/media/admin/insert.asp" target="_self" class="Nav"&gt;&lt;/a&gt;&lt;a href="/media/admin/insert.asp" target="_self" class="Nav"&gt;Add
Story&lt;/a&gt; | &lt;a href="/media/admin/insert.asp" target="_self" class="Nav"&gt;Add
Photo&lt;/a&gt; | &lt;a href="/media/admin/newuser.asp" target="_self" class="Nav"&gt;&lt;/a&gt;&lt;a href="/media/admin/newuser.asp" target="_self" class="Nav"&gt;Add
User&lt;/a&gt; | &lt;a href="/media/admin/logout.asp" target="_self" class="Nav"&gt;Log
Out&lt;/a&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;a name="PageContent" id="PageContent"&gt;&lt;/a&gt;&lt;!-- InstanceBeginEditable name="ContentTable" --&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#FFFFFF"&gt;
&lt;tr&gt;
&lt;td width="100%" valign="top"&gt; &lt;form action="/scout/admin/insert.asp" method="post" enctype="multipart/form-data" name="form2" onsubmit="checkFileUpload(this,'GIF,JPG,JPEG,BMP,PNG',true,'','','','','','','');showProgressWindow('showProgress.htm',300,100);return document.MM_returnValue"&gt;
&lt;table align="center"&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemType:&lt;/td&gt;
&lt;td&gt;
&lt;select name="ItemType"&gt;
&lt;option value="Story" selected&gt;Story&lt;/option&gt;
&lt;option value="Photo" &gt;Photo&lt;/option&gt;
&lt;option value="Both" &gt;Story & Photo&lt;/option&gt;
&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemSection:&lt;/td&gt;
&lt;td&gt;
&lt;select name="ItemSection"&gt;

&lt;option value="1"&gt;News&lt;/option&gt;

&lt;option value="2"&gt;Focus&lt;/option&gt;

&lt;option value="3"&gt;Sports&lt;/option&gt;

&lt;option value="4"&gt;@Ease&lt;/option&gt;

&lt;option value="5"&gt;Opinion&lt;/option&gt;

&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemUnitID:&lt;/td&gt;
&lt;td&gt;
&lt;select name="ItemUnitID"&gt;

&lt;option value="1"&gt;MCB&lt;/option&gt;

&lt;option value="2"&gt;I MEF&lt;/option&gt;

&lt;option value="3"&gt;1stMarDiv&lt;/option&gt;

&lt;option value="4"&gt;1stFSSG&lt;/option&gt;

&lt;option value="7"&gt;MAG 39&lt;/option&gt;

&lt;option value="8"&gt;I MACE&lt;/option&gt;

&lt;option value="9"&gt;NHCP&lt;/option&gt;

&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemDate:&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="ItemDate" value="" size="32"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemName:&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="ItemName" value="" size="32"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemHeadline:&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="ItemHeadline" value="" size="32"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemSubhead:&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="ItemSubhead" value="" size="32"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemWriterID:&lt;/td&gt;
&lt;td&gt;
&lt;select name="ItemWriterID"&gt;

&lt;option value="3"&gt;Sgt. Robert Piper&lt;/option&gt;

&lt;option value="4"&gt;John Raifsnider&lt;/option&gt;

&lt;option value="5"&gt;Sgt. David L. Crockett&lt;/option&gt;

&lt;option value="2"&gt;Cpl. Roman B. Bercot&lt;/option&gt;

&lt;option value="7"&gt;Sgt. Jose M. Montes&lt;/option&gt;

&lt;option value="8"&gt;Brian LaMay&lt;/option&gt;

&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemDateline:&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="ItemDateline" value="" size="32"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td nowrap align="right" valign="top"&gt;ItemText:&lt;/td&gt;
&lt;td valign="baseline"&gt;
&lt;textarea name="ItemText" cols="50" rows="5"&gt;&lt;/textarea&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemTagline:&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="ItemTagline" value="" size="32"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemPhotoURL:&lt;/td&gt;
&lt;td&gt;
&lt;input name="ItemPhotoURL" type="file" onchange="checkOneFileUpload(this,'GIF,JPG,JPEG,BMP,PNG',true,'','','','','','','')" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemThumbURL:&lt;/td&gt;
&lt;td&gt;
&lt;input name="ItemThumbURL" type="file" onchange="checkOneFileUpload(this,'GIF,JPG,JPEG,BMP,PNG',true,'','','','','','','')" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td nowrap align="right" valign="top"&gt;ItemCutline:&lt;/td&gt;
&lt;td valign="baseline"&gt;
&lt;textarea name="ItemCutline" cols="50" rows="5"&gt;&lt;/textarea&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;ItemPhotogID:&lt;/td&gt;
&lt;td&gt;
&lt;select name="ItemPhotogID"&gt;

&lt;option value="1"&gt;Cpl. Roman B. Bercot&lt;/option&gt;

&lt;option value="2"&gt;Sgt. Robert Piper&lt;/option&gt;

&lt;option value="3"&gt;John Raifsnider&lt;/option&gt;

&lt;option value="4"&gt;Sgt. David L. Crockett&lt;/option&gt;

&lt;option value="5"&gt;LCpl. Jeremy M. Vought&lt;/option&gt;

&lt;option value="7"&gt;Daniel Raifsnider&lt;/option&gt;

&lt;option value="8"&gt;Rod Deutschmann&lt;/option&gt;

&lt;/select&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="baseline"&gt;
&lt;td nowrap align="right"&gt;&nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;input type="submit" value="Insert Record"&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;input type="hidden" name="MM_insert" value="form2"&gt;
&lt;/form&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0" width="95%" align="center" bgcolor="#3366cc"
border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table cellspacing="1" cellpadding="4" width="100%" align="center" border="0"&gt;
&lt;tbody&gt;
&lt;tr bgcolor="#3399ff"&gt;
&lt;th scope="col" align="default"&gt;Sample&lt;/th&gt;
&lt;th scope="col" align="default"&gt;Table&lt;/th&gt;
&lt;/tr&gt;
&lt;tr class="Cutline" bgcolor="#ffffff"&gt;
&lt;td align="default"&gt;Top&lt;/td&gt;
&lt;td align="default"&gt;Headers&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&nbsp;&lt;/p&gt;
&lt;table style="BACKGROUND-COLOR: #3366cc" cellspacing="0" cellpadding="0" width="95%"
align="center" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table cellspacing="1" cellpadding="4" width="100%" border="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th style="BACKGROUND-COLOR: #3399ff" scope="row" width="20%"&gt;Sample&lt;/th&gt;
&lt;td class="Cutline" style="BACKGROUND-COLOR: #ffffff"&gt;Side&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th style="BACKGROUND-COLOR: #3399ff" scope="row" width="20%"&gt;Table&lt;/th&gt;
&lt;td class="Cutline" style="BACKGROUND-COLOR: #ffffff"&gt;Headers&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;!-- InstanceEndEditable --&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;td width="148"&gt; &lt;table width="148" border="0" cellspacing="0" cellpadding="1" bgcolor="#666666"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#FF9933"&gt;
&lt;tr&gt;
&lt;th&gt;News&lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#FFFFFF"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;p class="Cutline"&gt;&lt;a href="/Images/photos/07nov02/scoutphoto.jpg" class="module"&gt;&lt;img src="/Images/photos/07nov02/scoutphoto_thumb.jpg" name="NewsThumb" width="75" border="1" align="left" id="NewsThumb" /&gt;11th
MEU (SOC) leaves for six-month float&lt;/a&gt;&lt;/p&gt;
&lt;p class="Cutline"&gt;&lt;a href="#" class="module"&gt;Pendleton Marines
standing by to fight wildfires&lt;/a&gt;&lt;/p&gt;
&lt;p class="Cutline"&gt;&lt;a href="#" class="module"&gt;Pendleton units
return home after six-month deployment &lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#3399FF"&gt;
&lt;tr&gt;
&lt;th&gt;Focus&lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#FFFFFF"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;p class="Cutline"&gt;&lt;a href="/Images/photos/07nov02/focusphoto_thumb.jpg" class="module"&gt;&lt;img src="/Images/photos/07nov02/focusphoto_thumb.jpg" name="FocusThumb" width="75" border="1" align="left" id="FocusThumb" /&gt;Sea
of Green: Future field corpsmen clear combat town to secure

aid station&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#3399FF"&gt;
&lt;tr&gt;
&lt;th&gt;Sports&lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#FFFFFF"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;p class="Cutline"&gt;&lt;a href="/Images/photos/07nov02/sportsphoto.jpg" class="module"&gt;&lt;img src="/Images/photos/07nov02/sportsphoto_thumb.jpg" name="SportsThumb" width="75" border="1" align="left" id="SportsThumb" /&gt;&quot;Outmanned,
haunted&quot; 3rd Assault Amphibian Battalion tops&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#3399FF"&gt;
&lt;tr&gt;
&lt;th&gt;@Ease&lt;/th&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#FFFFFF"&gt;
&lt;tr&gt;
&lt;td&gt; &lt;p class="Cutline"&gt;&lt;a href="/images/photos/07nov02/ateasephoto.jpg" class="module"&gt;&lt;img src="/Images/photos/07nov02/ateasephoto_thumb.jpg" name="AtEaseThumb" width="75" border="1" align="left" id="AtEaseThumb" /&gt;Oodles
of options await out-of-school kids&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="3"&gt; &lt;p align="center" class="Links"&gt;&lt;a href="javascript:history.go(-1);"&gt;Previous
Page&lt;/a&gt; | &lt;a href="/legal.asp#privacy" target="_self"&gt;Privacy &amp; Security&lt;/a&gt;
| &lt;a href="/legal.asp#accessibility" target="_self"&gt;Accessibility Statement&lt;/a&gt;
| &lt;a href="/legal.asp#disclaimer" target="_self"&gt;Link Disclaimer&lt;/a&gt; |
&lt;a href="/legal.asp#copyright"&gt;Copyright&lt;/a&gt; | &lt;a href="mailto: "&gt;Webmaster&lt;/a&gt;&lt;/p&gt;
&lt;p align="center" class="Links"&gt;Optimized for Internet Explorer 4 or later
at a screen resolution of 800 x 600 or higher&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;&lt;!-- InstanceEnd --&gt;&lt;/html&gt;

Replies

Replied 21 Jan 2003 09:39:28
21 Jan 2003 09:39:28 Martha Graham replied:
George is on vacation till Jan. 31st.
Hope someone has seen this. I will let George know about this.

Martha Graham
Replied 21 Jan 2003 19:34:16
21 Jan 2003 19:34:16 Anonymous User replied:
Could this have anything to do with templates?

Why be difficult when you can be impossible?
Replied 22 Jan 2003 09:42:51
22 Jan 2003 09:42:51 Martha Graham replied:
It is certainly possible, take a look at these faq's:

www.dmxzone.com/go?3759
www.dmxzone.com/go?4199

I hope this helps you.

Martha Graham
Replied 22 Jan 2003 17:12:18
22 Jan 2003 17:12:18 Anonymous User replied:
Well I read that 3759 article, but I don't really get how to deal with that. I created an editable "JavaScripts" area. But does that mean that I have to put all of my javascripts in there? Or is just the ASP Upload content that needs to go in there?

Why be difficult when you can be impossible?
Replied 23 Jan 2003 09:37:59
23 Jan 2003 09:37:59 Martha Graham replied:
I am not sure, will forward this to George. Unfortunately he is on vacation till January 31st.

Martha Graham

Reply to this topic