| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
Flash Buttons are A Very Bad Thing(tm) for numerous reasons. (Mainly accessibility)
Your problem is one of those reasons. Don't use them. |
|
#3
|
|||
|
|||
|
I wish I had a choice
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
That is good, but it does I need to do something like that in Flash
Quote:
|
|
#6
|
||||
|
||||
|
Quote:
That makes no sense whatsoever. Regarding Flash... You can't use it in this situation for reasons I've made perfectly clear! Repeated:
|
|
#7
|
||||
|
||||
|
So thats how you do it... Been driving me crazy.
Quote:
Never thought of trying that. Nice Elija |
|
#8
|
|||
|
|||
|
I guess I was looking for some ActionScript to attach to a button to make a msgbox pop up.
Quote:
|
|
#9
|
||||
|
||||
|
Quote:
Scooty: YOU CANT!!! |
|
#10
|
|||
|
|||
|
Question answered...thanks.
Quote:
|
![]() |
| Viewing: ASP Free Forums > Web Design > Multimedia > Flash Alert |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|