Tagged Questions
-1
votes
1answer
22 views
Use the value of the last mysql row in ajax call
I have a page where users can add and delete records from database without reloading page in ajax.
When page loaded it displays rows from query, and you can delete each row by clicking "x" that will ...
-1
votes
0answers
6 views
Structure and js library for onepage site with dynamic blocks
I need to create a site so done: one page site consists of several blocks one below the other to be loaded dynamically. The blocks are managed by the customer so they can be 5 but 20. Some of these ...
0
votes
3answers
39 views
How to use AJAX in multiple drop down in php?
I know this is a stupid question but i am new with AJAX and
i tried many of the code i got from internet but still not able to do this simple thing
so at last i am posting my question here
something ...
0
votes
1answer
24 views
PHP request through AJAX fails
This is probably something very simple, and I've seen that there are/have been more people with the same issue. But the solutions provided there did not seem to work.
So, I want to execute a .php ...
0
votes
0answers
40 views
PHP Login script with ajax works but session variables do not exist
On my website I only use ajax-calls to save and get data.
I am also using ajax with my login. So this is what I do:
FILE -> ajaxLogin.js
if (check === true) {
$.ajax({
type: 'POST', ...
0
votes
0answers
42 views
jQuery AJAX call works on localhost not on live server
I have a problem which I can't solve at the moment.
I have a WordPress AJAX login on my website from this example:
http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way
On my ...
-2
votes
0answers
16 views
php google map api in google map path on make custom symbols or images
here i have problem in creating in map 50 meter distance create arrow symbol for path to show source to destination
in this path was created but on created path i show on per 50 meter distance ...
-1
votes
2answers
41 views
News feed system [on hold]
I was trying to make a Question & Answer website for learning purpose, and I've been stuck here:
I could retrieve the questions from the database (which are no more than some text values) and show ...
0
votes
1answer
33 views
http and ajax request simulation
I have the following url
http://mywebsite/mypages
when you go to this url it will display a list of links, for example
http://mywebsite/pages?page=1
http://mywebsite/pages?page=2
...
when ...
0
votes
0answers
15 views
Filtering sticky posts on Wordpress archive page
I have an archive page of custom post types called events and I filter them via a drop-down menu using custom fields, so for example, in the drop down menu 'select location', when you click london it ...
-2
votes
0answers
40 views
Need suggession for code improvement / professionalism [on hold]
I have written a jquery code for ajax form submission.
Here it is
jQuery(function() {
jQuery('#message').click(function() {
var btn = jQuery(this)
var Name = ...
0
votes
0answers
7 views
Jquery Validation plugin- Custom email format in mybb
In mybb registration page, I have customized the email id format as specified in the below code.
eg: [email protected] , in this i wanted to validate email format of "@demo.co.in" not any other ...
1
vote
4answers
38 views
Jquery replace multiple string in element, not replace element
Hello good friends :)
I have a question about jquery. Is there a function in jquery to replace the many words that have been mapped within an object or array.
Example in php:
<?php
...
0
votes
0answers
9 views
Jquery Upload plug-in with S3 throwing error - Call to a member function get_object_list() on a non-object
I am following this guide to upload files to S3 - https://github.com/blueimp/jQuery-File-Upload/wiki/S3-upload-php.
Included this file as mentioned - ...
0
votes
3answers
56 views
How to display error messages Jquery ajax?
I am a student and am using jquery and php to add records to database. Records are being added, but i want to display a message "Record inserted" in the if the the record has been successfully been ...
2
votes
0answers
40 views
AJAX function returns incorrect response from server. var_dump always shows wrong HTML output & returns null
This is the div tag inside which the google map is shown.
<div id="googleMap" style="width:900px;height:500px;"></div>
Show url: <span id="showurl"></span><br/>
...
-3
votes
1answer
30 views
How to reset the form and refresh the datatable with a single button click?
I have a button with id="reset", So when the button is clicked I want to do two things:
The form has to be reset.
Refresh the datatable.
$("#reset").click(function() {
$("myform").reset();
...
0
votes
1answer
19 views
styled input (type=file) submitting upon click with jquery .change event for reading selected files
I have been debugging this for quite some time already, but to no avail.
Works perfectly fine on Google chrome but not on other browsers. On other browsers, upon click on the "Add Attachment" ...
0
votes
1answer
13 views
Submit button got disabled when clicked in bootstrap3 and data is not being sent to database
I am working on a signup page with bootstrap I am using http://bootstrapvalidator.com/ plugin to validate my form. All validation done but when I click on submit button it got disables and data is not ...
0
votes
1answer
11 views
Scrolling Effect for Drupal Website
I have came across a website recently that has this effect when you scroll down, the individual blocks of text will move in accordingly, and when you scroll back up, the individual blocks of text will ...
0
votes
1answer
9 views
Any ideas to Get Flexslider to close automatically after carrousel cycles once?
Im using Flexslider in Drupal 7. I'd like it to make it cycle once through the slides and then close, preferably smoothly, and for the entire div to dissapear so that the rest of the floated content ...
0
votes
1answer
30 views
Passing User Data from PHP/HTML to AngularJS
I am new to AngularJS and am still learning but I didn't see this question asked anywhere on this site. I am building a traditional html/php list website that passes data such as a list id from an ...
0
votes
1answer
34 views
$_REQUEST works, but $_POST doesn't -
Thank you for sharing in my headache - here is the short speil:
Recently inherited a poorly coded WordPress site - which leveraged a WP Contact Form 7 -
I stripped all the WP-CF code out (due to ...
0
votes
1answer
29 views
MySQL Algorithm vs Query [on hold]
You find a lot of info on this online. But not what the exact work around of the use of Algorithm is in MySQL. The real basics, if you will..
What a query is, is obvious, of course. What Algorithm ...
-1
votes
1answer
41 views
$.ajax not POSTing my variable?
var code = $.cookie('code');
$.ajax({
type: "POST",
url: "ajax/loadData.php",
data: { 'code': code },
dataType: "json",
success: function(data) {
console.log(data.coins);
...
0
votes
2answers
24 views
How to request an array of PHP objects from jQuery Ajax?
I want to pass through an array of "Blocks" with Ajax. I created "Blocks" with a PHP class: I know how to pass an array with numbers, with JSON, but I dont know how to pass an array with objects.
...
1
vote
2answers
47 views
jQuery - Load info from database, into different variables?
Basically I can do so it prints out for example one field from the table, but I want to have all of them to different tables or whatever, how would I achieve this? I got this as my save/load code:
// ...
0
votes
2answers
22 views
Prevent form reset on submit with jQuery Mobile
I'm trying to accomplish when submitting a form it does not refresh and reset all the values. I am trying to get it to keep the fields, so we don't have to type the info all back in for multiple ...
0
votes
1answer
30 views
jQuery delete row from SQL (button) not working
I have a table of notes on a page. I want the user to be able to add and delete notes dynamically. I have the add notes feature working, but I am having trouble with the delete notes feature. I can ...
0
votes
0answers
24 views
Increment of the progress bar is not working
I want to display the progress bar will incremented by 1% while page will refresh, but it dose not work.
The below program is not working it always display a negative value the text form ...
0
votes
1answer
29 views
make button disapear when clicked even when visited next time
I have a problem i am making a website with a button on it.
The problem is that i only want this pressed once by the user who visits the site.
So when ever the user refreshes or comes back it isn't ...
0
votes
2answers
25 views
Getting value of a disabled textbox in PHP
I am getting two numbers from users and then displaying their sum in a disabled textbox. I am also storing the inputs in my db.
Everything works fine. I can pass number1 and number2 to my database ...
0
votes
0answers
7 views
Footer callback in datatable
im try to implement Footer callback of datatable in a page but the my probelem is that when i add the code of javascript in my page i lost the designe of it and the fonctionnality of table.
these is ...
0
votes
0answers
12 views
variable from php to js [duplicate]
how to pass a variable from controller to view using jquery?
my code where i'm using php in, but i know it's not good to use php in js
$('#order-to-cart').submit(function (e) {
...
0
votes
0answers
5 views
Justified-Gallery with Swipebox for Wordpress
at the moment I'm trying to upgrade my custom template for wordpress with a new gallery. I want to use the Justified-Gallery with the swipebox extension.
I already included the necessary .js and .css ...
0
votes
2answers
23 views
Refreshing a page with codeigniter after ajax click event
I have the following php codeigniter function code which is being called by a jquery ajax function:
$this->load->library('session');
$this->load->helper('url');
...
1
vote
2answers
41 views
auto submit with JQuery or JavaScript
I need to send a var which contains html code.
I have a file with html code, and I read it and put that HTML code in a var with
ob_start();
$output = ob_get_contents();
ob_end_clean();
I tried to ...
0
votes
1answer
32 views
PHP AJAX MySql grabbing data - radio button
Is it possible to display data from the database by clicking a radio button. Currently I have it set to a drop down box but I would like it to connect to my radio button. Here is one of my current ...
0
votes
1answer
24 views
How do I replicate the functionality of this combination of php and jquery/js with *just* jquery/js?
I wrote a function called sliderinitialiser that initiates two jQuery sliders that I have placed onto my page - one for adjusting a Profit and Loss (PnL) value, and one for adjusting Turnover. The ...
0
votes
0answers
16 views
what's the downside of checking database every second using jquery and php? [duplicate]
I am building a feature that checks database every x seconds to see if there's an update in database and if there's an update, a client page will display a small pop div (like one you can see on ...
-4
votes
0answers
17 views
PHP call email validation handler to see if email already exists [on hold]
I have a form that new users can fill out to register and receive emails from us. In the email input of my form, I need to check if the user's email already exists in our database. I have an ...
-2
votes
1answer
17 views
Ajax - PHP : Extract data from a CSV file without submiting
I am a total newbie with AJAX, and i am asking if it's possible to read a CSV file from "file input" and extract data from it and display the data in the same page without sumbiting the form.
here is ...
0
votes
0answers
24 views
Parse an Array of Javascript Objects using JSON and AJAX
I have an array of Javascript objects, which I convert to a string using JSON.stringify() before processing with AJAX.
On the server side, all I am trying to do is verify that the proper ...
0
votes
2answers
22 views
how to run a laravel function and pass field val through ajax
hey I want to run a function in my controller using the $.get to pass what is the cod that I want to execute my querys then create my excel file
my route, that's working if I type in adreess bar of ...
0
votes
2answers
29 views
How to display alert or info messages in Symfony2 after a server response without reloading the page
I am building an admin application for opticians with Symfony2. When the admin adds a new customer to the database, my controller checks if the customer name is duplicate or not. I want to display a ...
-1
votes
7answers
40 views
How to call function when load page and when submit form?
How to call function when load page and when submit form ?
when i load page i want to call function function xxx()
and when i submit form , i want to call function xxx() again , how can i do that ?
...
-1
votes
2answers
36 views
Ajax call pulling in random html
I'm having an issue that I can't seem to solve. First thing is first. I'm running this on Ubuntu 14.04 with apache and php5. I am using the netbeans IDE which i originally assumed to be the issue but ...
0
votes
0answers
16 views
Don't show this page anymore (JQUERY cookie)
I'm trying to implement cookies for my website, i just wanted to redirect users to a splash page and have a "remember me" checkbox there and once they checked off that and pressed enter, they will not ...
0
votes
1answer
28 views
WordPress AJAX request returns 0
TL;DR: Not Dupe - Code first, scroll to bottom for problem.
Here is the link to the demo that I currently have.
In functions.php I localize my script first:
function ajaxurl(){
...
0
votes
1answer
34 views
Ajax get request returns entire page instead of controller method
I writing a script to poll a mysql table but instead of returning what the method has,it returns the entire page html page calling ajax from
This is my ajax
var base_url = '<?php ...