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...
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.