473,614 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drop Down Box needs to display rest of HTML page

I'm trying to create a submission page for users to request PC/LAN
Access....If they select "Yes" in the field asking about if they need
Non Standard Software, I want several other HTML fields to become
visible....If they keep the dropdown box at "No" (default) then I want
to submit the form "as is", keeping the inapplicable HTML fields
hidden....I'm trying an "if statement" in ASP....Here's my code....I'm
thinking that the if statement may be in the wrong place in the
code....I would like it to display as soon as the selection is
switched to "Yes"...The if statement that I entered has been commented
for your convenience....

********Code Begins*******

<html>
<head>

<title>Comments </title>
</head>

<!-- #INCLUDE VIRTUAL="/_borders/top_nav.asp" -->

<% if mode <> "Send" then %>
<p>&nbsp;</p>

<p>This is a template page that will email to certain
parties and then also append to a file all information submitted
online</p>

<form method="POST" action="PC-Lan-Rqst.asp"
name="pclanrqst name" onSubmit="valid ate()">
&nbsp;<div align="left">
<table border="0" cellpadding="0" width="782">
<tr>
<td width="243">Ful l Name:</td>
<td width="529"><in put type="text" name="name"
size="32"></td>
</tr>
<tr>
<td width="243">Tit le.:</td>
<td width="529"><in put type="text" name="title"
size="32"></td>
</tr>
<tr>
<td width="243">Ext ension:</td>
<td width="529"><in put type="text" name="ext"
size="20"></td>
</tr>
<tr>
<td width="243">Dep artment:</td>
<td width="529"><in put type="text" name="dept"
size="20"></td>
</tr>
<tr>
<td width="243">Loc ation:</td>
<td width="529"><in put type="text" name="loc"
size="20"></td>
</tr>
<tr>
<td width="243">Req uestor's Name:</td>
<td width="529"><in put type="text" name="rqstrname "
size="33"></td>
</tr>
<tr>
<td width="243">Dep t Head's Name:</td>
<td width="529"><in put type="text" name="depthdnam e"
size="33"></td>
</tr>
<tr>
<td width="243">Sta rt Date (if new hire):</td>
<td width="529"><in put type="text" name="strtdate"
size="20"></td>
</tr>
<tr>
<td width="243">Ass ignment Dates (if temp
employee):</td>
<td width="529"><in put type="text" name="tempdates "
size="20"></td>
</tr>
<tr>
<td width="243">Sta ndard Hardware</td>
<td><select size="1" name="stdrdhdwr e">
<option selected>Person al Printer</option>
<option>Netwo rk Printer</option>
</select></td>
</tr>
<tr>
<td width="243"><u> Standard</u> Software:</td>
<td width="529">Mic rosoft Word * Microsoft Excel *
Microsoft
Access * Microsoft PowerPoint * GroupWise/Internet
E-Mail * SAP
* IBM Emulation * Anti Virus</td>
</tr>
<tr>
<td width="243">Non Standard Software?</td>
<td width="529"><se lect size="1"
name="nstandswo ption">
<option selected>No</option>
<option>Yes (See Below)</option>
</select></td>
</tr>
<% 'THIS IS THE LINE THAT I HAVE ENTERED
If nstandswoption = "Yes" Then
%>
<tr>
<td width="243">Non Standard Software:</td>
<td width="529"><in put type="text"
name="nstandsof tware" size="20"></td>
</tr>

