Questions tagged [jquery-get]
42 questions
1
vote
1 answer
append html file to another html file using jquery locally
I have tried to append a html file into a html file using the $.get method as well as $.ajax and .load methods. the actual issue is that the file does not append yet works when opened alone. could it be that the site is running from the computer and…

Yusaf Khaliq
- 3,333
- 11
- 42
- 82
1
vote
1 answer
Performance of .get() vs multiple .load()s
thanks for looking,
I've got a situation where I want to .load() multiple divs from a static file. I recently found and read this SO question: jquery-multiple-load-in-a-div. The options were either
$('
').load('static.html #div1,#div2,...');
or…

Bung
- 259
- 2
- 7
0
votes
1 answer
loading content with $.get and slideDown the updadet element
i'm trying to load data into an element using jQuery.get.
After loading is completed, an div should be updated with that content in order to slideDown the content.
For an example please take a look at this fiddle:…

The Bndr
- 13,204
- 16
- 68
- 107
0
votes
1 answer
" Calling GET on success of POST ajax " working with Firefox but not with Safari
var addRecord, getRecords, wcfServiceUrl;
// Use strict for all other functions
// Based on post at:
// http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
(function () {
"use strict";
wcfServiceUrl =…

Leo Moon85
- 150
- 10
0
votes
3 answers
serialize javascript array
I am using the dojo enhanced grid and the variable marked "myGrid" refers to the grid.
function addtocart() {
$("#additem").click(function(){
var myGrid = dojo.byId(dataGrid);
var ids = [];
var gridRow =…

Faiyet
- 5,341
- 14
- 51
- 66
0
votes
2 answers
jQuery get and displaying html results
I have the following jQuery get:
$.get("rssread.cfm?number=10", function (d) {
$('#feedContent').append($(d).html());
});
The get works fine and what it returns is some html of unordered lists and their items and anchor tags. No big deal. I know…

Jagd
- 7,169
- 22
- 74
- 107
0
votes
2 answers
jQuery/AJAX - How to load multiple divs and page title?
I tried this code (it works but when we click 3-4 times, my browser frezzes, maybe due to huge variables):
var elements = [ "content", "menu" ];
$.get(
url,
function(data)
{
// Elements
var resp =…

Yoone
- 547
- 3
- 8
- 22
0
votes
1 answer
How to get list of objects by using jQuery.get or post
I am using jQuery.get/post methods in my Struts2 application.
See the following code. This URL return "success" and "error". It will hit a method and return a string (the struts2). I have made JSPs that contatin these strings in them.
But I want to…

Tahir
- 3,344
- 14
- 51
- 69
0
votes
1 answer
Get request giving errors
I want to make a get request from my component. I am currently making it inside componentWillMount method. So this component is the second page of application. First page is the login page. When I click on the login button on the first page then…

EdG
- 2,243
- 6
- 48
- 103
0
votes
1 answer
jQuery .get works inline but not in an external file
I have some jQuery where I'm loading HTML into a document using a .get, like this:
var url = '@Url.Action("beneficiary")';
$.get(url, function (response) {
$('#beneficiaries').append(response);
});
It works perfectly when the script is inline,…

Robert M.
- 575
- 5
- 17
0
votes
0 answers
How can get returned values from jquery $.get?
Bellow is my code. It works now, but if I delete the following line alert(currentIntervalPosition+"__1"); from the getIncidentTime function, the code will not work, and I need to delete that line. When I say the code doesn't work, means that in the…

eu127
- 123
- 1
- 14
0
votes
2 answers
How to get .data() using jQuery $.get (or $.ajax)
On our site, the tag holds various data-*="*" attributes:
I need to get the values of these attributes while on other pages. So, I am using jQuery AJAX $.get to get the…

Derek Foulk
- 1,892
- 1
- 19
- 37
0
votes
2 answers
Can i modify an external js file via Ajax post?
I Would like to know if there is a possibility to modify an external js file via ajax post, for example:
Into my external js file i've got a variable :
var color;
So i would like my users to be able change the value of this variable by typing the…

billo
- 33
- 1
- 1
- 8
0
votes
1 answer
jQuery .get - Specific HTML ID (Not Whole Page)
I am trying to use jQuery ajax to call in a project page.
Assume the xhr variable contains the correct string to the webpage (target page). I have prevented the page as mobile viewport will not load the ajax…

Neil
- 971
- 2
- 12
- 33
0
votes
1 answer
Update old ajax code to current JQUERY version
I have an old AJAX code that works in JQUERY 1.8.3 but fails with later versions. As I try to keep my code up-to-date and try to avoid deprecated code, I need to update my script.
Current code
$('.productlist input[type=submit]').bind('click',…

Morten Repsdorph Husfeldt
- 1,013
- 1
- 16
- 32