I am using VBScript...
Sheco:
Your solution works great. Not only that, I've been complaining for a while now about the fact that ASP didn't have associative arrays... guess I was wrong.
Hey all,
I'm trying to create a dynamic class to handle user permissions on my site. Right now, if I add a new permission field to the db, I also have to create the GET/SET properties in the class itself.
I'm looking to have the class created dynamically based on the fields in a specified...
hehe..
I gave the iFrame option a shot and I'm running into some problems. The iframe works, the page loads, everything's hunky-dory...
Until, that is, I try to print.
I started by trying to initiate the print from the page that's loaded in the iframe. That printed the parent page.
I...
I do have a media="print" stylesheet on the page to be printed and the print displays as it should. However, I want to initiate the print from another page without displaying the page I want printed. As far as I know, this is beyond the scope of CSS.
Hey all,
Here's the deal... I've got a page with some clickable icons which are used to 'View' a test and 'Print' a test. The 'View' icon opens a new window and the test is displayed.
What I want to do is allow the 'View' page to be printed, when the 'Print' icon is clicked, without...
tsuji:
While the name of my form was as it should have been, your code did help. I slightly modified your debug solution to read alert(document.forms.length);
It showed me that I was short by one form (obviously the first attempt record) which set me well on my way to solving the...
Sorry c,
When you said validate, I thought you were askin if there was any javascript validation being run.
The validator has some complaints. Most are for javascript, 'nowrap' and ' '. There aren't any for mal-formed HTML.
Running a couple of tests revealed the following...
cLFlaVA:
There is no validation. The hidden elements are the sole elements in the form (I did it this way so I didn't have to pass any info thru the QueryString)
j4606:
I've already tried removing the javascript call from my action parameter... same problem, #1 doesn't work, #2+ is fine.
I was using document.getElementById('...') as you've said, however I just tested without document. and the same problem arises. First one produces an error, second+ work fine.
Yes, all IDs are from an identity column in my table. Completely unique.
As a footnote, the two examples I provided...
Hey all,
I'm creating forms (one for each record) dynamically using asp. The forms are named and id'd as "attemptForm_{attemptID}".
My problem is that the first records (always the first and only the first) returns an error when I try to submit it.
If I use...
Hey all,
I'm havin a small 'debate' with one of my IT guys over the possible holes created by giving IUSR write access to an directory in IIS 6 (Directory Browsing is off and was not 'default' install). As I perform file Copies, Deletes and Moves with ASP, I require the entire directory to...
Hey all,
I wish to disable all buttons on my page. I would like to do this without disabling all my 'INPUT' elements and without referencing their names as some of them change dynamically.
I got as far as:
els = document.form1.getElementsByTagName("INPUT");
for (i=0; i<els.length; i++){...
Through a little more testing I've noticed the following:
The bottom cell only has to be a number (not just a date)... and even if I change that cell to 'Text', the problem still persists.
Also, adding an empty row between the headings and the data makes not difference at all.
Hey all,
I'm creating an Excel import utility using ASP/VBScript and I'm running into a wierd problem.
Once I'm in the proper record, I'm trying to parse the row and return the cell contents. Here's the (rough) code:
'Conn string
Set oConn = Server.CreateObject("ADODB.Connection")
strConn =...
Hey all,
Is it necessary to run an SQL Injection Prevention routine when adding data to the DB using the RS.AddNew/Update method? I've noticed that even if you write something like:
'; drop table xxx; --
... the text is added, as is, right into the DB.
I just wanna make totally sure that...
Hey all,
I've found a solution to my problem using a different method but I still don't understand why my method didn't work.
I wanted to open a popup window to display a large image (when the thumbnail is clicked) and I wanted the size of the window to be relative to the size of the...
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.