Tagged Questions
0
votes
0answers
9 views
Ajax Wont Download My CSV file … Just returns comma delimited String
Not sure what I am doing wrong here, but I am passing some data to a controller action for our in house built framework, the way we do ajax calls is just a wrapper for regular ajax calls in Jquery.
...
0
votes
0answers
8 views
redirect to new page of jquery validation passes
I have a jquery something like
$(document).ready(function() {
$('#value').change(function() {
$.ajax({
type:'POST',
url:'../validation.php',
data: {
...
0
votes
1answer
9 views
Send img file to server dynamically with jQuery and CodeIgniter
I'm trying to make it so that upon submission of an image, the image is saved to the server with CodeIgniter and then displayed on the front end via jquery.
HTML:
<form id="set" method="post" ...
0
votes
4answers
31 views
Scrolling text JavaScript doesn't load variables
I have a scrolling text in JavaScript that has some variables in it.
I get the variables through a PHP script and then print them on the scrolling text.
The problem is (I think) that the script ...
0
votes
1answer
18 views
How to save google search query in database?
I want to save google search query in my database.For example a person type in google "cricket schedules 2013" and some other person search in google as "pakistan cricket schedules" if user came to my ...
0
votes
1answer
33 views
Where should I host php file for ajax call?
So I have a very simple request. I am trying to make a call using jQuery to a php file so that the file's response will be put into a "div". I know there are other posts but for some reason none of ...
0
votes
0answers
16 views
Pull data from SQL or Excell and cycle data on webpage
I've done countless hours of searching, and I can't seem to find anything remotely related on what I am trying to do. This is a work related project, so I can give the basic idea of what I'm trying to ...
0
votes
2answers
34 views
Confused: ajax sending request to a json file
Just now I found some code in a webpage which confuses me a lot:
$.ajax({
url: "/foo/bar/save.json",
data: {
key: value
},
type: "POST",
...
1
vote
3answers
31 views
Execute window.location redirect AFTER ajax is complete
In summary, I have a form that is loaded via AJAX. Required fields for this form are checked via another AJAX call. Once all required fields have been filled, a new record is added to db and the user ...
-5
votes
0answers
35 views
POST 500 (Internal Server Error) when trying to get data from the database [on hold]
I really hope someone can help me, i have no idea how to solve this problem.
first of all i got this code:
My function:
function GetReviewData(){
$.ajax({
type: ...
0
votes
4answers
34 views
PHP: checkbox-isset always returns true
In my form (which i'm submitting using jQuery's ajax() via POST) i've got the following checkbox (to check if the new user should have admin rights):
<form action="../inc/new_user.php" ...
0
votes
2answers
29 views
Destroying a session when user closes tab or window
I want te destroy a session when the users close the tab or window without logging out properly. And I thought this might work:
the javascript:
$(window).on("beforeunload", function(){
...
0
votes
2answers
28 views
Simple PHP to Ajax 'not logged in' error - how?
Currently I am using this to send success or failure to ajax:
$response = array( 'success' => true );
wp_send_json_success($response);
However, say the user is not logged in and I would like to ...
0
votes
2answers
28 views
jquery pull textarea values based on which checkboxes were checked
I'm working on a project that involves returning the id of the checkboxes chosen as well as the text in the corresponding textarea fields for those chosen checkboxes. The data is dynamically displayed ...
-1
votes
0answers
21 views
isolate a javascript array value and set as a PHP variable
After selecting a company from a select box an Ajax call is used to return an array containing information about that company from the PHP file, using:
PHP FILE:
echo json_encode($NameReturn);
...
0
votes
2answers
31 views
Redirect to another page from colorbox
I have a colorbox. I want to redirect to another page after validating some value using php. I have tried the below code
if (isset($_POST['confirm'])) {
echo "<script>
...
0
votes
1answer
14 views
Ajax autocomplete search error
I am trying to make my autocomplete search work but when i try to get data from my json array it doesnt work. I am not so familiar with this, but this is how my code looks like. I think I know how the ...
2
votes
1answer
87 views
$_POST undefined, and defined at the same time?
Ok I am at a crossroad here. For some reason I have a page that Can both see a certain $_POST index and cannot see it.
I am using a jquery script to load a div with the page here is my function.
...
-1
votes
1answer
24 views
jQuery Text editor plugin for PHP [on hold]
Basically I need a jQuery/javascript text editor that I can embed into my admin panel so that my users can type PHP/HTML/CSS/JavaScript code. Most importantly, it must automatically format and syntax ...
-1
votes
3answers
37 views
specific id is not passing to ajax
This is a part of my code, and when user clicks the button it retrieve the data from database regarding to id (ie i am not geting net_id) i am also getting an error
TypeError: $(...).attr(...) is ...
-1
votes
1answer
37 views
Return result to a PHP variable from AJAX in a jQuery function
So this is the hardest thing I've ever tried to do, I cannot find any answers after 1 day of searching. Note that I am using some custom jQuery API and will explain what it does.
The setup is a php ...
-3
votes
0answers
31 views
jQuery Price Calculator with send data [on hold]
Good evening,
we have created step by step a page with jquery technology to calculate some things
The page works fine, but what you can not manage to add a contact form to send the final data
for ...
-2
votes
4answers
44 views
Submission of form does not work in jQuery
Problem:
Trying to automatically generate a form and submit it without user interference.
Complete code:
<?php session_start(); ?>
<!DOCTYPE html>
<html lang="en">
...
0
votes
1answer
7 views
I cannot get Slickgrid displaying mySql data
When I run this it just displays the html table. Where am I going wrong. I have tried quite a few examples with no success and have read as much as I could on the net in the last week. I think the php ...
3
votes
2answers
83 views
Encode JSON in PHP and submit with POST
Problem:
I have a variable which is encoded in JSON and I'm stuck trying to figure out how this variable can be sent to a PHP page using jQuery/AJAX.
This is what I have tried so far.
The file is ...
0
votes
4answers
56 views
how to add text on an image
I loaded an image to my html page. I set its opacity to 0.5 using jquery css property. Now
I want to write a text based sentence on the top of this image. I mean to say that the image I loaded I want ...
0
votes
0answers
15 views
Car/color jquery configurator storing value with php
i want to make a car configurator - chosing colors and i want to make it with jquery and php. I know how to make it with pure php but i dont want that cause it's not that user friendly. What i want is ...
0
votes
0answers
28 views
Remove fields on click and change values of all subsequent field attributes
This is a bit of a complicated problem. In my WordPress plugin's settings page, I'm using jQuery to clone a group of fields on button click. Each group also has a remove button. The problem is, say I ...
-1
votes
0answers
20 views
Multiple Image upload with preview [on hold]
I'm developing a project in php. I need to upload multiple images at once and preview it before save to table. i cant get the scripts like. some one help me. Thanks in advance
0
votes
1answer
27 views
Using ajax with multiple selects
I'm building a portfolio page and created some filters to user organize the portfolio list. The filters are dropdown lists, like that:
<select name="category" id="filter-category" ...
0
votes
1answer
30 views
Displaying different data in different table columns by switching options in a select
My problem is the following:
I have an ajax function that, according to the option (of a select) selected, associate a record in a database and populate another input, i.e. a p tag.
I have two td ...
0
votes
1answer
19 views
Storing Data in Model & Call from Collection & Fetch
Collection
define([
'jquery',
'underscore',
'backbone'
], function($, _, Backbone){
console.log("Loaded");
var Jobs = Backbone.Collection.extend({
url: function () {
...
1
vote
2answers
22 views
Dynamical add form elements, store them to MySQL and change/delete them in future
I found this solution for my problem but I need some additional help:
How to use jQuery to add form elements dynamically
I have a form (here I'll copy a short version), and it is used for entering ...
1
vote
2answers
32 views
send multidimensional array to php using ajax as json and receive html text to show in a div
First part is completed, The data is successfully sent to php using ajax as json (I did it by following an answer to an already posted question on this site).
Now how to access these values in php, ...
0
votes
1answer
24 views
Laravel - Check if user has session with jQuery
On a website I'm building, accounts are automatically generated when a visitor loads the page. When an account gets created, the new user will be asked to choose a username by creating a modal window ...
2
votes
5answers
62 views
Show an input text field as plain text
I want to have a sort of editable div like this:
<div onClick="this.contentEditable='true';">
lorem ipsum dolor lorem ipsum dolorlorem ipsum dolor
</div>
But it has to be an input field ...
1
vote
2answers
87 views
$.ajax POST is not posting
This is exactly what the title describes, when I hit submit, and use php file to echo the result its empty.
$( "form#fileupload" ).on( "submit", function( event ) {
event.preventDefault();
var ...
0
votes
1answer
44 views
How to call PHP function using Jquery and catch return type
I want to call PHP function with the help of JQuery and I also want that Jquery code catch the return type of the calling function for further processing...........
My jQuery code is:
...
0
votes
3answers
50 views
How to pass parameter as POST data on selection of an Select Box value, which will reload the same page?
I had two chained Select Boxes "pr_cat" and "sl_num" . The second select box values depend on the value selected in the first select box.
<tr>
<td width="257">Select Product ...
0
votes
1answer
15 views
qTip has no method 'qtip' for dynamic content
I have this interface in my system.
I assign class mailListBtn for all Successful-[] Failed-[] link. When then user click at Successful-[] Failed-[] it will call this js code
...
0
votes
1answer
39 views
jQuery AJAX form goes to PHP file doesn't Redirect
I'm having some problems with jQuery AJAX. I have a form that is validated with this Js controller, and I want it to validate with PHP via AJAX, and perform an action based on the response. Here is my ...
0
votes
0answers
9 views
magento 1.8 ajax cart URL form submission not working
I am facing issues with magento ajax add to cart after upgrading from 1.5 to 1.8.
My form submission calls
<i>
...
0
votes
3answers
28 views
Passing of JSON array to PHP file using javascript AJAX function
I am now about to give up for ajax in javascript to pass JSON array to PHP. I have first PHP file in which I have form which contains a text area and checkboxes. The snippet is below:
<form ...
0
votes
2answers
27 views
filled textfield value from select dropdown with split()
when i use split() the textfield value is empty, value for textfield from drop down that i need is e.g 15.
please show me where did i go wrong..
thanks,
here's the code :
<select name="cmbitems" ...
0
votes
0answers
49 views
event.returnValue is deprecated jQuery [duplicate]
I'm getting a warning that stops my program from working. I have a simple form that is controlled by a jQuery AJAX POST. It was working until today, and I think it has to do with the fact that I ...
-3
votes
1answer
46 views
Convert PHP to Ajax
I am really confused on how to convert PHP to AJAX.
I am posting what I tried. The reason that there is two calls to the calendar is because I know it works with PHP so I wanted to try it with ajax. ...
0
votes
0answers
21 views
plupload radio button input jquery selector only pulls first value
Using the UI widget, I have the input posting to the mysql database BUT only the first radio choice is ever pulled. I am currently using the selector: ('input:radio[name="ageLimit"]'), but no luck.
...
1
vote
0answers
30 views
mysql trigger from a javascript click
Ok, so basically I've been searching around the web for a way to do this without much success or if it's even possible. Regardless the idea of this script is to click a delete icon "delete_25.png", ...
0
votes
1answer
21 views
codeigniter login form with ajax request on bootstrap modal return into error
I am trying to create make a login sistem based on codeigniter and bootstrap modal performing AJAX request.
so the problem is like this if i dont use the codeigniter validation class all is good but ...
0
votes
1answer
19 views
Stop Yii from loading jQuery twice
Yii, or more specifically, the instance of CKEditor that comes with Yii is apparently insisting on loading its version of jQuery. This is apparently causing problems with jQuery UI's dialog().
Is ...