• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java script

 
bala manian
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to close alert box without clicking ok button ? my ajax function is called only after closing alert box.any chance of closing my alert box automatically after 5 second.any other ways to solve these problem..

thanks in advance...
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An alert box can't be closed without user action. Why is an alert box being shown if an AJAX function should be called instead? Have you considered other ways of showing a message to the user, e.g. putting it in the web page in a suitably noticeable font?
 
bala manian
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone say...what other message display box in java script other than alert box?or any other message display box that close in automactically with few mints?
if so reply soon..
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is called you would have to code your ow with layers. It is not that hard to do. Here is the basic idea:

Dynamically position a div on the page [position:absolute,top.left,zIndex]
Hide/Show it [display:none,block]
set Your message innerHTML = "foo";
hide it after set period of time [setTimeout]
hide it by a user action [onclick]

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65125
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic