15,700 Topics

Member Avatar for
Member Avatar for faisal6621

I've this code for my AJAX script $(document).ready(function() { $("#submit").click(function(){ var acc = $("#accountNumber").val(); src = "pass.php"; $.ajax({ url: src, data: 'action=account&type=viewDetail&accNo='+acc, cache: false, type:'GET', success: function(data, textStatus, XMLHttpRequest){ if(data!=0) { // alert(data); $("#userInfo").html(""); $("#userInfo").css("display","block"); $("#userInfo").append(data); }else { $("#userInfo").html(''); $("#userInfo").append('<span class="alert-red alert-icon">Please Enter correct Account Number.</span>'); $("#userInfo").css("display","block"); } }, error:function(XMLHttpRequest, …

Member Avatar for Hoven_1
0
3K
Member Avatar for coleguitajuan

Dear Sirs, I have this code to populate a text field: <script type="text/javascript"> window.onload=function() { if (document.getElementById("country")) { document.getElementById("country").onchange=function() { switchme(this); } } } function switchme(SNewSel) { var ind = SNewSel.selectedIndex; var txt = document.getElementById('country_code'); switch (ind) { case 1: txt.value = "+93"; break; case 2: txt.value = "+358"; break; …

0
204
Member Avatar for Hamsterking

hello hope you all are going well, so my vacation is comming and i was wondering whta if i did a big project or small project, how hard is it to make my own multivendor website like amazon, i would like to do everything like the code in php, the …

Member Avatar for overwraith
0
591
Member Avatar for coleguitajuan

Dear Sirs, The below script is working fine on IE but notin Mozilla, could anyone help on this to be working on Mozilla as well? [CODE]<script type="text/javascript"> window.onload=function() { if (document.getElementById) { document.getElementById("country").onchange=function() { switchme(this); } } } function switchme(SNewSel) { var ind = SNewSel.selectedIndex; var txt = document.getElementById('country_code'); switch …

Member Avatar for coleguitajuan
0
1K
Member Avatar for Hajar_1

Hello everyone , well am using a script with javascript that gives me some values , that i decided storing in a var JSON : {"user_IP":"192.168.*.**","page_name":"Nous suivre","path_name":"/test/suiv.html","nbre_visites":"3"} //var s=JSON.stringify(cookieso); //document.getElementById("affichage").innerHTML = s; the thing , is that i wish i could store directly on my database : P.S i m …

Member Avatar for overwraith
0
406
Member Avatar for Nurul_3

Hello .Im a final year student in bachelor of science computer in web technology. I need your suggestion for my final year project title.Do you have any related ideas?

Member Avatar for happygeek
0
698
Member Avatar for Jon_7

I have 3 tabs on this page http://fiftyallstars.com/tabs.html that I'm trying to target with 3 distinct direct links. Is it possible to have a script read an appended URL to remove/add the necessary active class to achieve the results I'm attempting to achieve. Any other suggestions would be great as …

Member Avatar for jstfsklh211
0
388
Member Avatar for Mati_1

I have some html tables on the page, and some checkboxes whose values to be highlighted on the assigned table. The example code can be seen here : https://jsfiddle.net/9kq5djwr/ What I need to do is only the assigned table values to be highlighted by that specific checkbox group. So when …

Member Avatar for jstfsklh211
0
396
Member Avatar for Aravinth_1

Practical Test JSON FILE products.json Discount Details Vendor TRADE A TRADE B TRADE C TRADE D Vendor 1 29 25 22 N/A Vendor 2 22 25 N/A 12 Vendor 3 12 25 3 56 Vendor 4 12 N/A 34 12 Vendor 5 N/A 15 N/A 12 Products List # Product …

Member Avatar for Reverend Jim
0
503
Member Avatar for Aravinth_1

i need to get row details from the table by clicking the add button....and display in the web

0
218
Member Avatar for overwraith

I need some help building a bootstrap Angular UI modal. This is what I have so far, but I am pretty sure it is wrong. Any assistance would be good. This actually appears to be doing mostly bootstrap stuff. It was originally jquery, but I figured out the hard way …

Member Avatar for overwraith
0
802
Member Avatar for Akinjide

I'm developing an online shopping website using HTML, CSS and Bootstrap. I just got stuck. * How do I create a responsive shopping cart that adds up all the shopping items/products and gives a full details and total price of items bought at checkout? * How do I access the …

Member Avatar for Akinjide
0
470
Member Avatar for Isabella_2

Hey guys, Myriad Festival is coming to Brisbane next week and heaps of tech experts both local and international will be speaking there! It's my first time going to an event like this and I'm super excited to hear the industry mentors speak so I thought I'd let you all …

0
227
Member Avatar for jmvazq

I am currently experiencing something strange with one of my routes' responses and haven't been able to find any information elsewhere. So, let's say I make a call to a route in my controller with JQuery, like this. It's a POST action and I expect JSON data. // Send the …

Member Avatar for pty
1
409
Member Avatar for Tan_2

I have the following code where I can get the field names from a table in a select box. How can I display the contents of a field when it is selected. Thanks! <?php $host = 'localhost'; $port = '3306'; $server = $host . ':' . $port; $user = 'root'; …

0
201
Member Avatar for davy_yg

Hello, I am trying to follow the following tutorials: https://www.w3schools.com/angular/angular_tables.asp <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr> </table> </div> <script> var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $http) { $http.get("customers.php") .then(function (response) {$scope.names = response.data.records;}); }); </script> It produces a customer table. …

Member Avatar for jstfsklh211
0
291
Member Avatar for Owusu_1

Hi, I've designed a voting system in PHP that when a user clucks on the vote button it echo a message and a link to view the result. I want to move this message and the link to a popup window

Member Avatar for Bachu
1
603
Member Avatar for davy_yg

Hello, I have been experimenting with Fusion Chart. I have been following this tutorial: https://www.fusioncharts.com/dev/chart-guide/getting-started/using-xml-as-data-format and trying to take the chart data from xml yet it does not works. bar_chart_xml.html <html> <head> <!--<script src="angularjs-plugin/wrappers/angularjs/angular-fusioncharts.min.js"></script> <script src="angular.js"></script> --> <script type="text/javascript" src="fusioncharts/js/fusioncharts.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript" src="fusioncharts/js/themes/fusioncharts.theme.fint.js"></script> <script type="text/javascript"> FusionCharts.ready( function …

Member Avatar for Dani
0
945
Member Avatar for Mati_1

I'd like to get all of a mysql table's col names in a select box, and display the selected column name in a table. I just want to select one column at a time to display it in a single column table. I am assuming this can be done with …

0
454
Member Avatar for xrjf

Here I present a WebSite containing just Default.aspx. Current snippet code has to do with coloring text in an input field of a web page. The input field is an editable DIV HTML element. While the user writes, there is a partial post (an XMLHttpRequest) to the server. Then the …

0
316
Member Avatar for Mr.M

Hi Guys. I'm having a serious problem that is holding me back. I have a file which is a user dashboard and this file gets data from another php script file which is called by a user login screen when a user clicks login. The file verify the credentials then …

Member Avatar for Daniel_87
0
23K
Member Avatar for davy_yg

Hello, I am trying to create a bar chart with angular. I am following the following guidance: https://www.fusioncharts.com/angularjs-charts/ I wonder why it does not works. I only see a blank screen when running bar_chart.html bar_chart.html <html> <head> <script src="barchart_data.js"></script> <script src="angular-fusioncharts.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body> <div ng-app="myApp">...</div> <div ng-controller="MyController"> <div …

0
506
Member Avatar for davy_yg

program1.php <html> <header> <script> function myFunction(p1, p2) { return p1 * p2; } document.getElementById("demo").innerHTML = myFunction(4, 3); </script> </header> <body> <div id="demo"></div> </body> </html> I don't understand why the above code does not show any value? and why this one does? program2.php <html> <body> <div id="demo"></div> <script> function myFunction(p1, p2) …

Member Avatar for ryantroop
0
461
Member Avatar for Misty_3

Hi, I am trying to get these fields to highlight when clicked: 'search conducted', 'contraband', and 'arrest result of stop'. I have tried with Dreamweaver CC, but the particular thing I'm trying to do just won't work. Thanks in advance!

Member Avatar for BinaryDigit
0
198
Member Avatar for Amit_54

Var oldData = [ [ 2018-04-01, 10] , [ 2018-04-02, 20] , [2018-04-03, 30] ]; Var NewData = [ [ 2018-03-30, 5], [2018-03-31, 6], [2018-04-01, 22] ]; Output = [ 2018-03-30, null, 5], [2018-03-31,null, 6], [2018-04-01, 10, 22] , [2018-04-02, 20, null] , [2018-04-03, 30 null ] ] COuld you …

Member Avatar for alan.davies
0
307
Member Avatar for Mr.M

Hi DW. I'm trying to post data without refreshing the page using the ajax, and its works fine the problem is that on the response I also get the array data that I posted to my php file then at the end of response is the returned data which is …

Member Avatar for Mr.M
0
492
Member Avatar for davy_yg

How to create a button that redirect to certain location in a website which is still on the same page?

Member Avatar for Daniel_87
0
520
Member Avatar for divinity02

hi all I am doing a form where i have to validate the email, all of the other control is working just the way it is supposed to work but I have been trying to validate the email for the longest while and it is not working properly or better …

Member Avatar for pty
0
287
Member Avatar for Sebastiano

Hi all, I'm trying to make a Facebook login for a website, which also stores users' data who log in. In order to do this, I do have an index.php <script> // This is called with the results from from FB.getLoginStatus(). function statusChangeCallback(response) { console.log('statusChangeCallback'); console.log(response); // The response object …

Member Avatar for Sebastiano
0
978
Member Avatar for Ashley_16

This is my code, which changes by frame, I need to do a scoring system, but when I used the following code to add a score it works fine for the first 2 frames then doubles and by the end it's like 229. Thank you for any help. Score; var …

0
253
Member Avatar for Syed_18

Hi I have problem that cannot show form validation errors in view . I am using ajax to post data to controller. Here is my Controller's Validation part private function _validate() { $this->form_validation->set_rules('Name', 'Name', 'required|alpha'); $this->form_validation->set_rules('CellNo', 'CellNo', 'required|numeric'); $this->form_validation->set_rules('Address', 'Address', 'required'); $this->form_validation->set_rules('Rate', 'Rate', 'required|numeric'); $this->form_validation->set_rules('Advance', 'Advance', 'required|numeric'); $this->form_validation->set_rules('BottlesQty', 'BottlesQty', 'required|numeric'); …

0
366
Member Avatar for nishto

I want to fetch invoice data from two tables table a is in single row and table b data should be multiple rows single data is fetching correctly but facing problem with table 2 multiple data fetch. php file <?php $connection= mysqli_connect("localhost","root","","invoice"); $invID = $_POST['ID']; $Invo = "SELECT a.in_no, a.client, …

Member Avatar for Dascal_1
0
1K
Member Avatar for Mike_51

I know this question is a lot easier than it seems, but I can't seem to get around it. This is my current code and I cannot get it to properly check if the SSN number is in a proper format or not. It just says all is false. This …

Member Avatar for john_111
0
472
Member Avatar for aqqa

can i perform biometric process in php language if this is possible ,please give me some suggestion,.. if this is not possible then tell me how integrete c# or java biometric module in php

Member Avatar for ryantroop
0
270
Member Avatar for janicemurby

hi ive done a piece of code for if select a region the postcodes pop up for that region all works on a seperate file but if i put on my working script it doesnt work any help would be much appreciated here is test code <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for AndrisP
0
364
Member Avatar for Jon_7

I have a yearly curriculum for my basketball workouts that I'd like to display online. I've created 53 unique workouts for each day of the week that include the main focus for the day, 6 drills, a quote, and a motivational story. I know I'd need a [datepicker](https://jqueryui.com/datepicker/) to accomplish …

Member Avatar for Jon_7
0
717
Member Avatar for Syed_18

Hi This question or similar were 4 years ago has already been asked but in my situation did not help. I have codeigniter project. in my employee database I have TINYINT field status. if 1 employee is active otherwise inactive. my form is in bootstrap modal. here is switch button …

0
336
Member Avatar for Kang_1
Member Avatar for Anthony_22

i have been trying to upload image files in to my database but i failed in many ways, the form saves everything except the image files. i am not sure if its the php or the java or the html page, honestly i lost my path. i have included all …

Member Avatar for ryantroop
0
655
Member Avatar for alex910TN

Hi guys, I am trying to implement my first carousel on my website. I have 5 images with the same dimensions with the following HTML markup: <div id="myCarousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> <li data-target="#myCarousel" data-slide-to="3"></li> <li data-target="#myCarousel" data-slide-to="4"></li> <li data-target="#myCarousel" …

Member Avatar for Abdullah_19
0
46K
Member Avatar for davy_yg

Hello, I have a question: is it possible to modify this jquery script? https://www.jqueryscript.net/demo/Tiny-jQuery-Plugin-To-Create-Water-Ripple-Effect-Ripple/ I need the water effect only appears on certain place on the website and the ripple effect must appears repeatedly on one particular place. Here is the code for ripple effect: I wonder what to add …

0
409
Member Avatar for Jon_14

Hi, I have a shortcode in WordPress that returns a number for a user. I'd like to be able to sum multiple returns of this number for different users. So it would basically do; [shortcode answer 1]+[shortcode answer 2]+[shortcode answer 3]......... Can any one let me know if this is …

0
142
Member Avatar for Med_2

I have this code that automatic calculate's the total quantity of the two textbox. The problem is it only works on the first row and first modal of the table when i try to click and enter values on the second row with the modal it doesnt work anymore. ![sample.png](/attachments/large/4/df4a066ffa07efde39e7e9df4be57db9.png …

Member Avatar for urtrivedi
0
282
Member Avatar for Ritesh_8

Hi I am working on a payroll project and I am coding with php,html,js and mysql on xampp server. I have a salary sheet code which needs to be printed in pdf format for each employee with their names as the pdf filename. on running the php page the js …

Member Avatar for urtrivedi
0
7K
Member Avatar for chamki

Hello, Can someone help me in developing my coding skills. I wrote code factorial. I see different logic at different places but no where I found the one that I wrote. Please tell me if there is anything worng in the below javascript code.var btn = document.querySelector('button'); btn.onclick = function(){ …

Member Avatar for Reverend Jim
0
234
Member Avatar for niranga

Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt …

Member Avatar for Mukul_2
0
13K
Member Avatar for jkon

Let me give you the context. We are a small company 5 persons , two owners and we do have a variety of interests. But to be honest the money flow comes from eshops , there we developed our own platform in PHP in a way that could be in …

Member Avatar for jkon
0
424
Member Avatar for patk570

Hey everyone, I have a JSON array that pulls data, its an immense amount of data that i use. It is a multilevel array eg: dateTime: 2018-12-04T10:30:45:222z comments:"" +Driver[0] [0] fname: John lname: Doe driverCode: DOEJ [1] fname: Mary lname: Smith driverCode: SMIMA more info etc I am trying to …

Member Avatar for ndeniche
0
3K
Member Avatar for patk570

I have a code that pulls a JSON response, and I need to compare times from now() and a previous when the timestamp was created. I am able to pull the info and have it display. However, when i try and get the comparison to work it just sits there …

Member Avatar for jkon
0
396
Member Avatar for Mati_1

I have this code which I want to use but its color switching function doesn't work the way I want. Once I highlighted the target cells with one color, I also would like to highlight again with a different color without changing the color of the previously highlighted cells. Can …

0
207

The End.