Tagged Questions
0
votes
0answers
4 views
How to avoid multiple ajax call from the Jquery Autocomplete ? Using Cache
I am using jquery automcomplete with the Ajax call but what i want is if part is present in the json data fetched by the ajax on first call then i want to return that data as it is without giving ...
0
votes
0answers
21 views
ASP.Net, jQuery, Ajax and a parseError
I have tried to see if there is anything on this great site for this (and there probably is), so I am sorry if I have missed it.
Anyway, I am calling a WCF endpoint using jQuery Ajax under ASP.Net.
...
0
votes
1answer
12 views
Using jquery.load() with jekyll
jekyll layout:
<a href="" id="link">ClickMe</a>
<div id="main">
{{ content }}
</div>
jquery:
<script>
$(document).ready( function() {
$.ajaxSetup ({
...
-2
votes
0answers
13 views
jquery-select2 is not working with JSON data through ajax call
i am try implement autocomlete with select2.js using ajax json data.
json data will be fech correctly but data not filter or not any segetion on my view page.
$('#txtSearch').select2({
...
2
votes
2answers
28 views
jQuery removing elements with event handlers
I have a list of products, where I need to update the innerHTML of a #container dynamically.
My question is, if I do something like in this answer:
Jquery Remove All Event Handlers Inside Element
...
0
votes
2answers
20 views
pass enum parameter from Ajax Jquery to MVC web api
I need to call a web api, this web api method is accepting two parameter one is enum type and another is int. I need to call this api using Ajax Jquery. How to pass enum paramter.
API Code
[HttpGet] ...
0
votes
2answers
14 views
submitting / stop submitting form inside ajax success call
On the submit button click, I am calling an API. And if it returns true, i want to show error message and stop submitting form.
But if it returns false, I want to submit the form.
jquery code:
...
0
votes
1answer
30 views
Loop through nested object in jquery
Iam newbie to jquery. I need to parse an JSON. I tried with $each statement but stuck with [object,object]looping. here is the code which i used for parsing the JSON. Help me out of this.
var ...
0
votes
2answers
17 views
Use variable to send data with jQuery AJAX
I'm using jquery AJAX to instant save things, however when an ID already exists it will give a hidden element with data in it. Which is already given as the 'right' syntax for $.ajax data.
I'm ...
-3
votes
0answers
28 views
Ajax / jQuery directory structure [on hold]
I have a problem with my code. I want a ajax directory structure but its not working.
The problem is in my url the location names are there ( maybe /about or /test but when i click refresh or go ...
0
votes
0answers
15 views
Form Validator Executed Twice
I have reviewed the database and have not seen how any comments apply specifically to my situation OR I am not genius enough to extend the knowledge.
I am using jQuery Form Validor: formvalidator.net
...
0
votes
3answers
26 views
Ajax request, how to call an other function than “success” one's?
I use JQuery Ajax function :
$.ajax({
url: ...,
success: function (){
...
},
...
});
I need to execute some code just before every call of the success function (but after ...
1
vote
3answers
19 views
jquery/ajax load scripts - best practices
I'm trying to get the hang of using ajax loads (mostly via jquery) to make my site more efficient. Wondering if anyone can provide any suggestions re "best practices" for using ajax?
Is there a way ...
0
votes
1answer
13 views
Jquery Ui autocomplete is not loadin data from http://ws.geonames.org/
Visit my fiddle
The data from http://ws.geonames.org/searchJSON?&country=DE is not loading, and if I change that into http://www.geonames.org/searchJSON?&country=DE it says I need a ...
0
votes
1answer
23 views
jQuery on change binding with jQuery produced HTML
I have chained select lists which tags for new select box generated by ajax success and data populated via AJAX response.
The is at below however, for quick summary:
on "change" event supposed to ...
0
votes
3answers
31 views
How to retrieve sibling content in jquery?
How can i change the css of 'My data'.
Whenever user clicks on input radio, My data should change its text color. how to access it, as it is sibling of input whose id is 'b'.
Please tell me both the ...
0
votes
1answer
46 views
How to get an li element click action with JQuery
I am trying to send the li click, via post but this doesn't come:
<nav class="navigation">
<ul>
<li t="1" class="li_messages li_messages_selected">Received</li>
...
0
votes
2answers
38 views
Date picker inside of ajax returned html content
Update: the .click that I was using and the .find method below in the comments, both add the .hasDatepicker class to the input. It doesn't however show the datepicker.
Update2: The datepicker was ...
0
votes
1answer
22 views
AJAX forms first-child not submitting when every other form does
I have a series of dynamically created forms that allow a user to update various sections on a webpage. When submitted the form is supposed to update the database and echo a success alert. No matter ...
0
votes
1answer
48 views
Ajax request 'onError' handler
There is one feature on my site: delete without page refresh. The user just presses 'delete' and the browser will send Ajax-request. It will load 'delete' script with id parameter.
All work well. But ...
0
votes
1answer
11 views
Nivo Slider not work proper
My problem is when I click on slider button/point work properly, but after 4-5 time clicked it was stuck. I have also find solution but not given proper solution.
Also See link
Thank you
1
vote
2answers
20 views
Error in jquery file and does not give output.
I have following jQuery file. I tried my best to find the problem. But, I could not. I am newbie on it. Please help. Thanks in advance.
Enter your texts here.
...
0
votes
1answer
27 views
Pass list of objects jquery to controller
I have below code and need to pass it to my controller method on jQuery and read list of data on controller but have no idea to do it:
<p class="accounts form-inline">
<label ...
0
votes
2answers
22 views
Java Passing array via jquery
i have action below
@RequestMapping(value = "info_pure", method = RequestMethod.GET)
public ModelAndView GetInfo(String ser_name, String[] p_input_week_days, int p_input_month_day) {
...
0
votes
5answers
50 views
String comparison in javascript fails
Hi i have a problem when comparing two strings. the problem is that when i compare the equality of status variable with "success" string literal it returns False, However when I check the value of the ...
0
votes
3answers
38 views
Why Jquery script not execute after first time button click?
When i click next butoon of index.php, jquery performs its work, alert and loads the content of check.php in div 'result'.
But, Now when i again click on next button nothing happens, no alert, why ? ...
0
votes
1answer
43 views
To stop document.click function on key up
To hide a div on click on the rest of the page I used
$('#display').click(function(e){
e.stopPropagation();
});
$(document).click(function(){
$('#display').slideUp();
...
-3
votes
0answers
39 views
Select a class for one instance of the function only? [on hold]
I've got an AJAX script written with PHP:
<?php
print "<script>
var request;
$('.uparrow').click(function(){
request = $.ajax({
url: 'votesHandler.php',
type: ...
0
votes
1answer
72 views
Javascript not working after jquery load
I'm working on a site for a client and a big deal to him (don't ask me why) was to have music playing the whole time and switching pages should continue the song rather than replay it. I used Jquery ...
0
votes
2answers
42 views
AJAX cannot return Json data
I'm trying to post a piece of Json data to AJAX and get a "upvote_message" in return. However, the "upvote_message" is returned as undefined.
Code:
<div class="media">
<div ...
0
votes
2answers
46 views
How can I make an ajax call from inside my function?
I have a popup window that is riggered by a hover function that works fine on it’t own and an ajax call that works fine on its own. Now my goal is to make an ajaxcall from inside the hover function ...
0
votes
1answer
22 views
Error after making function wait until event ends
I have the following HTML and jQuery Ajax code:
<form>
<input name="name_field" type="text">
<button type="submit">Save</button>
</form>
...
1
vote
1answer
24 views
jQuery getScript load vs execution
The getScript docs say about the success callback that:
"The callback is fired once the script has been loaded but not necessarily executed."
But in my testing that doesn't seem to be true. For a ...
0
votes
1answer
34 views
Posting JSON using JQuery and to set HTTP content type - 'application /json'
I am using jquery to post Json data to server. However when I make a post request as below,
$.ajax({
type : 'POST' ,
url : uri,
...
0
votes
2answers
25 views
PHP to Ajax Post using JQuery, global events work but the POST never seems to get set properly
I'm attempting to use the $.ajax call to post data to a form. The event is triggered when there is a change to the value of an input form. For simplicity's sake, I put everything on C9.io so that ...
0
votes
0answers
13 views
crosse domain error xml for XML feed site
I have MXL feed from other website for get price the gold and silver and they use I try to
XMLHttpRequest cannot load "XML URL feed" header is present on the requested
resource. Origin ...
0
votes
1answer
27 views
how to get price of gold and silver from XML and make it upload each 3 second
I have this XML file I try to load prices of gold and silver and update it each 4 second I try this using this line to get the child element of parent with attr = "Gold Canadian $" but no use working ...
0
votes
1answer
55 views
Jquery autocomplete REST
I'm trying to use autocomplete calling a rest service.
I know the service is being called and is working. I have upload the code to here http://dentalo.se/jqueryautocomplete.html if you want to see ...
0
votes
2answers
38 views
Upload many file on client side and compress it then upload compress file on server
I want to implement the concept site visitor can upload multiple files click on submit then compress files are upload on server xampp. I am using PHP scripting language.
0
votes
0answers
30 views
Progress Bar for Ajax Post Search (Server Side Execution) using jQuery
I am trying to built a ajax live progress bar for my search using jQuery Ajax via POST method.
I want to show the progress of search call before showing result list.
jQuery.ajax({
xhr: ...
0
votes
0answers
48 views
Script not working with latest version of jQuery
I downloaded a simple jQuery/AJAX contact form a while ago and for some reason the script doesn't work with the latest version of jQuery.
I'm not sure exactly which part is causing the problem, but ...
0
votes
1answer
39 views
AJAX Post Error to Servlet
I have this following piece of code:
var request;
if (request) {
request.abort();
}
request = $.ajax({
cache: false,
type: 'POST',
url: ...
0
votes
1answer
28 views
Jquery Ajax page loads
hi i have the following code, that has a problem.
Every time i load the the script the first link loads in the div, however any other links wont load in the div.
Do i need to reinitialise the ...
0
votes
2answers
9 views
Mouseenter doesn't restore its variable after mousleave empties the variable
I am trying to display the description on mouseenter and and hides the description on mouseleave.
The problem is I emptied my appended variable on mouseleave, but again when mouse is enter the ...
0
votes
1answer
31 views
on change from input field how to bring ajax result(values) into html td (cells of table) where i want and needed
I am new to jQuery & Ajax and have a problem which I am not understanding.
In html_purchase page I have:
<table>
<tr>
<td style="width:5%"><input type="text" ...
0
votes
0answers
15 views
jQuery Ajax not Working in IE 8/9
I'm struggeling with an solution where i'm using Modernizr, Ruery and handlebars- Everything works smooth in Opera, Safari, FireFox, Chrome and IE10, but in IE8/IE9 it seems that the jQuery.ajax wont ...
0
votes
5answers
33 views
Send AJAX get request
I just started to study AJAX and I already have some trouble.
I created database and table users with id, name, email fields.
Then I created php file db.php for connection with the database
<?php
...
0
votes
2answers
20 views
Configure Ajax request made by Kendo AutoComplete to support cross domain
The basic kendo auto complete example shows a setup where matched search results are fetched through an Ajax request. The ajax loading works fine if the requested resource is on the same domain, but I ...
0
votes
6answers
54 views
Delete parent div - jquery
I need to remove the parent div when user click on delete. So far I have below code:
<script>
function Confirmation(message, theurl)
{
if(confirm(message)) {
$.ajax({
type: ...
2
votes
2answers
15 views
Different behavior when Making AJAX POST request using Jquery
This could be my mis-understanding but i wanted someone to explain what i miss here.
If i have the below implementation for placing POST request using Jquery, the request is not made till i execute ...