Re: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Robert Everland III
This most likely is due to stopping the popup that has been built into the 
browsers. They have stopped popups from opening when there is no action by the 
user to initiate the popup. Companies have found ways around this, which I'm 
sure if you did enough research you could fine it. I would find a different way 
to do the popup, maybe a div that goes over the whole page. Something users 
aren't annoyed about.


Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230033
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread J W
Its actually for a pretty harmless inactivity timeout so the user doesn't
loose session. Basically after the time elapsed, it pops up a screen with a
warning. From that popup they then have a choice of keeping the session
active closing the session or after another minute logs them out of my
system gracefully.

Is there a better way to handle an activity timeout??

Jeff

On 1/19/06, Robert Everland III [EMAIL PROTECTED] wrote:

 This most likely is due to stopping the popup that has been built into the
 browsers. They have stopped popups from opening when there is no action by
 the user to initiate the popup. Companies have found ways around this, which
 I'm sure if you did enough research you could fine it. I would find a
 different way to do the popup, maybe a div that goes over the whole page.
 Something users aren't annoyed about.


 Bob

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230035
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Robert Everland III
I would do an absolute div that when show it self at the highest level once the 
timeout is about to occur. It won't catch a users's eye, but it will have the 
same desired result. Or even a confirm box that pops up to the user. Not as 
pretty but fast and easy to implement.



Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230037
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Claude Schneegans
 Its actually for a pretty harmless inactivity timeout so the user doesn't
loose session.

I would use an HTTPrequest to do this. The advantage is that nothing 
shows up on the screen,
and it works even with anti-popups.

Look at XMLHttpRequest, even if no XML is involved.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230045
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Bobby Hartsfield
Personally I prefer the hidden divs for a few different reasons as well.
However, that’s not going to solve your problem either. If the window is
minimized, you wouldn’t see that either.

What if you window.focus() first (just before the popup)? What happens then?

Or maybe a window.moveTo(0,0) or window.resizeTo(screen.width,screen.height)
function might bring the parent window back up? Just a couple of things to
try, I havent tried any of them.

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
 

-Original Message-
From: Robert Everland III [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 2:23 PM
To: CF-Talk
Subject: Re: SOT: Javascript question... Window.open... Weird results.

I would do an absolute div that when show it self at the highest level once
the timeout is about to occur. It won't catch a users's eye, but it will
have the same desired result. Or even a confirm box that pops up to the
user. Not as pretty but fast and easy to implement.



Bob



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230046
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Bobby Hartsfield
I was going to mention that too. You could keep the session timeout very low
then keep it alive as long as the browser is open by 'refreshing' it every
minute or so behind the scenes with httprequest. The effect is that the
user's session stays active as long as they are on the page. When they close
the browser, the session times out very quickly.

If you aren't stuck on the idea of alerting the user about the session
coming to an end to give them the option of renewing it or letting it end,
I'd go with Claude's suggestion.
 
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
 

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 4:03 PM
To: CF-Talk
Subject: Re: SOT: Javascript question... Window.open... Weird results.

 Its actually for a pretty harmless inactivity timeout so the user doesn't
loose session.

I would use an HTTPrequest to do this. The advantage is that nothing 
shows up on the screen,
and it works even with anti-popups.

Look at XMLHttpRequest, even if no XML is involved.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230048
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Claude Schneegans
 If you aren't stuck on the idea of alerting the user about the session

And the less you ask the user about things he doesn't kown about, the 
better will you application work ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230050
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread J W
You know I would agree with you but this particular app it is better to
alert the users...

BTW. window.focus() just before the popup in the original browser window
fixed the issue. Wored in both firefox and IE on windows.

Jeff

On 1/19/06, Claude Schneegans [EMAIL PROTECTED] wrote:

 If you aren't stuck on the idea of alerting the user about the session

 And the less you ask the user about things he doesn't kown about, the
 better will you application work ;-)

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230054
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: SOT: Javascript question... Window.open... Weird results.

2006-01-19 Thread Bobby Hartsfield
 Wored in both firefox and IE on windows.

It's a pretty compatible function. You should be fine in just about any
browser that allows window.open()'s then.
 
 And the less you ask the user about things he doesn't know about, the
 better will your application work ;-)

Carve that in stone somewhere please! ;-)

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
 

-Original Message-
From: J W [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 19, 2006 4:51 PM
To: CF-Talk
Subject: Re: SOT: Javascript question... Window.open... Weird results.

You know I would agree with you but this particular app it is better to
alert the users...

BTW. window.focus() just before the popup in the original browser window
fixed the issue. Wored in both firefox and IE on windows.

Jeff

On 1/19/06, Claude Schneegans [EMAIL PROTECTED] wrote:

 If you aren't stuck on the idea of alerting the user about the session

 And the less you ask the user about things he doesn't kown about, the
 better will you application work ;-)

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230055
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54