i am just pasting it inside actinic fragment trying to post the code to you guys but it won't allow me too
Announcement
Collapse
No announcement yet.
JavaScript not working
Collapse
X
-
!!<
<HTML>
<Head>
<SCRIPT language=javascript>
Level1 = new Array("Timberline","argus");
argus= new Array("ARGUS Valuation - DCF",
"ARGUS Valuation Lite" ,
"ARGUS Asset Management",
"ARGUS Property Budget",
"ARGUS Developer",
"ARGUS Development Budget",
"Sage Timbeline Office" );
Timberline = new Array("Commercial and Industrial Contractors",
"Corporate Owners and Government",
"Real Estate Developers",
"Real Estate Managers",
"Residential Builders",
"Electrical and Mechanical Contractors",
"Specialty and Service Contractors ");
Men = new Array("Shirts","Ties","Belts");
Women = new Array("Blouses","Skirts","Scarves");
Biography = new Array("Contemporary","Historical","Other");
Nonfiction = new Array("How-To","Travel","Cookbooks");
function fillSelect(isValue,isNext){
isNext.style.display = "";
isNext.length = 1;
curr = eval(isValue);
for (each in curr)
{
isData = new Option(curr[each],curr[each]);
isNext.add(isData,isNext.options.length);
}
}
function getValue(isValue){
alert(isValue);
}
</Script>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Wayne Nolting (w.nolting@home.com) -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function verify() {
var themessage = "You are required to complete the following fields: ";
if (document.Categories.name.value=="") {
themessage = themessage + " - First Name";
}
if (document.Categories.surname.value=="") {
themessage = themessage + " - Last Name";
}
if (document.Categories.email.value=="") {
themessage = themessage + " - E-mail";
}
if (document.Categories.contact.value=="") {
themessage = themessage + " - contact";
}
//alert if fields are empty and cancel Categories submit
if (themessage == "You are required to complete the following fields: ") {
document.Categories.submit();
}
else {
alert(themessage);
return false;
}
}
// End -->
</script>
[JavaScriptArray]
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
/***********************************************************************
*
* ACT_DropListBox -returns a string containing the HTML for the SELECT listbox
*
************************************************************************/
function ACT_DropListBox(ar)
{
var strIDs = '<SELECT SIZE="1" NAME="ACT_droplstbox" onClick="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">';
var sel = " SELECTED"
strIDs += '<OPTION ' + sel + ' VALUE="">Select a Section</OPTION>';
for (var i=1;i<=ar.length;i++)
{
if (ar[i].sURL !=null)
{
strIDs += '<OPTION VALUE="' + ar[i].sURL + '">' + ar[i].sName + '</OPTION>';
{
if (ar[i].pChild)
{
for (var j=1;j<=ar[i].pChild.length;j++)
{
strIDs += '<OPTION VALUE="' + ar[i].pChild[j].sURL + '">' + '- ' + ar[i].pChild[j].sName + '</OPTION>';
{
if (ar[i].pChild[j].pChild)
{
for (var k=1;k<=ar[i].pChild[j].pChild.length;k++)
{
strIDs += '<OPTION VALUE="' + ar[i].pChild[j].pChild[k].sURL + '">' + '- - ' + ar[i].pChild[j].pChild[k].sName + '</OPTION>';
}
}
}
}
}
}
}
}
strIDs+='</SELECT>'
return strIDs
}
//-->
</SCRIPT>
</Head>
<BODY style="OVERFLOW:auto" vLink=#800080 link=#0000ff>
<FORM name='Categories'>
<table width="200" border="0">
<tr>
<td>Name : </td>
<td><input name="name" type="text" /></td>
</tr>
<tr>
<td>Surname:</td>
<td><input type="text" name="surname" /></td>
</tr>
<tr>
<td>Contact:</td>
<td><input type="text" name="contact" /></td>
</tr>
<tr>
<td>Email</td>
<td><input type="text" name="email" /></td>
</tr>
<tr>
<td>Product Type </td>
<td><select name='List1' onChange="fillSelect(this.value,Categories.List2)">
<option selected>Make a Selection</option>
</select></td>
</tr>
<tr>
<td>Product</td>
<td><select name='List2' onChange="fillSelect(this.value,Categories.List3)">
<option selected>Make a Selection</option>
</select></td>
</tr>
<tr>
<td>Version</td>
<td><select name="version">
</select></td>
</tr>
<tr>
<td>Issue Type </td>
<td><select name="issue">
</select></td>
</tr>
<tr>
<td>Any Comments </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><textarea name="textarea" cols="50" rows="5"></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right">
<input type="reset" name="reset" value="Reset" />
</div></td>
<td><input type=button value="Submit Request" onclick="verify();"></td>
</tr>
</table>
<p>  </p>
</FORM>
<script>
fillSelect('Level1',Categories.List1)
Categories.List2.style.display = "None";
</script>
</BODY>
>!!
Comment
-
Originally posted by jont View PostIf you are pasting the above into a fragment don't forget Actinic will aleady be including <html>, <head> and <body> tags etc from the outer layout which will not help things.Originally posted by leehack View PostNested form tags i expect, again give details of what, where and how you have done it.Originally posted by chebs22 View Post!!<
<HTML>
<Head>
.....
>!!
Comment
-
and my page now has javascriptarray written at the top please if you have tme have a look at www.thesoftwareshop.co.za- also my contact page layout has gone funny now
Comment
Comment