• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disabling the alert in child pages-- java script

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I have created a javascript for session timeout warning

function warningMsg(){
if(confirm('Your Session is above to expire Click OK to Continue.'));
{
var url ='processMemberCaseSearch.do';
ahahSynchronousWithoutResponse(url);
}
}

function sessionWarn(warnTime,chk ){
if(chk !="yes"){
intervalId=setInterval('warningMsg()',warnTime);
}
}

which will be called by onLoad() of root or parent jsp(we are using tiles)

since all the pages extends the root/parent jsp the alert is prompted in all the pages one by one

Is there any way to control the alert in child windows (jsp)
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't want the confirm (it's not an alert) in all windows, don't put it there. Trying to suppress it, which you cannot do in any case, is not the correct approach.
reply
    Bookmark Topic Watch Topic
  • New Topic