jquery

Quick Problem - Extracting numbers from a string

I need to extract a single variable number from a string. The string always looks like this: javascript:change(5); with the variable being 5. How can I isolate it? Many thanks in advance. ...

Jquery/javascript datetime

Hi all, i want to convert this string 23/08/2009 12:05:00 to javascript datetime how can i do it? ...

Identifying a DOM by something other than id (ie: it's href tag) in jquery

The title covers most of my question. Instead of: $('#id').slideUp(); I need to be able to select a particular area tag in an image map in a similar way, by virtue of the string in its href tag. I'm sure this involves the .attr() function but in what way I don't know. Could a resident genius help me please. Many thanks. ...

jQuery event processing and the ready function

Hi, I am very new to jQuery (I started this morning) and I am confused about exactly what triggers the function supplied to the ready function, to be executed. According to the jQuery documentation [http://docs.jquery.com/Events/ready#fn%5D the ready function Binds a function to be executed whenever the DOM is ready to be trave...

How to make a jquery plugin use jquery.live?

Hi I am kinda in a bind. I got this color picker plugin that I am using and some text-boxes. So the color picker script runs and binds it too these text-boxes. But later on I dynamically load up more text-boxes and I want them to have the color picker plugin put on those text-boxes. But currently it won't and I have no clue how to mak...

Is there an extension for jQuery code-completion in Coda?

Hello, Do you know if there is a plugin for Coda to do the kind of code completion below for jquery? As far as i know there is such extension for Visual Studio, hope there is a way to do that in Coda too, because i don't want to write jQuery(document).ready(function(){ ... }); anymore. Thanks, Sinan. P.S. I'm aware of shorthands of do...

JQuery - object.id is undefined when it shouldn't be

Hi, I'm working with JQuery and i'm running into this strange (or perhaps stupid) error. In my HTML I have: <input type="password" name="repeatPassword" id="id_repeatPassword" /> And then in my javascript code i have: validateRepeatPassword($('#id_repeatPassword')); Unfortunately in the function "validateRepeatPassword": functi...

To have `removeID` for jQuery like `removeClass`

How can you remove the attribute id by jQeury? My jQuery code jQuery('a.no_flag_question').live('click', function(){ jQuery.post('/codes/handlers/no_flag_question.php', { question_id: jQuery(this).attr('rel') }); $(".question_box").removeClass("yellow"); // problem here alert ("Question is now not...

Sending email by jQuery / PHP

How can you send an email by jQuery and PHP if the user flags a question? My JS code in HEAD jQuery('a.flag_question').live('click', function(){ jQuery.post('/codes/handlers/flag_question.php', { question_id: jQuery(this).attr('rel') }); alert ("Question was reported....

Can I use jQuery with my ASP.net website/project?

I want to make my website look spiffy. Should I use jQuery, or what is better suited to be paired with ASP.net? ...

jquery hover and nested lists.

I really need someone's help. this is what i'm trying to do to .. http://www.chohoh.com/pcs/hoverthing.html now I need to change the font to #fff on the 'month, day and info' when you hover over the element. people keep giving me hints. "child" i've googled (child, jquery, hover) and I'm not finding anything related to what i'm lookin...

Get selected text on the page (not in a textarea) with jQuery

This plugin lets you grab text the user has selected in a textarea, and this site has non-jQuery-based instructions for grabbing text the user has selected outside of a text area. I'm wondering whether the functionality of the latter is available in any jQuery plugin. Edit: Also, is it possible to get the starting and ending indexes of...

How to call a function in jquery?

Hi I wanted to my code a bit cleaner so I wanted to put a very long function in it's own method. Right now I have $('#Id').submit(function() { // lots of code here }); now I wanted to break it up like $('#Id').submit(MyFunction); function MyFunction() { // code now here. } but I need to ...

Reload parent window from child window

How can i reaload my parent window from child window using jquery? Please help. ...

The modern uses for Image Maps

I've been asked to collate a list as possible of the modern uses for Image Maps. When they first came into being, web-designers in the 90s used them as one of the first ways to create a more immersive experience, but now a-days they can be linked to javascript and jquery to perform all sorts of "exciting" tasks. Many of their possible...

jQuery hasAttr checking to see if there is an attribute on an element

How do you check if there is an attribute on an element in jQuery? Similar to hasClass, but with attr? For example, if ($(this).hasAttr("name")) { function etc() } ...

Disable or ignore mousedown on select field in firefox

Is there any way to make it so a click on a select input field does not open the list of options? I tried returning false from onmousedown and onclick, I tried calling this.blur() in onfocus, I tried setting the readonly attribute, none of this seems to work in Firefox. Chrome and IE seem to take the "return false" in the mousedown hand...

jQuery clone question

I have a problem. I use this code: $( '#wall_msg').clone( true ).insertAfter( '#wall_msg' ); What can I do to set the ID for the clone and I need to fade the new item in with $.getJSON in jQuery. I hope for help. :) ...

Problem with removing/animating a YouTube flash video-player container.

I used the code from the following question to insert a YouTube video into a page: http://stackoverflow.com/questions/1314662/how-to-resize-a-youtube-player-from-thumbnail-size-to-normal-size. Given the following html: <dl> <dt>Thoughts of Sacrament</dt> <dd><div class="placeholder"><img src="img/H5ZEYFgmfYo.png" id="H5ZEYFgmfYo" /></d...

jQuery's :first and :last on the first children of an element

I have some simple tables (multiple, all with class="parent") with multiple <tr> rows. The <td> cells within these rows have tables of their own. I'm trying to target the <tr> rows of the first (parent) tables, like so: HTML: <table class="parent"> <tr> <-- match with :first <td> <table> <tr><td></td></tr> ...