<tr>
<td width="772" colspan="2">
<p align="center"> <b>Department Cost Center
Information<br>
(required only if you are requesting non-standard
hardware or
software)</b></td>
</tr>
<tr>
<td width="243">:Co st Center:</td>
<td width="529"><in put type="text" name="costcente r"
size="20"></td>
</tr>
<tr>
<td width="243">:G/L Number:</td>
<td width="529"><in put type="text" name="glnumber"
size="20"></td>
</tr>
<tr>
<td width="772" colspan="2">
<p align="center"> <b>Network Directory Access</b></td>
</tr>
<tr>
<td width="243">Dep t Directory Name:</td>
<td width="529"><in put type="text" name="deptdirna me"
size="20"></td>
</tr>
<tr>
<td width="243">Oth er:</td>
<td width="529"><in put type="text" name="other"
size="20"></td>
</tr>
<tr>
<td width="772" colspan="2">
<p align="center"> <b>GroupWise Public Groups</b></td>
</tr>
<tr>
<td width="243">Add to (Group Name):</td>
<td width="529"><in put type="text" name="addgroup"
size="20"></td>
</tr>
<tr>
<td width="243">Rem ove from (Group Name):</td>
<td width="529"><in put type="text" name="removegro up"
size="20"></td>
</tr>
<tr>
<td width="243" valign="top">Ju stification for
Non-Standard
Hardware and Software:</td>
<td width="529"><te xtarea rows="7"
name="justifica tion" cols="43"></textarea></td>
</tr>
<%
End if
%>
<tr>
<td width="243" valign="top">&n bsp;</td>
<td width="529">&nb sp;</td>
</tr>
<tr>
<td width="243" valign="top">&n bsp;</td>
<td width="529">
<input type="submit" value="Send Message"
name="Send"></td>
</tr>
</table>
</div>
<input type="hidden" name="mode" value="Send">
</form>
<script language="vbscr ipt">
sub validate()
if trim(len(docume nt.suggest.from .value)) = 0 then
msg = "Please note that you must provide your name" & vbcrlf & "if
you'd like to hear back from us for your suggestions..." & vbcrlf &
vbcrlf & "Continue to send this anonymously?"
if msgbox(msg, vbYesNo, "Please wait!") <> 1 then
window.event.re turnvalue = false
document.sugges t.from.focus()
exit sub
end if
end if
end sub
</script>
<% end if

if mode = "Send" and Err = 0 then
%>
<h2>&nbsp;</h2>
<p><img border="0" src="../images/success.jpg"></p>
<p>The following information has been successfully submitted</p>
<p>Name : <font color="#0000FF" > <%=name%></font><br>
Title : <font color="#0000FF" > <%=title%></font><br>
Ext.: <font color="#0000FF" > <%=ext%></font><br>
Department : <font color="#0000FF" > <%=dept%></font><br>
Location : <font color="#0000FF" > <%=loc%></font><br>
Requestor Name : <font color="#0000FF" > <%=rqstrname% ></font><br>
Dept Head Name : <font color="#0000FF" > <%=depthdname%> </font><br>
Start Date : <font color="#0000FF" > <%=strdate%></font><br>
Assignment Dates (Temp) : <font color="#0000FF" >
<%=tempdates% ></font><br>
Standard Hardware : <font color="#0000FF" > <%=stdrdhdwre%> </font><br>
Non-Standard Software : <font color="#0000FF" >
<%=nstandsoftwa re%></font><br>
Cost Center : <font color="#0000FF" > <%=costcenter%> </font><br>
GL Number : <font color="#0000FF" > <%=glnumber%> </font><br>
Dept Director's Name : <font color="#0000FF" >
<%=deptdirname% ></font><br>
Other : <font color="#0000FF" > <%=other%></font><br>
Add to Group : <font color="#0000FF" > <%=addgroup%> </font><br>
Remove from Group : <font color="#0000FF" > <%=removegroup% ></font><br>
Justification : <font color="#0000FF" > <%=justificatio n%></font><br>
<%

end if
********End of Code********
Jul 19 '05 #1
4 2161
You'll want to take a look at
http://www.gatewayorlando.com/conten...tV3_Submit.asp.

The key is to add a JavaScript function to the onChange event of the
drop-down box that changes the ACTION of the form to submit back to
itself and then to submit the form. Then in the page you'll need to
check the value of the particular form field request("reserv ationType")
and then add the appropriate fields if needed.

