jquery

ASP.NET Ajax and Jquery ThinkBox

Hi, I am having a problem running ASP.NET Ajax and Jquery side by side. when the page load jquery thinkbox work, but as I update the asp:repeater control with ASP.NET Ajax, then Jquery ThinkBox stop working. I just dont know why. please help Regards ...

stack a div under an absolutely positioned image that changes in scale

Hello, I used a jquery image scaling plugin for a large image on this page I am building: http://seans.ws/sandbox/test/thrive/ I am trying to put a navigation div below the image, but I cannot do so because the image is absolutely positioned, and the scale of the image changes, so I cannot just specify a padding-top value for the navig...

Exclude list item with jQuery not

How can I exclude the placeholder from being hovered? HTML: <ul class="listing"> <li><p>red</p></li> <li><p>green</p></li> <li><p>blue</p></li> <li id="li-placeholder"><p>placeholder</p></li> </ul>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ ...

jQuery UI Dialog: $(".modal").dialog is not a function?

On my page, I am loading some HTML (via AJAX) into a div. The new HTML contains my $('.modal') jQuery UI Dialog. Once the HTML is loaded, FireBug gives me an error message for each modal in my HTML saying: $(".modal").dialog is not a function height: 'auto' The weird thing is that it's working. When I click the element that trigge...

Resize image with jQuery

Hello, The scenario: I’m building a website, which will not Host the images in its own server. Instead it will reference images from other servers. Example: The website is hosted at www.mywebsite.com, and the html of the images will be something like <img src=”http://www.otherwebsite.com” />. The images from the other servers will be...

how to pass to fetch new records only with ajax/json

I have a DB containing small news and a web app displaying these. I would like to update my page every 60s with a jquery.ajax or jquery.getJSON request . My question is how should I pass the last id i received from the server to the next ajax request so that i got only newer news? Where do I store it (on the DOM, into a global var, or ...

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

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", "red"); would be executed and then cause itself to be rendered with a red font color within the paragraph tag. I can...

wordpress enqueue script issues ("$ is not defined")

Hopefully this one is a pretty easy fix for you guys :) I am building a wordpress theme, and had previously been fairly poorly calling the jquery script in the html head tag. This was causing some loading lag in Opera though, which I suspect is because I was trying to load jquery simultaneously in two ways... anyway I'm now doing it pro...

How to add number of days to today's date?

I need to be able to add 1, 2 , 5 or 10 days to today's date using jQuery. I'm a novice and trying hard to learn. ...

JQuery UI - How do you do multiple toggles from a listBox?

I have a listbox in a form, and based on the answers within I want to open a different toggle, using JQuery UI's toggle effect: http://jqueryui.com/demos/toggle/. The code is visible under 'view source'. Part 1: the code in current form does not support multiple toggles on one page. How can I rewrite the javascript and id the divs diffe...

Jquery slider - having name/value pairs or array for the values

I'm using a slider so that users can select their place in a range from 1-10 (or a similar range) I know that i can specify the values/steps for the slider but can i have those values correspond to another? i.e. 1 = id3040 2 = id0290 3 = id3782 So if they select '3' on the slider, I can get that corresponding value? I have a surve...

Use jquery to get an input's id and compare it against a static array of id's?

Hi, I am using jQuery to create a client-side validation function for a .NET form. Each form element has an id and several of the form elements are required fields. In my validation script, I thought of creating an array of the id's of the 'not required' elements, then on every 'blur' event checking whether or not the current element (...

Returning two things in one HttpResponse

I am trying to implement paging across ajax calls. The page should not refresh when the user wants to see the next x num of results. Here is my problem. Returning the QuerySet is super simple. I just do (sumaJson is custom) data = serializers.serialize('sumaJson', result_page.object_list, relations=('first_major', 'country_of_origin', ...

[jQuery] How to display a div when the user scroll to a fixed amount in a page?

I've seen this kind of tutorial before but can't seem to find it again. How to display a div when the user scroll the page down to a fixed amount? Like in Tutorial9 Here when you scroll to the bottom of the article a "You might also like" div appears. Any tutorials that explain this would be really great. ...

how to rewrite this this inline javascript with jquery?

I have the following markup with inline javascript and would like to change it to Jquery. Any help would be appreciated. <a title="823557" href="/PhotoGallery.asp?ProductCode=471823557" id="product_photo_zoom_url"> <img border="0" onload="vZoom.add(this, '/v/vspfiles/photos/471823557-2.jpg');" alt="823557" src="/v/vspfiles/photos/471823...

jQuery Code Errors in IE, but no other browser.

I have the following code snippet.. I get the error Expected identifier, string or number on the line... options.reference = '.' + $(this).attr('class'); and then later in the plugin... Object doesn't support this property or method on the line... if ($target.is(options.reference) || $target.closest(options....

jQuery - select nth child of a parent when nth child of another parent is clicked

hi, how can i select the nth child in a set of <div>'s when the nth child in a set of <li>'s is clicked? HTML below <ul> <li><a href="#">link</a></li> <li><a href="#">link</a></li> ...... <li><a href="#">link</a></li> </ul> <div class="info"> ... </div> <div class="info"> ... </div> ...... <div class="info"> ... </div> for exam...

jQuery UI: Show transition on Safari

Hey, I'm using jQuery UI to make transitions between pages on my website. It works great on Firefox, but on Safari this function slides the div to the extreme right, then it goes back to the center of the screen. Note that it's not like a bounce effect. Does anyone know a good solution for that? Thanks! ...

Reload page in iframe using jQuery

How can I reload an aspx page in an iframe using jquery? ...

How to Show a <span> or <div> tag content as asterisk(*)

I am going to display the current password of the user like Current Password : ****** I want the exact number of asterisk's(*), as the number of the password characters. Also it should be safe that it should not visible at View-Source. Plz Help, any jquery plugin available?, or can we achieve it through javascript ...