=foo(2);/a
a href=# onclick=foo(3);/a
I was thinking of something like:
a href=# class=foo-1/a
a href=# class=foo-2/a
a href=# class=foo-3/a
But how to bind the foo() function (with proper parameter) using
jQuery?
Thanks for any recommendation/comment.
Thierry
, waseem sabjee waseemsab...@gmail.com wrote:
check this link
$(#mytextbox).keyup(function(event){
if (event.keyCode == 27) {
$(this).attr({ value:Escape });
}
});
On Tue, Jun 9, 2009 at 8:59 PM, Thierry lamthie...@gmail.com wrote:
I am currently following the image popup
I am currently following the image popup example from:
http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/
The demo is at:
http://yensdesign.com/tutorials/popupjquery/
If I run the demo on Windows XP on Chrome or Safari, the escape key
doesn't close the popup
Right now, I'm using jQuery's ajax like the following:
function hello_world(param1, param2, param3, param4)
{
$.ajax(
{
type: 'POST',
url: 'foo.php',
dataType: 'html',
data: 'param1=' + param1 + 'param2=' + param2 + 'param3=' +
param3 + 'param4=' + param4,
I currently have the following legacy piece of html:
form action= method=get name=clientListForm
id=clientListForm
input type=submit name=submit_hello id=submit_hello
value=Say Hello onclick=this.form.action = 'hello.php';
input type=submit name=submit_hi id=submit_hi value=Say
Hi
I rushed a bit in writing the html, the id should correspond to the
table and not the tr. The is(button) didn't work but is(input) is
getting what I wanted, thanks for the help.
On Apr 2, 5:55 pm, Richard D. Worth rdwo...@gmail.com wrote:
On Thu, Apr 2, 2009 at 4:14 PM, Thierry lamthie
I have the following structure for tr:
tr id=world
td/td
td/td
td
input type=button name=hello value=hello /
/td
/tr
I also have the following javascript:
$(#world tr).click(function() {
// do stuffs
});
Is there a way to prevent the above event from triggering when the
the input button.
On Apr 2, 4:41 pm, Eric Garside gars...@gmail.com wrote:
$('button', $('#world tr').click(function(){
// Do stuff for #world tr onclick
})).click(function(e){
e.stopImmediatePropagation();
return true;
});
On Apr 2, 4:14 pm, Thierry lamthie...@gmail.com
I can disable button with specific id with the following code:
jQuery(#click_me:button).attr(disabled, true);
If I want to re-enable the button, the following doesn't work:
jQuery(#click_me:button).attr(disabled, false);
Does anyone know what I'm missing?
For the following code:
script src=jquery-1.3.2.js type=text/javascript/script
script typetext/javascript
$(document).ready(function()
{
$('.approve').click(function() {
alert($('.approve').prev().val());
});
});
/script
div
input type=hidden value=1 /
input type=button
I have a series of checkboxes with class=the_checkbox. I can get
all checkboxes by classname and manually loop through each to find out
the checked ones. I'm wondering if I can get an array of checkboxes
that have been checked with one line of jQuery?
I have a bunch of hyperlinks with class 'hello_world'. I want to
assign each one of them a random colour. I can set the colour for all
of them with the following:
$(a[class=hello_world]).css(color, red);
How can I iterate over every element with class name 'hello_world'?
Great, that helps but I think I'll do it from the server side code,
the web page loads much faster when the operation is done on the
server side.
On Mar 20, 12:58 pm, Charlie Griefer charlie.grie...@gmail.com
wrote:
On Fri, Mar 20, 2009 at 9:48 AM, Thierry lamthie...@gmail.com wrote:
I have
I have the following piece of code which checks if a user has pressed
the Enter key in a text input with id=text_input and then performs
some action:
$(document).ready(function()
{
$(#text_input).keyup(function(e)
{
// Checks if the Enter key was entered
if(e.keyCode == 13)
I have the following piece of code which checks if a user has pressed
the Enter key in a text input with id=text_input and then performs
some action:
$(document).ready(function()
{
$(#text_input).keyup(function(e)
{
// Checks if the Enter key was entered
if(e.keyCode == 13)
for any idea,
Thierry
with the first found term.
Is that possible?
Thank you,
Thierry
My bad. I found it. For anyone having the same issue, selectFirst
(false) option is the one to use.
On Nov 19, 4:42 pm, thierry [EMAIL PROTECTED] wrote:
Hi guys,
I have a search input with an autocomplete to help find items, but
this search can also search partial words.
Example: User input
Yes exactly... can't believe I didn't see it. Thank you Jorn.
On Nov 15, 5:37 am, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
You're looking for this,
right?http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_datao...
Jörn
On Sat, Nov 15, 2008 at 3:49 AM, thierry [EMAIL PROTECTED
Hey guys,
I hope it's just I can't find it anymore, but where's the (complete)
doc on autocomplete? The plugin page on jQuery seems pretty light
(http://docs.jquery.com/Plugins/Autocomplete), and the official page
redirects to this new jQuery page.
If I remember correctly, there was a list of
Hi Mike,
Thanks a lot for your help (and your great plugin, needless to say !)
Meanwhile I've also tried my hand at some code and come to what seems
to be a valid solution. It relies on image preload - slides are added
to the Cycle randomly depending on the order in which they are
pulled from
I'm honored, Mike! Thanks also for the minor but well-needed
improvements to the code.
Now here's another, probably more useful, version:
- the slide URLs are registered directly from the DOM
- the img nodes are removed from the DOM (except for the first 2)
- the slideshow is launched with 2
Hello,
A previous discussion here (http://groups.google.fr/group/jquery-en/
browse_thread/thread/319177a5a9bb22a9/01b7544ac7203748) and a recent
addition the to the Cycle plugin (see
http://www.malsup.com/jquery/cycle/add.html)
makes me think that creating JQuery+Cycle slideshows with
Nobody have a suggestion for this??
On Feb 19, 10:52 am, Thierry [EMAIL PROTECTED] wrote:
I,
Is there an easy way to reproduce the following using only jquery?
I am trying to hide and show an element in a specificframefrom
anotherframe.
This code is actually working but I would prefer
, top.content.document).hide();
See
http://docs.jquery.com/Core/jQuery#expressioncontext
for more info.
- Richard
On Thu, Feb 21, 2008 at 11:03 AM, Thierry [EMAIL PROTECTED] wrote:
Nobody have a suggestion for this??
On Feb 19, 10:52 am, Thierry [EMAIL PROTECTED] wrote:
I
Hello,
I would like to create a weekly calendar where people can select one
day, or more.
I would like it to work a bit like outlook.
So when someone selects a day, it should be possible to resize the
selection to include more days.
Problem is that the resize should snap to a day, so that it is
Hi jQuery group,
The simple piece of code below is designed to highlight table cells
whose class name is that of the currently hovered one (to visually
group them). In my example the class name itself is film + id (film1,
film2, etc) so I use the [attribute^=value] selector. OK to that
point,
I'm new to jQuery and i cant figure out what this does:
node.get(0).onreadystatechange = function () {
hey, im new to jquery, and im wondering what this does:
this.node.get(this[0]).onreadystatechange = function ()
somehow, google groups missed my first post on this
29 matches
Mail list logo