The overall HTML will look something like this

<FORM>
Name: <input>
Phone: <input>
email: <input>
request type: <select>

<%if request("dropDo wnList") = "trouble" then %>

PC Device Number: <input>
LAN ID: <input>

<%end if%>

</FORM>

dmiller23462 wrote:
I'm trying to create a submission page for users to request PC/LAN
Access....If they select "Yes" in the field asking about if they need
Non Standard Software, I want several other HTML fields to become
visible....If they keep the dropdown box at "No" (default) then I want
to submit the form "as is", keeping the inapplicable HTML fields
hidden....I'm trying an "if statement" in ASP....Here's my code....I'm
thinking that the if statement may be in the wrong place in the
code....I would like it to display as soon as the selection is
switched to "Yes"...The if statement that I entered has been commented
for your convenience....

********Code Begins*******

<html>
<head>

<title>Comments </title>
</head>

<!-- #INCLUDE VIRTUAL="/_borders/top_nav.asp" -->

<% if mode <> "Send" then %>
<p>&nbsp;</p>

<p>This is a template page that will email to certain
parties and then also append to a file all information submitted
online</p>

<form method="POST" action="PC-Lan-Rqst.asp"
name="pclanrqst name" onSubmit="valid ate()">
&nbsp;<div align="left">
<table border="0" cellpadding="0" width="782">
<tr>
<td width="243">Ful l Name:</td>
<td width="529"><in put type="text" name="name"
size="32"></td>
</tr>
<tr>
<td width="243">Tit le.:</td>
<td width="529"><in put type="text" name="title"
size="32"></td>
</tr>
<tr>
<td width="243">Ext ension:</td>
<td width="529"><in put type="text" name="ext"
size="20"></td>
</tr>
<tr>
<td width="243">Dep artment:</td>
<td width="529"><in put type="text" name="dept"
size="20"></td>
</tr>
<tr>
<td width="243">Loc ation:</td>
<td width="529"><in put type="text" name="loc"
size="20"></td>
</tr>
<tr>
<td width="243">Req uestor's Name:</td>
<td width="529"><in put type="text" name="rqstrname "
size="33"></td>
</tr>
<tr>
<td width="243">Dep t Head's Name:</td>
<td width="529"><in put type="text" name="depthdnam e"
size="33"></td>
</tr>
<tr>
<td width="243">Sta rt Date (if new hire):</td>
<td width="529"><in put type="text" name="strtdate"
size="20"></td>
</tr>
<tr>
<td width="243">Ass ignment Dates (if temp
employee):</td>
<td width="529"><in put type="text" name="tempdates "
size="20"></td>
</tr>
<tr>
<td width="243">Sta ndard Hardware</td>
<td><select size="1" name="stdrdhdwr e">
<option selected>Person al Printer</option>
<option>Netwo rk Printer</option>
</select></td>
</tr>
<tr>
<td width="243"><u> Standard</u> Software:</td>
<td width="529">Mic rosoft Word * Microsoft Excel *
Microsoft
Access * Microsoft PowerPoint * GroupWise/Internet
E-Mail * SAP
* IBM Emulation * Anti Virus</td>
</tr>
<tr>
<td width="243">Non Standard Software?</td>
<td width="529"><se lect size="1"
name="nstandswo ption">
<option selected>No</option>
<option>Yes (See Below)</option>
</select></td>
</tr>
<% 'THIS IS THE LINE THAT I HAVE ENTERED
If nstandswoption = "Yes" Then
%>
<tr>
<td width="243">Non Standard Software:</td>
<td width="529"><in put type="text"
name="nstandsof tware" size="20"></td>
</tr>

