View Full Version : Help Please


wendyman
08-23-2005, 07:03 PM
Hi~
I have a WYSIWYG editor.
I want to be able to "CHOOSE" a template and edit it.

http://www.imagefreehosting.com/edit.htm


It's not working.

Any help is appreciated.

Here is the code I'm using...(Sorry I'm a NEWBIE idiot!)

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>Image Storage</TITLE>
</HEAD><BODY><BODY BGCOLOR="#ffffff">
<a name="top">


<HEAD><title>Load Template</title>

<SCRIPT TYPE="text/javascript">
<!--
function dropdown(mySel)
{
var myWin, myVal;
myVal = mySel.options[mySel.selectedIndex].value;
if(myVal)
{
if(mySel.form.target)myWin = parent[mySel.form.target];
else myWin = window;
if (! myWin) return true;
myWin.location = myVal;
}
return false;
}
//-->
</SCRIPT>


<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=1,width=635,height=250,left = 05,top = 259');");
}
// End -->
</script>


<SCRIPT LANGUAGE="JavaScript">


<!-- Begin
function ChartpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=1,width=635,height=280,left = 05,top = 259');");
}
// End -->
</script>



<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "http://www.auctionessentials4u.com/htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5)
{
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else
{
document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>');
}
// --></script>
</head>

<body bgcolor="#FFFFFF">


<table width="75%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">



<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="2">
<tr bgcolor="#CCCCCC">


<td valign="top" width="" height="" >
<FORM
ACTION="edit.htm"
METHOD=POST onSubmit="return dropdown(this.gourl)"
TARGET=MAIN
>
<SELECT NAME="gourl">
<OPTION VALUE="">Choose a Template

<OPTION VALUE="babyboy.htm">BabyBoy
<OPTION VALUE="babygirl.htm">BabyGirl
<OPTION VALUE="babylace.htm">BabyLace


</SELECT>
<INPUT TYPE=SUBMIT VALUE="Get">
</FORM>


</td>

</tr>
</table>


</td>
</tr>
<tr>
<td valign="top">
<center>
<form name="template" method="post" action = edit.htm>
<textarea name="Template" cols="100%" wrap="ON" rows="20">
</textarea>

<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object

config.toolbar = [
['fontname'],
['fontsize'],
['bold','italic','underline','separator'],
['strikethrough','subscript','superscript','separat or'],
['justifyleft','justifycenter','justifyright','sepa rator'],
['OrderedList','UnOrderedList','Outdent','Indent',' separator'],
['forecolor','backcolor','separator'],
//['custom1','custom2','custom3','separator'],
['HorizontalRule','Createlink','InsertImage','Inser tTable','separator'],
['popupeditor','about'],
];
editor_generate('Template',config);
</script>


<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="2">
<tr bgcolor="#CCCCCC">
<td valign="top" width="" height="" nowrap>
<center><font size ="3"><br> Now You Can, Highlight, Copy & Paste, To Save Your Template Code to Your Computers NOTEPAD, etc. </font></center>

</td></form></table></center></td>
</tr>


<div align="center"></div>
<div align="center"></div>
</td>

</p>
</td>
</tr>
</form>
</table>
</td>
</tr>
<tr> </tr>
<tr> </tr>
</table>
</td>
</tr>
</table>
</BODY>
</html>


<font size="2"><br>
Copyright 2005 ImageFreeHosting.com</font></div>

pb&j
08-24-2005, 04:26 AM
I have a WYSIWYG editor.

there are numerous coding errors. (probably due to your editor.)

not to sound mean, but i would suggest starting over and using a text editor only.

can you explain exactly what you are wanting to achieve or do?