Tagged Questions
0
votes
1answer
13 views
How do you get Javascript to see tinyint(1) data pulled via AJAX request as boolean?
I am having a problem and after hours of searching for answers and playing around with it I cannot get it to work.
My problem. I have a MYSQL database. When I pull my "boolean" data from the database ...
1
vote
1answer
18 views
add search ajax ability to this html form
I am stuck trying to add some ajax search ability to this php form. The form is already working but since I have many outputs, I want users to be able to search and select a profile from there. I ...
0
votes
2answers
40 views
Ajax doesn't change my $_SESSION variable
I have main.php page with a $_SESSION variable, i call ajax to modify this var, on the ajax the $_SESSION var changes but when I check it on my main.php it didn't.
I have session_start(); on each and ...
0
votes
1answer
26 views
javascript adding/deleting to/from text file
I'm trying to use jquery, ajax and PHP to add characters to a text file. The POST ajax call returns successful, but the PHP function is not executed. Does anyone see my error? Workaround?
...
-3
votes
0answers
40 views
JQuery Ajax $.get request not working in IE [on hold]
Hi I have this code that populates two lists
the lists are populated using Jquery ajax call or functions
<script type="text/javascript">
$(document).ready(function () {
...
0
votes
1answer
48 views
How to send JavaScript array using AJAX to PHP?
I make a fucntion in html when I call function(click button) is to send array(json from) but it's not work, Help me to solve this a problem please! thank you everyone. :)
html
<?
$arrs = ...
1
vote
1answer
27 views
Simple success/error return with ajax and php
Just starting to learn about ajax although I am running into trouble trying to return a success message in an array.
<script type="text/javascript">
$(function () {
$('#delete').on('click', ...
0
votes
1answer
26 views
Random jQuery Ajax calls inconsistently fail
Using jQuery, I take form submissions and run them as AJAX requests instead. Generally, this has worked extremely well and been a robust solution. But one of my clients seems to be having certain ...
0
votes
3answers
41 views
AJAX - Button Submit to update a form
I'm attempting to learn to make use of AJAX. I removed most of the complexity of the program to just isolate the problem I'm having. So I have a text area and beneath that a div that has "STATUS" ...
-3
votes
0answers
30 views
PDO + PHP + AJAX proper implementation [on hold]
I had asked a question a question here and was asked by @MonkeyZeus to repost the results since I apparently did a good job with it.
include '../../config.php';
include ROOT_DIR . ...
1
vote
3answers
27 views
AJAX Multiple Forms With Same Submit/Click Function
I've got multiple forms (that are similar) that are passed using Ajax to appended a PHP page using this code below. However, when I click the first or second form, it only sends the data from the ...
0
votes
3answers
27 views
Javascript obfuscate AJAX code
First of all sorry if the name of the topic isn't the most correct.
Imagine the following code which connects to a PHP file by AJAX.
function get_locales(){
var the_locale = ...
-1
votes
2answers
37 views
Best way to paginate query result without GET method PHP
What is the the best way to paginate mysql results without refresh the page?
I'm using ajax to connect my html file to php. The php file has the query and i want to paginate the result.
I'm ...
0
votes
0answers
20 views
Loading a wp_editor () via AJAX doesn't work correctly
I have a problem with loading a wp_editor via AJAX jQuery into post_type page. I have removed the classic wp_editor and I want add my wp_edtior via AJAX.
Here is my code:
// MY PHP CODE
...
0
votes
1answer
20 views
Paginate query result with PHP and AJAX
I have a filter form in my html that send data to php via ajax to mount a query.
I want to paginate the results from my query. what is the best way to do it?
you can check the site here (click ...
1
vote
2answers
45 views
AJAX update MYSQL database using function called from HTML generated from PHP
I have a php page generating and displaying a table. for the last row in the table i want to display an image with an 'onclick' function attached. this will send the username for the selected row to a ...
0
votes
1answer
35 views
how to parse the contents of a particular row of a html table into array
I need to pass a one of these row contents of features-table to an array. But the problem is I used an iframe to display the table. And I need it to happen when after clicking the image of particular ...
0
votes
1answer
29 views
Paginate query result with AJAX and PHP
I have a fully working pagination with get method. I get the results from my query and the page is changed when the variable pagination changes on URL. I recently changed the site to ajax and now I ...
0
votes
1answer
20 views
jQuery Mobile populate listview with PHP + AJAX
I'm trying to populate a listview of jQueryMobile with contents from PHP side.
load_info.php file have the following code:
if(isset($_GET['type'])){
switch($_GET['type']){
case 'locale': ...
1
vote
3answers
38 views
How should i remove printer image on print?
I am printing receipt using following code,but when i click print even printer image is shown in preview and print.My code is
<button onclick="myFunction()">
<div ...
-5
votes
0answers
33 views
Update Content With Ajax And Ajax Auto Refresh Div [on hold]
I'm developing a web page and would like to add Ajax post option in the index page...
i.e when the user submit the post it will store in the database and display the content below the post form ...
0
votes
1answer
47 views
Editing a row using an Ajax request
Here I have shown 4 files I am using to edit rows of table by taking data from the database.
First file is DataAdministration.php. when loading this file #Loading_Page7 should be shown and after ...
-3
votes
1answer
22 views
Upload files using jQuery Ajax to PHP
HTML:
<form id="upload" method="post" enctype="multipart/form-data">
<input type="file" name="file" id="file"><br>
<input type="submit" id="upload_button" ...
0
votes
8answers
66 views
How to get the ajax response from success and assign it in a variable using jQuery?
Hello guys I have a problem in getting the response from my ajax. If I display it in the console. I can view it. But How do I assign it in a variable?
Here's what I have.
In my PHP code I have this
...
0
votes
0answers
49 views
PHP works with XAMMP locally, but not “live” online
I am taking a class in AJAX. I have been testing the following files using an XAMPP portable server on my flash drive, and they work no problem locally. When I post them to my class server they do ...
0
votes
2answers
40 views
ajax response on another domain
I have specific scenario to work with, It will be interesting and helpful to many developers, I have js file and a php file, In js file i code AJAX, using http request that send parameters to php file ...
0
votes
4answers
42 views
send data to MySQL with AJAX + jQuery + PHP
I've been looking all day to find a way to insert some data into my database and then show the new data in the list of already existent data on my webpage.
I know that some of the points I can't get ...
0
votes
0answers
24 views
WordPress - Passing Javascript Variable Back to Function in Functions.php
Situation: I need to use a jQuery facial detection kit (already have it) to grab each thumbnail image as it is pulled from within the loop, detect the face coordinates and dimensions, and crop the ...
0
votes
0answers
30 views
sending javascript global variables after being modified in function call [duplicate]
I have a global javascript array and I make a function call that makes other function calls. In displaySearch() im supposed to push information into the array that gets return by an API call. Stuff ...
-2
votes
3answers
45 views
how to use ajax to call a php and return a result
I have a code in php where onclick i will call a javascript. but i dont know how to use the ajax and pass the value to php and return it.
<script>
function getURL(e)
{
//ajax ...
0
votes
0answers
24 views
Using Codeigniter's Upload Library with Uploadify (Uploadifive)
I have an upload "document" form that I had running as it should through the normal Codeigniter upload library. However, I need this to work as a Ajax call. I have an Uploadifive (which I purchased), ...
1
vote
0answers
20 views
Jquery downoad file with progress bar from other server to my server
I finished my game script for install (copy) and play game from mochimedia and other game server to my server from json or xml feed.
But I'm not satisfied.
I want to make script more much simpler ...
0
votes
3answers
44 views
Save a form with ajax and php
How can I pass any $_Post[''] with ajax to the php function, when the form is submitted?
The function is working with AJAX but it can't receive the post's values.
I tested and the alert return null.
...
0
votes
2answers
43 views
How to fetch the top comments?
I've searched everywhere else, but I could not find any reference or tutorials that shows you or explain a best way to show top comments (like the one on facebook, or youtube).
I have accomplished ...
0
votes
0answers
22 views
Flicker changing CSS with ajax
i have a datetime.php
which contains
$hourdiff = 7; // Replace the with your timezone difference
$hour = date("H",time() + ($hourdiff * 3600));
$min = date("i",time() + ($hourdiff * 3600));
$day = ...
-1
votes
0answers
23 views
How does top comment in facebook or youtube works? [on hold]
How can I make comments like on stackoverflow?
What I mean more specificly, I use php/mysql how would I add a comment without reloading the page, I know this is a simple process of using AJAX but ...
1
vote
1answer
18 views
send text from ckeditor with Ajax and show in page
I'm using ckeditor in a footer and trying to write a code that when user is typing a word in the ckeditor, the text appear in another div;
so, I wrote this code:
jQuery:
$('textarea').ckeditor( ...
-1
votes
2answers
34 views
Access php variable using javascript
Hi I struggling to find the solution for hours and wonder if you guys could help me out
I have index.php that look like this
<?php include_once"connect.php";?>
<!DOCTYPE HTML>
...
0
votes
3answers
28 views
Submit email form without page refresh NO JQUERY
I am trying to make form that submits without a page refresh. I cannot use jQuery to accomplish this. I can't seem to find any solution anywhere that DOESN'T mention it, so I just want to know what ...
1
vote
1answer
43 views
reCAPTCHA with ajax validation always returns wrong even when correct
Live example is as below: http://www.uslegalsupport.com/contact-us-new/
Basically, when you fill out the form entering the required fields of course, if you enter a correct or incorrect captcha, it ...
0
votes
1answer
16 views
Using Jquery for for an ajax uploader running into document error on trigger
I have a form that I am using jquery form to upload files with ajax.
The problem I am having is this.
the url the form is on is ...
0
votes
2answers
41 views
Getting php with js with ajax
It won't give me the value from $scoresArray in php to data_response in js
If I log (obj) it returns nothing.
I have this in JS
$.ajax({
url: "Database.php",
type: ...
0
votes
0answers
29 views
Appending list after list using jquery php and ajax without refresh
I'm creating a project management site for myself that contains multiple lists inside lists. I'm trying to use jquery to append a php file onto the index.php from multiple links.
<a ...
0
votes
1answer
46 views
How I can retrieve the selected value with AJAX's function in select dependent?
In my database I have two related fields. The second field depends on the value selected in the first. The relations are:
The function I use in the form of table "conflictos_1" is:
<!--Aquí el ...
1
vote
3answers
59 views
ajax on submit no refresh form using php
ok so i know this ajax works, but i cant seem to understand why it's not submitting here.
<script type="text/javascript">
$(function(){
$('input[type=submit]').click(function(){
...
0
votes
0answers
20 views
Using Jcrop form an ajax loaded image
I have a site where I would like to upload a profile picture to the server and store the image into the database, using ajax. This is pretty straight forward and does work. But I would like to be able ...
1
vote
1answer
60 views
How to get amount in words? [duplicate]
I am looking to echo an amount which is in numeric form as words on a receipt.
My code looks like this:
<tr>
<td width="77" style="text-align: center; font-weight: ...
0
votes
1answer
31 views
Passing data with jquery ajax to php file
I'm using this code
http://www.9lessons.info/2010/10/pagination-with-jquery-php-ajax-and.html
and it's works great , I want to add button to let the user change the view from vertical to horizontal
...
1
vote
3answers
55 views
Email validation using JQuery Ajax
I've been having a hard time trying to validate an email with ajax
using PHP and Javascript. What I want to do, is to check if the email
already exists in the database, if so, display a message and ...
1
vote
2answers
49 views
jQuery ajax post to php script & update mysql database
I have a page that shows inventory. When inventory becomes defective (or any other status) I would like to select that option from a dropdown, and update the database accordingly without a refresh of ...