Thank you both for your replies. Nick, I did have it in a hidden field, just didn't know how to get it into the querystring. But, I did get it to work, sent the form to the JS function, then referenced that variable on the form.
function jsConfirm(form) {
var RFQ = form.RFQ.value
if...
I am using VBScript to create my ASP pages. But, I need to use a javascript function (confirm) to send user to another page. But, I need to send the value of a VBScript variable to the next page also. Is there any way this can be done?
Here is my confirm:
function jsConfirm() {
if...
its ok .. I figured it out. In case anyone is interested, I just used the Replace function, replaced the ' with the word feet.
Description(x) = Replace(Description(x), "'", " feet")
Ally
Hi!
I am trying to insert a string from a textbox into my database. It works great, until it sees a SINGLE OR DOUBLE QUOTE in the string. The information from the textbox is a description field, and often the user will enter single quotes and double quotes to represent feet and inches. When...
ok .. for each product, there could be a division name and a company name, or just a company name. One company can have more than one division. I want to let the user do a search on the product name, and have it list the companies or divisions who carry this product. In the same table, I will...
Hi all
I am trying to retrieve information from various tables. That was the easy part. But, one of the fields I would like to return distinct, as the same data can be repeated more than once. Here is my code, this part of it works:
select cat.catregid, s.companyname, cat.supplierID...
ok .. I've narrowed down my problem a little better.
in the OnClick I have:
<input type="button" value="Delete" name="B2" onClick="Javascript: confirm('Are you sure you want to delete this product?');">
this seems to work fine .. but now I need...
I am not really sure about Javascript, but I know in VBScript, a radio button that is clicked returns the value in "Value" For eg, if first button is clicked, mselect would be equal to r0. Therefore, you should check what mselect.value is equal to.
Hi
I would like to a confirm and/or an alert box on my page. I will post my code below, just can't figure out why it doesn't work .. very new to javascript.
<HEAD>
<SCRIPT>
<!--- Hide script from old browsers
function validate(f)
{
if (confirm("Are you sure?"))...
ohhh I see what you are getting at .. but I don't want a submit button, the user click the checkbox, then clicks on a category name, which is a link to another page .. I guess I need to pass the parameter of the checkbox with the link .. will try that, and thanks again!
allyeric
Thanks Rob .. I did make the changes that you suggested, and when I print the value of Favs, it always says "NO" .. not sure why this is .. I will include my code below:
default.html
<form id=frmForm method="POST" action="SubCategory.asp"><BR> Show only my...
I know this must seem a simple problem .. but its driving me crazy! I have one checkbox, and I want to see whether or not its been checked. On the form with the checkbox, I coded it as:
<input type=checkbox name=Favs value=Favorites>
And on the next ASP page, I have:
Favs =...
...don't want double values listed in drop down box. Here is my code:<br><br>For lQuestionNumber = 1 To 110<br> strSQL = "SELECT * from Emp_Answers where No_Employe = " & CInt(EmpNo)<br> set rs = con.execute(strSQL)<br> strExamNo...
on my page, I have a drop down list, with quite a few choices for the user, and a text box. Once the user clicks on a choice, I would like that text to be put into the text box. Any help greatly appreciated!<br><br>thanks
thanks nick - I have session variables in other pages that are not being initialized from the global.asa, and they work fine, so obviously its an incomplete understanding. I will look up thoses resources you suggested.<br><br>And no, I still didn't get that javascript routine to...
I want to initialize a few session variables in the global.asa file. Below is my code - when I try to print the "Index" variable in my asp page, there is no value. Can someone please let me know where I have gone wrong?<br><br><br>Global.asa:<br><br><SCRIPT...
after you create your table, use a separate sql command to declare the primary key<br><br>eg:<br><br>strSQL = "ALTER table Employe ADD Primary Key (Emp_No)"<br><br><br>hope this helps<br><br><br><br>
no, I didn't include files - starting to feel like I am in the twilight zone here! Maybe there is someone who might like to check my whole html page? Perhaps there is something in there that I just can't see. If anyone is interested, you can email me at <A...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.