The code below gives me a name redefined error. Could someone explain why this is and if there is another way to do this... Couldn't I define the ALLOWADD first then set TRUE/FALSE? I'm not sure how with this Const.
If session("role") = "ADMIN" Then
const ALLOWADD = TRUE
Else
const ALLOWADD =...
I got it working like this.... Now I need to figure out how to only allow a dash if its the first character and only allow one decimal point to be entered.
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if ((charCode >= 48...
I'm trying to only allow number keys, period, decimal point, and dash.
Why does this generate an error? Something is wrong with my if statment syntax.
<SCRIPT language=Javascript>
<!--
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which ...
Why would this set the unempyn field on the opener window to the value Y that I'm comparing it to?? Something must be wrong my my syntax...
if(opener.document.MainForm.unempyn.value = 'Y'){
}
Help,
Aaron
I'm new to javascript so that for loop looks a little strange to me.. It's looks like what I had in mind if there was no MainForm.RadioFrom1.selectedValue or anything like that to use.
-Aaron
I should clarify. I want to send the radio selection upon clicking a form Submit button rather than onclick for each radio selection. Is this possible?
Do I have to use onclick to send the value of each radio button when its selected?
Or is ther something like this...
I'm sending a for text field back to a parent window like this:
opener.document.Form1.txtField1.value = MainForm.txtField1.value;
I also want to send a Radio button selection back... I have not been successful. Could someone help?
Thanks,
Aaron
I'm using the code below in combination with a dll file that displays files via web page links. This method is slower to bring up the files than when I link directly to the files when in the web directory.
Is there a way to make this faster? Or is there a different way altogether to secure...
Wow.. Thats pretty simple. I pass the filename through the link already so I just put that variable at the end of the red text.
Response.Addheader "Content-Disposition", "inline; filename=" & FileName
I left out the parentheses because I would get the error below with them in when right...
I'm using Response.BinaryWrite to display some files that are outside of my webfolder and do not have Read permissions with IIS.
My question is about the code below. When I open or save files using this code the files are always named BinDoc.asp which is the name of this file.
Is there a way...
OH MY ... I had undone my changes so calling the function was not passing both values... Now it works great.
Listed below in working order.
HTML
<input name="sragenttxt" type="text" size="30">
<input name="sragentna" type="checkbox" value="NA"...
Now I realize I want to pass both the Check Box Name and the Field Name into that function. Could you output your example again if I was to call the function this way?
ragentna being the name of the CheckBox.
ragenttxt being the name of the TextField.
<input name="ragenttxt" type="text"...
Nevermind I just got it.... I'm new to javasript and I was not call the form correctly.
<script Language="JavaScript">
function ChkBoxTxtDisable(TxtBoxName){
if(document.MainForm.ragentna.checked)
{
document.getElementById(TxtBoxName).disabled=true...
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.