in genaral alert message focus only to alert only, we can't move
anywhere.here we are not using alert,and making own alert window,and i am
unable to focus on that,here we can move anywhere i.e in background that
should not.


here is my code:

function show_warning(e_msg, m_info, e_title, alert_type, car_id, move_next,
help_text) {
   if (e_title) {

       $("#error").find("span.title").html(e_title);
   }
   $("#overlay").find("div.panel").hide();
   $("#skin:hidden").show();
   $("#error").find("div.message").html(e_msg);
   $("#overlay:hidden").show();
   /* $("#mask:hidden").show(); */
   $("#error:hidden").show();

   $('#loading').hide();
   TB_position("#error")
   $(window).resize(function(){TB_position("#error")});
   if (alert_type) {

       if (alert_type == "remove") {
           var el = $.DIV({},
                   $.IMG({className:'close-box hover js-link',
src:'images/buttons/cancel.gif', alt:'Cancel'}),
                   $.IMG({className:'delete hover js-link second',
src:'images/buttons/remove.gif', alt:'Remove'})
               )
           $("#error").find("div.bd").css("background","#fff
url(images/icons/warning.gif) no-repeat 0px 0px");
           var btns=$("#error").find("div.buttons");
           btns.html("").append(el);
           inithover(btns.get(0));
           $("#error").find("img.close-box").click(function(){
               $('#error').hide();
               $('#overlay').hide();

           });
           $("#error").find("img.delete").click(function(){

               if (car_id) {
                   remove_car(car_id);
                   $('#error').hide();
                   $('#overlay').hide();
               }

           });
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to