script « html « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » html » script 

1. Sending html email having JQuery scripts    stackoverflow.com

I'm using PHP to send html emails. I've tried to import css files inside the email, and it works fine.

<link href="http://www.mywebsite.com/css/mail_styles.css" 
      type="text/css" rel="stylesheet" />
But i ...

2. jQuery AJAX with remote HTML containing JS    stackoverflow.com

I have a page setup that uses jQuery + AJAX to load content into an accordion frame. It works fine for loading straight text/HTML but I now need to load Javascript ...

3. Will jQuery's html() function reliably execute any contained scripts without weird side effects?    stackoverflow.com

it appears in some limited testing i've done - that if I load a document with jQuery using .ajax() and then add it to the DOM with .html(data) that any SCRIPT ...

4. disabling a javascript script when loaded on a smart phone    stackoverflow.com

I am using the following HTML fragment to load a different stylesheet for smartphones:

media="only screen and (min-device-width: 4801x)"
media="only screen and (max-device-width: 480px)"
I would like to disable a certain javascript script for ...

5. jquery ajax html response change 1.3.2 vs 1.4.2 (aka where is my script tag?)    stackoverflow.com

I've been using jquery 1.3.2 to pull snippets of html (including script) from a server. A typical response might be:

<div id="content"><div id="inner">...

<script type=...> alert("hello world");</script>

<p>Hello World</p>

</div></div>
I've been using the query .get ...

6. jQuery - script tags in the HTML are parsed out by jQuery and not executed    stackoverflow.com

I have an HTML page like so:

<html>
<body>
<div id='something'>
    ...
    <script>
    var x = 'hello world';
    </script>
    ...

7. jQuery.html() removes scripts and styles    stackoverflow.com

Is there a way to use jQuery.html() and not loose the scripts and styles? or any other non-jQuery way? I'm trying to output the full HTML of the page the user is ...

8. Is there a way to pull valid script from html content and execute it using jQuery?    stackoverflow.com

Say I have a something like this:

<p id="script">$("p").css("color", "red");</p>
Is there a way to select the script contained within the tag and execute it using jQuery? In this case, the script
$("p").css("color", ...

9. what is wrong with this jquery script?    stackoverflow.com

What is wrong with this jquery script? It doesn't seem to be functioning properly: there are no syntax errors (I checked).

     $(document).ready(function() {
  ...

10. jquery html() strips out script tags    stackoverflow.com

I need to replace the content of a div in my page with the html resultant from an ajax call. The problem is that the html have some necessary scripts in it ...

11. problem when ajax method in jquery loads a html with the same script    stackoverflow.com

and first of all sorry for my english. I do a code that load content into a div, without refreshing the web, every link sends vars trought ajax and returns some html ...

12. Whats wrong this live preview jQuery script?    stackoverflow.com

i have this script in jsfiddle, that while im typing it should show display the live text underneath. its a simple script, but i cnt seem to see what the problem is, ...

13. Scripting error in jQuery/AJAX code snippet?    stackoverflow.com

this should be a simple question, but the answer has eluded me for some time now. I seem to have an error in this code, either a scripting typo, or an ...

14. What techniques do you use for emitting data from the server that will solely be used in client side scripts?    stackoverflow.com

I never found an optimal solution for this problem so I am hoping that some of you out there have a few solutions. Let's say I need to render out a list ...

15. Conflict with jQuery scripts    stackoverflow.com

I have these jQuery scripts in my HTML and they work very well...

<script type="text/javascript">
      $(function() {
        $('#iphone').crossSlide({
   ...

16. Implications of multiple Then I want to put inI have tried to change the type to be say type = "text\Myjscript"and then the following;