Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 09:06:36 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Cascade prompt  (Read 426 times)
Anthony
Full Member
***
Posts: 24


View Profile
« on: July 11, 2011, 03:15:18 AM »

Hi everyone

I seems to be having problems with the following code bit. That is the first prompt works fine, however when the user clicks the 'No' Btn it does not call the next prompt.

Am i missing something here.

As a side issues, is there any way of adjusting the height and width? ie sometimes the scroll bars appear and other times it does not, quiet random.

_cleardb:function(){
           
           
            linb.prompt("Clearing database","","Do you wish to make a backup first, before continuing?",
                function(){
                   linb.alert("Yes")
                },
                function(){
                   // linb.alert("onNo");
                   linb.prompt("LAST CHANCE","","ARE YOU REALLY REALLY REALLY SURE?",
                        function(){
                            linb.alert("onYes")
                        },
                        function(){
                            linb.alert("onNo")
                        },
                        "Yes","No")
                   
                },
                "Yes","No"
               );
        }
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: July 11, 2011, 06:17:01 PM »

Currently, It's hard to implement cascade linb.prompt/alert/confirm.

I added noCache parameter to linb.alert/prompt/confirm. Just check it out.
Logged
Anthony
Full Member
***
Posts: 24


View Profile
« Reply #2 on: July 13, 2011, 05:50:56 AM »

Many thanks that worked fine.



Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!