SunQuest
 
           Multimedia
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignMultimedia

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 15th, 2005, 11:51 AM
Scooty Scooty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 80 Scooty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 58 m 43 sec
Reputation Power: 4
Flash Alert

I have a logout button made in Flash that when clicked goes to logout.asp. I would like to ask the user to confirm they really want to logout before it directs them to logout.asp. Is there a way to do this. I was thinking somekind of alert box or something. Thanks. I have 2004 MX Educational.

Reply With Quote
  #2  
Old April 15th, 2005, 12:40 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Flash Buttons are A Very Bad Thing(tm) for numerous reasons. (Mainly accessibility)

Your problem is one of those reasons.

Don't use them.

Reply With Quote
  #3  
Old April 15th, 2005, 01:04 PM
Scooty Scooty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 80 Scooty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 58 m 43 sec
Reputation Power: 4
I wish I had a choice

Reply With Quote
  #4  
Old April 15th, 2005, 04:11 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Use this XHTML:

Code:
<button id="btnLogout" type="submit">Logout</button>


With some CSS to create some fancy effects or even include an image inside the button:

Code:
<button id="btnLogout" type="submit"><img src="logout.png" alt="Logout Button Image" /></button>


Anyway, use a script like the following

Code:
 window.onload=function WindowLoad(event) {
 	var btnLogout = document.getElementById("btnLogout");
 	btnLogout.onclick = function {
 		if(confirm("Do you want to logout?")) {
 			var frmOne = document.GetElementById("frmOne");
 			frmOne.submit()
 		}
 	}
 }
 


Where "frmOne" is the ID attribute of the form
Comments on this post
nofriends agrees!

Reply With Quote
  #5  
Old April 15th, 2005, 04:49 PM
Scooty Scooty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 80 Scooty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 58 m 43 sec
Reputation Power: 4
That is good, but it does I need to do something like that in Flash



Quote:
Originally Posted by 1337_d00d
Use this XHTML:

Code:
<button id="btnLogout" type="submit">Logout</button>


With some CSS to create some fancy effects or even include an image inside the button:

Code:
<button id="btnLogout" type="submit"><img src="logout.png" alt="Logout Button Image" /></button>


Anyway, use a script like the following

Code:
window.onload=function WindowLoad(event) {
	var btnLogout = document.getElementById("btnLogout");
	btnLogout.onclick = function {
		if(confirm("Do you want to logout?")) {
			var frmOne = document.GetElementById("frmOne");
			frmOne.submit()
		}
	}
}


Where "frmOne" is the ID attribute of the form

Reply With Quote
  #6  
Old April 15th, 2005, 06:11 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Quote:
Originally Posted by Scooty
That is good, but it does I need to do something like that in Flash


That makes no sense whatsoever.

Regarding Flash...

You can't use it in this situation for reasons I've made perfectly clear!

Repeated:

  • Inacessible to lesser-known UAs
  • People without Flash won't be able to use the site
  • Adds unessacery page-load time
  • Flash buttons look unsightly on a site anyway (from their cliche'd overuse thanks to their inclusion in Dreamweaver)
  • What's the point anyway?

Reply With Quote
  #7  
Old April 16th, 2005, 05:26 PM
elijathegold's Avatar
elijathegold elijathegold is offline
Senior Fire Wizard
Click here for more information
 
Join Date: Feb 2005
Location: Ashford, Kent. England
Posts: 5,651 elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)elijathegold User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1490596 Folding Title: Super Ultimate Folder - Level 3
Time spent in forums: 2 Months 2 Weeks 2 Days 3 h 57 m 17 sec
Reputation Power: 301
So thats how you do it... Been driving me crazy.

Quote:
<button id="btnLogout" type="submit"><img src="logout.png" alt="Logout Button Image" /></button>


Never thought of trying that. Nice

Elija

Reply With Quote
  #8  
Old April 17th, 2005, 03:17 AM
Scooty Scooty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 80 Scooty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 58 m 43 sec
Reputation Power: 4
I guess I was looking for some ActionScript to attach to a button to make a msgbox pop up.



Quote:
Originally Posted by elijathegold
So thats how you do it... Been driving me crazy.



Never thought of trying that. Nice

Elija

Reply With Quote
  #9  
Old April 17th, 2005, 04:41 AM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Quote:
Originally Posted by Scooty
I guess I was looking for some ActionScript to attach to a button to make a msgbox pop up.


Scooty: YOU CANT!!!

Reply With Quote
  #10  
Old April 17th, 2005, 12:47 PM
Scooty Scooty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 80 Scooty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 58 m 43 sec
Reputation Power: 4
Question answered...thanks.



Quote:
Originally Posted by 1337_d00d
Scooty: YOU CANT!!!

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignMultimedia > Flash Alert


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway