Questions tagged [getscript]

188 questions
0
votes
1 answer

Can't get $.getScript to work

I'm trying to load a custom javascript for cloudzoom on desktops and a other one for touch devices. In my i have this piece of code: if ("ontouchstart" in document.documentElement){ // It's a touch screen device. …
0
votes
3 answers

how to refire scripts from index page?

I'd like to refire scripts (syntaxhighlighter, processingjs) that were loaded in my index.php main page. I'd also like to execute scripts on the other side of a .load() request...this seems unlikely as these page requests are also hitting .text(),…
expiredninja
  • 1,397
  • 4
  • 25
  • 45
0
votes
2 answers

How to run processing.js using jQuery's getScript

I have made a processing sketch which I want to include on my blog. The recommended way like so works fine: I only want to load processingjs if there is an sketch on the page, I wanted to achieve this…
askmike
  • 1,900
  • 4
  • 21
  • 27
-1
votes
3 answers

JQuery getScript reporting error "is not a function" for a function that was not called

I am using JQuery's getScript function to load scripts depending on the device type, to hope fully save on unnecessary requests and load time for mobile devices. I have this code currently:
-1
votes
1 answer

My Dynamic Ajax site is overloaded with multiple getScript calls

I have a dynamic website where all links grab new sections via an ajax request from other pages and replace the current section. My problem comes in two forms. When I load a new div from an Ajax get request. Some sections need js files too. For…
-1
votes
1 answer

Jquery getScript (after ajax call) uses 100% CPU

I am loading a post via ajax in a page that has several scripts I need already on it. I needed to reload these scripts and originally placed them in the ajax page being called, but realized (because of a chrome console warning) that this is a no-no,…
Stephen
  • 8,038
  • 6
  • 41
  • 59
-3
votes
1 answer

how to call another function from a different file using eval in jquery

so basically i have an app.js file which has a function which will pass a parameter and i have more js files like posts.js, comment.js then i can do app.init('posts'); then i find the file, get it using getscript, but now i need to call the…
Daniel Le
  • 199
  • 4
  • 16
-3
votes
1 answer

"$.getScript @href" does not get the href from a button, only from an a tag

I am listening to a button and some a tags with this code: $("#pagination_partial a, #order_sorting_partial a, #order_sorting_partial .organize-btn").bind("click", function() { $.getScript(this.href); history.pushState(null, "", this.href); …
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
1 2 3
12
13