218 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Priti_P

Hello, Sorry,This may be a silly question : How to assign ajax return value to javascript array? for example what I want is, I have declared an array in javascript as `all_skills = new Array();` and after that called ajax call in which I want to save the return value …

Member Avatar for Dani
0
12K
Member Avatar for amby

Hi, I have to pass string entered in the input text to server method calling through jquery ajax. But its not going through. can please somebody tell me what i m doing wrong here. Below is the code: [CODE]$.ajaxSetup({ cache: false //timeout: 1000000 }); function concatObject(obj) { strArray = []; …

Member Avatar for anand9796
0
9K
Member Avatar for aveeva7

I have predefined value like shipping_weight = 10$, my form consisting two dropdown list, if the dropdown selected based on the selection how to return my ajax value, Index.php : <tr> <th>I have : </th> <td> <select id="old" name="i_have"> <option value = "select_option">Select Option</option> <option value = "three_compact">3 Compact</option> <option …

0
2K
Member Avatar for tun712

Need help to scroll when mouse wheel is used. Scroll Up or Down as per mouse action. I'm trying to create `moveDown()` & ` moveUp()` function, to scroll according mouse wheel action On scroll, remove class of current div :- `.active` and add class :- `.active` to scrolled div(div in …

Member Avatar for gentlemedia
0
4K
Member Avatar for ariowishnu

inside mysql db which is table employe in coloumn *id_employee*, some data have a leading zero, etc : **id_employee : 0378192918 empy_name : Daniweb** i need to get id_employee for delete employe in my aplication, then i using ajax method like this : if(id) { alert(id); $("#deleteBtn").unbind('click').bind('click',function(){ $.ajax({ url: 'pegawai/delpeg.php', …

Member Avatar for ariowishnu
0
4K
Member Avatar for tun712

I need some help to add few audio effects to website. I found some examples like following, audioOn: true audio.muted = false setAudioOn true ref: "audio", attrs: { "id": "projects-audio" } }, [_c('source', { attrs: { "src": "/audio/click.mp3" } playAudio: function playAudio() { this.$parent.$refs.clickAudio.volume = 0.8; this.$parent.$refs.clickAudio.play(); }, I need …

Member Avatar for tun712
0
3K
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
489
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
649
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 patk570

Hey everyone, this code below is giving me a weird error, Script 438: Object doesn't support property or method 'ajax'. I am testing this in Microsoft Edge, but...I have a website that uses this exact same code, and its working like normal. I am getting the `var id` to load …

Member Avatar for patk570
0
5K
Member Avatar for Var_1

Hi all, I had created a function updateprintingqc() that work like this 1. user will click on a clickable button to update the data 2.when user click on OK,the dummy data will be create based on the main data shown in below image's link https://drive.google.com/file/d/0B46VQHVMeBTNMzVodDRxZEw3dGs/view?usp=sharing When the user click the …

Member Avatar for arunmagar
0
2K
Member Avatar for KaleBeatroot

Hello every One i have been trying this for a day but can't able to find out what i am doing wrong? Here Class proxy function which gives me access token and refresh token after user enter it's username and password by ajax request i send request to controller where …

Member Avatar for KaleBeatroot
0
3K
Member Avatar for Amr_3

I am creating a web service to interact with a database and it is supposed to perform the CRUD operations. Right now it works fine with the read and post operation the WCF service supposed to have a method that is called from within jQuery whenever the page completes load …

Member Avatar for Amr_3
0
293
Member Avatar for TheFearful

Hey everyone, I have a question. I created a page that pop-ups when a user clicks a link and that page displays a table of the information that it pulls from the database that I have created. I want to be able to have a user click an update button …

Member Avatar for TheFearful
0
347
Member Avatar for TheFearful

Hey everyone, I am trying to use JQuery to help me load a page on my page so that the user does not have to refresh or move to a new page. So far, I have the code so that the next page's contents will display, but the update button …

Member Avatar for hielo
0
532
Member Avatar for AntonyRayan

Hi, I need your help to plot multiple locations from mysql table using latitude and longitude and I want to display a particular location in different color using google map or any other

0
122
Member Avatar for RikTelner

`l(x)` is my shortcut to `console.log(x)`. `item.php` has text "EYES!!", just that. var session = $.get("item.php", function(data) { session = data; }) l(session); // *all XHR flags in an object, responseText ("EYES!!"), status (200) etc. $.get("item.php", function(data) { session = data; }) l(session); // undefined $.get("item.php", function(data) { l(data) }) …

Member Avatar for stbuchok
0
201
Member Avatar for Lau_1

Hello, i not sure what is the problem with my code. Below is my code. <?php if(isset($_SESSION["products"]) && count($_SESSION["products"])>0){ $total = 0; foreach($_SESSION["products"] as $product){ $product_name = $product["name"]; $product_price = $product["price"]; $product_code = $product["product_code"]; $product_qty = $product["product_qty"]; $currency = "RM "; $img = mysqli_query($link, "SELECT img FROM internet_shop where id=$product_code"); …

0
222
Member Avatar for rpv_sen

Hi I am trying to update the ON / OFF status through the below code. If i change the OFF status to ON, its getting a value is OFF. can any one please help to fix the issue. **toggle.php** <div id="setQuickVar1"> <input type="checkbox" data-switchery <?php if($SCYQ64EV01=='Y') echo 'checked'; ?> /> …

Member Avatar for rpv_sen
0
9K
Member Avatar for James_43

Hi all, I'm having some serious issues with AJAX forms. I'm currently using jQuery 2.2.0 and the jQuery Form plugin. I have a simple php file: <?php if(isset($_POST)): print_r(json_encode($_POST)); endif; ?> I have a simple html form: <form method="post" id="regform"> <input id="login_name" name="login_name" type="text" > <input id="login_password" name="login_password" type="text" > …

Member Avatar for James_43
0
231
Member Avatar for toxicandy

I have a page running scrolling nav bootstrap theme which essentially means for me that I have multiple forms on one page. The problem I am having is whenever someone submits any of the 3 forms it sends data from all forms on the page. The code is below, I …

Member Avatar for toxicandy
0
398
Member Avatar for shany0786

this is js code i am calling "is_loggedin" from ajax in php folder in login.php but it always gives undefined index action $(document).ready(function(){ $('.carousel').carousel({ pause: "false" }); }); $("#loginId").click(function(){ $("#modalLoginId").modal("show"); }); $("#registerId").click(function(){ $("#modalRegisterId").modal("show"); }); $("#login-btn").click(function () { var loginpasswordJSON = JSON.stringify({ "username": $('#login_username').val(), "password": $('#login_password').val(), }); alert(loginpasswordJSON); console.log ("Login Started"); …

Member Avatar for diafol
0
490
Member Avatar for toxicandy

Hi all, I have been using this tutorial: [bootply.com](http://www.bootply.com/lxa0FF9yhw) and I almost have it working, the problem is that my table is generated VIA AJAX from a php file. Basically I see my table but no working pagination unless I open chrome web tools and go to console and paste …

Member Avatar for diafol
0
305
Member Avatar for abhi10kumar

I am new in Symfony2. I am trying to get result from a drop-down using ajax and symfony; I did all the settings as it is which is mentioned in the documentation provided. But I am getting **POST http://localhost/docCMS/web/app_dev.php/getclientaddress/13 500 Internal Server Error** DefaultController.php /** * @Route("/getclientaddress/{id}", name="get_client_address", options={"expose"=true}) * …

0
134
Member Avatar for SimonIoa

Hello i want to calculate three parameters. one X two X three = Y The one is the value of a <input type="number"> the second is default the value '1' and the third is the count of this $sql = "SELECT uid, username, name, profile_pic FROM users"; $result = mysqli_query($db,$sql) …

Member Avatar for SimonIoa
0
707
Member Avatar for anmol.raghuvanshi1

I need some guidance in this I have registration form in which there will be button clicking on which open a new form without refreshing a page and again clicking on same button hides form it's user will to fill that form.Here is snapshot what i actually want.I want to …

Member Avatar for diafol
0
4K
Member Avatar for anmol.raghuvanshi1

I am following this[ tutorial](http://carlofontanos.com/ajax-multi-file-upload-in-codeigniter/) but i am facing problem in uploading file i done similar as in tutorial.Below is my code Code: <?php echo form_open_multipart('upload/do_upload', array('class' => 'upload-image-form'));?> <div class="form-inline"> <div class="form-group"> <input type="file" name="uploadfile[]" id="js-upload-files" multiple = "multiple" accept = "image/*"> <br /> </div> <button type="submit" value="upload" class="btn …

0
119
Member Avatar for rpv_sen

Hi friends i am trying to display dynamic dropdown using php. but it is not fetching the second dropdown value. I collected the below code from internet. please help me to fix it. <?php $dbc = mysqli_connect("localhost","root","escape123","tsheet"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " …

Member Avatar for rpv_sen
0
373
Member Avatar for berserk

I am having no luck with this code but for some reason i can get this element to work but not the other one. here is my code. <td><a onclick="javascript:approve_account_function(<?php echo $row['id'];?>, <?php echo $rownumber;?>)" class="btn btn-success" name="yes_account" id="yes_account">Approve</a></td> <td><a onclick="javascript:decline_account_function(<?php echo $row['id'];?>, <?php echo $rownumber;?>)" class="btn btn-danger" name="no_account" id="no_account">Decline</a></td> …

Member Avatar for bnmng
0
475
Member Avatar for nadiam

Hi. Im trying to update a page with a form using AJAX but it isn't working. Nothing happens. I have a table and one of the columns has an anchor tag like this`<td><a href='#' value='$name' class='request' onclick='request(".$name.")'>$status</a></td>` so when the user clicks on Request a form opens up via ajax. …

Member Avatar for nadiam
0
376

The End.