I'm trying to bind the click event and turn click-gets into post or
post (method=delete) to play nicely with Rails. Code in pastie below.
Anyhow, it all works, but if I try to verify my results with $
('#postable').trigger('click') the handler appears never to be called.
Any thoughts are
Great! Thanks!!
On Feb 27, 7:09 pm, Josh Powell seas...@gmail.com wrote:
oh, very nice. I wasn't aware of toggleClass.
On Feb 27, 6:51 pm, Karl Swedberg k...@englishrules.com wrote:
Hi Zac,
You just need to add one line -- $(this).toggleClass('yourClass'); --
where yourClass is the
Hi,
Hey please help i want to do google suggest i have customised many
codes but none of them working . I tired to do own but how to get
light window below the text box and get suggestions one by one.
Please help me
Thanks and regards,
Anjith Kumar Garapati
hi ricardo,
tx, for the example and the code.
the thing i have a problem with is the submenu part. Please click on
second or third button to see what i mean
- i need to dropdown the button beneath
- slide the submenu in
regards
On 27 feb, 20:52, ricardobeat ricardob...@gmail.com wrote:
You
Hello!
I am doing the following in order to remove those new YouTube-
Headlines on a blog:
$(document).ready(function(){
$('param').each(function(){
var oldname = $(this).attr('value');
var check = oldname.search(/youtube.+/);
if (check != -1){
var
Hi all,
why doesn't this work? it doesn't color red
$.fn.hoverClass = function(c) {
return this.each(function(){
$(this).hover(
function() {
$(this).addClass(c).animate({ marginLeft: '+=5px' },
Can anybody help? More people ask same question over internet but
there is no answer!
Take a look at this forum :
http://osdir.com/answers/javascript/9406-jquery-superfish-suckerfish-actually.html
Anybody ?
On Feb 27, 1:40 pm, calimero milankov...@gmail.com wrote:
Hello,
I am trying to
OK, I found solution! :)
just add:
$(ul.sf-menu).bind('click',function() {
$('ul.sf-menu').hideSuperfishUl();
});
On Feb 28, 12:03 pm, calimero milankov...@gmail.com wrote:
Can anybody help? More people ask same question over
Hi Dave,
I'm using .NET 2.0.
And the web method is working fine with static parameters.
I could find a temporary solution of passing the JSON object as a
string and parsing the string into my .NET object using an open source
library Json.NET.
This way it works, but I'd be glad to avoid the 2
URL of issue: www.royalmbc.org/
I desperately need some advice. It's obvious I'm a newbie here... and
trying to get this site launched. I've deleted Superfish and re-
installed it to its default load and it did not clear up the problem.
I'm getting the following error message:
Webpage error
Hi Thomas,
Try this I used it before It's soo simple :(the snippet is taken from
learning JQuery)
*
Styling Alternate Rows*
Two very useful custom selectors in the jQuery library are :odd and :even.
Let's
take a look at how we can use these selectors for basic table striping,
given the following
Hi all,
I search all over the internet for my problem with the JQuery
TabelSorter/TableSorterPager but all the sollutions don't work for me.
I use Table Sorter and TableSorterPager for a big list.
I can click on the rows, so i can edit some content in a lightbox.
In this same lightbox i can
Is there a better way to do this? I think that it's possible to
shorten this code, but I just don't know how. A little help would be
appreciated. :)
HTML form code:
http://pastebin.com/m664f5de6
JQuery code:
http://pastebin.com/m60b285b0
Maybe something like the following pseudo-code:
Is there a 'better' way of doing this? I think that the code is dirty
since a lot of things are being repeated elsewhere. Tips, hints,
links, etc would be appreciated. Thank you.
JQuery code:
http://pastebin.com/m3b0c63fb
HTML form code:
http://pastebin.com/m664f5de6
We recently had to parse RSS feeds from mySpace using nothing more
than jQuery and we found a slightly quicker solution - jFeed. I would
definitely recommend checking it out. As for our widget, you’re all
free to grab the sources to see how we tackled the problem:
Yeah, noticed that after the post.
But I fixed that and it's not the problem.
Any other clue as to why it's not working?
On Feb 27, 10:19 pm, Klaus Hartl klaus.ha...@googlemail.com wrote:
You have a # too much in your panel ids... Should read:
div id=tabs-1 ...
--Klaus
On 27 Feb., 17:35,
I'm still not getting a head with this problem :(
Oliver Prater
On Feb 23, 4:45 pm, oliver.pra...@googlemail.com
oliver.pra...@googlemail.com wrote:
Hi guys repost of my problem since I'm not coming forward
The code I wrote in jQuery:http://code-bin.homedns.org/242
Now to the problem:
can anyone please see waht's wrong with this
I want to get all a tags in the div #wiki_content and get the text
from
it and send into a function called searchDelay... im not getting as
far as
jumping into the $.each loop so not sure waht's wrong
var links = $( #wiki_content a );
I think it would be a lot simpler to rely on jQuery's implicit
iteration:
$( #wiki_content a ).click(function(event) {
event.preventDefault();
var link = $(this).text();
searchDelay( link );
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb
$('select[id^='Branch]').change(function(){
var idx = this.id.substr(this.id.length - 1);
var selected = $(this).val();
ajax_loading_image('.ajax_loading_image');
$.ajax({
type: POST,
url: 'get_members',
data:
thanks for the feedback, that is a much better solution, however
I don't seem to be getting hold of the a tags that im after, the
problem might be the fact that the div containing the tags is not yet
populated when the jquery function to get them runs... but im not sure
the div #wiki_content is
Mahesh,
If your object is already in JSON, there's really no need to use something
like Json.NET. On the client, you could just parse out the JSON object
using eval statements or jQuery's JSON functions, but that's not a good
solution.
Something that popped out at me when I was rereading is
trying to do the same type of validation, but it didn't work for me.
could you please help?
multiemail: function(value, element) {
if (this.optional(element)) // return true on optional element
return true;
var emails = value.split(',');
var valid = (value.length
trying to do the same type of validation, but it didn't work for me.
Could you please help?
multiemail: function(value, element) {
if (this.optional(element)) // return true on
optional element
return true;
var
FWIW, I've had no troubles getting jscrollpane to work with both 1.3.1
1.3.2, so the problem is likely not that. I'll have a go at
attaching one to simplemodal and let you know how that goes.
On Fri, Feb 27, 2009 at 5:55 PM, dbonneville doug.bonnevi...@gmail.com wrote:
Hi - did you get this
I'm using the validate plugin, and am having a problem with simple one
element forms. I have a single select list and a submit button. If the
select list is empty, the validation prompts that it is required. When you
choose an option, and click Submit, it validates and removes the required
Hi Gelegrodan -
Thank you for your response.
I'm trying the jquery validation plugin and also using post
http://groups.google.com/group/jquery-en/browse_thread/thread/6411a46d271c1ce4#
as a reference, but I still can't make it work.
On Feb 27, 5:34 pm, Gelegrodan gelegro...@gmail.com wrote:
Hey
How do I tell if the item on a .each is the last one? For example,
lets say I want to add a comma after every item and not the last one,
how would I do that?
Thanks in advance.
Ah, in that case you might want to use the .live() binding:
$( #wiki_content a ).live('click', function(event) {
event.preventDefault();
var link = $(this).text();
searchDelay( link );
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 28, 2009,
an example
var arr = new Array(a, b, c, d);
$.each(arr, function(idx) {
if (idx == (arr.length - 1)) {
// at last item
}
});
On Feb 28, 12:49 pm, Toaster mr.toas...@gmail.com wrote:
Hey
How do I tell if the item on a .each is the last one? For example,
lets say I
**
The leading business search engine and business directory
designed to help its users find the companies, products,
services, and information they need to ...
***
___
http://www.coherentis.webs.com
For anyone interested, here is the updated set of 'tests' for the test
page I posted previously. This is the test-set John is currently
using:
// Test # 1
start = new Date();
$Test = $(#div+ myDiv + p);
end = new Date();
a_Selectors.push('$(#div'+ myDiv +' p)');
a_Times.push(end -
Thanks! I'm not sure we can use that, because there are a couple of
complications.
For starters both jquery versions are using plugins, and you seem to
be using the extreme version of noConflict(), which, according to
the jq docs:
NOTE: It's very likely that plugins won't work after this
you rock man, thanks that works. amazing stuff, I've no idea why that
would work
but apparently because of event bubbling, I'll read up on that
many thanks again
On 28 Feb, 18:52, Karl Swedberg k...@englishrules.com wrote:
Ah, in that case you might want to use the .live() binding:
$(
Two other ways:
$('tr.className + tr').each(function(){
var nxt = $(this), i=0;
while (nxt.length){
nxt.css('backgroundColor', i%2 ? 'white' : 'red');
nxt = n.next(':not(.className)');
i++;
}
});
Or this (I prefer the first, this one is probably slower):
$('tr.className
Well, this is giving me fits.
Superfish does the job in every browser but the miserable IE7, where
the submenu items are not clickable.
See the bottom-most (dark-brown) menu here called In Our Classrooms
http://ivanhoeschool.com
I have tried increasing the z-index to 1000 in all the relevant
Hey, my validation form works just fine but i've a problem with
changing the class at a successful validation.
My Code:
success: function(label) {
label.addClass('success').text(Ok!)
},
errorPlacement: function(error, element) {
error.appendTo( element.parent(td).next(td) );
},
Situation.
I have several thumbnails next to a div with id of 'image holder'. Under
that is another div with id of 'msg_body'. image_holder already shows first
thumbnail's large view image and msg_body already shows first thumbnails
description on page load.
I want to be able to click next
I have been trying to figure out why, when I add Cycle to a page, the
#header displayed a 20px (approx) margin-bottom that wasn't specified
- but ONLY in Win/IE6. Tested by adding Cycle, checking on
Browsershots for IE6 (which always - W2K and XP - showed this problem)
and IE7 (which never showed
url: bldd.nl/jsproblems/convertToJQuery.html
this part of my code doesn't seem to work
alert($expandedSiblings.size());
if ($expandedSiblings.size() 0) {
$expandedSiblings.slideUp(500, function(){
$heading.find('ul').slideDown(500);
The different way would be to remove the nested form and place the
fields that were inside the nested form in the parent form. There are
ways to post only specific fields.
I don't see why this is necessary. Also, this messes up browser
functionality; when the nested form is submitted, it submits
Hi there,
Since the docs are based on a wiki, i wonder if this is intended or
not by the jquery team: on this page, the links chapter contains an
incentive to buy a jquery book.
http://docs.jquery.com/Removeclass
see:
For more details buy the jQuery Reference Guide here in this site
Please upload a test file with all related content.
Hebrew:
בבקשה תעלה קובץ XHTML לבדיקה עם כל התוכן הרלונטי.
זה כולל את קובץ ה-jQuery בגירסא המתאימה שלו, הקטע כולו של התגים
שקשורים ל-Tabs וכן קוד JS מתאים...
העלאה של 2 קבצים נפרדים שכל אחד מהם מכיל טקסט בשפה אחרת (אחד עברית
ואחד אנגלית) -
You maybe know this, but there's a great website that compares
compatibility in different popular browsers:
http://www.quirksmode.org/dom/w3c_core.html
I've noticed lately to the querySelectorAll method. Looks
promising :)
more to see here:
http://www.quirksmode.org/compatibility.html
--
Hi Alexandre,
Thanks for calling this to our attention. Actually, the page itself
shouldn't be there. I just edited it to redirect to the proper
location, http://docs.jquery.com/Attributes/removeClass
Please be assured that I had nothing to do with the placement of that
link (even though
Please be assured that I had nothing to do with the placement of
that link (even though I'm a co-author of it).
And by co-author of it I meant co-author of the book.
--Karl
am not getting the stylized popup window (generic yellow box instead).
all files in my server root folder. please help this newbie; this in
head:
script type=text/javascript src=jquery-1.2.6.min.js/script
script src=jquery.bgiframe.js type=text/javascript/script
script src=jquery.tooltip.pack.js
sure, the $.ajax method returns the xhr object, and you can call the
abort method of it. Something like follows:
var xhr = $.ajax(...);
xhr.abort();
Regards,
svpino.
On Feb 23, 1:12 pm, Adam epne...@gmail.com wrote:
Hey, I'm looking for a way to force some known running ajax requests
to
the problem you are having is CSS . There should be a file of CSS to
hold all the components of the carousel together. I looked and didn't
see one on site for Lite version
read up on CSS. html generates the content but it needs to be
displalyed in proper location, color etc with CSS.
The
I have a bunch of Divs with class .popup. Each div is different in
what it contains; some are simple, some are pretty complex, containing
tables, other divs, etc..
If I have a link, for example,Cancel, within that Div, and the only
thing that I know about Cancel is that 1) it has a parent
$(this).parents('div.popup')
On Feb 28, 8:47 pm, riotbrrd k...@riotbrrd.com wrote:
I have a bunch of Divs with class .popup. Each div is different in
what it contains; some are simple, some are pretty complex, containing
tables, other divs, etc..
If I have a link, for example,Cancel, within
dG,
Okay, I tried using Troy Wolf's Proxy php page... It's a little more
than what i needed, but it works just fine.
I think this is something with JQuery itself... For anyone who wants
to look at this, i've uploaded it to my server:
http://ww2.krushradio.com/test/yp/jquery.zip
Now... I
Assuming that the cancel link has an id of 'cancel':
How about:
$(document).ready(function() {
$('#cancel').click(function() {
$(this).parent('div.popup:first')
});
});
Not sure what you want to do with the parent div
when you locate it...
untested, buy may work...
It should be .parents
$(this).parents('div.popup:first')
On Feb 28, 9:05 pm, Rick Faircloth r...@whitestonemedia.com wrote:
Assuming that the cancel link has an id of 'cancel':
How about:
$(document).ready(function() {
$('#cancel').click(function() {
just went through that download today to implement. I ended up grabbing
screen.css from project demo site and found some of the tooltip
components on there and all works well
paulmo wrote:
am not getting the stylized popup window (generic yellow box instead).
all files in my server root
Thanks for the tip!
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of mkmanning
Sent: Sunday, March 01, 2009 12:18 AM
To: jQuery (English)
Subject: [jQuery] Re: How to find a parent
It should be .parents
Have a look at the excellent Autocomplete plugin by Jörn Zaefferer:
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
SEAN O
http://www.sean-o.com
anjith wrote:
Hi,
Hey please help i want to do google suggest i have customised many
codes but none of them working . I
Paul,
Two suggestions:
1) remove the dimensions plugin script (it's integrated into jQuery as of
this version)
2) close your doc ready function with parens semicolon:
$(function() {
$('#set1 *').tooltip();
});
SEAN O
http://www.sean-o.com
paulmo wrote:
am not getting the stylized
Hmmm...after looking at the docs, it would seem
parent would be more appropriate since Kim is
looking for the first parent of the link '#cancel'.
Why would you think it should be parents which
would return more than the first parent.
Am I misunderstanding something?
Rick
-Original
You guys rock! thanks.
So, .parents works, .parent does not. I think the reason is
this: .parent only finds the single parent immediately up the tree,
but the div I'm looking for is actually several nodes up. The node
that .parent finds is not a div.popup, so I get no object back.
Thanks again!
The statement it has a parent div.popup somewhere up the tree (no
idea how many levels) implies to me that div.popup may not be the
direct parent of Cancel. Parent() returns the unique parent, so
there will be only one for each element; in the above case $
(this).parent() will return the unique
And that's what happens when you type a long-winded response, it
becomes redundant by the time you hit send :)
On Feb 28, 10:03 pm, mkmanning michaell...@gmail.com wrote:
The statement it has a parent div.popup somewhere up the tree (no
idea how many levels) implies to me that div.popup may
62 matches
Mail list logo