Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: "GET",
- url: "/url/to/ajax",
- data: {"foo": bar},
- success: function(data) {
- $("#my-table").html(data['html']);
- // alert(data['script']); // this works: I can see the script
- eval(data['script']);
- },
- error: function() {
- $("#my-table").html('');
- }
- });
- $(".foobar1").tooltip({
- content: "The <em>foo</em> to the <strong>bar</strong>.",
- tooltipClass: "tt-ref",
- show: null,
- close: function (event, ui) {
- ui.tooltip.hover(
- function () {
- $(this).stop(true).fadeTo(400, 1);
- },
- function () {
- $(this).fadeOut("400", function () {
- $(this).remove();
- })
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement