15,698 Topics
![]() | |
I'm trying to add additional security/validation to an online form that has AJAX backend. When I try to add a filter to remove spaces (such as trying trim or replace), the functionality breaks; no error, just no action in general. What's the best way to acheive this without breaking the … | |
Any body help me But i am not getting values when clicking button "getValue" my code is <html> <head> <title>jQuery add / remove textbox example</title> <script src="jquery.min.js"></script> <style type="text/css"> div{ padding:8px; } </style> </head> <body> <h1>jQuery add / remove textbox example</h1> <script type="text/javascript"> $(document).ready(function() { var max_fields = 10; //maximum … | |
<?php include("include/connect.php"); ?> <?php if(isset($_REQUEST['submitform1'])) { $timepicker1=$_REQUEST['timepicker1']; $timepicker2=$_REQUEST['timepicker2']; echo $timepicker1; echo $timepicker2; $timepick1=explode(":",$timepicker1); $timepick2=explode(":",$timepicker2); array_pop($timepick1); array_pop($timepick2); array_push($timepick1,"00"); array_push($timepick2,"00"); $time1=implode(":",$timepick1); $time2=implode(":",$timepick2); $timeone=preg_replace('/\s+/', '', $time1); $timetwo=preg_replace('/\s+/', '', $time2); $start_date = new DateTime($timeone); $since_start = $start_date->diff(new DateTime($timetwo)); $diff=$since_start->i; echo $diff; exit; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Basic Bootstrap Template</title> <meta … ![]() | |
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) … | |
Hi , How to validate Indian Mobile Number, in Javascript. that starts by 9 or 8or 7 containing 10 numbers without country number | |
I've used different methods and found it difficult to integrate mashape for a dictionary.. My code is below: require_once 'unirest-php/src/Unirest.php'; // These code snippets use an open-source library. $response = Unirest\Request::get("https://montanaflynn-dictionary.p.mashape.com/define?word=irony", array( "X-Mashape-Key" => "T2rwS1jyBSmshKoZB5Un2kfpvgtRp1hUS9pjsnHvPoGNHIMpda", "Accept" => "application/json" ) ); What am I not getting right Regards | |
<html> <script language="javascript"> function validate(dt1,dt2) { var jdt1=Date.parse('20 Aug 2000 '+dt1); var jdt2=Date.parse('20 Aug 2000 '+dt2); if(isNaN(jdt1)) { alert('invalid start time'); return false; } if(isNaN(jdt2)) { alert('invalid end time'); return false; } if (jdt1>jdt2) { alert('start is greater'); } else { alert('start is less equal'); } } </script> <body> <div> … | |
Hello guys. I Found some code Dynamically Add/Remove Rows In HTML Table Using JavaScript and I found Here : http://viralpatel.net/blogs/dynamically-add-remove-rows-in-html-table-using-javascript/ then i copy and paste and run it in my browser . its successful ok. but when i Add A Little codes is not succesfful ok. because when i click … | |
I'm not able to get the content of this array, please can someone help? Where Am I getting it wrong? Below is the code $barcode = "9780980200447"; function parseInfo($barcode) { $url = "http://www.librarything.com/api_getdata.php?userid=timspalding&showstructure=1&max=10&showReviews=1&showTags=1&reviewsOnly=1&name=Jesus+is+Lord&&apikey=b27cb381baddff9c49b9dd27d9d96651&responseType=json"; $contents = file_get_contents($url); $json = json_decode($contents, true); return $json; } $array = (parseInfo($barcode)); //print_r($array); foreach ($array as … | |
I have two variables var a="10:20:am"; var b="10:25:am"; I want javascript code for getting 5 min difference. any body help me to get 5 min difference ![]() | |
i want to store input text box value into php variable without form submit and without using ajax,js,jquery etc., is it possible?? | |
Hi I am having a bit of a problem with some JavaScript and PHP. The script (below) works exactly as wanted, but if I run it with the latest version of IE, the JavaScript appears to be looping and it makes the link flash, and it can only be stopped … | |
OKAY i have been working on this for a little while and i feel i am getting close but there are a few things i can't seem to find on the internet that are good examples/tutorials/reading materials. 1. i need my table to expand and collapse (got that figured out) … ![]() | |
Hello, If I have an array structured like the following: '0' ... '0' ... '1' ... '2' ... '1' ... '0' => "Mike" '1' => "1892" '2' => "1" '2' ... '0' => "Paul" '1' => "1672" '2' => "1" '3' ... '0' => "Sam" '1' => "1872" '2' => … | |
Hello, I have the following string [null,null,null],["Paul","2293",1],["eric","2099",0] which I will define as: var dataparsed ='[null,null,null],["Paul","2293",1],["eric","2099",0]'; and would like to construct three different arrays in the following format: var opponentName = new Array(null, "Paul","eric"); var numberVal =new Array(null, 2293,2099); var outComeVal = new Array(null, 1,0); Any ideas on how this can … | |
I have this table that i have been modifiying and working with for some time now, its for displaying lots of data both condensed and expandle for each row but also searchable and sortable. Here is my problem, my table used to have perfect sorting and searching before i added … | |
Hi i am facing a problem. please any body help me <script type="text/javascript"> $(function(){ $("#timegap").change(function(){ var totalreg=parseInt($("#totalreg").val()); // (500) var numberofcounselor=parseInt($("#couid").val()); //(8) var timegap=parseInt($("#timegap").val()); //(11) var appsperhour=Math.ceil(60/timegap); alert(appsperhour); }); }) </script> The out put is without using ceil is 5.45. But using ceil i am getting 6. But in my … | |
Hi I collected the code from internet. i am trying to use dependent dropdown in the popup screen. i can able to display first dropdown in a popup but i am unable to display the second dropdown. can any please help me to fix that issue. **test.php** <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" … | |
OKAY i have been working on this for a little while and i feel i am getting close but there are a few things i can't seem to find on the internet that are good examples/tutorials/reading materials. 1.) i need my table to expand and collapse (got that figured out) … | |
![]() | I am trying to submit a form and get a result from an AJAX call. However, the error block is triggered when submitting the form. If I change the <form> to a <div> and change the $("form#main_frm").submit(...) to $("#main_frm").click(...), it works. What am I doing wrong with form? Thanks in … |
why this code give error like "Warning: json_decode() expects parameter 1 to be string, array given in <b>E:\wamp\www\datefun\show_cart_update.php</b> on line". Please help me. I am new in php and json <html> <head> <title>Untitled Document</title> <script src="js/jquery-1.9.1.min.js"></script> </head> <body> <script> function update_cart_detail() { var aData = new Array(); aData[0]={ "session_id":"64qu9ng2o8o996s21bjt9321h1", "order_id":"26", … ![]() | |
Graphics and digital arts acoording which department is it CS or IS all what i know about it that it relaties to Java script language nothoing more and if it is to Is or Cs what is the department name ? | |
I have a select box that looks up values from my database, and then runs a jquery function to display the results, function is working fine, but some of the values in the database have spaces i.e "BT Global" the results are returning everything that starts with "BT" any help … | |
I need to submit a form on which there is a group of inputs(that can be dynamically generated) that needs to be an array of objects(list of dictionaries). I Dynamically generate the following item when a button is clicked on the form: var count = 0 $("#add-order-item").on("click", function(){ count += … | |
i am repeating a form using ng-repeat. the repetition is to create a new form. i want to submit all forms data on single click. i am not able to find how i can assign multiple values in array. Here is my form. <div id="check" ng-repeat="screen in screens"> <input type="hidden" … | |
Hello. This is a multi-part question. I have researched each aspect of it before posting here, but I am posting this in case anyone may point out something I might have over-looked. * I am building a profanity filter to be used upon submission of a form - I assume, … | |
Hi guys i need to know how to input before load the search box in Jquery DataTable? anyone because i try to edint the either line "var input = '<input type="search" class="'+classes.sFilterInput+'"/>';" under function _fnFeatureHtmlFilte OR line "sSearchPlaceholder": "", and imomodify. but nothings happend:( ![]() | |
i have a codes thats calls in my JSP but i want the search button have a value before its loads because of filtering of data heres my code i try to add a value here var input = '<input type="search" value="Null" class="'+classes.sFilterInput+'"/>'; and here "sSearchPlaceholder":"" but nothings happen :( … | |
I have two arrays arr1 is 2015,03,12 and arr2 is 2015,03,12 how to compare i tryied like this **first method** if(arr1==arr2) { alert("same");} else { alert("not same");} i got not same. please help me anybody. ======================================== **second method** var dd1 = arr1[2]; var mm1 = arr1[1]; var yy1 = arr1[0]; … | |
Hi, I have a header with a brief about someone, and I have an icon that should replace the brief div with social icons, I've already coded the basic markup, but I don't know how to do that with jquery Here's my code: <div id="info"> <h4 id="aboutinfo">I’m <span>Omar Soliman,</span><p>a front-end … |
The End.