alert

How to automatically display a notice page when the main web server doesn't respond anymore ?

Is there a way to display automatically an HTML "maintenance notice" page when the main web server is down or doesn't respond anymore on the 80 port ? I guess it's an app that should do the job... Note : the "main web server" is not IIS. ...

Android: How to set the maximum size of a Spinner?

Here is my layout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:id="@+id/LinearLayout01" android:layout_height="wrap_content"> <Spinner android:text="@+id/AutoCompleteTextView01" an...

How to change theme for AlertDialog.

Hello everyone, 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 color_panel_background.9.png is located in drawable folder. This is also available in Android SDK res folder. The fo...

becomeFirstResponder not working!!!

In the below code becomeFirstResonder not working, only resignFirstresponder working...can anyone please help - (BOOL)textFieldShouldReturn:(UITextField *)textField { if (textField == txtDate) { [txtDate resignFirstResponder]; [txtTime becomeFirstResponder]; } if (textField == txtTime) { [txtTime resignFirstResponder]; [txtAddress be...

Why isn't IE displaying this alert()?

I have the following piece of code: // setup the AJAX request var pageRequest = false; if(window.XMLHttpRequest) pageRequest = new XMLHttpRequest(); else if(window.ActiveXObject) pageRequest = new ActiveXObject("Microsoft.XMLHTTP"); // callback pageRequest.onreadystatechange = function() { alert('pageRequest.readyState: ' + pa...

jQuery-driven app. won't work without alert()

I have seen a lot of articles on this, but none dealing with jQuery, so here I go... I am implementing a version of a script from http://javascript-array.com/scripts/jquery_simple_drop_down_menu/ into an existing application; however, I cannot get it to work without adding alert('msg...') as the first method within the $(document).ready(...

jquery doesn't work without alert ()

This is my jQuery: $(document).ready(function(){ $('#mycarousel').jflickrfeed({ limit: 14, qstrings: { id: '26339121@N07' }, itemTemplate: '<li><a href="{{image_b}}"><img src="{{image_m}}" alt="{{title}}" width="155" /></a></li>' }); alert("msg"); $('#mycarousel').jcarou...

jQuery to get innerHTML not working on a HTMLFontElement object...

I have jQuery to select all font elements that are children of the element with id="right" within the html stored in the var html... when I do an alert to see how many elements it gets: alert($("#right > font", html).length); it gives me an alert of: 5 but when I try any of the following, I don't get any alerts... alert($("#right > ...

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? ...

How to create and apply CSS to javascript Alert

Please help me.. tell me how to create and apply CSS to javascript Alert. i have got some other msgsbox also.. but as i have used alert every where so i just want to use CSS on it.. ...

OnmouseMove not work with SetTimeOut and Alerts in Chome

What's wrong with this code? It works in IE and FireFox, but Chrome does not work. The idea is that the function fnTimeOut will be triggered in 5 seconds after onmousemove (fnTimeOut was attach in onmousemove in document). It´s ok. But when, in Chrome, I click on the button "ok" to function fnAlert is triggered instantly. It should be s...

Null Validation on EditText box in Alert Dialog - Android

Hi, I am trying to add some text validation to an edit text field located within an alert dialog box. It prompts a user to enter in a name. I want to add some validation so that if what they have entered is blank or null, it does not do anything apart from creating a Toast saying error. So far I have: AlertDialog.Builder alert =...

Alert formatted as hexadecimal in JavaScript

How do I alert as FF and not 255 with this: var myHex1 = 0xff; alert(myHex1);//alerts 255 var myVar = 255; var myHex2 = myVar.toString(16); alert(myHex2);//also alerts 255 and not FF ...

How can I make a JavaScript alert before a page closes?

I want to write JavaScript code that would, when I close the current HTML page, display an alert message like "Are you sure?" I want to take the value of the button from the alert message, whatever the user pressed. How can I do this? ...

bold, header effects in alert()?

in javascript, how to make alert bold n use h1 to h5 headers? Is this possible or simply plain alert is option? how to include bold and h1 to this alert? function onlooad() { alert("wssup??"); } ...

Need suggestion for implementing Message alert in Client server application

My requrement is like, i have to display message alert like if you sign in yahoo messanger and once u got any message a alert box will display corner of the page.Like wise when i sign in my website and if anybody send me any message then message will store in database and symultaneously a alert should display in my site. I am using .net ...

jquery radio button when checked need an alert

Hello In my application i need a radio group, in which whenever a button is checked, an alert occur so that i can post its value to ajax post in jquery. Can you help me please how i can do it in jquery? ...

Macro to alert me when a cell changes value -- popup alert - EXCEL

Hey gurus, I am looking to create a macro to alert me when a cell's value changes. The cells in this particular column can have values of either "OVER" or "UNDER". I would like to write code to alert me via a popup (Message: "Cell A crosses under(over)") when the value changes. Thanks, patrick ...

Objective C - Auto Fade Away Alert

I am trying to alert the user of something without being too intrusive. I love the way that Tweetie 2 handles connection errors and loading progress with their alert that automatically fades away after a second or two. Anyone know how is this done in objective c? It looks like this: http://dl.dropbox.com/u/38467/photo.jpg ...

Popup window won't close until I click the alert shown on the parent page

So the child popup window won't close until I click the alert button, however, when I use the resize method for the child, it resizes before it shows the alert. Here is the code on the parent page: function ClosePopup(objWindow, strMessage) { objWindow.close(); //objWindow.resizeTo(30, 30); if (strMessage != '') { alert(str...