15,688 Topics

Member Avatar for
Member Avatar for robertkt6

My code is <script type="text/javascript" language="javascript"> function displayHideBox(boxNumber) { if(document.getElementById("LightBox"+boxNumber).style.display=="none") { document.getElementById("LightBox"+boxNumber).style.display="block"; document.getElementById("grayBG").style.display="block"; document.getElementById('t').value; } else { document.getElementById("LightBox"+boxNumber).style.display="none"; document.getElementById("grayBG").style.display="none"; } } </script> <style> .grayBox{ position: fixed; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; z-index:1001; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } .box_content { position: fixed; /*top: 55%; left: …

Member Avatar for robertkt6
0
223
Member Avatar for berserk

Im sure this question has been asked before but i cannot seem to get what i need working right for me. i need this ajax to process my php form, i got that for, at least i think. I wrote some ajax to do this and it WILL at least …

Member Avatar for berserk
0
384
Member Avatar for mbarandao

I need a secondary review of the following script to help identify an issue of inconsistency with a function. The code allows me to perform a live search on a specified content. If a match is fount, it allows for me to click on a link and toggle() the content …

Member Avatar for mbarandao
0
386
Member Avatar for amrak

Hi all, I am trying to create a multiple drop down list in my codeigniter project with the following hierarchy Dzongkhag(District)->Geog(Town) ->village. I am unable to get any display in the town and village drop down list. The following are the snippets from my project. //controllers/form.php $data['dzongkhags'] = array( 'Bumtang' …

Member Avatar for amrak
0
1K
Member Avatar for ramsiva

I am facing to dispaly multiple values in another text box this is my code $("#firsttearesult").val(diffHour,diffMins); Any body help me to display both

Member Avatar for DaveAmour
0
133
Member Avatar for JorgeM

When users interact with your web page and processes, it is important to provide them with continuous feedback. Without the feedback, a user is left wondering if you page is actually processing work, frozen, or just not working. This is especially true when incorporating Ajax requests that take more than …

2
1K
Member Avatar for sandeep.tete

I have a javascript code showing current time, which i want to store in php variable. The store value in php will then be used in sending through form to an email id. I just want to store the value in php. document.getElementById('time') Any Help/ideas appreciated. <script type="text/javascript"> <!-- function …

Member Avatar for JorgeM
0
6K
Member Avatar for VenusCrystal

Hi Guys, Does anyone know if we can have template within another template using mustache js ? If yes, can you please provide details how to do it? Or any other alternative if it cannot be done? I have a block of html code which I want to make it …

Member Avatar for pritaeas
0
179
Member Avatar for Linh_1

can someone show me how to do this please? I am new to programming languge? here is the requirement? Thanks. Create a database table with 10 records with the following fields: Lastname, FirstName, Phone Number, Street Address, City, State, Zipcode. The table name is: “User Info”. Please create the table …

Member Avatar for Aslam Mansoor
0
341
Member Avatar for daz_omega

Hi, I have an unusual problem, I am developing within a wordpress environment and using a plugin. To futureproof the plugin I do not want to edit the code that is generated to include HTML tags, because when the plugin is updated it will overwrite my change. I am looking …

Member Avatar for gentlemedia
0
397
Member Avatar for Darth Vader

Hello, I am trying to restrict to maximum type 60 words in a textbox. I have tried to put a code that check if we have more than 60 words. The code restricts to 60 words but when I loop the textboxes words and put back the string (up to …

Member Avatar for DaveAmour
0
242
Member Avatar for ramsiva

I am struggling to remove white spaces, any body help me var dt1="11 : 30 : am"; I want the result var dt1="11:30:am";

Member Avatar for Troy III
0
128
Member Avatar for ajayreddy
Member Avatar for Kent55

I am making a game where a user has to move a character around a grid and collect passengers. I have managed to construct this grid using some CSS and jQuery however I now need to add a player to the grid and have them move one square at at …

Member Avatar for DaveAmour
0
350
Member Avatar for ramsiva

my index page <script type="text/javascript"> $(document).ready(function(){ $("#first_name").blur(function() { var first_name = $('#first_name').val(); var fathermobile = $('#fathermobile').val(); if(first_name=="") { $("#disp").html(""); } else { $.ajax({ type: "POST", url: "detail.php", data: 'first_name='+ first_name +'fathermobile='+fathermobile, success: function(html){ $("#disp").html(html); } }); return false; } }); }); and my detail.php <?php include("include/connect.php"); if(isset($_POST['first_name']) && isset($_POST['fathermobile']) ) …

Member Avatar for ramsiva
0
246
Member Avatar for Vishnu_4

This is my time format:- start_date = 20-01-2015 1:00 AM; end_date = 25-03-2015 2:50 PM; All these date fields are in a drop down. How can i calculate the number of days in between these dates using javscript? Can anyone give me some code reference for this? i need to …

Member Avatar for reygcalantaol
0
143
Member Avatar for sasikrishnasamy

Hi every one, I have a text field called control. This field should allow the following kind of values. 1) 1.2.3;4 : a) If I give some other value I should show error 2) 1.2.1_a.te.st_;6 : b) Here when I enter '_' then its mandatory to enter some char or …

Member Avatar for stbuchok
0
191
Member Avatar for yankeefan24

Im trying to check checkboxes based on a cfselect selection. Im trying .prop but is not passing the info to the check box I added p#testing.html to see if the query was working and it is passing info as text based on selection but not to checkbox function roleCallback(text) { …

Member Avatar for yankeefan24
0
358
Member Avatar for SoferSurfa

Hello everyone, I'm trying to select same "id" for more than one input. My code works with 1 input, but when I add 2 textareas or more my code stops working... Here's my code: *Javascript* *<script> function validateComment() { var value = $("[id=commentbox]").val(); var word = value.toLowerCase(); // make sure …

Member Avatar for Troy III
0
2K
Member Avatar for gagan22

hi all, I want to use multiple select drop down box. I am using client, project and activity. These all values are coming from database. I want when i select one client from first drop down box .Then second drop down box will display only that project which come under …

Member Avatar for gumbiliki
0
253
Member Avatar for CaffeineCoder

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 …

Member Avatar for CaffeineCoder
0
287
Member Avatar for ramsiva

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 …

Member Avatar for Makara
0
319
Member Avatar for ramsiva

<?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 …

Member Avatar for diafol
0
549
Member Avatar for Priti_P

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) …

0
93
Member Avatar for AntonyRayan

Hi , How to validate Indian Mobile Number, in Javascript. that starts by 9 or 8or 7 containing 10 numbers without country number

Member Avatar for lps
0
88
Member Avatar for Prince_9

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

Member Avatar for Prince_9
0
299
Member Avatar for ramsiva

<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> …

Member Avatar for DaveAmour
0
118
Member Avatar for jovstudios

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 …

Member Avatar for Amit_27
0
9K
Member Avatar for Prince_9

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 …

Member Avatar for broj1
0
357
Member Avatar for ramsiva

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

Member Avatar for diafol
0
163

The End.