<tr>
<td width="772" colspan="2">
<p align="center"> <b>Department Cost Center
Information<br>
(required only if you are requesting non-standard
hardware or
software)</b></td>
</tr>
<tr>
<td width="243">:Co st Center:</td>
<td width="529"><in put type="text" name="costcente r"
size="20"></td>
</tr>
<tr>
<td width="243">:G/L Number:</td>
<td width="529"><in put type="text" name="glnumber"
size="20"></td>
</tr>
<tr>
<td width="772" colspan="2">
<p align="center"> <b>Network Directory Access</b></td>
</tr>
<tr>
<td width="243">Dep t Directory Name:</td>
<td width="529"><in put type="text" name="deptdirna me"
size="20"></td>
</tr>
<tr>
<td width="243">Oth er:</td>
<td width="529"><in put type="text" name="other"
size="20"></td>
</tr>
<tr>
<td width="772" colspan="2">
<p align="center"> <b>GroupWise Public Groups</b></td>
</tr>
<tr>
<td width="243">Add to (Group Name):</td>
<td width="529"><in put type="text" name="addgroup"
size="20"></td>
</tr>
<tr>
<td width="243">Rem ove from (Group Name):</td>
<td width="529"><in put type="text" name="removegro up"
size="20"></td>
</tr>
<tr>
<td width="243" valign="top">Ju stification for
Non-Standard
Hardware and Software:</td>
<td width="529"><te xtarea rows="7"
name="justifica tion" cols="43"></textarea></td>
</tr>
<%
End if
%>
<tr>
<td width="243" valign="top">&n bsp;</td>
<td width="529">&nb sp;</td>
</tr>
<tr>
<td width="243" valign="top">&n bsp;</td>
<td width="529">
<input type="submit" value="Send Message"
name="Send"></td>
</tr>
</table>
</div>
<input type="hidden" name="mode" value="Send">
</form>
<script language="vbscr ipt">
sub validate()
if trim(len(docume nt.suggest.from .value)) = 0 then
msg = "Please note that you must provide your name" & vbcrlf & "if
you'd like to hear back from us for your suggestions..." & vbcrlf &
vbcrlf & "Continue to send this anonymously?"
if msgbox(msg, vbYesNo, "Please wait!") <> 1 then
window.event.re turnvalue = false
document.sugges t.from.focus()
exit sub
end if
end if
end sub
</script>
<% end if

if mode = "Send" and Err = 0 then
%>
<h2>&nbsp;</h2>
<p><img border="0" src="../images/success.jpg"></p>
<p>The following information has been successfully submitted</p>
<p>Name : <font color="#0000FF" > <%=name%></font><br>
Title : <font color="#0000FF" > <%=title%></font><br>
Ext.: <font color="#0000FF" > <%=ext%></font><br>
Department : <font color="#0000FF" > <%=dept%></font><br>
Location : <font color="#0000FF" > <%=loc%></font><br>
Requestor Name : <font color="#0000FF" > <%=rqstrname% ></font><br>
Dept Head Name : <font color="#0000FF" > <%=depthdname%> </font><br>
Start Date : <font color="#0000FF" > <%=strdate%></font><br>
Assignment Dates (Temp) : <font color="#0000FF" >
<%=tempdates% ></font><br>
Standard Hardware : <font color="#0000FF" > <%=stdrdhdwre%> </font><br>
Non-Standard Software : <font color="#0000FF" >
<%=nstandsoftwa re%></font><br>
Cost Center : <font color="#0000FF" > <%=costcenter%> </font><br>
GL Number : <font color="#0000FF" > <%=glnumber%> </font><br>
Dept Director's Name : <font color="#0000FF" >
<%=deptdirname% ></font><br>
Other : <font color="#0000FF" > <%=other%></font><br>
Add to Group : <font color="#0000FF" > <%=addgroup%> </font><br>
Remove from Group : <font color="#0000FF" > <%=removegroup% ></font><br>
Justification : <font color="#0000FF" > <%=justificatio n%></font><br>
<%

end if
********End of Code********


