I see what you're saying. I'll give that a shot and I appreciate the help. I know fiddling with ActiveX BS is the last thing a proper js person wants to do. It's the last thing I want to do also. ;)
Dan I thought one of us was dyslexic, looks like it was me ;)
I read what you wrote as "Why not just create the ActiveX object every time?"
I still don't get what you mean though. Are you saying use:
var objApp=ActiveXObject("Word.Application");
instead of:
var objApp=new...
Sorry I didn't see your response Dan. In this case, because it opens multiple instances of Word and it's often necessary to have many documents open simultaneously.
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) + '">' +...
Response.Write objFolder.Name
Where objFolder is the the object variable assigned by FSO. For example:
<%
Dim objFSO
Dim objFolder
Dim objSubFolder
Dim objFile
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Get Current Folder
Set objFolder =...
For now I'm using a guitardave post found here thread333-1088342 to sort the new array. Hopefully this is the best method. It will work until I find a better way, or convince my client to use SQL.
Chops: Thanks for the direction, I'm looking into this further and will definitely post my results. I think I named this post wrong to begin with. Should have been "Sorting Multi-Dimensional Arrays" or something like that as that's proving to be the real challenge.
Seems that running my...
This is what I've used:
Request.ServerVariables("URL")
I think this returns the virtual path when their last navigation was also in your site. I'm not sure what happens when the hit your page from outside.
Then you could check for "//" using the methods posted above.
"are you planning on running this calc for all values that are returned and then wanting to sort from there" - yes
"that seems not very efficient to me" - precisely why I'm asking. :)
This has froze my brain.
Choptik:
Sorry if there was a lack of info on my part. Your understanding is correct. I don't see a way to include the calcuation in the SELECT statement because it involves the data the statement is built to request.
Here are the functions I'm using to calculate distance between Zip Codes...
Think it should be:
answer = FormatNumber(CDbl(rsFocus("NAV")),2)
If that still doesn't work, maybe declare the result a string like this:
answer = CStr(FormatNumber(CDbl(rsFocus("NAV")),2))
Technicality but:
strUrl = http://www.mysite.com/hello.html
should read:
strUrl = "http://www.mysite.com/hello.html"
If you're requesting from a form then:
strUrl = Request.Form("url")
The InStr function would be my suggestion. There is probably a more effiecient way to do this but this would work:
Dim strUrl
strUrl = http://www.mysite.com/hello.html
'strip out http://
strUrl = Replace(strUrl, "http://", "")
'Check remaining url string for //
If InStr(strUrl, "//") = 0 Then...
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.