Re: [jQuery] getScript - Site does not finish loading?

2010-01-12 Thread Nathan Klatt
On Tue, Jan 12, 2010 at 3:53 AM, chricke wrote: > as i understand the getScript function should be asyncronous, but when > i use it the website won't finish loading (in firefox). > >        function getCounter(){ >                jQuery.getScript('http://example.com/counter?id='+get_url_pa

[jQuery] getScript - Site does not finish loading?

2010-01-12 Thread chricke
hi all, as i understand the getScript function should be asyncronous, but when i use it the website won't finish loading (in firefox). my code: jQuery(document).ready(function(){ function get_url_param( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\

Re: [jQuery] $.getScript results in two requests!

2009-11-24 Thread Michael Geary
Can you post a link to a test page? Pretty hard to troubleshoot by just looking at the headers. Of course, someone will come along and troubleshoot it from the headers alone and prove me wrong! :-) -Mike On Tue, Nov 24, 2009 at 6:50 AM, Eric wrote: > Hey there, > > A $.getScript() call I am m

[jQuery] $.getScript results in two requests!

2009-11-24 Thread Eric
Hey there, A $.getScript() call I am making results in two seperate requests to the server. Any chance I can avoid that? Here are the headers: GET server.file?param1=param2 HTTP/1.1 Host: server User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20

[jQuery] jQuery getScript under IE6

2009-11-21 Thread Nick
Hello. jQuery getScript does not work under IE6 I've try: $(document).ready(function(){ $.getScript("***LINK***"); }); ***LINK*** returns alert(1); But no alerts, no errors in IE6 But under FireFox it works. That is wrong??? Example http://docs.jquery.com/Ajax/j

[jQuery] $.getScript()

2009-09-05 Thread rosshadden
Is it a known issue that $.getScript() does not work in Chrome, or could I be doing something wrong? I am able to load scripts using this function in any browser, but in order for me to be able to use their contents in Chrome I need to put blocks of code in the callback of $.getScript. While it

[jQuery] getScript() issue under ie6 (undefined variable)

2009-07-14 Thread Olivier
Hi, I'm using getScript to load a script which basically contains a variable, and then i'm using this variable in the callback function. It looks like that : $.getScript( myScriptURL, function() { // execute this code on success $("div#result").html(myVar.content); }); and, the

[jQuery] $.getScript callback doesn't work as expected

2009-07-10 Thread yhvh
The docs say: Callback A function to be executed whenever the data is loaded successfully. function (data, textStatus) { // data should be javascript this; // the options for this ajax request } however if I do $.getScript(url, function(data){console.log(data);}) it prints null. The script is

[jQuery] getScript problem with ie6

2009-07-07 Thread Luca Maggioni
Hi I download asynchronously a js with: $.getScript( mapScript, function(){ initMap(); } ); mapScript is a string that contains the microsoft virtual earth scripts. initMap display the map using the objects defined in mapScr

[jQuery] getScript does not always work for me

2009-06-25 Thread Nikki Locke
I am building a web app that is controlled from a server. I want the server to send objects to the app, which the app then processes. I am using getScript for this, but it doesn't seem to be working for me. I have example code at //jsbin.com/umuwi This code calls getScript on the url ://jsbin.com

[jQuery] $.getScript Must Take .js File?

2009-03-25 Thread Code Daemon
I am using codeigniter and it forms urls like this: http://mydomain/index.php/system/edit_js I'm trying to call $.getScript by going: $.getScript("http://mydomain/index.php/system/edit_js";) but I get a 404 not found error. I pasted the url in my webbrowser and it works just fine. Is there any

[jQuery] $.getScript fatal error with XML.

2009-02-16 Thread Kuma Pageworks
I posted about this before, but the response didn't help - so I thought I'd try posting again. I have a function that's putting together a GET request and sending it off with $.getScript to retrieve an XML file. When I get the response back, Javascript throws an exception: missing ; before state

[jQuery] $.getScript - passing the response.

2009-02-12 Thread brian.overl...@gmail.com
I'm using $.getScript to get XML from a remote server. How do I pass the response text from that request to another function? Here's the pseudocode: $.getScript(getURL, function(){ processXML(); }); How do I pass the response text to processXML? Thanks!

[jQuery] getscript without parameters... an alernative?

2009-02-04 Thread pere roca
hi all, if I'm not wrong we cannot send parameters to a script called by getScript function; so, if we "download" or get the script and then we call a function inside the script, shouldn't it work? the function is there, now in our browser... but doesn't work. $.getScript('script.js'); x(""

[jQuery] getScript + google-maps = page locks up ?

2008-09-11 Thread chris thatcher
Well I lied a little but it's $.ajax ith the datatype set to script: var _this = this; var url = "http://maps.google.com/maps";; var data = { file:"api", v:2, key:"ABQIjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYR

[jQuery] $.getScript() - how to load into JSON formatted object?

2008-07-06 Thread jquertil
var blah = { something : function(variable){ alert(variable); }, something_else : 'hello' } alert( blah.something_else() ); // 'hello' blah.something('whatsup'); // 'whatsup' so far nothing unusual... but... how can I put the "blah.something" function into a separate .js file and

[jQuery] $.getScript in Firefox 3

2008-06-25 Thread robert_shipley
I've been developing a website and we use getScript to load all of our javascript files (other than jQuery) so the header of the page is shorter. We have a mechanism in place which allows functions to be executed when the script has downloaded. (Registering a function as a dependency of a file and

[jQuery] getScript Problem

2008-06-07 Thread pedramphp
we need some triple javascript files to load with $.getScript in jQuery .. how could I do this if all the js files was loaded the A function get activated I need something like this $.getScript("test1.js,test2.js,test3.js,function(){ alert("Some thing Activate") }); but there isn't capabil

[jQuery] getScript is great to add scripts dynamically, but how might you remove scripts?

2008-04-21 Thread cfdvlpr
Is it possible to remove a script from a page dynamically?

[jQuery] getScript making multiple calls

2007-12-03 Thread Feed
Hello all, I think I not using getScript properly and would appreciate very much if you could help. I have a page which is load via ajax GET and I need the script to run again each time new data is loaded (when the user clicks a button). Something like this (this file is called scripts.js) $(".

[jQuery] $.getScript and variables

2007-09-09 Thread Equand
Hi everybody... i have a question... i want to virtualise my admin section... by getting the script from a php file on post. is this real? and i want it to use current documents vars... i just copied part of the script and tried to load it using getScript... but this part doesn't work, when I put

[jQuery] getScript Safari fix

2007-07-11 Thread Dave Stewart
I have no idea if this possible solution to making getScript work across all browsers (including Safari) has already been mentioned, but I thought I'd provide it in case anyone was looking for a way. I've seen uses of timeouts and such to try to figure out when a script has been loaded, but ultima

[jQuery] getScript problem

2007-06-17 Thread Jacky
I have tried to test on the twitter json and so I use the getScript to do that. It works in IE but not Firefox. The js console error shows: [Exception... "' P ³å|ë method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STR

[jQuery] .getScript()

2007-04-04 Thread Ariel Jakobovits
the docs say this retrieves javascript files. does it retrieve and load CSS?