I am encountering an issue in processing Ajax-encoded URLs. I am querying a database (Solr) via an Ajax script, sending the output to a web page (served locally only on a localhost webserver on my home computer). When I click Ajax-generated links (URLs), they open in another browser tab, not the source web pa…
Tag: ajax
jquery – upload image file using ajax is not working
I want to submit my image via jquery and ajax , this is my code: just to add some explanation , when the use choose an image , the form submits immediately . it works fine and post the data to my php page , but it’s empty and has no data I put print_R($_POST) in my page and the
How to sent value from select box using Ajax?
I have a select box with two options “Approved/Disapproved”. I want the selected option to be sent over to a page ‘action_user_2.php’. Currently, it is sending information when clicking on …
i want to send a javascript prompt answer to my sql databse, is this possible or is there a better way to do this? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question currently have this code activated by a html button: i wanna send the valu…
VueJS v-bind property not updated immediately after AJAX
I have a table where each row corresponds to an event. Each event has a set of timeslots rendered as span elements and each timeslot is assigned the na class (with v-bind) only when its stopsales property is true The timeslots are fetched asynchronously from an ajax request (loadData). I call loadData to rend…
Provide a valid password before proceeding (Codeigniter)
Newbie here. I have a modal where staff can transfer fund to a client. Before transferring fund, the staff must input his/her password before proceeding to transaction. My goal is to have a WORKING FUNCTION about the password validation. I made a slightly working function. I have provided a video below for be…
How to display data in textbox from database MySQL based on selected option?
I have a table “tb_seri” in MySQL, with columns “id_seri”, “nm_seri” and “value_seri” So, I want to select “nm_seri” in the select option, and then “value_seri” will appear in the textbox afterwards based on “nm_seri” selected…
Ajax post requests 403 error only for some users?
I’ve been testing my site by having friends try it, and some friends get the 403 Forbidden error on any function using ajax. I’m confused why only some of them get the error, especially when everyone used the same browser. Does anyone know why? I’m using Django as a framework and I think I&#…
Need for modification of the javascript countdown code
Please i have a JavaScript countdown timer code that i got from stackoverflow that is a solution to my countdown timer project. this existing code counts down time from 30minutes down to 1 and start over again. and it gives the same count result to every user at the same time. But my challenge with the code i…
how to get the responseText from echo in php
I’m trying to return a value from PHP to JavaScript through responseText. The idea is if mysqli_num_rows($rslt) != 0, responseText = 1, or if mysqli_num_rows($rslt)= 0, to do an insert and responseText = 0, and then in JavaScript I get the responseText. How can I achieve that, because I tried with echo,…