15,698 Topics

Member Avatar for
Member Avatar for Aeonix

I made an API request using AJAX request, I received JSON, I tried my best to use JavaScript to parse it, but to no avail. Instead I used jQuery which made it as painless as 2 lines of code. Now I have JSON array translated into array-ish object in JavaScript. …

Member Avatar for Aeonix
0
404
Member Avatar for davy_yg

Hello, I am trying to create a picture gallery that can be sorted based on certain category. These are some examples or references on how to do it : http://isotope.metafizzy.co/sorting.html The only difference is that mine is using real picture instead of text which makes the sorting function does not …

Member Avatar for davy_yg
0
912
Member Avatar for gkumaravel

Hi, I want to run php function using jquery ajax, Task is i have two dropdown(html select) **Filter_by_class.php** <form action="filter.php" method="POST" id="filter_students_form"> <div class="field"> <label for="stud_class_filter" class="cbx-lbl lbl-width">Select Class</label> <span class="dbl-dote">:</span> <select name="studclass_filter" id="stud_class_filter"> <option value="">-- SELECT STUDENT CLASS --</option> <?php if ($getStudentClass = $db->query("SELECT * FROM classes")) { if …

0
183
Member Avatar for bflan

I tried the following ways of calculation and passing back to the form I made. The commented out function is the same, but handled differently and was my first attempt. function oneRepCal(wt,rp) { this.wt = parseFloat(document.ormCalc.wLift.value); this.rp = parseFloat(document.ormCalc.rComp.value); lifted = this.wt * this.rp; oneRepC = (lifted * .03333) + …

Member Avatar for bflan
0
229
Member Avatar for Lau_1

Hello, i had some problem with the below code. How to change the 'Click to Read More' and 'Click to Hide' function by just click 'Step' to show and hide? page.php <blockquote class="bigtext"> <p class="title"><b>Step 1</b><hr class="style1"></p> <p></p> <p></p> </blockquote> javascript <script> $(function(){ var animspeed = 950; // animation speed …

Member Avatar for diafol
0
355
Member Avatar for Kate_2

Help please? ineed to make a program. A program that calculates the average grade of the 3 quizzes taken by the student. Ask the user to enter his/her grades. The program should display the average grade

Member Avatar for diafol
-1
113
Member Avatar for joshmac

As it stands, the data elements are submitted to the database. But I need help figuring out two things: one, is how to show the new deptCode in the dropdown list of deptCodes and two, how can I clear the form after a successful submit? Below is the code that …

Member Avatar for diafol
0
308
Member Avatar for jchimz

This is my code to upload files with a progress bar. Problem is all three progress bars are listening for one file and not three different files. Please help me. $('.btnUpload').click(function(){ //submit all form $('form').submit(); }); $(document).on('submit','form',function(e){ e.preventDefault(); $form = $(this); uploadImage($form); }); function uploadImage($form) { alert("in"); $('.progress-bar') var formdata …

Member Avatar for diafol
0
189
Member Avatar for lewcris-17

I am using the ShieldUI jQuery grid component for a project of mine and wanted to apply some additional calculations on the data and display these results in the grid. Is there an easy way to do this with the component or is there something that I am missing?

Member Avatar for baker-thomas
1
58
Member Avatar for Swati_6

CakePHP has few immense tools for a PHP developer to turn out JavaScript utilities utilizing merely PHP. The JsHelper hold up the example, jquery UI. The Ajax Helper uses the forever-accepted Prototype & script libraries for Ajax process & client side results. [Click Here](http://www.phpandsql.com/how-to-use-ajax-in-cakephp/)

-1
76
Member Avatar for AntonyRayan

In javascript, I took the difference between twodates. When Finding difference between two dates for example 12.00.PM to 02.00.PM, I got output 2 But when I am finding difference between two dates like 12.00.PM to 01.30.PM, I got output like 1.5. So I want to show this 1.5 like 1 …

Member Avatar for diafol
0
65
Member Avatar for Aqeel_1

i have a music site where i used ajax with server side php to load pages dynamically to prevent reload. this function works with different directories that are contains pages and also uses hash to show pages urls but i have one issue and that is my back and forward …

Member Avatar for diafol
0
781
Member Avatar for davy_yg

Hello, Cek this website: http://www.akronyms.net/demo/arvin-html/v_1.3/ On the portfolio part. I am looking for a jquery that is exactly able to shuffle pictures like that. How? Thanks in advance.

Member Avatar for davy_yg
0
989
Member Avatar for bdanie

I have a code for countdown timer and it works perfectly fine.. <html> <title>project prelim</title> <head> <script type="text/javascript"> var ss = 10; function countdown() { ss = ss-1; if (ss<0) { window.location="testover.html"; } else { document.getElementById("countdown").innerHTML=ss; window.setTimeout("countdown()", 1000); } } </script> </head> <body onload="countdown()"> <center> <table width="100%" height="600px" style="text-align:center;"> <tr><td …

Member Avatar for bdanie
0
6K
Member Avatar for jchimz

I'm trying to change the code below to upload multiple files. Each with a seperate progress bar as shown below. Please help. ![snip.JPG](/attachments/large/4/e311263a0071b800273939069664b69b.JPG "align-center") <!DOCTYPE html> <html> <head> <script> function _(el){ return document.getElementById(el); } function uploadFile(){ var file = _("file1").files[0]; // alert(file.name+" | "+file.size+" | "+file.type); var formdata = new …

0
215
Member Avatar for doconline

I have an idea for a website which I have started here - [www.letsgetlunch.co.uk](http://www.letsgetlunch.co.uk). The front end if based on Google Maps with the usual suspects of HTML and jQuery, with PHP / MySQL as the backend. I am not sure if this is the best way for the site …

Member Avatar for diafol
0
167
Member Avatar for iamthwee

Hi guys, It gives me great pleasure to announce that I will be collaborating with fellow Daniwebber Veedeo in creating a fully baked, no nonsense CMS in Codeigniter. I will be overseeing the overall look and feel, PHP and jquery. I will need to discuss how the CMS is licensed …

Member Avatar for edbr
7
1K
Member Avatar for dandixon

Have this little countdown timer that counts down to 18:00 everyday and then resets as soon as it completes, the problems is I need to get it to work on the server time and not locally but I have no idea how? Let me know if you need to look …

Member Avatar for bdanie
0
606
Member Avatar for Sayam_1

I am newbie in ajax.i want to send a normal ajax request when i will click the search button.i write some code the search onclick function.. $(document).ready(function() { $("#Search").click(function() { $.ajax({ "dataType": 'json', "type": "POST", "url": "../test/loginform_details.do", "data": { username: $('#username').val().toString(), password: $('#password').val().toString(), }, "success": function(data) { fnCallback(data); } }); …

Member Avatar for gabrielcastillo
0
204
Member Avatar for Chris920

Im working with WordPress right now and this plugin - http://codecanyon.net/item/ultimate-player-with-youtube-vimeo-ads-wp-plugin/7316469 - I also have the jQuery version too. I have 20 categories on a page. Its tabs then when you click the tabs a new video player loads with a seperate video. The only issue is I have 20 …

Member Avatar for diafol
0
195
Member Avatar for solomon_13000

When I access call.php the variable name 'json' is not accessible to param.js as below: init.js $("document").ready(function(){ var data = { "action": "init" }; data = $(this).serialize() + "&" + $.param(data); var json; $.ajax({ type: "POST", dataType: "json", url: "response.php", //Relative or absolute path to response.php file data: data, success: …

Member Avatar for diafol
0
319
Member Avatar for Lau_1

Hello, I want to ask, what going on for this. I try to implement form, user key in the username, it will trigger the function to check the username is existing or not. I tried to figure out the problem, but dont know what's going on... My Js file, jQuery(document).ready(function() …

Member Avatar for diafol
0
251
Member Avatar for AntonyRayan

in onblur i called two different events; but its not working. First event only working. How to do? either in onBlur() or onFocus() Example: onblur="a();b();"

Member Avatar for diafol
0
87
Member Avatar for lithium112

For my angular controller I have: app.controller('AdminCtrl', function ($scope, $http) { $scope.data = { Name: '', Password: '' }, $scope.login = function (data) { $http({ method: 'POST', url: '/login/postlogin', data: JSON.stringify({ data: $scope.data }), contentType: "application/json", dataType: "json" }).success(function (data) { alert('success!'); }).error(function (error) { alert(error.message); }) } }); For …

Member Avatar for lithium112
0
225
Member Avatar for Soumya_1

I have a form that need user verifaction from ldap before being submitted. I have an ajax code for the same, to get the value of the field onchange and query ldap so that it returns the name and email id. My code is as below : <input type="text" name="Admin_name" …

Member Avatar for diafol
0
985
Member Avatar for fheppell

I have this function: function (Blobs) { console.log(JSON.stringify(Blobs)); // Make the progress bar here Blobs.forEach(function(Blob) { console.log(Blob); $.post(window.location.href + '/add', Blob); // Increment the progress bar by the correct amount, once above request has completed }); } (This function is passed as an argument, hence no name) I want a …

Member Avatar for fheppell
0
1K
Member Avatar for Mushfik

Hi. Below is the code which parse data from mysql into json, but for the name column i want to have <a href="http://example.com">column name</a> instead of jst the column 'name'. is it possible in any ways. <?php $link = mysql_pconnect("localhost", "user", "pass") or die("Could not connect"); mysql_select_db("userdb") or die("Could not …

Member Avatar for diafol
0
360
Member Avatar for solomon_13000

I have this codes in a php file (init_js.php): <script> <?php $idx = $_GET['id']; $APP_WEB_PATH = APP_WEB_PATH; ?> var idx = '<?=$idx?>'; var APP_WEB_PATH = '<?=$APP_WEB_PATH?>'; </script> Then I import this file to a php page (branch.php). When I view source I can see var idx = '7'; var APP_WEB_PATH …

Member Avatar for solomon_13000
0
121
Member Avatar for hrushi9

how to get information of clients PC:- motherboard, processor , hard disk, Mac Address details using PHP/Javascript/jQuery? I have php/mysql website which require hardware lock.

Member Avatar for rtrethewey
0
99
Member Avatar for solomon_13000

The following codes can be found in my javascript file (code.js): function addBranch(path, id){ //Click "Cancel" button return to Restaurant Manager Page $("input[name=btCancel]").click(function(){ window.location.href = path + '/branch_manager.php?id=' + id }); } The following codes can be found in my php file (test.php): <script src="<?php echo APP_WEB_PATH; ?>/js/jquery-1.11.1.min.js" type="text/javascript"></script> <script …

Member Avatar for solomon_13000
0
234

The End.