96 Posted Topics
Hello, Sorry,This may be a silly question : How to assign ajax return value to javascript array? for example what I want is, I have declared an array in javascript as `all_skills = new Array();` and after that called ajax call in which I want to save the return value … | |
Re: IS there anyone who found solution for this?? need it! | |
Hello, I wanted this in chronoform, to select timezone and then check for the time. I hav eprovided calendar below, but now I need to show timezones there. I am not getting this on google even. Does any master have idea about this? | |
hello, i tried with below code but its not working for me. I am send it to gmail. is there anything which i have missed out? $subject = "Happy Work Anniversary !" ; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $link = public_path() . … | |
Hello, I want to check difference between 2 arrays I have two array with key value pair. I want to check diff between these two. If there is diff then I will insert. But in some cases, i have extra size in any one of arrays or both array can … | |
Hello, I want to check whether one given date range is falling under another range or not. Is there function for this? Because when I am calculating this using To and FROM dates , it is taking efficient. I have to apply separate condition for TO date and FROM date. … | |
Hello, I want to stop foreach loop for 5 seconds while processing, in angularjs But my below code is not working Where am wrong here? angular.forEach(data, function(value, key) { total_count=data[key].length; // length of each array array_key = key; key_length=key.length; // length of each key $scope.x_dynamic="Processing " + key; ProcessBarService.save_in_new_table(value,array_key) .success(function(return_value) … | |
Hello, Am new @angularjs. I am using progressbar in angular bootstarp. but for my requirement its little bit tricky. I am using progressbar for DB migrations. OnClick of button my migration process starts and bar should show progress. What I was thinking to do is : onclick call function which … | |
Hello, Am trying to fetch data from one table of one DB and put it into another DB's table. I wrote below connection code for this: <?php $date = date('Y-m-d H:i:s'); /* OLD EIMS connection values */ $old_host= "localhost"; $old_uname="root"; $old_pass="ABC"; $old_database ="EIMS_OLD"; /* NEW EIMS connection values */ $new_host= … | |
Hello, Am new in angularjs. I want to restrict user from inserting HTML tags in textarea by using ng-pattern in blade.php, i had written `{{ Form::textarea('localAddress', null, ['size' => '35x4',"ng-pattern"=>'(.*?)<.*?>(.*?)','name'=>'local_address','ng-model' => 'employee.employee_personal_details.local_address','required'=>true]) }}}` but < brackets are giving me angular js error `{{ Form::textarea('localAddress', null, ['size' => '35x4',"ng-pattern"=>'<("[^"]*?"|'[^']*?'|[^'">])*>','name'=>'local_address','ng-model' => 'employee.employee_personal_details.local_address','required'=>true]) … ![]() | |
Hello, Am new n angularjs. Am using angular bootstrap datepicker First issue 1] I want to use calendar for choosing only month and year but am not able to I did the all ways but all are unsuccessful 2] I want to remove Today|Weeks|Clear buttons from datepicker as per gievn … | |
Hello, As using Yii's mpdf() extenstion for generating pdf file. code is as below: $mPDF1 = Yii::app()->ePdf->mpdf(); $stylesheet = file_get_contents(Yii::getPathOfAlias('webroot.css') . '/screen.css'); $mPDF1->WriteHTML($stylesheet, 1); $Arraylist= array('employee_gslab_id'=>$employee_gslab_id,'other_details'=>$employee_details); $mPDF1->WriteHTML($this->renderPartial('address_proof',$Arraylist,true)); $mPDF1->Output($name, EYiiPdf::OUTPUT_TO_DOWNLOAD); everything is working as expected except when this file is downloaded/saved then it is not showing extesion to file. how can … | |
I am trying to autofocus the form's first field. but not able to. My scenario is, in first load it shows table with data.On this page a <a> link is given which does nothing but showForm="true" which shows form for adding data. Code is as below: // controller side angular.module('degreeCtrl', … ![]() | |
Hello, I want to fetch database table in csv file format. I tried but in my output file every fethced line is getting printed on new line. code is as below <?php $host="a.b.c"; $uname="root"; $pass="test"; $database ="TEST"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); // Fetch Record from Database $output = ""; $table = … | |
Hello, Am new in CSS I have form like below code. <div> <span class="lable"> Practice Name<span class="PreRequired">*</span></span> <input type="text" name="practiceName" ng-model="practiceData.practiceName" style="width:20.5%;" required ng-pattern="/^([a-zA-Z]+\s*)*[a-zA-Z]+$/" placeholder="Practice Name"/> <span ng-show="SubmitPractice.practiceName.$error.pattern"> Please enter valid Practice Name </span> </div> <div> <span class="lable"> Practice Head<span class="PreRequired">*</span></span> <select ng-model="practiceData.practiceHead" style="width:20.5%;" required="required" ng-options="em.gslab_id as em.employee_name for em … | |
Hello There, I have used below code for input field and error span <form name='SubmitGuest' class='simple-form'> <div> <span class="lable"> Guest Name</span> <input type="text" style="margin-left:0.5px;" name="guest_name" ng-pattern="/^([a-zA-Z]+\s*)*[a-zA-Z]+$/" ng-model="guestData.guestName" required placeholder="Guest Name"/> <span ng-show="SubmitGuest.guest_name.$error.pattern"> Please enter valid Name </span> </div> <!-- such multiple div for fields. --> </form> It is working correct. … | |
Hello, I want to show select list in angular js Data is in .php file in json format as below: `["{\"0\":\"949\",\"user_id\":\"949\",\"gslab_id\":\"GS-0835\"}","{\"0\":\"493\",\"user_id\":\"493\",\"gslab_id\":\"GS-0451\"}","{\"0\":\"338\",\"user_id\":\"338\",\"gslab_id\":\"GS-0322\"}","{\"0\":\"961\",\"user_id\":\"961\",\"gslab_id\":\"GS-0843\"}","{\"0\":\"444\",\"user_id\":\"444\",\"gslab_id\":\"GS-0409\"}"]` what I have written till is in my index.php file: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script> <script src="myNoteApp.js"></script> <body ng-app="mainApp"> <div ng-controller="mainController"> <select> <option ng-repeat="category in content" value="{{category.user_id}}"> {{category.user_id}} </option> </select> </div> </body> … | |
Hello, I want expression for not acception string with specials characters. So I was with expression /^[ A-Za-z0-9_@.#&,()-]*$/ But it is accepting only special chars also. How can I restrict it for not acceptiong only special chars? like my string should contain atleast one character. | |
Hello, Suppose I have resume. On upload of resume, I want my form fields get filled with values like (atleast) mobile number,email id,address (etc) Is there any avilable script which can fetch details like this? | |
Hello, I am newbie in AngularJS. I had query about fetching data and storing in angularJS's variable. I have table where all employees are stored. Now, what I want is show dropdown of these employees. i.e fetch values from Database and store into variable of module which i can use … | |
Why this question arised?? I have used jquery Tabs in my application. On controller I have opened First tab with employee's names. Clicking on employee name opens another tab by just "add" facility of `$j("#teamtab").tabs("add",<data like ID>)` on opening multiple tabs , if I reload the page then it closes … | |
Hello, In my database schema, for one fiels "exp" i have made it as float(3,2) it stores value properly up to 9.99 but for then it goes out of range and stores 9.99 how?? whats wrong in this? i expect it store values up to 999.99 but it stores uo … | |
Hello, using for each of jquery am fetching td's name but if try to test it by removing name from firbug and try to submit it then my code is breking. so first question, what should anyone do in such case? and another regarding my code is: $('#SkillDetails_table tr').each(function() { … | |
Hello, I want to open and dialog box on onclick of image. for that , i had written below onclick code to call function and pass parameter to it. this $skills_id is unique. What I want next is, using this $skills_id, I want open dialog box which fetches and shows … ![]() | |
Hello, I want array in format $xyz[]=array($key=>'Some value here',$value=>array('value1','value2)); In below code, I want it in loop by checking if $ManagerGSID value is not in $xyz[] as $key then insert into it. (as key will $ManagerGSID and value will be array ($EmployeeGSID)) again if got the same $ManagerGSID then push … | |
Hello, I want to use highlight / blick in validation. below is the validation function. I have just focused that fields but i want to highlight that fields and on click of it highlight should remove. I tried it in first condition but not working. function validation_summary_page() { var total_rows=document.getElementById('SkillDetails_table').rows.length; … | |
Hello, I want to disable tab event from input box on form for that i tried: <script language="JavaScript"> // disable tab event on form $(window).keydown(function(event){ if(event.keyCode == 9 ) { alert("tab is clicked") // it alerts but execute get vanished quickly event.preventDefault(); return false; } }); </script> and document.querySelector('input').addEventListener('keydown', function … | |
Hello, I have created input bonxes and filled values inside it. and made it read only using below code: <? foreach($certificated_data as $c) { ?> <tr id=<?echo $tr_id; ?> > <td> <input type ="textbox" name="certificate[<?=$tr_id?>]['name']" id="name-<?=$tr_id?>" value="<?=$c['Name'] ?>" readonly="readonly" /> </td> <td> <input type ="textbox" name="certificate[<?=$tr_id?>]['date']" id="date-<?=$tr_id?>" value="<?=$c['year'] ?>" readonly="readonly"/></td> … | |
Hello All, I have fetched array from database, it is two dimentinal array. and want to print it into html table. But when print it's need attribute while printing it. here is code: <tr> <th>Sr.No.</th> <th>Skill type</th> <th>Skill Name</th> <th>Project</th> <th>Practice</th> <th>Description </th> </tr> <? $skills_1=[HERE I HAVE FETCHED ARRAY … | |
hello, i have array Array ( [certificate] => Array ( ['name'] => Array ( [1] => 11 [2] => 22 [3] => 33 [5] => 55 [6] => 66 ) ['date'] => Array ( [1] => 1111 [2] => 2222 [3] => 3333 [5] => 5555 [6] => 6666 ) … | |
Hello, I have created text fields <fieldset class="step"> <p> <label for="Certifications">Certifications:</label><br> <label style="margin-left: -125px !important;"> <div id='test_certify' style="display:table;"> <table id="mytable" width="5%"> <tbody> <tr> <td align='middle'>Certification Name</td> <td>Pass Out Year</td> </tr> <? $tr_id=1; ?> <tr id=<?echo $tr_id; ?> > <td> <? echo CHtml::activeTextField(EmpCertificates::model(),'Name',array('id'=>'C_name-'.$tr_id,)); ?> <td> <td> <input for date> </td> </tr> … | |
Hello, I have written an ajax call: $.ajax({ url:'summary_page_data', type:'POST', data:name={}, context: this, dataType: 'json', success:function(data_){ if(data_!= -1) { data=JSON.stringify(data_); alert(data); $('#write_table').append('<p>Summary:<br><br>[FORM TABLE HERE]</p>'); } else alert("outside") } }); In this "summary_page_data" i have written `echo json_encode($skills);` SO it is returning array. when i alert the return data, it shows … | |
Hello, I have created sliding fieldsets using javascripts. in it, I have created fieldsets using for loop. Now I want , while I click on NEXT of one fieldset , then whatever input type fields are available on that fieldset , I should get them. I want to store it … | |
Hello, I have used for loop to create checkboxes. and on each of them i want to know its checked or unchecked. code is as below: foreach ($All_skill_type as $All_skill_type_) { $each_skill_type=$All_skill_type_ -> skill_type ; // find skill_type_id and serach Skills for that skill_type $skill_type_id=helpers::getSkillTypeId($each_skill_type); $skills_of_skill_type=helpers::getskills($skill_type_id); ?> <fieldset class="step"> <p> … | |
Hello i have array as Array ( [1] => Fedora [6] => Array ( [0] => Android [1] => Selenium ) [200] => Array ( [0] => hi there [1] => New ) ) how to print this in php using for loop because using normal forloop it says no … | |
how to check whether string contains characters like <% or <? tags or mysql tags. for example `<% String eid = request.getParameter("eid"); %> ` `<?php ?>` or `<?` my page is total depend on javascript so while its submitting form its giving me error or accepting codes which it should … | |
I have array of keys. $all_skills2= CHtml::listData(Skill::model()->findAll(array('order' => 'skill')),'skill_id','skill'); $database = array_fill_keys($all_skills2,''); this array looks like: Array ( [Android] => [ax] => [bbb] => [Big Data] => ); now i want to fill values to this array. where values are in another array **$skill_type_count** which i got from below code: … | |
Hello, How to force **window.onbeforeunload** to act only on pertular action or url? I have a form which has data. if it navigates to another page then `window.onbeforeunload= function() { return "please save data"; };` is working. But after submission of that page, it navigates to another page on that … | |
Hi, I want to take php string in javascript variable. How to take it? php string includes \n so while taking it in variable it shows me error of "SyntaxError: unterminated string literal" I got one solution form stackoverflow that use json_encode but after use of json_encode is giving me … | |
Hello, I have a div in which I have written values fetched from an ajax call. I want, when double click on any word in that div , alert that word. I refered http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/479879/how-to-detect-clicked-word-in-textarea-with-right-click-and-show-menu-items and well some stackoverflow. but did not get answer. code is as below FYI. $("#other_skill_name").keypress(function() { … | |
Hello , I want to show spinner while processing below data. // SHOW SPIINER HERE $.getJSON("./php/fetch_record.php",{Record_id: Schedule_id, ajax: 'true'}, function(j){ for (var i = 0; i < j.length; i++) { $.post("/Test/Simple_form_submit", { //variables here },function(data){ }); } // HIDE SPINNER HERE I had tried show and hide div here but … | |
Hello, I want to use spinner while process foreach loop in php. My functing is: I am creting events using google calendar API in php. for each of my array values I am creating event. and after each event create there is one sleep(5). in this foreach loop I want … | |
is there any option in javascript/jquery to know whether browser's javascripts are disabled or not? like if browser's javascripts are disabled then give alert to user that "Enable Javascript". | |
due to something fishy , one of filenames has entered as Abhishek�_xyz.docx and it is not opening now. It says no file found. When I try to do rename it using 'mv'command, then it do not allow me by stating cp: cannot stat `Abhishek �_xyz.docx': No such file or directory … | |
Hello, I want to ask user about leaving page when there is some **not saved data** on page. I wrote code <script> window.onbeforeunload= function() { return "Save your data plz"; }; </script> But the problem is when am submitting data, then am rendering another page. Due to this confirm message, … | |
Hello , I have an 2 dimetional array: Array ( [0] =>Array ( [0] => add1 [1] => add2 [2] => May 2014 [3] => ascascascasc [4] => 160 ) [1] =>Array ( [0] => Framework [1] => hii [2] => May 2014 [3] => ascascasc [4] => 161 ) … ![]() | |
Hi, I have an array as: $data = array ( array ('add1','add2','May 2014','ascascascasc',160), array ('Framework','hii','May 2014','ascascasc',161 ), array ('Framework','test framework 1','May 2014','asdasdasd',159 ) array ('Framework','test framework','May 2014','asdasdasd',149 ) array ('OS','other OS skill','May 2014','ascascASC',162 ), array ('Databases','test db skill 3','May 2014','bnmbnmbnm',158 ), array ('Databases','test db','May 2014','bnmbnmbnm',18 ), ); I want to … | |
Hello, I am using Yii framwork. What I want to do is, I have a dropdown and one button. on button click, i want to send selected value of dropdown in url. <div class='box'> Change to another Skill Type<br> // IT IS DROPDOWN WITH VALUES AND ID of this input … | |
How to check whether ant field's value is disabled? in javascript ![]() | |
Hello, I have select(/dropdown) list.Below is code <div id="complete_form"> <b>Skill Type :</b> <select id="skill_type_name" onchange="load_div()"> <option value="">Select</option> <option value="Language">Language</option> <option value="Database">Database</option> <option value="Framework">Framework</option> </select> <div id="id_skill_name" onchange="load_other_skill()"> <b>Skill : </b> <select id="skill_name" name="Skill[skill_id]"> <option value="">Select</option> <option value="test language 1">test language 1</option> <option value="test db 2">test language 2</option> <option value="test fw … ![]() |
The End.