SitePoint Sponsor |
|
User Tag List
Results 1 to 14 of 14
Thread: Button Not working in FireFox
-
Aug 21, 2007, 18:21 #1
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Button Not working in FireFox
I am new to this so here goes. i have a classic asp page that submit a asp page. the button works fine in Ie but nothing happens in firefox. Here is the code. Thanks for your help.
<script language="JavaScript">
<!-- Begin
function VerifyForm() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Clicking the "Generate" button again<br>or refreshing the page will slow down the process.</b></td></tr></table>';
var i = 0;
if (document.form1("ProductGroup").value == -1){
i = i+1;
}
switch(i){
case 0: //All fine
pdfMsg.innerHTML = sString;
document.form1.action = "default.asp";
document.form1.submit();
break;
case 1: //Nothing selected
window.alert("Please select a Group.");
document.form1("ProductGroup").focus;
break;
}
}
-->
</script>
-
Aug 22, 2007, 02:17 #2
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
To be honest, that is not very good code. Post your HTML and we can help you with a much better, cross-browser code.
Also, this example might give you some ideas.
-
Aug 22, 2007, 04:58 #3
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok here is the whole page. thanks
<%@ Language=VBScript %>
<%Response.AppendToLog Session("LogID")%>
<HTML>
<HEAD>
<TITLE>Laneventure Pricelists</TITLE>
<%
dim sec_UserAccess, sec_RequiredLevel
'This page belongs to: Access Level
'1 = Public
'2 = Image Archive
'3 = Marketing Resource
'4 = Sales Center
'5 = Inventory Center
'6 = Dashboard
'7 = Admin
'8 = Price Lists
sec_UserAccess = 4
'Minimum level to access page
'100 = Guest
'150 = Contract
'200 = Dealer
'300 = Employee
'400 = Salesrep
'500 = Manager
'600 = Administrator
sec_RequiredLevel = 200
%>
<!--#include file="../inc/Verify.inc"-->
<!-- #INCLUDE FILE="../inc/EXTfunctions.asp" -->
<!-- #include file="../inc/DownloadInst.asp" -->
<!-- #INCLUDE FILE="../inc/EXTBusLogic.asp" -->
<!-- #INCLUDE FILE="../inc/PDFPricelistMain.asp" -->
<!-- #INCLUDE FILE="../inc/PDFPricelistLogic.asp" -->
<!-- #INCLUDE FILE="../inc/PDFMakePricelist.asp" -->
<!-- #INCLUDE FILE="../inc/PDFTable.asp" -->
<link rel="stylesheet" type="text/css" href="../inc/extLV.css">
<%
dim iEFlag, sWholeWM, strWM, strTM
sub Main
'Determine which pricelists can be shown.
Dim x, iTFlag, iWFlag, iJFlag, iHFlag, iTuFlag
dim sPath
sPath = server.MapPath("../DidYaKnowVids/")
strT = ""
strE = ""
strW = ""
strH = ""
strTu = ""
iNoneFlag = 0
if Session("iGA") = 1 then
for x = 0 to ubound(Session("Groups"))
Select case ucase(Session("Groups")(x))
case "A" 'Tradewinds
iTFlag = 1
iNoneFlag = 1
case "B","C","D","E","K" 'WeatherMaster
iWFlag = 1
iNoneFlag = 1
case "F","G","H" 'Excursions
iEFlag = 1
iNoneFlag = 1
end select
next
if iNoneFlag = 1 then 'Show the correct pricelists
if iEFlag = 1 then 'Show Pricelist
call runPricelist
end if
end if
end if
end sub
Main
%>
<script language="JavaScript">
<!-- Begin
function VerifyForm() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Clicking the "Generate" button again<br>or refreshing the page will slow down the process.</b></td></tr></table>';
var i = 0;
if (document.form1("ProductGroup").value == -1){
i = i+1;
}
switch(i){
case 0: //All fine
pdfMsg.innerHTML = sString;
document.form1.action = "default.asp";
document.form1.submit();
break;
case 1: //Nothing selected
window.alert("Please select a Group.");
document.form1("ProductGroup").focus;
break;
}
}
-->
</script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function submitwhole_onclick() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Refreshing the page will slow down the process.</b></td></tr></table>';
pdfMsg.innerHTML = sString;
document.form1.ProductGroup.selectedIndex = 2;
// document.form1.ProductGroup = "%7EWEATHERMASTER+-+ALL"
document.form1.Markup.value = "1.0";
document.form1.action = "default.asp";
document.form1.submit();
}
function submitwholeEX_onclick() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Refreshing the page will slow down the process.</b></td></tr></table>';
pdfMsg.innerHTML = sString;
document.form1.ProductGroup.selectedIndex = 1;
document.form1.Markup.value = "1.0";
document.form1.action = "default.asp";
document.form1.submit();
}
//-->
</SCRIPT>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function submitretail_onclick() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Refreshing the page will slow down the process.</b></td></tr></table>';
pdfMsg.innerHTML = sString;
document.form1.ProductGroup.selectedIndex = 2;
// document.form1.ProductGroup = "%7EWEATHERMASTER+-+ALL"
document.form1.Markup.value = "1.6";
document.form1.action = "default.asp";
document.form1.submit();
}
//-->
</SCRIPT>
</HEAD>
<body topmargin="0" leftmargin="5" marginheight="0" marginwidth="0">
<table style="WIDTH: 750px" cellSpacing="0" cellPadding="0" width="750" border="0" align="left" ID="Table1">
<tr>
<td><!--Do not adjust table!!!!!! Set for 600 x 800 resoulution--><!-- BEGIN MAIN CONTENT TABLE-->
<table style="WIDTH: 750px" cellSpacing="0" cellPadding="0" width="750" border="0" align="left" ID="Table2">
<tbody valign=top>
<tr><!-- ROW 1 -->
<TD width=185>
<table border=0 width=185 height=300 cellpadding=0 cellspacing=0 ID="Table3">
<tbody valign=top>
<tr>
<td height=32><!--#include file="../inc/AdLinkImg.inc"-->
</td>
</tr>
<tr>
<td height=65><!-- BEGIN GREETING -->
<strong>Welcome <%=Session("UserName")%>!</strong><br><br>
<code class="smCopyBlk">You belong to the <%=uCase(Session("UserGroupDesc"))%> Group with an Access Level of <%=ucase(Session("UserLevelDesc"))%>.</code> <!-- END GREETING -->
</td>
</tr>
<tr>
<td><!-- BEGIN USER LEVEL MENUS -->
<%
if Session("MenuParent") = sec_UserAccess then
Response.write Session("Menu")
else 'Get the new parent and sub menu info
Response.write displayMenu(sec_UserAccess)
Session("MenuParent") = sec_UserAccess
end if
%>
<!-- END USER LEVEL MENUS -->
</td>
</tr>
</tbody>
</table>
</TD>
<TD style="BORDER-RIGHT: #808080 2px solid; BORDER-LEFT: #808080 2px solid; BORDER-BOTTOM: #808080 2px solid"
>
<table border=0 cellpadding=0 cellspacing=0 width="100%" ID="Table4">
<tr>
<td class="hdCopy" ALIGN=middle height=60
background ="../imagesDef/mainHder1.gif" style="BORDER-BOTTOM: #808080 2px solid"
>Laneventure Pricelists</td>
</tr>
<tr>
<td> Laneventure is pleased to offer its electronic<br>
pricelists online for download by authorized dealers.
</td>
</tr>
<%if Session("iGA") = 1 then%>
</table>
<TABLE CELLPADDING=0 CELLSPACING=10 BORDER=0 width="100%" ID="Table5">
<TR>
<TD bgcolor=#808080 colspan=2 valign=center align=middle height=25>
<font color=#ffffff><b>
<%
if iNoneFlag = 1 then
Response.Write "Choose a Pricelist to download"
else
Response.Write "There are no Pricelists to download for your Authorized Groups."
end if
%>
</b></font>
</TD>
</TR>
<%
if iNoneFlag = 1 then
if iEFlag=1 then %>
<tr><td colspan=2>
<table border=0 cellpadding=5 cellspacing=0 width="100%" ID="Table6" style="LEFT: 0px; TOP: 1px">
<tr>
<td width=550 align=middle style="BORDER-BOTTOM: #808080 1px solid" >
<IMG height=64 src="../imagesDef/Excursions-oval.gif" width=150 align=center border=0>
</td>
<td width=550 align=middle style="BORDER-BOTTOM: #808080 1px solid" >
<IMG style="LEFT: 17px; TOP: 5px" height=64 src="../imagesDef/WM_oval.gif" width=150 align=left border=0 >
</td>
</tr>
</table>
<tr>
<td width=175 style="BORDER-RIGHT: #808080 1px solid">
How to generate the Pricelist:
<ul>
<li>Enter your Mark-upbr>Example: 2.0 or 1.8
<li>Select a Product Group to
generate a pricelist for
<li>Click "Generate"</li>
</ul>
</td>
<td valign=top>
<form id=form1 name=form1 method="post" action="">
<table align=center border=0 cellpadding=5 ID="Table7" width="100%">
<tr>
<td align=middle>
Enter MARK-UP<br>
<input id="Markup" name="Markup" value=" <%=sMarkupP%>" size=7 maxlength=7>
</td>
<tr>
<td align=middle>
Select PRODUCT GROUP<br>
<%=sCollectionP%>
</td>
</tr>
<tr><td><b>Check the box if you want<br>New Product only/b> <input type=checkbox name="NewProduct" id="NewProduct"></td></tr>
<tr>
<td align=middle>
<input type=hidden id=hide name=hide value=make>
<INPUT id="submitGroup" type="button" value="Generate" name="submitGroup" onclick="javascript:VerifyForm()">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=2>
<div id=pdfMsg name="pdfMsg">
<%=sWriteP%>
<% if Session("UserGroup") <> "11" then
if Session("UserGroup") <> "13" then 'Home Builders & Contract %>
<table border=0 cellpadding=5 cellspacing=0 width="100%" ID="Table8" style="LEFT: 5px; TOP: 1px">
<tr>
<td colspan=4 align=middle style="BORDER-TOP: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid">
<b>- OR -</b><br>
Select from one of the Pre-Set Pricelists below.<br>
<b>- PRE-SET PRICELISTS -</b>
</td>
</tr>
<tr>
<td style="BORDER-RIGHT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid"><b>Excursions</b></td>
<td style="BORDER-BOTTOM: #808080 1px solid">
<INPUT type=hidden id=hide name=hide value=make>
<INPUT id="submitwholeEX" type="button" value="Wholesale" name="submitwholeEX" LANGUAGE=javascript onclick="submitwholeEX_onclick()"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
</tr>
<tr>
<td style="BORDER-RIGHT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid">
<b>WeatherMaster</b></td>
<td style="BORDER-BOTTOM: #808080 1px solid">
<INPUT type=hidden id=hide name=hide value=make>
<INPUT id="submitwhole" type="button" value="Wholesale" name="submitwhole" LANGUAGE=javascript onclick="submitwhole_onclick()">
<INPUT id="submitretail" type="button" Value="Min. Retail" name="submitretail" LANGUAGE=javascript onclick="submitretail_onclick()"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
</tr>
</table></FORM>
<% end if
end if %>
</div>
</td>
</tr>
</TABLE>
</TD>
</tr>
<tr>
<td colspan=2>
</td>
</tr>
<% end if
response.Write strWM & strTM & sWholeWM
end if
%></tbody>
</table>
</td>
</tr>
</table>
<%else%>
<tr>
<TD colspan="2" align="left" bgcolor="white" style="BORDER-RIGHT: #808080 2px solid">
<br>
<STRONG>Currently you are not authorized to view any product.<br>Please contact your
LaneVenture Territory Manager for authorization.</STRONG></FONT>
</TD>
</tr>
<%end if%>
<!--END MAIN CONTENT TABLE--></TD></TR>
<tr>
<td><!--BEGIN FOOTER TABLE --><!--#include file="../inc/footer.inc"--><!--END FOOTER TABLE -->
</td>
</tr></TABLE><!--END CONSTRAINING TABLE-->
</body>
</HTML>
-
Aug 23, 2007, 05:33 #4
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Not tested!
Code JavaScript:function VerifyForm () { var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>' + 'Clicking the "Generate" button again<br>or refreshing the page will slow down the process.</b></td></tr></table>'; var theform = document.getElementById('form1'); var product = document.getElementById('NewProduct'); var pdfMsg = document.getElementById('pdfMsg'); if (product.checked == true) { pdfMsg.innerHTML = sString; theform.action = "default.asp"; theform.submit(); } else { alert("Please select a Group."); product.focus(); } }
-
Aug 23, 2007, 07:01 #5
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Siteguru,
What is happening is that when a person is using firefox and they click the generate button, which calls the javascript function verifyform it does nothing. Thank you for your patience, i am new to this.
Thanks,
-
Aug 23, 2007, 07:16 #6
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Odd. Here's a test page I tried which seemed to work fine in both IE7 and FF2. (Except you don't see any data in the DIV (sString) since the form submits to the default.asp page. Comment out the .submit() line to see the text show up).
Code HTML4Strict:<html> <head> <script type="text/javascript"> function VerifyForm () { var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>' + 'Clicking the "Generate" button again<br>or refreshing the page will slow down the process.</b></td></tr></table>'; var theform = document.getElementById('form1'); var product = document.getElementById('NewProduct'); var pdfMsg = document.getElementById('pdfMsg'); if (product.checked == true) { pdfMsg.innerHTML = sString; theform.action = "default.asp"; theform.submit(); } else { alert("Please select a Group."); product.focus(); } } </script> </head> <body> <form id=form1 name=form1 method="post" action=""> <table align=center border=0 cellpadding=5 ID="Table7" width="100%"> <tr> <td align=middle> Enter MARK-UP<br> <input id="Markup" name="Markup" value="Summat" size=7 maxlength=7> </td> <tr> <td align=middle> Select PRODUCT GROUP<br> </td> </tr> <tr><td><b>Check the box if you want<br>New Product only</b> <input type=checkbox name="NewProduct" id="NewProduct"></td></tr> <tr> <td align=middle> <input type=hidden id=hide name=hide value=make> <INPUT id="submitGroup" type="button" value="Generate" name="submitGroup" onclick="javascript:VerifyForm()"> </td> </tr> </table> </td> </tr> <tr> <td colspan=2> <div id=pdfMsg name="pdfMsg"></div> </td> </tr> </table> </body> </html>
-
Aug 23, 2007, 07:33 #7
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
siteguru,
i think i am not explaining well enough. The person has to select from a drop down box the product group. i see where you are getting the new product form1 and pdfmsg but i don't see the product group. when i click on the generate button i still don't get anything.
<li>Select a Product Group to
generate a pricelist for
<td align=middle>
Select PRODUCT GROUP<br>
<%=sCollectionP%>
</td>
thanks
-
Aug 23, 2007, 07:59 #8
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Ah! <%=sCollectionP%> is ASP code generating a droplist? In that case we need to see the rendered HTML code.
What is the purpose of the checkbox? Are you wanting to test that the person has chosen an item from the droplist AND checked the box?
-
Aug 23, 2007, 08:06 #9
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
this generates a price list on line in a pdf format. So when then check the new product that means they just want to only see the new product pricelist. the <%=sCollectionP%> code is below it is in another asp page that is called when the call runPricelist is called.
strTable = "dbo.tbPricelistGroups"
strGroupWhere = groupLimits(strTable)
strGroupWhere = replace(strGroupWhere,"WHERE ","")
'Build drop down
strSql = "SELECT distinct '~' + MainGroup AS ID, MainGroup as GroupName FROM dbo.tbPricelistGroups WHERE " _
& strGroupWhere & " UNION " _
& "SELECT GRP + '~' + GroupName AS ID, GroupName FROM dbo.tbPricelistGroups WHERE MainGroup='weathermaster' AND NonStdGroup=0 " _
& "AND " & strGroupWhere & " ORDER BY [ID]"
strCollections = buildSelectwName(strSql, "ProductGroup")
strCollections = replace(strCollections,"WEATHERMASTER","WEATHERMASTER - ALL")
getCollections = strCollections
-
Aug 23, 2007, 10:17 #10
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Sorry but you have lost me completely. Please post here the View..Source of the form page AFTER you have run it in a browser.
-
Aug 23, 2007, 10:20 #11
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
sorry about that here is the source code after i have run a pricelist.
<HTML>
<HEAD>
<TITLE>Laneventure Pricelists</TITLE>
<link rel="stylesheet" type="text/css" href="../inc/extLV.css">
<script language="JavaScript">
<!-- Begin
function VerifyForm() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Clicking the "Generate" button again<br>or refreshing the page will slow down the process.</b></td></tr></table>';
var theform = document.getElementById('form1');
var product = document.getElementById('NewProduct');
var pdfmsg = document.getElementById('pdfmsg');
var i = 0;
if (document.form1("ProductGroup").value == -1){
i = i+1;
}
switch(i){
case 0: //All fine
pdfMsg.innerHTML = sString;
// var smarkup = document.getElementById('sMarkupP')
// var snewproduct = document.getElementById('newproduct')
var sprodgroup = document.form1("productGroup").value;
document.form1.ProductGroup.selectedindex = sprodgroup;
// document.form1.Markup.value = smarkup
// document.form1.NewProduct.value = snewproduct
// document.form1.action = "default.asp";
theform.action = "default.asp";
// document.form1.submit();
theform.submit();
break;
case 1: //Nothing selected
window.alert("Please select a Group.");
document.form1("ProductGroup").focus;
break;
}
}
-->
</script>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function submitwhole_onclick() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Refreshing the page will slow down the process.</b></td></tr></table>';
pdfMsg.innerHTML = sString;
document.form1.ProductGroup.selectedIndex = 2;
// document.form1.ProductGroup = "%7EWEATHERMASTER+-+ALL"
document.form1.Markup.value = "1.0";
document.form1.action = "default.asp";
document.form1.submit();
}
function submitwholeEX_onclick() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Refreshing the page will slow down the process.</b></td></tr></table>';
pdfMsg.innerHTML = sString;
document.form1.ProductGroup.selectedIndex = 1;
document.form1.Markup.value = "1.0";
document.form1.action = "default.asp";
document.form1.submit();
}
//-->
</SCRIPT>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function submitretail_onclick() {
var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>'
+ 'Refreshing the page will slow down the process.</b></td></tr></table>';
pdfMsg.innerHTML = sString;
document.form1.ProductGroup.selectedIndex = 2;
// document.form1.ProductGroup = "%7EWEATHERMASTER+-+ALL"
document.form1.Markup.value = "1.6";
document.form1.action = "default.asp";
document.form1.submit();
}
//-->
</SCRIPT>
</HEAD>
<body topmargin="0" leftmargin="5" marginheight="0" marginwidth="0">
<table style="WIDTH: 750px" cellSpacing="0" cellPadding="0" width="750" border="0" align="left" ID="Table1">
<tr>
<td><!--Do not adjust table!!!!!! Set for 600 x 800 resoulution--><!-- BEGIN MAIN CONTENT TABLE-->
<table style="WIDTH: 750px" cellSpacing="0" cellPadding="0" width="750" border="0" align="left" ID="Table2">
<tbody valign=top>
<tr><!-- ROW 1 -->
<TD width=185>
<table border=0 width=185 height=300 cellpadding=0 cellspacing=0 ID="Table3">
<tbody valign=top>
<tr>
<td height=32><br><A href="../Main/default.asp" >
<IMG SRC="../imagesDef/AdVenture175x26.gif" align=left width=175 height=26 border=0>
</a>
</td>
</tr>
<tr>
<td height=65><!-- BEGIN GREETING -->
<strong>Welcome Mike!</strong><br><br>
<code class="smCopyBlk">You belong to the ADMINISTRATIVE Group with an Access Level of ADMINISTRATOR.</code> <!-- END GREETING -->
</td>
</tr>
<tr>
<td><!-- BEGIN USER LEVEL MENUS -->
<table border=0 width=185 cellpadding=0 cellspacing=2 bgcolor=#ffffff>
<tbody valign=middle>
<tr><td bgcolor=white height=5><IMG SRC="../imagesDef/top186.gif" width=187 hieght=17></td></tr>
<tr><td id=a17 bgcolor=#f2d89a height=25>
<b><a href="../TEST/default.asp" id=sub17False class="noLine"><font id=f17 color=#000000> Test</font></a></b></td></tr>
<tr><td id=a9 bgcolor=#f2d89a height=25>
<b><a href="../Main/default.asp" id=sub9False class="noLine"><font id=f9 color=#000000> Home</font></a></b></td></tr>
<tr><td id=a16 bgcolor=#f2d89a height=25>
<b><a href=" ../News/default.asp" id=sub16True class="noLine"><font id=f16 color=#000000> News and Information</font></a></b></td></tr>
<tr><td id=a18 bgcolor=#f2d89a height=25>
<b><a href="../RWCouture/default.asp" id=sub18True class="noLine"><font id=f18 color=#000000> Raymond Waites Couture</font></a></b></td></tr>
<tr><td id=a15 bgcolor=#f2d89a height=25>
<b><a href="../MktPreview/default.asp" id=sub15True class="noLine"><font id=f15 color=#000000> Market Previews</font></a></b></td></tr>
<tr><td id=a2 bgcolor=#f2d89a height=25>
<b><a href="../ImageArchive/default.asp" id=sub2True class="noLine"><font id=f2 color=#000000> Image Archive</font></a></b></td></tr>
<tr><td id=a3 bgcolor=#f2d89a height=25>
<b><a href="../MarketingCenter/default.asp" id=sub3True class="noLine"><font id=f3 color=#000000> Marketing Resources</font></a></b></td></tr>
<tr><td id=a4 bgcolor=#ffffff height=25>
<b><a href="../SalesCenter/default.asp" id=sub4True class="noLine"><font id=f4 color=#000000> Sales Center</font></a></b></td></tr><tr><td><table align=right border=0 width=185 cellpadding=0 cellspacing=1 bgcolor=#ffffff>
<tbody valign=middle align=right>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/TestDefault.asp" class="noLine"><code class=smCopy>REVIEW PRICELIST </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../SalesCenter/OrderSearch.asp" class="noLine"><code class=smCopy>ORDER STATUS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/default.asp" class="noLine"><code class=smCopy>PRICELISTS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../SalesCenter/Reports.asp" class="noLine"><code class=smCopy>REPORTS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../SalesCenter/WhoSellsSearch.asp" class="noLine"><code class=smCopy>DEALER INFORMATION </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/pricelists.asp" class="noLine"><code class=smCopy>TEST - PRICELISTS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/FrameSearch.asp" class="noLine"><code class=smCopy>PRICELIST UPDATE<BR>** STYLE NUMBERS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/NoFrame.asp" class="noLine"><code class=smCopy>PRICELIST UPDATE<BR>** STYLE NUMS. TO KEEP OUT </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/SetUpCols.asp" class="noLine"><code class=smCopy>PRICELIST UPDATE<BR>** COLLECTION LINKS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/SortColls.asp" class="noLine"><code class=smCopy>PRICELIST UPDATE<BR>** SORT COLLECTIONS </a></font></b></td></tr>
<tr><td bgcolor=#ffffff> </td><td bgcolor=#808080 height=20 width=155>
<b><a href="../Pricelists/SetUpGroups.asp" class="noLine"><code class=smCopy>PRICELIST UPDATES<BR>** MAIN PRODUCT GROUPS </a></font></b></td></tr>
</tbody>
</table></td></tr>
<tr><td id=a5 bgcolor=#f2d89a height=25>
<b><a href="../ProductInfo/default.asp" id=sub5True class="noLine"><font id=f5 color=#000000> Product Center</font></a></b></td></tr>
<tr><td id=a14 bgcolor=#f2d89a height=25>
<b><a href="../Closeouts/default.asp" id=sub14True class="noLine"><font id=f14 color=#000000> Order Center</font></a></b></td></tr>
<tr><td id=a20 bgcolor=#f2d89a height=25>
<b><a href="../TrainingCenter/default.asp " id=sub20True class="noLine"><font id=f20 color=#000000> Training Center </font></a></b></td></tr>
<tr><td id=a13 bgcolor=#f2d89a height=25>
<b><a href="../MarketPlan/default.asp" id=sub13True class="noLine"><font id=f13 color=#000000> Market Planning</font></a></b></td></tr>
<tr><td id=a7 bgcolor=#f2d89a height=25>
<b><a href="../Admin/default.asp" id=sub7True class="noLine"><font id=f7 color=#000000> Administrative</font></a></b></td></tr>
<tr><td id=a10 bgcolor=#f2d89a height=25>
<b><a href="../Help/default.asp" id=sub10True class="noLine"><font id=f10 color=#000000> Help Center</font></a></b></td></tr>
<tr><td bgcolor=#f2d89a height=25><b><a href="../LogOut.asp" class="noLine"><font color=#000000> Logout</font></a></b></td></tr>
<tr><td bgcolor=white height=5><IMG SRC="../imagesDef/bot186.gif" width=187 hieght=17></td></tr>
</tbody>
</table>
<!-- END USER LEVEL MENUS -->
</td>
</tr>
</tbody>
</table>
</TD>
<TD style="BORDER-RIGHT: #808080 2px solid; BORDER-LEFT: #808080 2px solid; BORDER-BOTTOM: #808080 2px solid"
>
<table border=0 cellpadding=0 cellspacing=0 width="100%" ID="Table4">
<tr>
<td class="hdCopy" ALIGN=middle height=60
background ="../imagesDef/mainHder1.gif" style="BORDER-BOTTOM: #808080 2px solid"
>Laneventure Pricelists</td>
</tr>
<tr>
<td> Laneventure is pleased to offer its electronic<br>
pricelists online for download by authorized dealers.
</td>
</tr>
</table>
<TABLE CELLPADDING=0 CELLSPACING=10 BORDER=0 width="100%" ID="Table5">
<TR>
<TD bgcolor=#808080 colspan=2 valign=center align=middle height=25>
<font color=#ffffff><b>
Choose a Pricelist to download
</b></font>
</TD>
</TR>
<tr><td colspan=2>
<table border=0 cellpadding=5 cellspacing=0 width="100%" ID="Table6" style="LEFT: 0px; TOP: 1px">
<tr>
<td width=550 align=middle style="BORDER-BOTTOM: #808080 1px solid" >
<IMG height=64 src="../imagesDef/Excursions-oval.gif" width=150 align=center border=0>
</td>
<td width=550 align=middle style="BORDER-BOTTOM: #808080 1px solid" >
<IMG style="LEFT: 17px; TOP: 5px" height=64 src="../imagesDef/WM_oval.gif" width=150 align=left border=0 >
</td>
</tr>
</table>
<tr>
<td width=175 style="BORDER-RIGHT: #808080 1px solid">
How to generate the Pricelist:
<ul>
<li>Enter your Mark-upbr>Example: 2.0 or 1.8
<li>Select a Product Group to
generate a pricelist for
<li>Click "Generate"</li>
</ul>
</td>
<td valign=top>
<form id=form1 name=form1 method="post" action="">
<table align=center border=0 cellpadding=5 ID="Table7" width="100%">
<tr>
<td align=middle>
Enter MARK-UP<br>
<input id="Markup" name="Markup" value=" 2.0" size=7 maxlength=7>
</td>
<tr>
<td align=middle>
Select PRODUCT GROUP<br>
<SELECT name=ProductGroup>
<OPTION SELECTED VALUE=-1> </OPTION>
<OPTION VALUE="~EXCURSIONS">EXCURSIONS</OPTION>
<OPTION VALUE="~WEATHERMASTER - ALL">WEATHERMASTER - ALL</OPTION>
<OPTION VALUE="B~ALUMINUM">ALUMINUM</OPTION>
<OPTION VALUE="C~NATURAL WICKER">NATURAL WICKER</OPTION>
<OPTION VALUE="D~SYNTHETIC WICKER">SYNTHETIC WICKER</OPTION>
<OPTION VALUE="E~OUTDOOR WOOD">OUTDOOR WOOD</OPTION>
<OPTION VALUE="K~OUTDOOR LIVING">OUTDOOR LIVING</OPTION>
</SELECT>
</td>
</tr>
<tr><td><b>Check the box if you want<br>New Product only/b> <input type=checkbox name="NewProduct" id="NewProduct"></td></tr>
<tr>
<td align=middle>
<input type=hidden id=hide name=hide value=make>
<INPUT id="submitGroup" type="button" value="Generate" name="submitGroup" onclick="javascript:VerifyForm()">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=2>
<div id=pdfMsg name="pdfMsg">
<table width=100% border=0 cellpadding=5 cellspacing=0><tr>
<td width=300 style="BORDER-RIGHT: #808080 2px solid;BORDER-TOP: #808080 1px solid;"><p><b>To download the PDF Pricelist/b><br>
1) Click on the pricelist link below.<br>
2) Select "Save" from the dialog box.<br>
3) Choose where you want to save it on your computer. Your desktop is easy to remember<br>and find.<br>
4) Click "Save"<br>
5) The download should begin.</p>
</td><td valign=top style="BORDER-TOP: #808080 1px solid;">
<p><font color=red><b>Markup used: 2.0</b></font></p>
<a href="../inc/InsertItem.asp?id=2007823132265426OUTDOOR%5FLIVING%2Epdf&type=OUTDOOR_LIVINGPricelist&path=D%3A%5CWebDocs%5CPDFDownloads%5C">OUTDOOR_LIVING PDF File</a>
</td></tr></table>
<table border=0 cellpadding=5 cellspacing=0 width="100%" ID="Table8" style="LEFT: 5px; TOP: 1px">
<tr>
<td colspan=4 align=middle style="BORDER-TOP: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid">
<b>- OR -</b><br>
Select from one of the Pre-Set Pricelists below.<br>
<b>- PRE-SET PRICELISTS -</b>
</td>
</tr>
<tr>
<td style="BORDER-RIGHT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid"><b>Excursions</b></td>
<td style="BORDER-BOTTOM: #808080 1px solid">
<INPUT type=hidden id=hide name=hide value=make>
<INPUT id="submitwholeEX" type="button" value="Wholesale" name="submitwholeEX" LANGUAGE=javascript onclick="submitwholeEX_onclick()"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
</tr>
<tr>
<td style="BORDER-RIGHT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid">
<b>WeatherMaster</b></td>
<td style="BORDER-BOTTOM: #808080 1px solid">
<INPUT type=hidden id=hide name=hide value=make>
<INPUT id="submitwhole" type="button" value="Wholesale" name="submitwhole" LANGUAGE=javascript onclick="submitwhole_onclick()">
<INPUT id="submitretail" type="button" Value="Min. Retail" name="submitretail" LANGUAGE=javascript onclick="submitretail_onclick()"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
<td style="BORDER-BOTTOM: #808080 1px solid"></td>
</tr>
</table></FORM>
</div>
</td>
</tr>
</TABLE>
</TD>
</tr>
<tr>
<td colspan=2>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<!--END MAIN CONTENT TABLE--></TD></TR>
<tr>
<td><!--BEGIN FOOTER TABLE --> <table cellSpacing="0" cellPadding="0" width="750" border="0" align="left" class="smCopy">
<tr>
<td align="left" valign="bottom"><font color="black">Copyright Lane<sup>®</sup>venture 2002<br>All rights reserved.</black></td>
</tr>
</table><!--END FOOTER TABLE -->
</td>
</tr></TABLE><!--END CONSTRAINING TABLE-->
</body>
</HTML>
-
Aug 24, 2007, 02:32 #12
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Note: there are some mark-up errors in your rendered code - i.e. missing < characters as part of </b> tags.
Here is a working function for what you want. It doesn't check whether the New Products checkbox is checked, but tests whether one of the droplist items is selected.
Code JavaScript:<script type="text/javascript"> function VerifyForm () { var sString = '<table border=0 width=100%><tr><td width=100% align=left style="BORDER-TOP: #808080 1px solid;"><p align=left><b>Please be patient, you are generating a large file<br>and it may take up to 5 minutes to create.</p>' + 'Clicking the "Generate" button again<br>or refreshing the page will slow down the process.</b></td></tr></table>'; var theform = document.getElementById('form1'); // var newproduct = document.getElementById('NewProduct'); // Might not need this var productgroup = document.getElementsByName('ProductGroup')[0].selectedIndex; var pdfMsg = document.getElementById('pdfMsg'); // if (newproduct.checked == true && productgroup > 0) { // Changed - see next line if (productgroup > 0) { pdfMsg.innerHTML = sString; theform.action = "default.asp"; theform.submit(); } else { alert("Please select a Group."); product.focus(); } } </script>
-
Aug 24, 2007, 05:09 #13
- Join Date
- Aug 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, i keyed in what you gave me and it works in IE but not firefox. I click the generate button and it does nothing. Thanks,
-
Aug 24, 2007, 13:01 #14
- Join Date
- Oct 2002
- Location
- Scotland
- Posts
- 3,631
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Worked perfectly for me, in both IE and Firefox. All I did was replicate exactly your rendered HTML, and added that function you see.
Bookmarks