jquery

retrieving saved url in cookie for body background jquery

I am trying to retrieve a saved url from a jquery cookie its saving in the cookie but its not retrieving the cookie url $(document).ready(function() { $("#BGSelector a").click(function() { var imgLink = $("img", this).attr("src"); $.cookie("html_img", "" + imgLink + "", { expires: 7 }); var imgCookieLink = $.cookie(...

jquery .ajax, google visualisation and problems getting them to work together

Hi, I'm trying to use jquery's .ajax(), google visualisation annotated timeline and one of the google datatable helpers together. Ultimately what i'm after is having a link on a page and when the user clicks it data is loaded asynchronously via jquery.ajax(), returned as google visualisation compliant JSON and passed to the charting API...

how to get the values of the radio button which has been checked , jquery

hi ,, can we get the values of the radio buttons , only those which has been checked , cause i have to implement a form in which there are many radio buttons , so how can i get all the values which has been checked what i have to do is i have 13 subjects like : physics , math , biology ..... and the students can choose any number of...

Extend jquery plugin to check negative numbers

I use a jquery validation plugin and I need to add some extra checking, but I can't edit the main file. How I can do this? ...

JQuery dynamic ID control property

So, I have JQuery dynamically generating controls. The input controls are called EnterLink + number of controls generated. On generation of a new input control I want to change the previously created input so it is disabled. Right now my code looks as so, it does not work. if (rowCount > 0) { var last = rowCount - 1;...

jquery select (each) all checked checkboxes?

Hi there, Can anyone help with the following, it doesn't return any checked checkboxes.. Am i doing somethign wrong? I have $("input[type=checkbox][checked] .type-element").each( function(index) { alert('checked' + index); } ); here is part of my html ( i have a number of them all as type-container) <div id="t...

Assorted jQuery questions

1.) What's the difference between these two queries, exactly? $( "#orderedlist li" ) $( "#orderedlist>li" ) 2.) In the jQuery file itself there is a function that returns the following: function now(){ return +new Date; } What does that mean? I've never seen +new before. 3.) In a brief skimming of a tutorial, I observed the f...

Jquery, Links

I need to select with jQuery <a href=""> , but only 'href' with extentions '.JPG' or '.jpg' for example : to find only this 'links' <a target="_blank" href="images/test.jpg" class="highslide "> <img src="images/test.jpg" alt='img'/> </a> <a target="_blank" href="images/test.JPG" class="highslide "> <img src="images/test.JPG" al...

jQuery - Wait till end of SlideUp()

Hey, How can I wait till the end of the jQuery function slideUp() before continuing the script? <script type="text/javascript"> $(document).ready(function() { $("div[class=item]").click(function() { var id = $(this).attr("id"); $("#content").slideUp(); switch(id) { // Applications case "rampro": $("#content").css("text...

jquery can do this? popup window for value

I used JavaScript to open a new window(child) when user clicks on button from parent window. On new window(child), I have textbox and button, I need to get the value of the textbox and pass to parent window when user clicks on button, while closing the child window, I need the updated value inserted into parent window (without refres...

asp MVC: Is it possible to determine how a controller method was called?

Is it possible for a controller method to return a view if called restfully and if called, via JavaScript, would return a JsonResult. My motivation is that I want to have the freedom to implement my view however I want to do this WITHOUT having to create two controller methods (one for each separate scenario...see elaboration below). I...

Auto-sizing body background image to browser window?

i have a jquery script that allows for changing the body background i want to have the background image of the body scaled to the browser window size there is a script called http://www.buildinternet.com/project/supersized/ but i am not able to make use of the scaling from that script because it effects the class img not the background...

jQuery.Validate Conditional Validation RadioButton and DropDownList

Hi, I am trying to set up some validation, so that if the 'Yes' radio button is checked another control, which is a drop down list needs to be validated to ensure it is not set to the default first entry in the list "Please Select...". I have tried many combinations but have not been able to get this to work. The validation message sh...

XML string manipulation in JS?

Hello, I have an XML file in a string in this format: <item> <name>xxx</name> <id>yyy</id> <view> <name>view1_name</name> <view_attrs> <view_attr> <name>Age</name> <values> <value>18-36</value> <value>55-70</value> </values> </view_attr> <view_attr> <name>Status</name> <values> <val...

JavaScript: Dragging Mouse on Links

I'm trying to make a calendar page where you can click and drag to select multiple calendar days at once. Everything works fine in Google Chrome, but in Firefox, when I try to start dragging, it fails. The reason for this is that each calendar day is contained in a link (<a></a>). When you try to drag links in Firefox, it does its own...

Center Align Horizontal Accordion in IE (dynamic widths)

I'm trying to figure out how to center a horizontal accordion with no width given in Internet Explorer 6 and 7. I'm working in XHTML 1.0 Strict. In Webkit and Mozilla its just display:table. I've tried everything I can think of and anything one might LMGTFY me for... but it's just not working. I've posted the example at: http://able...

JQuery Cascade dropdown problem?

Hi All! I'm using JQuery based Cascade plugin probably it's working, but I found a lot of problems with it Maybe somebody already faced with this plugin and maybe could help. So, I using this plugin for location filtration Here comes my CS code: public JsonResult getChildren(string val) { if (val.IsNotNull()) { int lId = ...

Using RichFaces jquery to add another class to a tab

Hello! I have a rich:tabPanel with several tabs in it. I want to use jquery to record changes on each tab so that when a change is made within a tab I change the background image of the tab. It looks like this: <h:form id="form"> <rich:jQuery selector="#tab1_lbl" query="addClass('testClass')" timing="onload"/> <rich:tabPa...

How to have jQuery refer to a newly popped up window?

In the django function showRelatedObjectLookupPopup, I'd like to bind a function to a button in the newly popped up window, but I don't know how to refer to the new window. Here is what I have tried: function showRelatedObjectLookupPopup(triggeringLink) { // other function stuff omitted var name = triggeringLink.id.replace(/^lookup_...

jQuery Syntax Help

Sorry for asking such a newbie question, I know it makes a few of you here angry. But I think learning the syntax is the hardest part so don't flame me too badly. Right, I'm using the Tabs widget from the jQuery UI. I'm stuck with setting the options for this. This is how it stands... <script type="text/javascript"> $(function() { ...