Jul 19 '05 #2
CJM
ASP is a server-side technology - it runs on the server, and the results are
sent to the client. Thus your solution wont work, because the IF statement
will be evealuated before the user even gets to see the page.

To do what you are asking, you can follow one of two approaches:

1) Omit the hidden fields, but when the user submits the form, you can
choose to redirect to a second page which shows the hidden fields only - if
the value of the dropdown is Yes . This is a 2-stage solution that just uses
ASP.

2) Use Javascript (which is a client-side technology); create some JScript
code that makes the hidden fields visible dependant on the result of the
dropdown.

1) appears to be a bit less sophisticated, but is the type of solution that
is guarranteed to work.

2) More sophisticated solution, but relies on Javascript - 13% of users use
a User Agent (Browser) that either doesnt cater for Javascript, or has
Javascript disabled.

If you are prepared to accept the issues with Javascript, repost your
question at microsoft.publi c.scripting.jsc ript....

Chris
"dmiller234 62" <dm**********@y ahoo.com> wrote in message
news:59******** *************** ***@posting.goo gle.com...
I'm trying to create a submission page for users to request PC/LAN
Access....If they select "Yes" in the field asking about if they need
Non Standard Software, I want several other HTML fields to become
visible....If they keep the dropdown box at "No" (default) then I want
to submit the form "as is", keeping the inapplicable HTML fields
hidden....I'm trying an "if statement" in ASP....Here's my code....I'm
thinking that the if statement may be in the wrong place in the
code....I would like it to display as soon as the selection is
switched to "Yes"...The if statement that I entered has been commented
for your convenience....

********Code Begins*******

<html>
<head>

<title>Comments </title>
</head>

<!-- #INCLUDE VIRTUAL="/_borders/top_nav.asp" -->

<% if mode <> "Send" then %>
<p>&nbsp;</p>

<p>This is a template page that will email to certain
parties and then also append to a file all information submitted
online</p>

<form method="POST" action="PC-Lan-Rqst.asp"
name="pclanrqst name" onSubmit="valid ate()">
&nbsp;<div align="left">
<table border="0" cellpadding="0" width="782">
<tr>
<td width="243">Ful l Name:</td>
<td width="529"><in put type="text" name="name"
size="32"></td>
</tr>
<tr>
<td width="243">Tit le.:</td>
<td width="529"><in put type="text" name="title"
size="32"></td>
</tr>
<tr>
<td width="243">Ext ension:</td>
<td width="529"><in put type="text" name="ext"
size="20"></td>
</tr>
<tr>
<td width="243">Dep artment:</td>
<td width="529"><in put type="text" name="dept"
size="20"></td>
</tr>
<tr>
<td width="243">Loc ation:</td>
<td width="529"><in put type="text" name="loc"
size="20"></td>
</tr>
<tr>
<td width="243">Req uestor's Name:</td>
<td width="529"><in put type="text" name="rqstrname "
size="33"></td>
</tr>
<tr>
<td width="243">Dep t Head's Name:</td>
<td width="529"><in put type="text" name="depthdnam e"
size="33"></td>
</tr>
<tr>
<td width="243">Sta rt Date (if new hire):</td>
<td width="529"><in put type="text" name="strtdate"
size="20"></td>
</tr>
<tr>
<td width="243">Ass ignment Dates (if temp
employee):</td>
<td width="529"><in put type="text" name="tempdates "
size="20"></td>
</tr>
<tr>
<td width="243">Sta ndard Hardware</td>
<td><select size="1" name="stdrdhdwr e">
<option selected>Person al Printer</option>
<option>Netwo rk Printer</option>
</select></td>
</tr>
<tr>
<td width="243"><u> Standard</u> Software:</td>
<td width="529">Mic rosoft Word * Microsoft Excel *
Microsoft
Access * Microsoft PowerPoint * GroupWise/Internet
E-Mail * SAP
* IBM Emulation * Anti Virus</td>
</tr>
<tr>
<td width="243">Non Standard Software?</td>
<td width="529"><se lect size="1"
name="nstandswo ption">
<option selected>No</option>
<option>Yes (See Below)</option>
</select></td>
</tr>
<% 'THIS IS THE LINE THAT I HAVE ENTERED
If nstandswoption = "Yes" Then
%>
<tr>
<td width="243">Non Standard Software:</td>
<td width="529"><in put type="text"
name="nstandsof tware" size="20"></td>
</tr>

