An alert is usually a notification message to draw one's attention.
61
votes
10answers
64k views
How to change theme for AlertDialog
I was wondering if someone could help me out. I am trying to create a custom AlertDialog. In order to do this, I added the following line of code in styles.xml
@drawable/color_panel_background
...
67
votes
9answers
134k views
How to edit a JavaScript alert box title?
I'm generating a JavaScript alert with following code in C# .NET page:
Response.Write("<script language=JavaScript> alert('Hi select a valid date'); </script>");
It displays an alert ...
16
votes
7answers
32k views
Javascript close alert box
I want to be able to close an alert box automatically using javascript after a certain amount of time or on a specific event (i.e. onkeypress). From my research, it doesn't look like that's possible ...
18
votes
3answers
12k views
JavaScript alert not working in Firefox 6
I tried running this JavaScript code in the address bar in Firefox 6:
javascript:alert("Hello")
I get a
ReferenceError: alert not defined.
It used to work fine in Firefox 5 though, and ...
3
votes
2answers
854 views
combo box is getting vanished when an alert is coming
In my jsp page i have one text box and two combo box. An alert is coming in my jsp page when i am writing something in the textbox. Alert is coming as "username already exists" and after alert that ...
32
votes
2answers
15k views
Animate a custom Dialog
I'm trying to have a custom dialog appear as though it's sliding down from a text view. Is this possible? I can't seem to apply any animation to dialog class. I've tried this line in the constructor, ...
3
votes
3answers
3k views
Android: Presenting a notification during a call?
I have a broadcast receiver that listens to incoming calls. And I want to tweak the incoming call screen. Right now I can present toasts and add notifications to the notification bar (BTW the user ...
5
votes
1answer
11k views
Play alert sound (same as default message ringtone)
Is it possible to play some default sounds, such as when an incoming SMS/push is received?
If iOS SDK does not bundle these sound files, where can I download the same sounds?
17
votes
5answers
40k views
How to display temporary popup message on iPhone/iPad/iOS
I'd like to display a temporary message on the iPhone/iPad displaying confirmation of an action, or some quick status about some background activity.
Is there a standard control to do this? I've ...
8
votes
8answers
10k views
Javascript and AJAX, only works when using alert()
I am having trouble with my javascript. It seems to be acting oddly. This is what's going on. I have a form, after the user submits it, it calls a function(onsubmit event) to verify the submitted ...
18
votes
9answers
21k views
Click in OK button inside an Alert (Selenium IDE)
I need to click the 'Ok' button inside an alert window with a Selenium command. I've tried assertAlert or verifyAlert but they don't do what I want.
It's possible the click the 'Ok' button? If so, ...
9
votes
3answers
12k views
display data after every 10 seconds in Android
I have to display some data after every 10 seconds. Can anyone tell me how to do that?
4
votes
3answers
5k views
Alert handling in Selenium 2 (WebDriver) with Java
I want to detect whether an alert is popped up or not. Currently I am using the following code:
try {
Alert alert = webDriver.switchTo().alert();
// check if alert exists
...
6
votes
3answers
6k views
change color of button in alert dialog (ANDROID)
can i change color of button in alert dialog when touch in that button in android. How?
Thanks for your help!
2
votes
1answer
2k views
set 2 proximity alerts with the same broadcast
I create a proximity alert in this way
private void setProximityAlert(float radius, double lat, double lng, String place)
{
long expiration = -1;
LocationManager locManager = ...