jquery

too much recursion in javascript with jquery mouseover

I am a JS novice. Using some code I found here to help me with mouseover scale/rotate images but now when I try to apply it to more than one object I'm getting errors saying "too much recursion". Before the function didn't take any arguments, it just was on s_1 and it worked fine. I am tempted to just write different code for each object...

How can I filter a FileDialog depending on a dropdown selection?

I think this is a two-in-one question.. one, is: How do you filter valid file types in a FileDialog for a Html page? Im using ASP.NET MVC and currently showing the textbux/browse button this way: <%= Html.TextBox("Order.LoanInfo.FilePath", null, new { style = "width: 800px;", type = "file" })%> and the second is : How could you do to...

jquery select remove undefined?

Hi, I using jquery how do i remove the one of the elements of the select dropdown where the value <option value=" ">undefined</option> i tried $("#subType option[value=' ']").remove(); $("#subType option[value='']").remove(); None of them worked. Please advise. ...

character countdown like on twitter

how can i make a character countdown like the one on twitter with jquery? and also limit the input to textarea. ...

Aggregate and Query the RSS feeds, simply quickly and save the queries

Ok I know about YQL, Yahoo Pipes and all that. But I am wondering what is the "shortcut" for someone who knows jQuery and javascript and JSON pretty well ? What would be the architecture of the generic solution using these tools to aggregate several rss feeds, and then query the result ? I would like to be able to save these queries an...

Jquery: Mapping XML Nodes to HTML ID elements

Hi there, never easy to encapsulate what to say in the title... but here we go... I realise I am probably seeing straight past the obvious, and possibly built in function of JQuery. What I am trying to do is: Have an XML file (locally or via server) contain nodes which happen to have their node names i.e. as ID names of say a textb...

jquery call back function

i have a form and it validates and submit successfully. all i want is to call back function as "success" when the form has successfully submitted. here is what i have so far but no luck: $(document).ready(function() { $("#form1").validate({ rules: { email1: {// compound rule required: tru...

is there a way to slide more tabs into view using jquery UI tabs?

i am using jquery UI tabs. works great. i have right now 5 tabs using a fixed width. i will be adding more tabs but i don't want to grow the width any more. so what i want to provide is way to click on a "more" type link and display the next "page" of tabs. it would be cool if i could have the next set of tabs "slide" into view. n...

Animate PNGs with jQuery?

Is there a simple plugin or some robust code that would allow me to animate PNGs with a simple start and stop method? TSM, Alex. [Edit: I made a jQuery plugin that animates PNGs. Will post when it's all done.] ...

ASP.NET MVC with jQuery SimpleModal and Ajax.BeginForm Helper

I have a bit of a situation I am currently using Jquery SimpleModal to do various dialogs on my site like for instance the logon dialog. I'm also doing an Ajax.BeginForm helper. Now everything works great and all but, what I need to know is what do I need to do to say close the modal when the user was sucessful at logging in.. I trie...

How can I make the nested links active again?

I am making a nested ul slide down when it's parent is clicked on for a clients navigation, so the parent link is deactivated with return false. But the return false is deactivating the child links too, how can I avoid this? $("li.page_item a:first-child").click(function() { //select it's direct sub ul var subnav = $(this).next...

Retain jquery tab position after Post action in asp.net mvc

I have a page with jquery tabs in which the user can update their Profile, Password, General in each tab. When a user update the details in "General" tab, the post action will be called and it should retain the "General" tab back. It can be accessed directly by calling like http://localhost:8742/User/Settings/10#General. In the url 10...

how to fill asp.net hidden field with Jquery

im trying this format: $("#<%= hfWidth.UniqueID %>").val($("#drag").attr("offsetWidth")); to fill the hidden field with client-side values but when I do postback, the values doesn't seem to be saved. help ...

Problem with scrollable

I'm using this plugin - http://flowplayer.org/tools/demos/scrollable/plugins/index.html#autoscroll - and I want to make it looping. At the documentation there is an option of "loop" but I can't enabled it together with the "autoscroll". If you know this prob, please advise. ...

Extract part of HTML document in jQuery

I want to make an AJAX call to an HTML-returning page, extract part of the HTML (using jQuery selectors), and then use that part in my jQuery-based JavaScript. The AJAX retrieval is pretty simple. This gives me the entire HTML document in the "data" parameter of the callback function. What I don't understand is how to handle that data ...

Image validation on Client side

Hi, Is it possible to validate the image dimension on client side using jquery or any other framework, Thanks in Advance Have a nice day. ...

Remove style sheet in thickbox using jquery

I have a partial view (Partial.ascx), two master pages(Master1.Master and Master2.Master) and two Views(Page1.aspx and Page2.aspx) in my asp.net mvc (C#) application. I have referred different style sheet for each master page. When i show the partial view (Partial.ascx) as thickbox in View(Page1.aspx) whose Master page is Master1.Maste...

How to give different style with css if 2 pages have same id?

in same site i have a page disclaimer 2 times in 2 different section corporate > disclaimer.html consumer > disclaimer.html one good this my company's custom cms is generates body id for each page but the problem here is he generate id as same as page name, and i can't change name and can't give different ID both pages having same id...

show xval RulesException using jquery in Validationsummary

I have a method which will return JsonResult or RedirectToRouteResult based on some conditions in my asp.net mvc (C#) application. The RulesException can be shown in <%= Html.ValidationSummary()%>, if i use return RedirectToAction(.....). How can i show the rules exceptions in ValidationSummary when i return it as JsonResult? ...

RaphaëlJS, painless coding, & Stinky Browsers (IE, mostly)

Need some advice about a best-approach for this problem: I've fallen madly in love with RaphaëlJS, as it has made SVG realizable for me and my coding since it has managed to bring IE into the fold. However, I don't like having to include a .js file for every SVG graphic I want to render on the page. So, I poked around on the internet ...