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
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(/[\]]/,"\
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
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
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
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
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
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
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
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
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
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
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!
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(""
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
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
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
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
Is it possible to remove a script from a page dynamically?
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)
$(".
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
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
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
the docs say this retrieves javascript files. does it retrieve and load CSS?
24 matches
Mail list logo