Hey folks. I have an in-house classic asp app that is using the following function to open a word document on a webdav folder:
<script language="JavaScript">
function openDocument(FilePath)
<!--
{
var objApp=new ActiveXObject("Word.Application");
objApp.Visible=true; // "Visible" is in...
Hey all,
I'm collecting html from XML files in a loop to dynamically create divs based on user selections:
for (var i = 0; i < markers.length; i++) {
currentlocation_html += '<div class="currentlocation" id="currentlocation' + (i + 1) + '">' +...
I'm creating an array using the GetRows method from my access db like this:
SQL = "SELECT [uid], [username], [zipcode], [lat], [lng] FROM [users];"
adoConn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0; DATA SOURCE=" & Server.MapPath("users.mdb") & "; User ID=admin; Password=;"
adoRS.Open SQL,adoConn...
I'm using ASPUpload, per our host, which has a pure html progress bar solution for uploading. The example uses window.open which is not really what I want to ask of a modern browser. FF & IE handle it but its blocked by Opera.
I've gone to a popup div with an iframe instead.
The problem...
This piece will round out server side validation of a user registration. I need to reselect items in a multi select from a form post onload. I have very little experience with javascript arrays and really need some direction.
Here's the select tag and options:
<select name="days" id="days"...
I'm trying to use a function to toggle two divs and an image source using the image as a link. The link and image are output using asp like this:
<a href=""javascript:showTracks('" & CStr(intTrackList) & "');""><img src='images/expand.gif' id='expand" & CStr(intTrackList) & "' width='48'...
This is an update question to a previously answered thread found here:
http://www.tek-tips.com/viewthread.cfm?qid=1261519&page=1
A quick synopsis:
The function below provides a quick "jump to" navigation of approx 3000 links from a textbox to a different frame. User enters "T" and the first...
I've been looking everywhere for a regex to validate a filename. Obviously this would disallow:
\ / : * ? " < > |
Someone must have this in their arsenal. Thanks in advance.
I'm wondering if anyone else has had this problem...
I've been using this script for a while without issues for forcing a Open/Save dialog in IE & FF:
ContentType = "application/x-msdownload"
Response.Buffer = True
Const adTypeBinary = 1
Response.Clear
Set objStream =...
I've been porting a vb app to a web app and have run up against a wall. Hopefully someone can help me out.
My vb app supplies a long (2500+) list of items to the user with a textbox right above the list. The user will type in a word, and the list will scroll to the closest match according...
I'm trying to use classic ASP to delete the first child's child.
Here's the the XML example (XSPF PL):
<?xml version="1.0" encoding="UTF-8" ?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title>Playlist</title>
<info>Whatever</info>
<trackList>
<track>...
Hopefully someone can point me in the right direction here. I have a borderless form with several pictureboxes. When I include a menu, with visible set to false, vb ignores borderstyle = 0 (even if set at runtime) and imposed a fixed single border. I'm looking to include right click menus on...
I'm trying to trap ESC Ascii in Form Keypress Event but it seems the Browser object on the form is preventing all Form Keypress events from being fired.
Keypreview Property of the form is set to true.
Threw DoEvents In for fun :)
Private Sub Form_KeyPress(KeyAscii As Integer)
DoEvents...
Hopefully I exlain this well enough...
I have a wireless router in the basement with a DSL connection. All wireless devices work very well. I want to connect the old Ethernet network on the 2nd floor to the WLAN and provide internet access to those computers through one Desktop systems with...
I'm trying to display a simple swf animation while processing a potentially long loop. The swf plays fine once the loop completes but freezes during processing. I'm sure its just one of the pains of using flash with vb but it will look much more ineresting than a static image/message. Can...
It may be that this is best solved with regular expressions, of which I know almost nothing (ready to learn though!). I'm pulling attachments from users emails and want to create a directory for their email address which I have stored in a string.
For the sake so simplicity I'll say its...
I don't know if this is possible but I'm hoping someone does, and I do know this is the place to ask. I'm using a variation of the following statement to return a record set:
sql = "SELECT [Job#] & ', ' & [UserID] & ', ' & [Priority] & ', ' & [Delivered] AS [strJobs] FROM [Job] WHERE...
Someone help me out here. I'm trying to assign a variable to store the current time which is used repeatedly throughout my form for various calcs. I tried to assign it in the startup module of the prog but after the main form is loaded it's lost. Tried assigning it as a Public Const but the...
I've been using a function in my forms to validate field values prior to submission. Pretty standard stuff. JS is really not my thing but it's very useful in these situations.
I have a <textarea> for user input on a page. The goal is to validate the input conditionally and I've modified my...
Sorry, I know that people hate answering this questions pertaining to the "disabling of right clicks" but bear with me. In keeping with the spirit of the FAQ's I found this example posted in 2000. Here's the code so you don't have to see for yourselves:
<SCRIPT LANGUAGE="JavaScript">
<!--...
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.