I have a delete button, using a dtc, and need to prompt the user with an "Are you sure?" yes/no after he clicks the button, but before the delete takes place. I have the delete in a server side event handler:
<SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
Sub...
What am I doing wrong here? I'm getting the error:
Type mismatch: '[string: "<input type=button v"]'
Am I missing a set of quotes? How do I do this?
Thanks for any help.
Here's my code:
do while not rsEmpPosts.EOF
dim referenceNum
referenceNum =...
This all needs to be done on one page, which is an asp page, so the first idea won't work, and I'm not sure about pop up windows, but I found this idea and I was wondering if you could help me make it work.
response.write "<SCRIPT Language='javascript'>" & vblf &_
"...
The sql statement is bringing back more than one record - it's supposed to. Where would I reference the ReferenceNum (which is the primary key for each post) so that the update would only update that single record?
Thanks for your help.
Thanks!
How would I do this as inline code in a serverside event handler?
<script ID="serverEventHandlersVBS" LANGUAGE="vbscript" RUNAT="Server">
Sub btnDeletePost_onclick()
dim msgString
msgString = "Are you sure you want to delete " &...
How do I do the equivalent of a Yes/No msgbox in vbScript.asp? I'm getting a permission denied error, and I looked in the documentation and it said it was removed from vbScript in asp.
Does anyone know how I can get around this problem?
Tbank you.
I'm probably not going about this in the proper way, but it's making me problems:
I have a page that displays all the user's info and also all the job posts he made with their info and an option to change them.
So I opened up a recordset with all the post info where EmployerID = EmployerID. So...
Is there a way to make a dtc button on the fly?
I'm trying to validate a form made of dtc's. In the onClick server side event handler, I ran through all the fields, and if they were incorrectly filled in, I recreated the field and added one to a counter, otherwise I recreated the field with the...
I'm using VI.
The page is an asp page that includes the object model, so there is automatically a form on the page called thisform and all processing of the form is done on the same page, so I cannot put my own forms on it. I initially created the page using dtc's for the fields. I had a...
How do you make a server side button - in other words a button that will call a server side event handler - in vbscript?
I'm trying to create a form on the fly, and I need to make a button with an onClick that will be handled server side. There is a dtc that does this, but I need to create it...
Is there a way to use string.indexOf() is vbScript?
i.e.
if email.indexOf("@") = -1 or email.indexOf(".") = -1 or email = "" then
Thanks in advance!
Can someone point me in the right direction, please?
I'm trying to validate some form fields in VI using dtc's.
I have an onClick event which reads all values from the page and writes them to the db using addImmediate.
I would like to get the values from the form and rewrite the form with the...
I have an include.asp file on every page. My problem is that on any page that requires server side event handlers such as onClick, there seems to be another round trip to the server which cancels out the contents of the page. For example, the code in the handler will not recognize the form...
I think I finally got to the root of this onClick problem. Now I just need help getting around it.
I have an include file with a .asp extension on a page that also requires onClick processing. In the onClick I need to reference recordsets and forms from the rest of the page. The problem is...
Well, I'm working in VI, first of all. The include file represents a check if the user is logged in - if yes, hello Username. if not, login box. The login box will submit to validatePassword.asp. The page is redirecting to displayJobs.asp but the session variables are empty.
That's the...
I understand what must have happened - when the page gets called again by the include the form values are empty/nonexistant and that's what gets put in the session variables. It sounds like it makes a lot of sense - but it still doesn't work.
Also, I don't have a problem when I just include 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.