jquery

How to SetVariable in jQuery

I have a percent gauge dashboard widget implemented as an SWF movie. I am using jQuery in my JSP to achieve some AJAX update capability. For now, I am simply trying to set the value that displays on the gauge with the SetVariable() function in the code below. This cannot be done as an initial flashvar by design of the creator of the g...

jquery disable mouseover while waiting on callback

I have a mouseover effect using jquerys animate. The effect makes a div grow in length by * 2 on mouseover and shrink back on mouseleave. This works fine apart from if you move the mouse in and out really quickly - the effect doesnt have time to catch up and so the div just keeps growing. Is there anyway to disable any further events ...

jQuery slider does not work with DotNetNuke module.

Hello, I have used the s3Slider jquery plugin to create nice banner animations in both html and asp.net pages. here is the link to plugin: http://www.serie3.info/s3slider/demonstration.html However when i try to use it inside a dot net nuke ascx control it does not work at all. Maybe i have to change the code but I have no idea becau...

How select button in JQuery

<?php foreach ($list as $item): ?> <tr> <td> <div id="<?php echo $item['id']; ?>"> <input type="text" name="name" id="name"/> <button type="submit" id="ajax_submit" value="<?php echo $item['id']; ?>">run</button> </div> </td> </tr> <?php endforeach; ?> In this php-code I generate html table. When user click ...

search and replace with jQuery

Hi, I want to search a keyword into body and replace it with a link if it is already not linked to somewhere. My code is : var search = $('body').html(); search = search.replace(/jQuery/g, function($1){ return('<a href="http://jquery.com"&gt;' + $1 + '</a>'); }); $('body').html(search); The problem is, it replaces all keyword ev...

IE 6 7 Privacy report

I am working on a site that is triggering the privacy report symbol to appear in IE. I am using a twitter plugin that displays some of my latest tweets. website link I think it is this code that is triggering it, but not sure. (This code is in jquery.tools.min.js @ line 311) function build_url() { var proto = ('https:' == document.l...

How can i get content of CKEditor using JQuery?

Hello everyone. I'm using CKEditor. I am saving the form values with ajax using page methods. But the content of CKEditor value cannot be saving into the table. I dont postback the page. What can i do for that? ...

My app is sending me JSON. How do I take that JSON and inject HTML into the page?

With $.ajax, I'm getting a JSON response like follows: [{"project":{"name":"P1111", description":"I like chicken soup","active":true}} .....repeats several times] What I'd like to do with jQuery is take that JSON response, and loop through it to create the following on id=target <ul id="target"> <li>P1111 - I like chicken soup - ac...

jquery: howto return caller-id when using wildcard selectors

i'm using jquery to invoke JSON-requests and they're triggered form a bunch of autocomplete-fields. I use wildcard-selector and now need to find out which ac-field that fired the event. ... $( "[id*='_lookupCmb']" ).autocomplete({ source: function( request, response ) { $.ajax({ ... ... select: function( event, u...

Alert using Jquery when Scroll to end of Page

Is there a way to find out page end using Jquery, so that a simple message can be displayed saying you have reached end of the page. ...

How can I resize an image, added via ajax, to fit within specific dimensions while maintaining aspect ratio using JQuery/CSS?

I've got a web application that loads some content from an external source to the dom via an ajax call, one of the things that comes back is a set of images (different sizes and aspect ratios) to be displayed in an profile photo section. I'd like for each of the images to be resized to fit within a 64px x 64px area and I'd like to mainta...

Find word on page, wrap in span tags with class.

I would like to Find word on page, wrap in span tags with class. before proceeding to execute a javascript i have almost got ready. If i can work out how to just do this first part i think i can get the rest. Find word on page, wrap in span tags with a class applied to the span tags. Must then be searchable via:      $(document).ready...

div not expanding to new content in IE8

I have a div A and another div B inside it. Using jquery i get data and insert into HTML() in div B, div A does not expand its length and div B overflows over the bottom. Here is its CSS: #A { position:absolute; top:30px; left:0; background-color: #FFFFFF; width:920px; display:block; padding: 0 0 30px 0; ...

JQuery UI slider show but doesn't respond to events after the first click.

I setup three sliders. One is a range, and the other two are regular. The sliders render on the page, but on first click they go to either min or max. After that they seem to be stuck. Adding console.log to the event handlers show that they don't respond to anymore events after the first click. There are no console errors either. I...

Replace <span> element with var containing html.

I have a variable i lifted the contents of, from a div on the page, like so: var originContents = $('#origin .teleportMe').html(); there is a set of span tags, with class="insertionPoint" on the page, i would like to remove and replace with the contents of the origin div. i would prefer to do this with jquery but not essential. repl...

Need help resolving a JavaScript conflict using jQuery Anything Slider

The site has an existing rotating header banner and I am attempting to add CSS-Trick's AnythingSlider to the body. When the AnythingSlider is added, the rotating banner breaks. Here is my test page http://www.visfire.com/slidertest.html. Please see the home page to view the current rotating banner in action. I have tried turning off ...

CSS/JQuery menu navigation

What code or script am I looking for in order to sticky a menu to the top of the website even as the user scrolls down the page? ...

Continuously Check Time

Firstly, how can I have jQuery continuously check the time, and add an id to a <div> tag if the current time is in between two set times? I'm making a clock for a school (where the clock is a website sent over cable to TVs in every room), where each period is expressed like this: <div class="period 1">Period 1: 7:32-8:14</div> I'm get...

Is there a way to bind to the load() event of an image after changing it's src?

Hi all, I have an image <img id='my_img' src='img1.png'> and a button. Clicking the button does the following: $('#my_img').attr('src','img2.png') This second image (img2.png) is fairly large, and I want to know when it is fully loaded (i.e. .load() event). I tried to use .live, .bind, and .complete but none seem to fire. Any ideas? ...

Updating a select option using jQuery

I have a form where when something is updated, I need to change the name of that item in a select input. I'm using this to loop through the options, but I'm having trouble figuring out how to change the text value. Here is what I tried $('#GroupID option').each(function () { if ($(this).val() == currently_editing_g...