<tr>
<td width="772" colspan="2">
<p align="center"> <b>Department Cost Center
Information<br>
(required only if you are requesting non-standard
hardware or
software)</b></td>
</tr>
<tr>
<td width="243">:Co st Center:</td>
<td width="529"><in put type="text" name="costcente r"
size="20"></td>
</tr>
<tr>
<td width="243">:G/L Number:</td>
<td width="529"><in put type="text" name="glnumber"
size="20"></td>
</tr>
<tr>
<td width="772" colspan="2">
<p align="center"> <b>Network Directory Access</b></td>
</tr>
<tr>
<td width="243">Dep t Directory Name:</td>
<td width="529"><in put type="text" name="deptdirna me"
size="20"></td>
</tr>
<tr>
<td width="243">Oth er:</td>
<td width="529"><in put type="text" name="other"
size="20"></td>
</tr>
<tr>
<td width="772" colspan="2">
<p align="center"> <b>GroupWise Public Groups</b></td>
</tr>
<tr>
<td width="243">Add to (Group Name):</td>
<td width="529"><in put type="text" name="addgroup"
size="20"></td>
</tr>
<tr>
<td width="243">Rem ove from (Group Name):</td>
<td width="529"><in put type="text" name="removegro up"
size="20"></td>
</tr>
<tr>
<td width="243" valign="top">Ju stification for
Non-Standard
Hardware and Software:</td>
<td width="529"><te xtarea rows="7"
name="justifica tion" cols="43"></textarea></td>
</tr>
<%
End if
%>
<tr>
<td width="243" valign="top">&n bsp;</td>
<td width="529">&nb sp;</td>
</tr>
<tr>
<td width="243" valign="top">&n bsp;</td>
<td width="529">
<input type="submit" value="Send Message"
name="Send"></td>
</tr>
</table>
</div>
<input type="hidden" name="mode" value="Send">
</form>
<script language="vbscr ipt">
sub validate()
if trim(len(docume nt.suggest.from .value)) = 0 then
msg = "Please note that you must provide your name" & vbcrlf & "if
you'd like to hear back from us for your suggestions..." & vbcrlf &
vbcrlf & "Continue to send this anonymously?"
if msgbox(msg, vbYesNo, "Please wait!") <> 1 then
window.event.re turnvalue = false
document.sugges t.from.focus()
exit sub
end if
end if
end sub
</script>
<% end if

if mode = "Send" and Err = 0 then
%>
<h2>&nbsp;</h2>
<p><img border="0" src="../images/success.jpg"></p>
<p>The following information has been successfully submitted</p>
<p>Name : <font color="#0000FF" > <%=name%></font><br>
Title : <font color="#0000FF" > <%=title%></font><br>
Ext.: <font color="#0000FF" > <%=ext%></font><br>
Department : <font color="#0000FF" > <%=dept%></font><br>
Location : <font color="#0000FF" > <%=loc%></font><br>
Requestor Name : <font color="#0000FF" > <%=rqstrname% ></font><br>
Dept Head Name : <font color="#0000FF" > <%=depthdname%> </font><br>
Start Date : <font color="#0000FF" > <%=strdate%></font><br>
Assignment Dates (Temp) : <font color="#0000FF" >
<%=tempdates% ></font><br>
Standard Hardware : <font color="#0000FF" > <%=stdrdhdwre%> </font><br>
Non-Standard Software : <font color="#0000FF" >
<%=nstandsoftwa re%></font><br>
Cost Center : <font color="#0000FF" > <%=costcenter%> </font><br>
GL Number : <font color="#0000FF" > <%=glnumber%> </font><br>
Dept Director's Name : <font color="#0000FF" >
<%=deptdirname% ></font><br>
Other : <font color="#0000FF" > <%=other%></font><br>
Add to Group : <font color="#0000FF" > <%=addgroup%> </font><br>
Remove from Group : <font color="#0000FF" > <%=removegroup% ></font><br>
Justification : <font color="#0000FF" > <%=justificatio n%></font><br>
<%

