remove http:// localhost in alert box.

9,361 views
Skip to first unread message

raja sekar

unread,
Feb 20, 2012, 6:11:34 AM2/20/12
to evgeny vovchenko, rhomobile
Hi,
I am showing an alert through javascript i want remove this "page on
http:// localhost" on alert box.I don't want rhodes alert box since i
am checking of with some actions.

Jon Tara

unread,
Feb 20, 2012, 12:52:19 PM2/20/12
to rhom...@googlegroups.com, evgeny vovchenko
You can't change this. It isn't Rhodes that adds the site URL, it's the browser. That's the way alert() works in Javascript. Every browser adds the site URL in a heading for alert() calls.

alert() is seldom used today for user notifications. It's most often used only for debugging. If you want popup notifications, consider using a JQuery Mobile dialog:

http://jquerymobile.com/demos/1.0.1/docs/pages/page-dialogs.html

rric...@itspokernight.com

unread,
Feb 20, 2012, 9:48:43 PM2/20/12
to rhomobile
Also, I have used the the Alert.show_popup as well with good success.
I was against using it initially, but have since adopted it for a few
dialogs in my app.

Rob Roberts

unread,
Feb 21, 2012, 10:32:25 AM2/21/12
to rhomobile
I've also been using the Rhodes Alert.show_popup for dialogs. I
prefer it to theJQuery Mobile dialog because it appears to float on
top of the page, as opposed to the JQuery Mobile one which has a
background that completely covers up the underlying page. (I wish
that Rhodes supported Action Sheets on iPhone, though, as that is what
most native iPhone apps use for dialogs.)

--Rob Roberts

On Feb 20, 7:48 pm, "rrich...@itspokernight.com"

rric...@itspokernight.com

unread,
Feb 21, 2012, 9:44:48 PM2/21/12
to rhomobile
I agree, Rob - the jqm dialog sucks, actually. There is a plugin
called simpledialog (http://dev.jtsage.com/jQM-SimpleDialog/) that, if
you are desperate, you could use. Jonathan did a good job with it,
and he just recently updated his docs (a brilliant concept!!!) and
updated his code... But bottom line, use the Alert.show_popup.
Reply all
Reply to author
Forward
0 new messages