Questions tagged [getscript]
188 questions
0
votes
1 answer
jQuery load() div that contains a script
I'm trying to load a div that contains a javascript link into another div on another page (http://www.thebigkerbang.com/brand-storytellers/clients/xour-clients.html) with load(). I know load() strips out the script tag but I'm getting a bit confused…

Andy Nightingale
- 149
- 2
- 4
- 16
0
votes
1 answer
drop in pageviews and increase in bounce rate following event tracking implementation
I have just completed a round of Google Analytics Event Tracking updates on the site, which has included updating my _addOrganic calls, which are included in the file /scripts/ga_search_engines.js.
These files are:
NEW - 27kb in size and 28kb in…

crmpicco
- 16,605
- 26
- 134
- 210
0
votes
1 answer
jquery load and javascript
I've seen many topics on this site about using jquery load and loading the script the in the html fragment. I, unfortunately, have not been able to get any of these methods (getscript) to work. Here is the code that loads the html and the supposed…

user1437779
- 7
- 1
- 5
0
votes
0 answers
How do I access the transferred contents from a cross-domain getScript() AJAX request?
I am using the jQuery (1.7.2) getScript() AJAX method to fetch an external (cross-domain) HTML page which contains embedded javascript. I am using the 'script' data type for the getScript() command because it has no cross-domain restrictions. In…

frank
- 295
- 3
- 8
0
votes
3 answers
Debugging getScript()
Using Google Chrome (Chromium), is it possible to watch/see $.getScript() loading external scripts into your webpage?
Basically, I am dynamically loading many scripts into my webpage based on user preference, and it's causing an issue, I want to…

oshirowanen
- 15,297
- 82
- 198
- 350
0
votes
2 answers
JQuery getScript with livequery - asynchronous execution throwing off my results
We had a "utility" js function that was included in several js files in our site, so to reduce code repetition we moved it to a utilities file and modified all the js files to load it before using it with getScript. This worked in most cases, but…

froadie
- 79,995
- 75
- 166
- 235
0
votes
0 answers
How to get javascript in main page to append to elements in ajax loaded div using jquery?
I'm using the jquery load function to switch out a div. Whenever I load a certain element via ajax that needs javascript to run -it won't work in the div. I know that this is because the element didn't exist in the dom on the initial page load.…
0
votes
1 answer
getscript doesnt work after clearing cache
I am using getscript() to load some scripts for my image gallery. As soon as I click on the gallery, this code runs :
$(function () {
$(window).hashchange(function () {
$(document).ready(function () {
$('#nav li a').click(function () {
…

soundswaste
- 2,964
- 3
- 23
- 40
0
votes
2 answers
Using swipe.js with $.ajax() content
I am using Brad Birdsall's Swipe.js plugin as a touch friendly, library agnostic plugin for a slider in my current mobile project. When I populate the slider on page load, everything works great. However if I try and populate the slider with…

robabby
- 2,160
- 6
- 32
- 47
0
votes
1 answer
Check if the external js file is already loaded
On success of ajax request, i load a script using,
$.getScript(base_url + 'js/js_to_be_loaded.js');
Is there any way i could check if that particular script is already loaded ?
Thanks.

Priyank Kapasi
- 1,773
- 2
- 18
- 27
0
votes
1 answer
how to execute external script with jquery
i want to execute an advertisement script after the page has been loaded.
i know that i have to use something like this:
$(window).bind("load", function() {
$.getScript('http://anetwork.ir/showad/?adwidth=468&adheight=60&aduser=1341223032',…

kami
- 1
- 2
- 3
0
votes
2 answers
Javascript error "XML can't be the whole program" reported in FireFox using getScript() in jQuery
I'm having issues with browsers reporting a javaScript error on my page. Although the page is fully functional, I prefer not having javaScript errors as it looks bad to users.
The error I'm getting in FF is:
Error: SyntaxError: missing } in XML…

Jiminy Cricket
- 908
- 1
- 9
- 24
0
votes
2 answers
Using resize to getScript if above x pixels (jQuery)
So I have an issue with this script. It basically is loading the script on any resize event.
I have it working if lets say...
- User has window size above 768 (getScipt() and content by .load() in that script)
- Script will load (and content)
-…
user1065573
0
votes
1 answer
Accessing loaded script using jQuery getScript method
I'm using the $.getScript to load a jQuery plugin in my own plugin. The problem is that I can only access the loaded plugin and instantiate an object in the callback function of the $.getScript method.
I would like to know if there is a way to do…

JDL
- 231
- 4
- 16
0
votes
1 answer
getScript displaying loaded data in a div
I'm trying to load a video stream provided by a 3rd party into my site. The file linking to the stream is provided as a js file and simply writes out document.write('iframe code...'). As the stream is domain protected so the js file has to be…

squeaker
- 395
- 2
- 7
- 17