15,120 Topics

Member Avatar for
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
356
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
Member Avatar for Prog_1

i want to store input text box value into php variable without form submit and without using ajax,js,jquery etc., is it possible??

Member Avatar for jkon
0
207
Member Avatar for terrymold

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 …

Member Avatar for almostbob
0
164
Member Avatar for berserk

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

Member Avatar for diafol
0
2K
Member Avatar for mbarandao

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

Member Avatar for mbarandao
0
367
Member Avatar for mbarandao

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 …

Member Avatar for mbarandao
0
507
Member Avatar for berserk

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 …

0
156
Member Avatar for ramsiva

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 …

Member Avatar for JorgeM
0
128
Member Avatar for berserk

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

Member Avatar for berserk
0
580
Member Avatar for RudyM

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 …

Member Avatar for DaveAmour
0
224
Member Avatar for Nardeen

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 ?

0
78
Member Avatar for trig_1

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

0
159
Member Avatar for JohCarlo

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

0
98
Member Avatar for ramsiva

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

Member Avatar for ramsiva
0
309
Member Avatar for Omar_6

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 …

Member Avatar for JorgeM
0
167
Member Avatar for Bensirpent07

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

Member Avatar for Bensirpent07
0
197
Member Avatar for toplisek

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 …

0
117
Member Avatar for Draw

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

Member Avatar for Draw
0
262
Member Avatar for witakr

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 …

Member Avatar for almostbob
0
544
Member Avatar for boney

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 …

Member Avatar for diafol
0
169
Member Avatar for titas.datta

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 …

Member Avatar for titas.datta
0
14K
Member Avatar for PixelandtheWolf

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 …

Member Avatar for gentlemedia
0
153
Member Avatar for Sudhakar_1

The Timer displayed is 1 hr (HH:MM:SS) in decrement order. I have to display a pop out when 50 minutes complete after that remaining 10 minutes one pop up should display saying 10 minutes with 0 sec. After that for every 2 minutes the pop up appear showing 2 minutes …

0
67
Member Avatar for toplisek

I have set container like: <div class="container" ng-app="myApp" ng-controller="tagsCtrl"> <h3>Angular Tags List Editor - Autocomplete</h3> <div class="row"> <div class="col-md-7"> <div class="panel panel-default"> <div class="panel-heading"><h4><i class="fa fa-tag fa-lg"></i> Tags</h4></div> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <tag-manager tags="tags" autocomplete="allTags"></tag-manager> <hr> <h3>Current Tags</h3> <ul class="list-unstyled"> <li ng-repeat="tag in tags">{{tag}}</li> </ul> </div> </div> </div><!--/panel-body--> …

Member Avatar for toplisek
0
672
Member Avatar for pranab2302

hi, can you please help me in writeing a code in javascript which will eneble javascript in browser. The code need to be in java script. i am using a performante testing tool "gomez" which supports java scripts only. its really urgent. Thanx in Advance. :icon_smile:

Member Avatar for ps1990
0
712
Member Avatar for utsavjoshi95
Member Avatar for JorgeM
0
58
Member Avatar for utsavjoshi95
Member Avatar for toplisek

I have an isssue that INIT function works like enclosed example. Issue is that map should be placed or it returns an error. How to avoid this? 1. INIT function is not set due to ID: id="Googlemap_number1" How to do it? 2. INIT function should be executed only if there …

0
133
Member Avatar for toplisek

I have to change $ into jQuery due to conflict validation. Please find code. It seems an issue with the line that jQuery validation passes an error. how to solve this ? Line with an error: Manipulator.prototype.setupEvents = function() { var self = this; jQuery('#add').on('click', jQuery.proxy(self.onAddClick, self)); jQuery('#randomize').on('click', jQuery.proxy(self.onRandomize, self)); …

Member Avatar for toplisek
0
298

The End.