- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
14 Posted Topics
Hi, how to write the MYSQL Query select count(*) from (SELECT user_id FROM `reports` group by report_id) as tb where tb.user_id=5 in Cakephp inside the Loop [CODE]$users=$this->User->find('all'); foreach($users as & $user): //for each $user['User']['user_id']; which gives the User ids as 1 2 3 4 5 ... endforeach; $this->set('users', $users);[/CODE]
Hi, I am using the Content SUbmit component of Joomla 1.5 . In my site i am having a main menu with tabs Home,About forum,Blog Where blog is linked to a section -- IFsection In that blog home page i have a sub menu with a Create a post linked …
Hi, i am using the Plugin Content Bookmarker downloaded from [url]http://dev.aarthikaindia.com/downloads/[/url] ... ugins.html for my site. Some of the Articles are able to Bookmark like if i click on the Bookmark (twitter) , it directly bookmarks in Twitter with Some description of the Article where some of the Articles are …
Hi, i have just opened the control panel of joomla 1.5 . [url]http://localhost/joomla/administrator/index.php[/url] i am getting the following error. I am using this more than one month .. But now suddenly its showing me the error . Warning: Unexpected character in input: '' (ASCII=28) state=1 in /home1/**/public_html/***/administrator/components/com_jaclplus/jaclplus.class.php on line 73 …
i am trying to use the File upload feature in my application .. i am having a Form with many fields of type Text,textarea and including File upload FIeld. I have kept a Submit button at the end of the Form which on click will submit the actual value of …
Hi, i am trying to use the pagination concept in Cakephp for my application .. [CODE]$allreports=$this->paginate('Report',array('Report.user_id'=>$userId));[/CODE] i am trying to have a group condition in the above query like 'group'=>array("Report.report_id") .. i m not awarre of giving that in this paginate.. where in [CODE] var $paginate = array( 'limit' => …
Hi, i am having a query like [CODE]$report_attrid=$this->Report->find('all',array('conditions'=>array('Report.report_id'=>$report_id,'Report.user_id'=>$userId))); foreach($report_attrid as & $reportattrid): $reportattrid['Report']['attr']=$this->Attribute->find('all',array('fields'=>array('Attribute.id','Attribute.label'),'conditions'=>array('Attribute.id'=>$reportattrid['Report']['attribute_id'],'Attribute.form_id'=>$report_form_id),'order'=>'Attribute.sequence_no')); $reportattrid['Report']['value']=$this->Result->find('all',array('fields'=>array('Result.label','Result.value','Result.submitter_id','Result.submitter'),'conditions'=>array('Result.attribute_id'=>$reportattrid['Report']['attribute_id'],'Result.form_id'=>$report_form_id),'order'=>'Result.id')); endforeach; $this->set('Report_attrid',$report_attrid); [/CODE] 1.the first one for $report_attrid will gives me the all the datas needed for my report as id Report_id title form_id attribute_id 1 1 r1 24 69 2 1 r2 24 72 2.And …
Hi, i am having Cakephp code like [CODE]<?php foreach ($viewfields as $r): if($r['Attribute']['type']=='radio') { ?> <script type="text/javascript"> jQuery.noConflict(); jQuery(document).ready(function($){ $("#"+<?=$r['Attribute']['id'];?>).each(function() { type= "<?=$r['Attribute']['type'];?>"; attribute_id="<?=$r['Attribute']['id'];?>"; if(type=="radio") { var ht = $.ajax({ type: "GET", url: "http://localhost/FormBuilder/index.php/forms/viewChoices/"+attribute_id, async: false }).responseText; var myObject = eval('(' + ht + ')'); var data = myObject;var j=0; …
HI, i am new to JQUery and Ajax.I am trying to use the value returned from the Ajax call to the another Ajax call.. like [CODE] $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ //alert( "Data Saved: " + msg); getformid=msg; }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { //alert("Form …
in my application i am using Ajax post like [CODE] $('#fb_contentarea_col3 #fb_contentarea_col1down2 #saveForm').live("click", function(){ if(!$("#formName").val()==""){ if(saveDraft=='on') status="Incompleted"; else status="Completed"; var formname=$("#formName").val(); $.ajax({ type: "POST", url: "http://localhost/FormBuilder/index.php/forms/saveForm/", async: false, data: "formname="+formname+"&status="+status, success: function(msg){ getformid=msg;//returned FOrm id is saved in the JQuery variable }//success });//ajax $("#fb_contentarea_col1down21 div").each(function() { alert("Form id "+getformid);//alerts me …
Hi everyone, I am doing my application and running it in my browser as [URL="http://localhost/FormBuilder/index.php/controllername/action"]http://localhost/FormBuilder/index.php/controllername/action [/URL] eg.. [url]http://localhost/FormBuilder/index.php/forms/view/1/5/Invitee[/url] results the correct page. which is generated bby using the datas in my Database. But if i tried to use like [U] [url]http://myipaddress/FormBuilder/index.php/forms/view/1/5/Invitee[/url][/U] only some parts are retrieved from my database.WHy so …
Hi, i am doing an application which make use of JQuery and Cakephp . In this i am using like the following to retrieve the values from my controller side [CODE] var getformid; $.getJSON("http://localhost/FormBuilder/index.php/forms/getFormEntry", function(json) { getformid=json.forms[0]["id"]; alert("Form id inside "+getformid); });//json alert("Form id ouside "+getformid);[/CODE] In the above code, …
Hi, i am doing an application like a Form builder.. I am having a design page where i am generating the Fields using JQuery and displaying them each in a Div in the Preview panel of the same page. In my code i am saving all the Fields in the …
Hi , In my application, there is a view page to show the table of Attributes name as the header and its value filled by many people below. Like Name Age salary a 22 18912 b 23 89972 c 23 781273 i want it like above .. But i am …
The End.
arunajasmine