Page 1 of 1

select from db and put them on pop up

Posted: Fri Sep 23, 2011 4:03 am
by Lphp
Hi all
I have something I want to html place replace by the data select out from db , anyideal

Code: Select all

<script language="javascript" type="text/javascript">

          function openprompt(){
              var statesdemo = {
		state0: {
			html:'test 1.<br />test 1..<br />test 1...',
			buttons: { Cancel: false, Next: true },
			focus: 1,
			submit:function(v,m,f){
				if(!v) return true;
				else
					$.prompt.goToState('state1');
				return false;
			}
		},
		state1: {
			html:'test 2',
			buttons: { Back: -1, Exit: 0 },
			focus: 1,
			submit:function(v,m,f){
				if(v==0) $.prompt.close()
				else if(v=-1)
				$.prompt.goToState('state0');
				return false;
			}
		}
};



$.prompt(statesdemo,{ show:'dropIn' })

    
}

        </script>

Re: select from db and put them on pop up

Posted: Fri Sep 23, 2011 8:32 pm
by Neilos
Well, the script you post is JavaScript and this is a php forum and your question is a little ambiguous so I don't know what to suggest. Could you be a little more specific?