15,127 Topics
| |
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 … | |
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 … |
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 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" … | |
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 … | |
Alright so I'm trying to figure out why this code will show the menu bar on the computer when the page is loaded, but not on my Samsung Galaxy S4 whenever it's loaded. Here is the code, I can provide the link if needed, but I would prefer not to. … | |
I have tested many times Which browser and read instructions. It seems there are missing points at main app page: https://github.com/WhichBrowser/WhichBrowser Author: Niels Leenheer I have checked again and a little bit confused as this is the first time. 1. It will be under public_html 2. Cron job will update … | |
**Hey Daniweb!** A bunch of us have been putting together a web-based drawing app. In a nutshell, users connect in real-time to draw or chat on a sort of interactive whiteboard. Plenty of these are made in Flash, but we are determined to build it in JavaScript and HTML5; a … | |
Hello good people. I am trying to add a snippet of javascript to the head tag of a mobile site that checks if the visitor is using a PC and if the visitor is viewing the mobile site on a PC I want them to be redirected to the normal … | |
Hi, how do i pass the variables color, city and food to the mypage.php? I am able to get 'name' and 'age'. I want tto be able to pass all the variables mentioned in the script. <script type = "text/javascript" src="mypage.php?name=test&age=23"> var color = "red"; var city = "london"; var … | |
Hi, I am trying to add some values retrieved from database, into a HTML table which I've already created using jQuery & AJAX. My data is getting retrieved properly, but its not getting displayed when I am loading the HTML page. Could anybody help ASAP?? Here's the code I'm using … | |
Perhaps this isn't a mystery, because I don't have access to older browser windows, like Internet Explorer 9 or below. But this does bring a rather interesting question to the table. While attempting to use programs like Browserstack and Sauce Labs, my Internet Explorer 8, 7 and 6 tests fail … |
The End.