Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Lambro
  • Content: Threads
  • Order by date
  1. Lambro

    Session

    On a hosted web server I have asp pages that when I login it stores a session throughout the website until the session is killed. What I am trying to do is keep a session alive while going from one web server to another. So let's say I login on my website and it creates a session. On my website...
  2. Lambro

    Convert VBScript to JavaScript

    One the top of the page I'm trying to add some code is: <%@language="javascript"%> The code I'm trying to add is: <% if not session("userinfo")="" then %> xxxx <% else response.redirect "http://www.advancedcontrolsolutions.com/sessionexpired.asp" %> <%end if%> It keeps erroring out by...
  3. Lambro

    Language Used

    One the top of the page I'm trying to add some code is: <%@language="javascript"%> The code I'm trying to add is: <% if not session("userinfo")="" then %> xxxx <% else response.redirect "http://www.advancedcontrolsolutions.com/sessionexpired.asp" %> <%end if%> It keeps erroring out by...
  4. Lambro

    Image Slideshow from database

    I have a javascript that reads a recordset that has 2 images stored in it: <script> // Set slideShowSpeed (milliseconds) var slideShowSpeed = 5000 // Duration of crossfade (seconds) var crossFadeDuration = 3 // Specify the image files var Pic = new Array() // don't touch this // to add more...
  5. Lambro

    Image Swaping

    I have a database that stores the image name. The images are stored in a directory called img. In the database table images, I have fields image1 and image2. What I want is to display these images on a page. I want the script to check the database to see if there's image1, if so display it. If...
  6. Lambro

    Pad Right

    I have a function which puts zero's in front of my data. The number of zero's is based of the length I specify. Here's the function: Function Pad(strText, nLen, strChar, bFront) Dim nStartLen If strChar = "" Then strChar = "0" End If nStartLen = Len(strText)...
  7. Lambro

    Overwrite image in Access Database

    I have an MS Access database that sotres images. The fields are as follows: Field Data Type Example Data FileData OLE Object Long binary data FileSize Number 21024 FileName Text building.jpg ContentType Text image/pjpeg...
  8. Lambro

    Temp Password

    I have a user name and password login that uses a MS Access database. I want to know if it is possible to have a password expire in a certain time period. Say I change the password in the database and it records a timestamp. And I want it to expire 24 hours from the timestamp. Is this possible...
  9. Lambro

    Blank Field to be defaulted to 0.00

    I have a payment field on a form that is numeric only allowed. The default value of the field is 0.00 If I enter a dollar figure in then I decide to clear it out then the field will be blank. How do I always keep 0.00 in the field only if it's blank. I used an onblur but my code won't work...
  10. Lambro

    Security Question

    I have a form that collects checking account information. After collecting the information and pressing the submit button, it stores this info in an Access database. What is the best way to protect this info at the page level and database level? Would using SSL to protect the asp pages be fine...
  11. Lambro

    Confirm on Submit

    When I press the submit button it has ok or cancel. When I hit ok it submits the data, when I hit cancel it submits the data. I want it when I hit cancel to not submit the data or reload the page. Here's my code: <SCRIPT LANGUAGE=JAVASCRIPT> function verify(){ msg = "Are you sure all the...
  12. Lambro

    Adding Dollar Values in 2 Textboxes

    I have 3 textboxes on a form. Two of them will have dollar amounts entered into them always in dollars and cents like so: 23.99 I want to have textbox1 plus textbox2 equal textbox3. User enters 25.99 into textbox1, textbox2 will have a value of 5.00 already in it and this textbox will be read...
  13. Lambro

    Format Date With AM PM

    I'm using the now() function to get the date. I need to format it before it gets written to the database. Examples: Was: 6/29/2004 12:41:04 PM Needs to be: 062904124104PM Was: 11/9/2004 1:41:04 PM Needs to be: 110904134104PM The time needs to be military time.
  14. Lambro

    Stop Window From Opening

    I have a script that calls a page which then redirects back to the original page. The problem is that when the script is called it opens a new page. Here's the code: <script LANGUAGE="javascript"> function DoDeleteHead(){ var submitOK = confirm("Are you sure you want to delete this record?")...
  15. Lambro

    Dollar Conversion

    Why is it when I enter a dollar amount with 2 decimal places does it round down the last digit? Say I enter 233.46 it will display 233.45 Heres my code: <script> function doIt(_f) { _f.t.value=convertIt(_f.t.value); } function convertIt(_v) { var _dollars=parseInt(_v); var...
  16. Lambro

    Zero Fill

    I have a field on my form for dollars. I has a max length of 8 chars. I'm storing this field to my database. Say a user enters in the following, I need it zero filled and the decimal stripped off: 566.38 = 00056638 239.40 = 00023940 432 = 00043200 if the user didn't enter a...
  17. Lambro

    Login 3 Trys Then Error

    I have a login page with user name and password. How do I make it where if the user enters a wrong user name and password 3 times, it will not allow them to try a 4th time and displays an error message saying contact webmaster.
  18. Lambro

    File Uploader Not Working

    I'm trying to get a file uploader to work on my website. It works fine on my local pc. I listed the following code for each page below. I tried to change the path in the code by I'm not sure of the complete home directory path where my webpage is kept. default.asp <form name="frmSend"...
  19. Lambro

    Validate Form Data Against Database

    I have a textbox on my form that a user enters a part number. When the user tabs off the textbox I would like a message box to popup if the item does not exist in the database.
  20. Lambro

    Displaying Text File

    I have a text file with two columns: Email and SSN Below is the text file named login.txt: Email, SSN 14342, 4323 43545, 2232 03232, 2322 23232, 0434 Below is the code for my file called sDSNFile.dsn [ODBC] DRIVER=Microsoft Text Driver (*.txt; *.csv) UID=admin UserCommitSync=Yes Threads=3...

Part and Inventory Search

Back
Top