jquery

JQuery Slider alternative?

I am using the JQuery Slider control for use as a double sided slider. It's a great UI control but I'm looking for an alternative that isn't so "fat". Right now, just for me to use the Slider control, I have to include: JQuery core JQuery UI core JQuery Slider plugin When I both minimize using Google's awesome Closure (minimizer)...

jQuery selector help ?

How to anchor paragraph in other HTML pages and in the same time highlighted the area where the pointed paragraph is located when click the the button in the current page? I made this simple code in JavaScript just doing the anchor thing Current page: <html> <form> <input type=button value="open in new tab" onClick="goToU...

jquery javascript: take action when radio button is selected

I have the following radio buttons, none of which is checked by default. <input type="radio" name="location" value="0" /> home <input type="radio" name="location" value="1" /> work <input type="radio" name="location" value="2" /> school How do I detect when either of them is checked. I'm looking for something like click, but it's not...

Small JavaScript tab library? (alternative to JQuery tab or Tabber)

Hi I'm looking for a very light weight (small library) that can act as a JavaScript tab I've looked at both JQuery's Tabs and Tabber. Both look great and function flawlessly but they are both semi large downloads for what they just do. Both, even with minimized and GZIP'd run around 18kb in size. Does anyone know of a smaller, light...

Multiple ajax content requests in a loop

I'm trying to load some ajax content into a table, unfortunately it's only loading the last row multiple times instead of loading each new rows. This is the code I'm using: function periodicRefresh() { $.ajax({ type: 'GET', url: 'include/ajaxActions.php', data: "action=displayLastEvent", success: fu...

JQuery: Code is malfunctioning

Hi! I'm trying to reuse parts of some JQuery code I've used before for another website, but for some reason, this use of it is causing the whole page to be blank. When I comment the JQuery code out, it displays as intended. The code is below (this is inside my <head> element): <head> <!-- Jquery Stuff --> <script type="text/javasc...

Select content from JQuery ajax return object

As I understand it, the JQuery load() function retrieves a document and can perform the quivelent of: $('#somecontenttograb').html() upon it. I would like to know how to do that... In essence, I want to use JQuery to asynchronously download a web page and then grab elements from it and insert them into my own document at different pl...

jquery dialog in asp.net initialise dialog with serverside call

I'm really trying to get to grips with this jquery. What i want to do is load a jquery dialog but before it loads i need to do some server side processing and bind a datalist inside the dialog. I have know idea how to do this? ...

how to retain the div contents after page refresh

I am creating a dynamic div using Jquery and I am trying to cache it so that, I will get it back after the page refresh, please help on how to achieve this, pasting the code below <script src="jquery-1.3.2.js" type="text/javascript"></script> <script src="jQuery.jCache.js" type="text/javascript"></script> <script type="text/javascript...

JQuery background color animate not working

I want to change the background color of 'exampleDiv' from the original white background to when I call the code below to immediate change the background yellow and then fade back to the original white background. $("#exampleDiv").animate({ backgroundColor: "yellow" }, "fast"); However, this code does not work. I have only the JQuery...

Can I call jquery click() to follow an <a> link if I haven't bound an event handler to it with bind or click already?

I have a timer in my javascript which needs to emulate clicking a link to go to another page once the time elapses. To do this I'm using jquery's click() function. I have used $().trigger() and window.location also, and I can make it work as intended with all three. I've observed some weird behavior with click() and I'm trying to unders...

Are these JQuery calls the same?

Hi guys, Could someone tell me if this: $.ajax({ url: 'test.html', success: function(data) { alert("Data Loaded: " + data); } }); is the same as this: $.ajax({ url: 'test.html', success: function(data) { alert("Data Loaded: " + $(data).html()); } ...

Binding events, stopping multiple actions

I am binding 3 events: $("#form").bind('keyup change submit',function(event){ //do something alert("test alert"); }); In a form you can have text fields, dropdowns, checkboxes, etc.... From what I noticed, the "change" event does not get triggered with text fields until you click 'outside' of the text box. So, I use the "keyup" event,...

Website problems with Safari

Does anyone know why my site is all messed up on safari? I need to get it live by monday and this is racking my brain. http://cheapramen.com/JQuery/WildFire/ Thanks in advance! ...

JQuery: How can I replace a tag without disturbing the content?

I'm looking for a technique using JQuery to remove an html tag (both opening and closing) without disturbing the content. For example, given this markup... <div id="myDiv"> Leave My Content alone! </div> I want to get to this... <span id="#mySpan"> Leave My Content Alone! </span> What I've tried: I thought about $("#myDi...

Getting a Error with Jquery.Validate Plugin in IE 8

Hi I don't know what is going but my jquery validate plugin(1.5.5) is not working and I am not sure for how long since I do most of my testing on firefox. The problem is this I go to one of my forms that jquery validate on it and hit my "create" button my validation kicks in as it should and does this right in all browsers including IE...

JQuery: Select elements that are before an anchor with a specific text

I have a div having a css class "MyClass". Inside this div, I can have any number of checkboxes immediately followed by an anchor having some specific text (lets say MyText for the example). How can I select all the checkbox elements using JQuery. What I have is $('div.givenclass input:checkbox')."I DON"T KNOW WHAT TO PUT HERE" I wan...

Why does this only work in Firefox? Rendering Of Asp.net MVC partial View and passing result back through ajax

Hi Basically I have this In my Asp.net controller public ActionResult RenderMyView() { data = // some data to used in rendering my partial view return PartialView("PartialView", data); //edit I also return a json result if an error occurs. Say if I get an SQLException I will return a json result back and not render any part...

There is only one "submit" for one form,how to place more than one operations on a set of checkboxes?

There is one form, inside the form there are many checkboxes. Two operations can placed upon these ticked checkboxes. Since there is only one "submit" button for a form, how to walk around this? I know I can set two buttons, one button for each operation, and an extra "submit" button, which looks like the pseudocode below: <form> <chec...

Stop form page load upon submit with jQuery

$(document).ready(function() { $("form.ajax").submit(function(e) { destString = $(this).attr('action'); dataString = $(this).serialize(); $.ajax({ type: "POST", url: destString, data: dataString, datatype: json, success: function(data) { if (!data.success) { $.amwnd(...