JQuery :: How Script And Css Calls Could Be Reordered

Mar 16, 2011

I see that the jQuery library accounts 164K which is almost 40% of the page weight. As can be seen in the source, /jquery.js loads twice, as do several other scripts! But if i remove /jquery.js library from either line, the page breaks (tabbed box does not come together).I am weak on understanding the ordering of dependencies.Are there any ideas that jump out at you about how script and css calls could be reordered so that the big library would need to be called only once?

View 5 Replies


ADVERTISEMENT

JQuery :: 1.5.1+ Broke Old $.get() Json Calls?

Apr 12, 2011

functions like:

function showData(id) {
$.get("/url/getdata", {id : id}, function(data) {
$("#dialogData").html(data);

[code]....

no longer work with the addition of 1.5.Looking at firebug, the correct data is returned, but the function breaks after entering the callback.Everything simply stops.I read about the changes to Ajax call in 1.5, but I have over a thousand such calls through my project -> I cannot even begin to think about hunting them all down and changing them, let alone bug testing it all.

View 9 Replies View Related

JQuery :: Ajax Calls Works, But Only On Second Try

Jul 19, 2010

I'm trying to use the jqmodal dialog plugin and everything is working OK except for one minor problem. It seems when I click on the link, the expected action does not occur until I click the second time. Essentially I set up a small test form with a single line put into a table. In that data line is an href, which when clicked calls an AJAX function and returns text, which displays as a dialog. Like I said, this works fine except for the fact that the dialog does not show until the second time I click on the link. I added an alert box to the code, so I know the function is executed the first time the link is clicked

<script>
$().ready(function() {
$("#hrefClick").click(function(e) {
e.preventDefault();

[Code]....

View 1 Replies View Related

JQuery :: Enqueue A Set Of Ajax Calls?

Nov 22, 2011

I've a js with a loop wich generate ten ajax calls, but I aboslutely need that the first will be executed before the others. how to ?

View 5 Replies View Related

JQuery :: Why The Calls Could Not Be Cached By Firefox

Mar 29, 2011

I noticed that all simple jQuery ajax calls are unable to cached by Firefox (no problem with other major browsers).

See the following test code:
$(document).ready(function(){
$("#load").click(function(){$("#test").load("/test.txt");});

[code]....

View 5 Replies View Related

Jquery :: First Selection Calls The Next Set Of Checkboxes?

Oct 14, 2010

So I have a three step process where the page loads and there is the first section of checkboxes... as the user makes their selections I want to display the next step which also has some checkboxes. If they select a checkbox from the next step then there's a 3rd step.

If I load all sections at once, all three groups of checkboxes works great as far as accepting selections and passing the proper information.

However if I load only one, then after selection is made, load the next one... the next one using the same code as showing all at once does NOT want to work. I can't select anything.

I'm starting with something like:

[Code].....

one is class=checklist, other is =media,... thinking the naming was conflicting and then I have them each call their own function to keep it separate.

View 10 Replies View Related

JQuery :: Append() Only Appending Once, Even On Multiple Calls?

Aug 25, 2010

append.php:
<span>test</span>
jQuery function:
$(function(){

[Code]....

The content will be added on the first click, but not on the subsequent clicks however. The hidden field gets incremented fine though.

View 2 Replies View Related

JQuery :: Data Limit For $.ajax Calls?

Feb 27, 2010

I'm experiencing a weird problem when trying to do a $.ajax call. When I pass 5 variables, with either GET or POST, the script runs as I would like. However, when I use 6 or more variables, the script does not run. Does anyone know why this is?

Relevant code (stops1-5 are defined as JS variables earlier in my script, and the alerts are for testing)

$(".barcrawl-stop-id").each(function(){
alert("running ajax function");
$.ajax({
url: "/handlers/ajax/barcrawl_reorder.php",

[Code]....

So, the way it is now, it works fine (I get the first alert for each instance of .barcrawl-stop-id, and get an alert at the end with the returned data). However, when I add another variable to the data, like stop4: stop4, the script does not run (all I see is one alert with "running ajax function").

View 1 Replies View Related

JQuery :: Dynamic Function Calls On Success

Sep 22, 2010

I am trying to call a dynamically chosen function on success from an ajax call (later to be error and so on also)The following function works fine and passes the url to call and parameters into the makeAjaxPostCall function. successHandler is the function to call on ajax success.[code]

View 2 Replies View Related

JQuery :: AJAX Calls Acting Syncronously?

Aug 10, 2009

I am a newbie to using jquery and have been exploring it developing a new app. At the moment I have a number of AJAX calls to the server which I have been queueing in an array and using a single $.ajax call to handle all of them. However I know about the browser limitations of two calls per page (at the same time and want to implement this to speed up page updating). To test concurrent ajax requests I have setup various asp pages to with delays 1sec, 5sec, 10sec etc etc. and a test html file with the follwing javascript

[Code]...

View 4 Replies View Related

JQuery :: AJAX Calls To A Server On A Different Port?

Nov 3, 2010

I know about the same-origin policy and that one of the only ways to load data from a cross-domain is to load it as JSON. However, all I am trying to do is access data from a server on another port (which I believe the browser still treats as cross-domain). I need to do this because the server my application is on is a map server and the other server (Apache) is the only one that can handle php scripts. I have also tried out the plug-in from [URL] and while it works when I do $('#phpContent').load('http://www.google.com'); it doesn't work when I try $('#phpContent').load('http://localhost:80/mapScripts/getFiles.php'); I have also tried$.get('http://localhost:80/mapScripts/getFiles.php', function(data) { $('#phpContent').html(data); });

So here I am breaking my brain and do not know what else to attempt.

View 1 Replies View Related

JQuery :: Chaining AJAX Calls With Pause?

Aug 26, 2009

is there a possibility to chain AJAX Requests? By now i have 5 AJAX Functions where one calls the next (Button Click

View 2 Replies View Related

JQuery :: Slow Response To AJAX Calls In IE7?

Jul 30, 2009

I am developing quite a complex user interface in jQuery that relies on an AJAX call to retrieve JSON.We have noticed that the code runs slow in IE7. IE8 and IE6 are acceptable. Firefox and Chrome really quick. I have traced the problem back to the AJAX call, which IE7 seems slow o process. What takes less than a second in the other browsers will take IE7 3 or 4. I have googled for an answer it seems there is some consensus that the native XHR in IE7 is slow, so it may not be a specific jQuery problem.Has anyone else experienced this? Does anyone have a solution? Please consider that this will be a public website, so the solution cannot involve altering settings on users' machines.

View 5 Replies View Related

JQuery :: Memory Leaks With Ajax Calls?

Oct 27, 2010

I have a jquery based system with ajax calls instead of page refreshes. Every time I return some ajax content, it replaces the content on the main div.

function execcmdcallback(data, textStatus, XMLHttpRequest)
{
$("#divmain").html(data);
data = null;
}

Each time this executes, the browser memory increases by about 600-900kb. Can anyone suggest a way of doing this where the old memory is freed so there is no significant increase in browser memory on each ajax call ?

I've studied this a bit, [URL]..., but I have to admit I don't quite understand it I see the same issue on IE8, FF and Chrome. FF comsumes less memory per ajax call and frees some memory seconds later, but still the total working set is increasing on each call by 300k in FF and 600 to 900 in chrome and IE

View 15 Replies View Related

JQuery :: Multiple Calls To A File In The Same Function?

Jan 3, 2010

I'm trying to in make in a single function, multiple calls to the same file changing one parameter the problem is thatit is taking it like if I wasn't changing the parameter and is sending only the last value all the times.Here is my code:

$(function(){
$('#btn_search').click(function(){
// what to search for

[code]....

View 2 Replies View Related

JQuery :: Preventing Users Hijacking Calls?

Apr 14, 2011

I am building a user-based online application using jquery, and I am concerned about the possibility of users being able to hijack my ajax functions. I'm sure there is a standard way of dealing with this, but I don't know what it is.For example, if users are logged in,and want to send an instant message to each other, they can use a simple messaging system.An ajax call passes their message to a back-end handler script, like so:

$.ajax({
type: "POST",
url: "back-end-handler.php",

[code]....

View 7 Replies View Related

JQuery :: Multiple Ajax Calls On One Page?

Jan 12, 2011

Basically, what I am trying to do is call several ajax requests using jQuery on the same page, i know that all browsers are capable of requesting multiple requests. However in Chrome and Safari my website works fine, but IE, Firefox and Opera all only call the first request then dont call, the second two. I dont know why though?

All of the code for the site is here: [URL]

View 5 Replies View Related

JQuery :: Changing The Id Of A Form That Calls A Function?

Nov 21, 2011

There is a line in a jquery plugin that I am using that calls a function to run on the inputs of form "autoSubmit."

Code:
$(function(){
$('#autoSubmit INPUT').autoSubmit();
});

My problem lies in that I have multiple of these forms on a single page, each one named autoSubmit. I easily rename each with PHP to autoSubmitXXX or YYY depending on their record id numbers, but then the .autoSubmit(); function doesn't know which form to work with.

Code:
'#autoSubmit INPUT'

I can grab the individual form ID (XXX or YYY) with:

Code:
var where_val = form.find('#where').val();

View 5 Replies View Related

JQuery :: AJAX Calls Not Working On Local Computer / Fix It?

Jun 4, 2010

I'm trying to load a Javascript file which contains an array of data using .getScript(). It works fine on my server, but the request is never being made when I run it on my own computer, though the callback function is called. Is this an inherent limitation in JQuery/AJAX, or am I doing something stupid? code...

View 1 Replies View Related

JQuery :: Dynamic Number Of Ajax Calls In One Click?

Jul 6, 2011

I want to be able to load content of multiple divs in just one click.And after the content has been loaded make a final call to a function on success.I'm using JQuery.when() wich works fine like this

[Code]...

View 1 Replies View Related

JQuery :: Ajax Calls And Microsoft Internet Explorer ?

May 26, 2010

Issues with jquery ajax calls with IE and what the workarounds are?

I'm having users complain about issues of an ajax call not working, however, I've been unable to reproduce this or see the error myself.

Works fine in firefox/safari/chrome. I have windows7 + IE8/IE7 to test and that works.

My call looks like this...

I added the _requestno parameter because i read that IE does some smart caching of ajax calls, but, that didn't solve the problem.

View 2 Replies View Related

JQuery :: Error() Calls Showing Up In Firebug Profile

Mar 17, 2010

I am working on an ASP.NET application that make a lot of jquery and javascript calls and trying to optimize the client side code as much as possible. (This web application is only designed to run on special hardware that has very low memory and processing power.)

The profiler in firebug is great for figuring out what calls are taking up the most time. I have already optimized a lot of my selectors and it is much faster.

However the profile shows a lot of jquery error() calls. In the attached image of the firebug profile window you can see it was called 52 times, accounting for 15.4 of the processing time.

Is that normal for jquery to call its error() like that? My code works flawlessy, and there are no error messages in the firefox error console. It seems like that is a significant performance hit. Is there anyway to get more info on what the errors are?

Attachments
jquery_error.JPG
Size : 40.04 KB
Download : 249

View 4 Replies View Related

JQuery :: Multiple Document Ready Calls Not Working?

Nov 2, 2011

I'm developing an asp.net MVC app, and decided to take advantage of JQuery's great datepicker using the following code in my master page:

[Code]...

My problem is that the alert block of code never fires. When I change it to occur before the datepicker code, the alert fires but the datepicker part won't work. What am I doing wrong here?

View 4 Replies View Related

JQuery :: Adding .min.js - Tabbed Content Box Feature That Calls

Apr 10, 2010

I have 2 separate things going on my homepage using jQuery. One is a menu calling the following jQuery:

The other is a tabbed content box feature that calls the following jQuery:

Everything works with great with the menu until I call jquery.min.js then the tabbed content box works great and the jquery for the menu is broken. If I'm not mistaken, I cant use jquery no conflict because that only separates jquery from mootools or something like that. So, what is the solution when jquery interferes with itself?

View 2 Replies View Related

JQuery :: Triggers Ajax Calls On Button Click?

Dec 7, 2010

I have a code that triggers ajax calls on button click, it all works fine but every now and then, the click triggers 2 AJAX calls. When i look at these calls in FB i see they succeeded (they get the expected response) but i get Timeout (I've set it to 3 seconds).

View 1 Replies View Related

Ajax :: Make Multiple Asynchronous Jquery Calls?

Apr 7, 2011

I want to send another ajax request when one request is in process to get the status of first request.
If I call both the request the second request gets blocked till the completion of the first request.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved