|
This looks great thank you. One question though. I bealive I am running on admin already but Its telling me permission denied: CreateObject. Is that Why you had to switch to admin status? If so how can I check if its set that way? I feel stupid asking but I asked around here and I got a big I don't know, but the general consencus was that I was already at that satus.
Thanks again.
Sokar
ctl - alt - del
if that dosen't work,
bang your head on the keybord.
|
|
|
|
|
Hi
I have an asp.net web application. I want to deploy it. If i copy it to another computer's default web site, it works well. But if i copy it under to different web site, it does not work. What should i do?
thanks
|
|
|
|
|
I recommend moving your Q to the ASP.NET forum. Also when you do, post the details of the error message you are getting. We cannot help based on "it does not work".
regards,
Paul Watson
Bluegrass
South Africa
Miszou wrote:
I have read the entire internet. on how boring his day was.
Crikey! ain't life grand?
|
|
|
|
|
web.config and global.asax need to be in the root of the web site.
try moving those 2 files to the root of the website and see if that helps.
- Sage
|
|
|
|
|
I have a webpage that uses frames on it. I use a button on the bottom of the lower frame that goes back to the homepage. But when you click on the button, the frame on the top still stays there. I don't want the frame to stay there for certain links. Can anybody help me out there? Thank you.
<--Signature begins here-->
I am...
Currently: A Programming Student/Intern.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
GamePark32 English(Engrish) site[^]
My new website: www.gp32us.com *Currently Under Construction*
|
|
|
|
|
<a href="hyperlink" target="_top">
|
|
|
|
|
AH, thank you much.
<--Signature begins here-->
I am...
Currently: A Programming Student/Intern.
Working on an outside project: A game for the GamePark32 (GP32) portable gaming console.
GamePark32 English(Engrish) site[^]
My new website: www.gp32us.com *Currently Under Construction*
|
|
|
|
|
In Javascript, I can change the .innerText property of a hyperlink to adjust the visible text of said hyperlink in IE.
For Netscape, we seem to have a .text property which can be read but when I try to amend it, the whole thing falls over.
Does anyone have any idea how this can be done?
Paul
|
|
|
|
|
If you mean Netscape 6 and above then .innerText is supported. Below Netscape 6 (i.e. 4.x) good luck, hope you have lots of cows to sacrifice.
regards,
Paul Watson
Bluegrass
South Africa
Miszou wrote:
I have read the entire internet. on how boring his day was.
Crikey! ain't life grand?
|
|
|
|
|
Paul Watson wrote:
If you mean Netscape 6 and above then .innerText is supported.
Hmmm... it's not working for me in NS7.
Paul Watson wrote:
Below Netscape 6 (i.e. 4.x) good luck, hope you have lots of cows to sacrifice.
Thanks Paul, but "no" would have sufficed
Paul
|
|
|
|
|
My apologies, I should have said innerHTML , not innerText . I just tested that and it works.
Strangely innerText is valid, but it does not refresh the display in Netscape 7 or Firebird 0.6.1. Yet when I query the innerText it says it has been changed.
Anyway, innerHTML does work.
regards,
Paul Watson
Bluegrass
South Africa
Miszou wrote:
I have read the entire internet. on how boring his day was.
Crikey! ain't life grand?
|
|
|
|
|
Thanks Paul. I never cease to be amused how often I hear the word "Strangely" in conjunction with Netscape?
P
Paul
|
|
|
|
|
There are very many javascripts that do the same job (kinda like windows feature where you can expand a list by clicking on the link and collapse it by clicking on it again) but I am having a hard time recalling the simplest HTML way of doing it. It is one of the things you can do directly from FrontPage as well. Does anyone remember it? Please help!
PalMiss
|
|
|
|
|
It is always a JavaScript thing. FP must put in the JS for you. HTML has no support for collapsing/expanding lists.
regards,
Paul Watson
Bluegrass
South Africa
Miszou wrote:
I have read the entire internet. on how boring his day was.
Crikey! ain't life grand?
|
|
|
|
|
Hello,
I am working with 2 frames. One is a navigation frame, and the other is an edit frame. When the user clicks a link in the navigation frame, I would like the edit frame to display a message asking the user if they really want to redirect. The main purpose of this is to give the user a chance to go back to the current page and save any changes to the database before redirecting.
Thanks for your help,
RC
|
|
|
|
|
There is an event that is rised ...
I am not sure what it is. Its like onbeforeexit or something like that...
Have a look at MSDN...
Too busy to look it up now...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
There is an "onbeforeunload" event which is raised before the page is unloaded. Specifically, it asks the user if they want to redirect or stay on the same page. This is exactly what I need. There is just one problem, it also fires when the page is posted back. So even when the user clicks the save button, the message to redirect or remain on the current page appears. Is there any way to get around that?
Thanks,
RC
|
|
|
|
|
You are correct, "onbeforeunload" is the one I was talking about...
chubbysilk wrote:
There is just one problem, it also fires when the page is posted back
Well, try and return true when it is posted back...
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Why don't you link to a javascript function which will ask the user whether he/she wants to go to the link or not?
This way you won't have it fires when the page is posted back.
|
|
|
|
|
|
We're in the process of moving from one web server to a web farm. The load balancing is set up, and all the code adjustments (so far still using classic ASP) have been made to store a session id in a cookie, and then store all user information for that session in a SQL Server table. It's working great, and we have code that runs every so often to check for expired sessions in the DB.
If a user logs off nicely using the appropriate button the session is cleaned up by code. However, we'd like to force this for times where a user closes down the browser, or browses to another site without logging off. We've played a little with "window_onbeforeunload()" but the problem is it also fires when navigating within our own site.
Any suggestions on what to use for this? Thanks
Look at the world about you and trust to your own convictions. - Ansel Adams
Meg's World - Blog
Photography - The product of my passion
|
|
|
|
|
Ahh, an age-old question...that's never been answered. Short of using a plugin (BHO, which isn't site-specific like an embedded ActiveX control), there's really no way to tell when a user leaves your site. As for closing, the same applies. One word of warning, the Window object is created for each request, so window.onbeforeunload() (et. al.) will most definitely fire each time, as you have noticed. The IWebBrowser2 's window isn't the IHTMLWindow2 (or 3 or 4).
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Welp one way I can think of getting the same end result is to set the session expiration to a really low number, like 2 minutes, and then have a mechanism in each page that keeps the session alive as long as the person has the browser open and on that site (regardless if they are idle or not).
I usually do this by having an iframe in every page that points to a page that grabs the system time every minute using a meta refresh tag. A javascript refresh would also work in this scenario.
|
|
|
|
|
I had to deal with a similair issue yesterday and here is what I did..
Situation, Users log in and we adjust their profile to show them as "Logged In", which allows us to produce an accurate list of "Current Users". Whne a users logs off (using the "defined" method, which is a button), then we update their profile to show them as "Logged off". When user logs in when user logs off, we capture the time of these two events and we produce a report of "Time Using System".
Well, as you are now seeing, users dont always use your "buttons". So what I did was add a Log-Off catch in the Session_OnEnd section of the global.asa like so:
Sub Session_OnEnd
' Decrement the current number of active users
Application.Lock
Application("CurrentUsers")=Application("CurrentUsers")-1
Application.Unlock
' Close the current users open session and adjust DB
set conn = server.createObject("adodb.connection")
conn.open("Server=SQLServer.petcarefinder.com;Driver={SQL Server};Database=Users_DB;UID=Username;pwd=Password;")
conn.execute("dbo.con_LogUserOutOfSystem('" & Session("UID") & "')")
conn.close :: set conn = nothing
End Sub
This only "Logs Off" the current session, it doesnt wipe out all sessions on the server. I have tested this relentlessly in the last 2 days and it seems to never <u>not</u> work.
let me know if this would help you ....
- Sage
|
|
|
|
|
I am with Sage, use Session_OnEnd , that is exactly what it is for
regards,
Paul Watson
Bluegrass
South Africa
Miszou wrote:
I have read the entire internet. on how boring his day was.
Crikey! ain't life grand?
|
|
|
|