Posts

Showing posts from October, 2013

Trigger event on Hiding modal box

Some of the peoples will be using this for Bootstrap3 to hide modal box. Some may be facing issues on using this function, $('#myModal').on('hidden.bs.modal', function () {    alert("hii"); }); So, here is the solution for all who are all facing issues, This function will work in all the browsers where as, the above function will not work in some browsers such as chrome, etc. $('#myModal  button').click(function () {     $('#myModal iframe').removeAttr('src'); });

Breezing forms - Get datas from database

Copy the below code in your breezing forms by selecting your form, Go to Advanced -> More options -> Select "Form scripts" -> After Form or Before form its up to your requirement. // load the standard form creation utilities $this->execPieceByName('ff_InitLib'); //set globals global $record; //query db  $rows = ff_select("select * from `#__users`"); $html = ''; foreach ($rows as $row) $html .= "<div style='display:block'> <input type='text' name='$row->user_id' id= '$row->user_id' value='$row->user_id' />  </div>"; return $html; It will return all the values from the users table.