jquery

slideToggle issue in jQuery

Hi, I have a table in which there will be thousands of records(div elements). Each div is click able and when I click on each record, a div which is hidden under the clicked div will be shown using slideToggle. Since the number of records are very high the effect of slideToggle is not the desired one. It just shows up the div instead o...

Cufon text z-index (IE6 and IE7 stylish select box bug)

Hello, I'm replacing some text with cufon on my page and I'm using jquery stylish select box plugin (http://www.scottdarby.com/plugins/stylish-select/0.4/) to style select boxes. The problem is that, in IE6 and IE7, select box goes under the cufonized text. (the select box is actually an <ul>). Anyone had this issue before? Thanks, ...

Post to entire document like a form using jquery?

Hi to all, i wan't to pass a variable without using get to php, so, i'm using post with jquery, but i can't write the result into the document (refresh all the page) here is the code: $.post("/"+$(this).attr("href"),{returnto:$(this).attr("rel")},function(a){$(document).html(a);});return false;}); ...

Trouble selecting an item in a SELECT box with jQuery with a quot

I am having a hidden form with a list which I need to select an option from when a user wants to view this form. I was using var assignee = 'persons name'; jQuery('#edit-form' option[value='+option+']:first').attr("selected", "selected"); I tried doing this, but this is not working as the value in the option tag is not specified with t...

textbox focus out

I need to focus out from the textbox when it focus in. I try to set focus for outer div and its working fine in IE but not in mozilla. How to do this. ...

Change an element's text without affecting sibling tags (jQuery)

I'm trying to modify this bit of HTML with jQuery to delete the duplicate arrow: <div class="breadcrumb"> <a href="/spa/">Home</a> » » <a href="/spa/image/tid">Image galleries</a> </div> I'm not having much luck, however, in that replacing the string using the replace() function seems to strip the HTML tags as well, leaving: <div cl...

Accessing an array of HTML input text boxes using jQuery or plain Javascript

I'm looking to create a form which contains a dynamic number of input text boxes. I would like each text box to form part of an array (this would in theory make it easier for me to loop through them, especially as I won't know the number of text fields that will eventually exist). The HTML code would like something like: <p>Field 1: <in...

jQuery, Shadowbox and AJAX

I would like to load some content using AJAX and Shadowbox Basically I would like the user to goto a page in case javascript is off. So this is what I want to do :- 1) Cancel the click event i.e the User must not go to a different page. 2) Load content using ajax function in jQuery 3) Show the content inside a shadow box My code wor...

Does anyone know where I can find a javascript tag cloud generator?

Ideally, I'm looking for something that I can give JSON data retrieved using jquery, and it would generate a cloud based on the data in that query (name, link, size, color, etc...). ...

clientscript.registerclientscriptblock or include not adding to the page head?

hi i am using the clientscript.registerclientscriptblock with (typeof(page),this,that) to bung in my scripts.. ie. jquery and validate etc.. and i also have some hand scripted stuff in the head (where scripts are supposed to be .. right?) doing bits and bobs.. but it seems that as the registerclientscript doesnt put the scripts in the...

Closures in a for loop

Closures in a loop are causing me problems. I think I have to make another function that returns a function to solve the problem, but I can't get it to work with my jQuery code. Here is the basic problem in a simplified form: function foo(val) { alert(val); } for (var i = 0; i < 3; i++) { $('#button'+i).click(function(){ foo(i...

jquery slider and mouseover code

All, In the code below, <html> <head> <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" /> <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"&gt;&lt;/script&gt; <script src="http://jqueryui.com/latest/ui/effects.core.js"&gt;&lt;/script&gt; <script src="h...

Allowed html/css/javascript - class syntax

I am in the need of defining html classes from content, so pretty much every char could be used. According to html reference I may use cdata, so I should not run into problems. I figure though, that css and/or javascript/jquery won't play nicely with that. Anyone has experience with what chars can be used without problems or if there is...

Greater area for radio selection

<span> <img src="img/icon.png" alt="" /> <label><input type="radio" name="" /> Label here</label> </span> I want the whole <span> to be clickable, not just the radio input. How do I do it with jQuery? ...

ASP.NET MVC Postback on Modal Dialog/ Popup

Hi all, I have a link on an asp.net mvc view which opens a modal popup in which a second MVC view is rendered. The view in the Modal popup exposes several features which trigger a postback. The postbacks fire the correct controller methods but when i return the updated view the View itself is render as opposed to being rendered in the ...

Anything Slider: How to use the .cur (class) when slide jump is activated?

Hi all Does anyone know how to make AnythingSlider use the .cur class when using static links to jump between slides? I've got my the slider working great with the static links, but I'd like to highlight the current active link. Cheers Stephen Meehan ...

Html to image in javascript or python

Hi there. Just a dumb question... Is there any way you can create an image, say png, with the content of an html page, with a simple click of a button? Thanks to anyone who cares to answers. ...

jquery submit event and return false

hi i check the blank field in the form and alert the user. but when alert the user it posts the data i couldnt return false not to refresh the page $('#loginAccount').submit(function() { $(this).find(':input:text') .each(function(i) { if($(this).val()=="") { //alert($('label').eq(i).html()) $('#alert3').html...

Jquery Calendar on Partial Page problem

I have a partial page with a jquery calendar on my form. When the partial page loads the calendar button does not show. I am using Ajax.BeginForm and UpdateTargetId to load the partial page. I think the Jquery does not initialize on a partial page. Anyone know what is going on? ...

PHP/Javascript/Jquery - Dynamic Website Diagram

I want to have an application that displays all of my website's external links and outputs a diagram. Like for example www.example.com/articles/some-title.html is linked to my homepage. Home - www.example.com/some-text - www.another-site.com/my-title - www.example.com/articles/some-title.html Products Products - www.buy-now.com/pr...