end if
********End of Code********

Jul 19 '05 #3
I choose specifically to have the page submit back to itself, because
when I tried using JavaScript to hide/display the additional fields for
my res form, IE didn't like suddenly displaying additional <tr>'s and
<td>'s.

David H

www.gatewayorlando.com

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
"The key is to add a JavaScript function to the onChange event of the
drop-down box that changes the ACTION of the form to submit back to
itself and then to submit the form."

I agree and here's something similar (although somewhat confusing) I put
together about something similar:

ASP Design Tips - Dependent Listboxes
http://www.bullschmidt.com/devtip-de...tlistboxes.asp

Best regards,
J. Paul Schmidt, Freelance ASP Web Consultant
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
5124
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") to populate a drop down but would like to use several drop downs restricting the contents of each drop down to the records pertaining to one
6
2458
by: PT | last post by:
I got a form with many text boxes, checkboxes and 3 drop downs. From that 3, 2 are dependant. I can choose one drop down, and the next drop down should display the dependant values of the first drop down chosed. And I have a submite button to submit all these values to DB. First problem: I cant keep the value of the selected text in the first drop down. It always goes back to the first value. (but the asp site extension changes...
2
11035
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic SFSB and, from there, to the database. On the front end, all cells appear as text fields. However, for certain cells, when the user clicks on the cell, the text field turns into a drop-down field (i.e. Select object), defaulting to the value...
2
2562
by: hemanth.singamsetty | last post by:
Hello there, I've a drop down menu (created using CSS & Javascript -- see code below). My problem is, whenever I click a link on the menu the new page replaces the current page (and the menu disappears). Is there a way, I can keep the menu always on top. ( A good example of what I'm looking for is similar to the menu bar in http://www.milonic.com/ ).
2
2455
by: tpaulson | last post by:
I have a couple of DIV's that I hide/display based on radio buttons. On the DIV's, I have multiple drop down boxes. The source shows that they are populated, but I can't make them drop down. Only click on the Unplatted Radio button, the rest isn't functional, yet. Any ideas how to make these drop down in FF. This works in IE. Here is the code: <HTML> <HEAD> <TITLE>Door County Register of Deeds - Tract Inquiry</TITLE>
4
9284
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me if it works, and if it does not, tell me why it does not work. Thanks.
22
3432
by: Archanak | last post by:
Hi, I am using 2-level CSS Drop Down Menu in my perl/CGI program. here is the code. #!c:/perl/bin/perl.exe use CGI qw(:standard);
0
3132
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of the browsers I have tested it on (IE6, IE7, Firefox, Opera and Safari). It is probably something simple, but I can't find it! Here is the CSS (using external style sheets): style-temp.css (Main style sheet for the site): * { font-family:...
2
3085
by: giandeo | last post by:
Hello all, It's almost a couple of weeks since i am struggling to get this code work. Unfortunately, i am stuck. There seems to be no hope... Please Help....... I am working with an asp page that dynamically pulls info from my database to populate a drop down menu. Upon an onChange event, I wish to display the fields related to that pull down menu WITHOUT SUBMITTING THE PAGE. The Senario: Database name: sp.mdb
0
8142
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8642
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8591
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8444
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5549
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2575
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.