jquery

How do I do something to AJAX loaded content of a thickbox?

Id there an event I can hook into? I've looked through the docs, and unless my Wednesday brain is failing me I can't see anything along those lines. I am loading AJAX content into a thickbox using the standard way (adding the "thickbox" css class), but when it's loaded I want to do some jQuery magic on some of the loaded content. What ...

jQuery + hide native tooltip + Resolved

Is there a way to hide the native tooltip action when a user hovers over a anchor tag with a title attribute? I don't want to remove it just don't display the nasty yellow box that is the default tooltip action. UPDATE: After reading a couple of other posts I don't think I can hide the title attribute for the native tooltip action, but...

Jquery Autocomplete Help

Hi, I have a select box and a textbox, soon I type something I would like to take the value of the select box when autocomplete starts fetching from the server. how could that be possible. Regards Dixanta Shrestha [email protected] ...

Thickbox (jQuery) breaking prototype in rails.

Hey Guys, I'm creating my first rails app, and using the standard prototype library for some effects. I recently brought in Thickbox which is breaking all of the previous effects. I know there is a no conflict method for jQuery but I'm not exactly sure how to implement it? Should I just do a find/replace for $ in the jquery and thickb...

need gmail like functionailty - jquery autocomplete to include names and email addresses - in string searching

I recently asked this question and got back a great solution using jquery for autocomplete: http://stackoverflow.com/questions/1297518/need-a-good-way-for-user-to-select-to-for-email-sending The solution was to use this syntax: $("#suggest3").autocomplete(someArray, { multiple: true, mustMatch: true, autoFill: true }); ...

Reading C# property into JQuery code

I'm trying to read the value of a C# property from my code behind file into some JQuery script (see below). The JQuery selector I've written accesses an ASP.Net GridView and then a CheckBox field within the gridview. Whenever a checkbox is checked or un-checked the code is hit, but I need to access the C# property from the code behind ...

javascript: passing a function with parameters as a parameter?

Hi, Is it possible to pass a javascript function with parameters as a parameter? Example: $(edit_link).click(changeViewMode(myvar)); Thanks. ...

another Bug in jquery validator?

i use remote method of validator for checking if username exists in DB my scenario: form with one field (username of course) i filled field it passes validation, but i don't sending form yet going to DB inserting username that i filled in form that i still don't sent yet returning to my form press on submit btn voila, it pass validat...

Complex table - Target specific <TR>

I've got a complex table which actually produces a very simple layout. For many reasons I cant change the HTML output so I'm trying something in jquery: <div id="contentDiv" class="mainContent"> <table cellspacing="0" border="0" width="100%"> <tr> <td> <table width="100%" BORDER=1 cellpadding=0 cellspacing=0 style="padd...

Save All and Cancel All with jeditable?

How do you, if at all, place a save all button, and a cancel button, that turns off all editing with one click, and a save button that saves all the fields at one shot? ...

Thickbox page not loading(consistently) on page load in IE browsers.

I am registering the script on my page load event for the thickbox page to open. But some time only the gray background appears and not the thickbox page. Let me know if I am missing anything. Below is the code for registering the thickbox. Any help would be greatly appreciated. Dim sb As New StringBuilder() sb.AppendLine("...

jQuery - script tag inside an iframe fails to update the iframe's content

I have the following html: <html> <head></head> <body> <form> <input id="msg" type="text" value="oldValue" /> </form> <script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt; <script> $().ready(function() { var m = $("#msg"...

Google Analytics and Hubspot Delay Javascript Execution

We are trying to use google analytics and hubspot on our site but they bith seem to delay the execution of the scripts on our site. We are using jQuery and the "ready" function to delay our scripts until the page is ready. Are there any ways we can delay the analytics scripts and have our scripts execute first? Thanks. ...

How to display part of an image using jquery?

Hi there, I'm using jquery and I'm trying to display part of an image, say a square in the middle of it, then using animate, roll out the rest of it. I'm thinking something involving divs, with overflow: hidden, but I can't figure it out. Many thanks. ...

Tempdata in ASP.Net MVC with JSON Request

Hi, I have an ActionResult that sets TempData to be an object. The page that is rendered contains a button, that launches a JSON request to the same controller. (For jqGrid population). The TempData on the JSON Request is null - why does this happen? Even more bizarrely, if I had a button that posts to the same controller, and I cli...

jQuery Validate - require at least one field in a group to be filled

I'm using the excellent jQuery Validate Plugin to validate some forms. On one form, I need to ensure that the user fills in at least one of a group of fields. I think I've got a pretty good solution, and wanted to share it. Please suggest any improvements you can think of. Finding no built-in way to do this, I searched and found Rebecc...

Is this possible?

I have a question, I'm using uploadify, and every time when a file finishes to upload, the script runs a code which is located in the onComplete statement, and the code from the onComplete statement it's an ajax call to a page, let's call it X , how can I know when the script access the page X for the first time? ...

Whats wrong with this jQuery validation code? regexp.exec(value)

Value will be anything and matches is null. The point of this is to split up a string like "1991-12-01" and make sure that all of the parts of the string are valid dates. dateISO: function(value, element) { if (this.optional(element)) return true; var regexp = new RegExp('^\d{4}[\/-](\d{1,2})[\/-](\d{1,2})$'); var matches = ...

Change textbox's css class when ASP.NET Validation fails

How can I execute some javascript when a Required Field Validator attached to a textbox fails client-side validation? What I am trying to do is change the css class of the textbox, to make the textbox's border show red. I am using webforms and I do have the jquery library available to me. ...

JQuery fade with loop and delay

Hello, I have 2 Divs stacked on top of each other. I need a really simple function that will: a) Wait for 3 seconds and then b) FadeOut the top Div to reveal the second Div c) Wait 3 seconds again and then d) FadeIn the top Div again e) Loop back again Can anyone offer any advice? Many thanks ...