[jQuery] Using trigger for click event doesn't call click functions

2009-02-28 Thread s.ross
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

[jQuery] Re: Help please with toggling a class

2009-02-28 Thread zac
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

[jQuery] google suggest

2009-02-28 Thread anjith
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

[jQuery] Re: Please, help me convert this flash menu into a jQuery menu?

2009-02-28 Thread 123gotoandplay
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

[jQuery] IE won't show changes made on $(document).ready?

2009-02-28 Thread Frederik Ring
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

[jQuery] Add an animate function to a addClass?

2009-02-28 Thread 123gotoandplay
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' },

[jQuery] Re: Superfish - hide on clik ?

2009-02-28 Thread calimero
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

[jQuery] Re: Superfish - hide on clik ?

2009-02-28 Thread calimero
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

[jQuery] Re: Passing JSON objects to a Web Method

2009-02-28 Thread Mahesh
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

[jQuery] Superfish - Still Need Help - Error Message

2009-02-28 Thread bellaluna316
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

[jQuery] Re: alternate color row starting from a point

2009-02-28 Thread Safaa Abd Elrazak
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

[jQuery] TableSorterPager delete row problem

2009-02-28 Thread gtjw
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

[jQuery] Code Simplifying Help

2009-02-28 Thread ramonmaruko
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:

[jQuery] Code Simplifying Help

2009-02-28 Thread ramonmaruko
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

[jQuery] Re: Parsing an external RSS feed

2009-02-28 Thread addyosm...@googlemail.com
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:

[jQuery] Re: jQuery tabs problem with language

2009-02-28 Thread hitautodestruct
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,

[jQuery] Re: Something broke in IE7

2009-02-28 Thread oliver.pra...@googlemail.com
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:

[jQuery] problems extracting links and redirecting to function

2009-02-28 Thread hybris77
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 );

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread Karl Swedberg
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

[jQuery] Re: Code Simplifying Help

2009-02-28 Thread MorningZ
$('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:

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread hybris77
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

[jQuery] Re: Passing JSON objects to a Web Method

2009-02-28 Thread David Meiser
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

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-02-28 Thread ml2009
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

[jQuery] Re: jQuery validation question: validating multiple email inputs

2009-02-28 Thread ml2009
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

[jQuery] Re: Custom ScrollBar

2009-02-28 Thread brian
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

[jQuery] jquery validation question: validate a single form element onsubmit

2009-02-28 Thread Eben Goodman
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

[jQuery] Re: Form Validation

2009-02-28 Thread ml2009
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:

[jQuery] Tell if its the last item on a .each?

2009-02-28 Thread Toaster
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.

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread Karl Swedberg
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,

[jQuery] Re: Tell if its the last item on a .each?

2009-02-28 Thread MorningZ
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

[jQuery] How to traverse HTML ?/??????

2009-02-28 Thread red
** 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

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-28 Thread Kevin Dalman
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 -

[jQuery] Re: Multiple inclusions of jquery possible?!?

2009-02-28 Thread ml1
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

[jQuery] Re: problems extracting links and redirecting to function

2009-02-28 Thread hybris77
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: $(

[jQuery] Re: alternate color row starting from a point

2009-02-28 Thread ricardobeat
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

[jQuery] Superfish submenu items not clickable IE7

2009-02-28 Thread mackreed
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

[jQuery] [validation] Changing class label on succes

2009-02-28 Thread Tim90
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) ); },

[jQuery] click thumbnail show large image in separate div, slide up image description in another div

2009-02-28 Thread whoisonfirst
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

[jQuery] Cycle - IE6 (only) layout break w/ LI fix

2009-02-28 Thread Wendy
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

[jQuery] submenu doesn't hide

2009-02-28 Thread 123gotoandplay
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);

[jQuery] Re: Form inside Form value

2009-02-28 Thread tres
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

[jQuery] Advertising in jquery docs: normal?

2009-02-28 Thread Alexandre Plennevaux
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

[jQuery] Re: jQuery tabs problem with language

2009-02-28 Thread Dor
Please upload a test file with all related content. Hebrew: בבקשה תעלה קובץ XHTML לבדיקה עם כל התוכן הרלונטי. זה כולל את קובץ ה-jQuery בגירסא המתאימה שלו, הקטע כולו של התגים שקשורים ל-Tabs וכן קוד JS מתאים... העלאה של 2 קבצים נפרדים שכל אחד מהם מכיל טקסט בשפה אחרת (אחד עברית ואחד אנגלית) -

[jQuery] Re: $('#foo p') or $('p', $('#foo'))

2009-02-28 Thread Dor
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 --

[jQuery] Re: Advertising in jquery docs: normal?

2009-02-28 Thread Karl Swedberg
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

[jQuery] Re: Advertising in jquery docs: normal?

2009-02-28 Thread Karl Swedberg
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

[jQuery] [tooltip] help please

2009-02-28 Thread paulmo
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

[jQuery] Re: forcing ajax request to stop

2009-02-28 Thread svpino
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

[jQuery] Re: jcarousel lite plug in help needed

2009-02-28 Thread Charlie Tomlinson
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

[jQuery] How to find a parent

2009-02-28 Thread riotbrrd
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

[jQuery] Re: How to find a parent

2009-02-28 Thread mkmanning
$(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

[jQuery] Re: JQuery problem trying to read XML from a site (xmlhttp)

2009-02-28 Thread KrushRadio - Doc
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

[jQuery] Re: How to find a parent

2009-02-28 Thread Rick Faircloth
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...

[jQuery] Re: How to find a parent

2009-02-28 Thread mkmanning
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() {                

[jQuery] Re: [tooltip] help please

2009-02-28 Thread Charlie Tomlinson
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

[jQuery] Re: How to find a parent

2009-02-28 Thread Rick Faircloth
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

[jQuery] Re: google suggest

2009-02-28 Thread Sean O
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

[jQuery] Re: [tooltip] help please

2009-02-28 Thread Sean O
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

[jQuery] Re: How to find a parent

2009-02-28 Thread Rick Faircloth
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

[jQuery] Re: How to find a parent

2009-02-28 Thread riotbrrd
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!

[jQuery] Re: How to find a parent

2009-02-28 Thread mkmanning
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

[jQuery] Re: How to find a parent

2009-02-28 Thread mkmanning
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