[jQuery] Re: Case Insentitive Selectorys

2008-09-22 Thread blockedmind
Nothing? On Sep 20, 5:22 pm, blockedmind [EMAIL PROTECTED] wrote: I am making search in an xml file, but I don't get expected results since jQuery selectors arecase-sensitive. I use something like $(returnedXml).find(item[name*='+search+']).each(function(){ }); How to make it

[jQuery] Re: Treeview problem with checkboxes in IE

2008-09-22 Thread Jörn Zaefferer
Can you build a testpage that doesn't require any browser plugins to install first? Jörn On Mon, Sep 22, 2008 at 7:19 AM, mrhankey [EMAIL PROTECTED] wrote: I also just noticed that the problem goes away when I turn animation off (although the plus/minus icons still display erratically on the

[jQuery] Re: Validate with bassistance local bug

2008-09-22 Thread ripcurlksm
Thank you, I will try that. Regards, Kevin On Sep 20, 5:37 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: Try to download the complete package, which includes the demo and it's PHP files for remote validation:http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Jörn On Sat, Sep

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread suntrop
This is the JS code: $('.makeFavorite').click(function() { $.ajax({ type: POST, url: make_favorite.php, data: id= + $(this.id), success: function(msg) { alert('Data saved: ' + msg);

[jQuery] Re: Case Insentitive Selectorys

2008-09-22 Thread Erik Beeson
Maybe try using filter and a regexp for the part that you want to be case insensitive. Something like (very untested): $(...).find('item').filter(function() { return this.name.match(new RegExp(search, 'i')); }).each(function() { }); I don't recall the syntax for accessing an XML attribute from

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread Erik Beeson
According to the docs, 'this' within a success callback is the options object, so 'this.id' doesn't mean anything useful: http://docs.jquery.com/Ajax/jQuery.ajax#options Also, $(this.id) probably isn't anything useful either. Maybe try this (untested): $('.makeFavorite').click(function() {

[jQuery] Re: docs.jquery.com status update

2008-09-22 Thread coreyw
I hate to revive a more-or-less dead thread, but this problem is still occurring as far as I can see. The docs. subdomain doesn't just host the documentation, so the other sources are of no use. It happens to host a good portion of the content regarding release notes, download notes, tutorials,

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread Makisa
Hi Can you show more code? I think showing an alert would be a good idea. On Sep 22, 12:38 am, suntrop [EMAIL PROTECTED] wrote: HI there, I want to insert two variables into the selector and an attribute. But it doesn't work. $('h1 a#' + this.id + ' img').attr({src : images/ + msg +

[jQuery] ajax request with datatype:script

2008-09-22 Thread seo++
I am trying to insert array elements through ajax request, these elements are also arrays or multidimensional arrays. here is an example main script : var list = []; $.ajax({ type: POST, url: 'http://example.com/ids.js', data: id=1 ,

[jQuery] Superfish and wordpress - menus show up only on first page...?

2008-09-22 Thread janaki
Hi everyone! first off I'm a newbie using Superfish, but I just wanted to see if anyone has had the following problem: I was able to get the superfish vertical dropdown menu working on this site for the front page; however, when I use superfish for any sub pages it does not work; what happens is

[jQuery] JSON data issue in IE | Language Translation

2008-09-22 Thread Arif
Hi All, Hope, you all would be doing well. I am trying to create a language translation utility using jQuery for some specific words only, seems working fine in Firefox but don’t do well in IE 6/7. Given is the JSON file, where I map headings which needs to be translated in French. JSON Data:

[jQuery] Re: Superfish navbar for Wordpress

2008-09-22 Thread kiper
Sweet! That was a nice and simple solution. It works but I realized that I'll have to change some of the CSS... :) Many Thanks! Müfit On Sep 21, 9:57 am, Joel Birch [EMAIL PROTECTED] wrote: I just thought of a really simple solution for this. Before initialising Superfish simply dynamically

[jQuery] Re: forms

2008-09-22 Thread david
Hi, The easy option is if you could define what the maximum number of addresses you can enter. For this you would not need javascript. CGI (for example perl) would be sufficient. You would create a table of input elements where each row represents an address. If not it is a little complicated.

[jQuery] Re: simple wizard: stuck with first jquery usage

2008-09-22 Thread david
Hi, You could give all the divs a certain class, for example wizard. At the beginning make that just one will be visible. For the next and back you could find the index of the div which is visible with this function $('.wizard').index($('.wizard:visible)) Then you just make it invisible and the

[jQuery] Adding Arrows to a DropDownMenu based on Lists

2008-09-22 Thread Gordon Bergling
Good Morning Everyone, I am struggling a few hours with a problem, which solution isn't that easy as I initial though. The following example list is generated by backend code. ul id=nav li a id=hyperlink class=navlink href=/home title=Home/a /li lia id=hyperlink class=navlinkparent href=

[jQuery] superfish style current top

2008-09-22 Thread waver
I'am using the navbar example. I would like to set another color for the current top-level menu item if a submenu is selected current (like a breadcrumb). I've put li class=current in both the top-level menu and the submenu. I've figured out how to change the submenu current font color but I have

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread [EMAIL PROTECTED]
you concatenate a string with an object.. On 22 Sep., 10:16, suntrop [EMAIL PROTECTED] wrote: This is the JS code: $('.makeFavorite').click(function() {         $.ajax({                 type: POST,                 url: make_favorite.php,                 data: id= + $(this.id),            

[jQuery] Re: JSON data issue in IE | Language Translation

2008-09-22 Thread Arif
Even I got the issue, it's not been rendering because of French accented characters in IE. So what do I need to change the JSON character encoding? P.S: I don't have server control, can change the front end layer (xhtml/css/js/json) only, and will not be able to write any server side code

[jQuery] Re: Help refactoring code for css sprite animation

2008-09-22 Thread gogojuice
Thanks Michael Your code worked right off the copy and paste. I knew there was a recursive procedure in there somewhere, but I'm just getting up to speed with Javascript after years of ignoring it due to the pain and suffering involved in writing cross platform stuff. Jquery has made me want

[jQuery] [sites using jQuery] adobe.com

2008-09-22 Thread spinnach
dunno if anybody noticed, but adobe is using jQuery on some of their pages: http://opensource.adobe.com/wiki/display/site/Projects dennis.

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread suntrop
Thanks Erik. It helped! The id is inserted correctly. But the image isn't replaced correctly. What code should I sow you more Makisa? The other code isn't affected with this. What do you mean? On 22 Sep., 10:26, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: you concatenate a string with an

[jQuery] [validate] how to test text against a bad word list?

2008-09-22 Thread tobaco
hi, i'm using the excellent validate-plugin and it works like a charm. now i want to test the text in a textarea against a list of bad words. how must be the syntax of the custom validation rule? i'm very bad in regex … thanks in advance, tobaco

[jQuery] Re: [validate] how to test text against a bad word list?

2008-09-22 Thread Jörn Zaefferer
return !/bad|word|must|not|match/.test(value); Jörn On Mon, Sep 22, 2008 at 1:25 PM, tobaco [EMAIL PROTECTED] wrote: hi, i'm using the excellent validate-plugin and it works like a charm. now i want to test the text in a textarea against a list of bad words. how must be the syntax of the

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread david
Hi, What do you get from the server side ? I think you are getting a json structure. But this is text for javascript till you make eval; instead of the ajax function try getjson. Best regards, David On Sep 22, 7:04 am, seo++ [EMAIL PROTECTED] wrote: I am trying to insert array elements through

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread MorningZ
But the image isn't replaced correctly Perhaps try changing this line instead $('#' + id + ' img').attr(src, images/+msg+.png); There's no reason why that (or your line for that matter) wouldn't work as long as the selector finds something and the value of the src is a valid path on your

[jQuery] Re: [validate] how to test text against a bad word list?

2008-09-22 Thread tobaco
uh, that was fast! thx, i will give it a try. aehm, is it possible to put the bad word in an array and test this. On 22 Sep., 13:31, Jörn Zaefferer [EMAIL PROTECTED] wrote: return !/bad|word|must|not|match/.test(value); Jörn On Mon, Sep 22, 2008 at 1:25 PM, tobaco [EMAIL PROTECTED]

[jQuery] Re: [validate] how to test text against a bad word list?

2008-09-22 Thread Jörn Zaefferer
Sure. You can create a regexes on the fly with new RegExp(bla) and use that instead of the inline regex /bla|blu/. Jörn On Mon, Sep 22, 2008 at 1:37 PM, tobaco [EMAIL PROTECTED] wrote: uh, that was fast! thx, i will give it a try. aehm, is it possible to put the bad word in an array and

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread suntrop
When write: $('#' + id + ' img').attr(src, images/favorites.png); … it works. alert (msg) says favorites. There must be something wrong with msg. If the variable is defined before var favimg = favorites; and I insert favimg it works just fine. What could be wrong with msg? msg is what I echo

[jQuery] help needed with new node replace

2008-09-22 Thread redcom
If anyone knows a jQuery way to replace a node and return the new node object that would be great (replaceWith returns the old object)

[jQuery] Error when trying to load the carousel.html

2008-09-22 Thread macmike
i copied over the files into a directory on my webspace and get the following error when trying to access the carousel.html. Error on the jquery.agile_carousel-beta.1.zip: Fatal error: Call to undefined function: filter_var() in /homepages/14/ d227853429/htdocs/caro1/make_slides.php on line 9

[jQuery] Re: jEditable Clone Referring to the Original Element

2008-09-22 Thread Wayne
Thanks, Mike. This info helps. Great work, btw. -Wayne On Sep 20, 12:22 pm, Mika Tuupola [EMAIL PROTECTED] wrote: On Sep 19, 2008, at 6:20 PM, Wayne wrote: In short, I can clone jEditable items, but I can't edit them in place without a page reload and rewriting from the server side. Am I

[jQuery] Re: jScrollPane and fadeIn

2008-09-22 Thread RitchieTheBrit
Thanks for your reply dude. I actually had the scripts grouped like that, but I wasn't sure if that was causing the problems, so I split them again, cheers for clarifying that for me. Anyway, I still have the same problem. If the contentContainer DIV is set to fadeIn, it will render any

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread MorningZ
are you sure there is no white space getting returned in your echo? if you have a line break (which you can't see in the returned value) that could be throwing off the img src tag maybe wash the returned value through a function stripping off leading and trailing whitespace

[jQuery] Re: [validate] how to test text against a bad word list?

2008-09-22 Thread tobaco
hm, i tried it this way, var badwordlist = new Array(Nice Site, Good Work, xxx, url=http, drugs, aciphex, nude); jQuery.validator.addMethod(badWord, function(value) { return new RegExp('!/' + badwordlist.join('|') + '/').test(value);

[jQuery] Re: [validate] how to test text against a bad word list?

2008-09-22 Thread Jörn Zaefferer
Try this: return !new RegExp(badwordlist.join('|')).test(value); Jörn On Mon, Sep 22, 2008 at 3:50 PM, tobaco [EMAIL PROTECTED] wrote: hm, i tried it this way, var badwordlist = new Array(Nice Site, Good Work, xxx, url=http, drugs, aciphex, nude);

[jQuery] Re: load progress on background image...

2008-09-22 Thread [EMAIL PROTECTED]
well i think i found the answer, for the record: var imageObj = new Image(); $(imageObj).attr(src,imagePath).load(function(){ $(#loadingGal).hide(); }); $(#leftCol).css(background-image,url(+imagePath+)); Since the load command does not take into account background images, i loaded up

[jQuery] Re: Help refactoring code for css sprite animation

2008-09-22 Thread Michael Geary
That's great, I'm glad it worked! Just a minor point of terminology: There's actually no recursion in that code, although it does have a recursive feel to it. The callback functions are called at a later time after the original function has returned. Recursion would be when you have a function

[jQuery] Re: [validate] how to test text against a bad word list?

2008-09-22 Thread tobaco
doh! (http://www.fortunecity.com/lavendar/poitier/135/doh.wav) (hätte ich auch selber drauf kommen können …) thanks! works great! On 22 Sep., 16:03, Jörn Zaefferer [EMAIL PROTECTED] wrote: Try this: return !new RegExp(badwordlist.join('|')).test(value); Jörn On Mon, Sep 22, 2008 at

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread Michael Geary
No one could possibly have any idea what's wrong there (other than a lucky guess), because we're not seeing your actual code. Forget about PHP for the moment and look at what you get back from a View Source in the browser. That's all the browser and its JavaScript interpreter know about - your

[jQuery] Re: event delegation in jQuery - delegate vs listen vs ?

2008-09-22 Thread Wilfred Nas
if you have to sell it, just mention speed, that increases by a lot. or the fact that elements that are added dynamically have their handlers on standby. (warning plug) look at my article about it with examples at the bottom http://www.wnas.nl/?p=238 From: rolfsf Thanks Mike, I guess

[jQuery] Re: about $(document).ready()

2008-09-22 Thread 立体风
哦,谢谢,呵呵,收获不小,想不到这里国内的朋友还不少啊! 2008/9/21 Xinhao Zheng [EMAIL PROTECTED] 你好, 你可以为ready事件定义多个函数。也就是你那样写是可以的。 至于你说的合在一起和分开是有区别的,至少我亲身体验的是我是能合在一起就合在一起,需要分开就不得不分开。 不过分开写的时候,最好每个函数彼此之间不要相互依赖。 Xinhao Zheng SGL中文Blog: http://blog.cjcht.com SGL中文文档: http://wiki.cjcht.com

[jQuery] Re: Insert variable into a selector

2008-09-22 Thread suntrop
Hi Michael, I didn't want to screw things up with the complete code, because I thought it is a pretty simple thing :-) So here is the whole code: (I haven't a live page, it is only on my local machine) !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

[jQuery] Re: Case Insentitive Selectorys

2008-09-22 Thread ricardobeat
my_search = sEarCh; //global var, you can't pass arguments to the filter function my_search = new RegExp(my_search,'i'); // 'i' makes the regexp case insensitive $('h1').filter(function () { return $(this).attr('title').match(my_search); }); this might be slow if you're handling large XML

[jQuery] Re: help needed with new node replace

2008-09-22 Thread Balazs Endresz
Write plugins! It's easy: $.fn.myReplaceWith = function () { var ret = $( arguments[0] ); this.replaceWith( ret ); return ret; }; On Sep 22, 3:15 pm, redcom [EMAIL PROTECTED] wrote: If anyone knows a jQuery way to replace a node and return the new node object that would be great

[jQuery] Re: about $(document).ready()

2008-09-22 Thread José Wilker
araio, da pra escreverem em uma linguagem que todo mundo entenda?! hahahaha JW 2008/9/22 立体风 [EMAIL PROTECTED] 哦,谢谢,呵呵,收获不小,想不到这里国内的朋友还不少啊! 2008/9/21 Xinhao Zheng [EMAIL PROTECTED] 你好, 你可以为ready事件定义多个函数。也就是你那样写是可以的。 至于你说的合在一起和分开是有区别的,至少我亲身体验的是我是能合在一起就合在一起,需要分开就不得不分开。

[jQuery] IE ignores event load()

2008-09-22 Thread Martynas Brijunas
Hi, please could somebody tell me how to improve the following code: $(document).ready(function() { $(img.thumb).load(function() { $(this).addClass(visible); }); }); The idea is that an image needs to be displayed only when it has fully loaded. Prior to that the background of the div is

[jQuery] Tools for packing js

2008-09-22 Thread Manuel Meyer
Hey, few days ago I started to develop with jQuery - and I love it! I'd like to know what tool was used to pack jquery. Another thing: In the last days docs.jquery.com was down several times. Is there any mirror? Manuel

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread seo++
server side sends ids.js mentioned in first post it's a JavaScript array On Sep 22, 2:33 pm, david [EMAIL PROTECTED] wrote: Hi, What do you get from the server side ? I think you are getting a json structure. But this is text for javascript till you make eval; instead of theajaxfunction

[jQuery] Re: Superfish loading problem

2008-09-22 Thread macleo
I found this problem when I using smarty with jquery .. but I have not sloved this problem,whatever I using 1st method or 2nd method.. so I give up jQuery althrough jquery very cool...

[jQuery] Newbie: .after to add an image ref into code

2008-09-22 Thread artpunx
Hello list! Apologies if this is a recurrent request! I would like to append an image after an a href, so far I have my html: a href=# name=foo target=_blank class=openInNewWindowopen in new window/a and my first attempt at jQuery: $('.openInNewWindow').after('img

[jQuery] Toggling that degrades gracefully

2008-09-22 Thread gryzzly
Hello guys. I have this code (simplizied and without irrelevant here thtbody etc. code): table tr class=section_head tdname/td tdvalue/td /tr tr td colespan=2divsome stuff/div/td /tr /table I want to show/hide non-classed tr when clicking on

[jQuery] jquery, works in FF, but no love in IE.

2008-09-22 Thread Scott Stewart
Hey all.. this is the rendered HTML from a ColdFusion app that I'm working on. I'm having a bear of a time trying to get the JQuery plugins functioning in IE 7. They run like a champ in Firefox 3, but in IE 7, I get the loading text but no display of the called page in the href. any help

[jQuery] Re: finding the state of slideToggle

2008-09-22 Thread Michael
Here is the answer, thanks to digilover over at the SitePoint forums... function initMenu() { $('#groups ul').hide(); $('#groups li a').click( function() { $(this).next().slideToggle('normal',function(){ var

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread seo++
the server side sends ids.js it's a JavaScript Array On Sep 22, 2:33 pm, david [EMAIL PROTECTED] wrote: Hi, What do you get from the server side ? I think you are getting a json structure. But this is text for javascript till you make eval; instead of the ajax function try getjson. Best

[jQuery] Re: docs.jquery.com status update

2008-09-22 Thread ricardobeat
I have accessed docs.jquery.com daily for the last 3 months. In this time the site has failed to load only once or twice, maybe it's not just a hosting issue? - ricardo On Sep 22, 12:54 am, coreyw [EMAIL PROTECTED] wrote: I hate to revive a more-or-less dead thread, but this problem is still

[jQuery] Re: IE ignores event load()

2008-09-22 Thread MorningZ
$(window).load(function() { $(img.thumb).addClass(visible); }); will do what you are after

[jQuery] Re: Adding Arrows to a DropDownMenu based on Lists

2008-09-22 Thread ricardobeat
docs.jquery.com always helps. The has() function does what you want: $(#nav li).has(ul).find(a.navlinkparent).css({ background-image: url(/img/nav_arrow_down.gif), background-repeat: no-repeat, background-position: right center }); $(#nav ul

[jQuery] Re: Adding Arrows to a DropDownMenu based on Lists

2008-09-22 Thread ricardobeat
oh, I forgot to mention that IDs should be unique, you are using the same ID for many a elements - use classes instead. On Sep 22, 3:39 pm, ricardobeat [EMAIL PROTECTED] wrote: docs.jquery.com always helps. The has() function does what you want: $(#nav

[jQuery] How can I make sure one AJAX call returns before another?

2008-09-22 Thread Namlet
I have several AJAX calls. Most of them retrieve values for drop-down lists and one fills in the data. Of course, unless the drop down lists are fully loaded, the data filler doesn't select them properly. Is there anyway to trigger the data filler after they are complete with more

[jQuery] Re: jScrollPane and fadeIn

2008-09-22 Thread ricardobeat
hmm, here's the thing: jScrollPane needs the height and width of the element it's being applied to in order to work. By setting #containerContent display:none in your CSS your effectively giving it 0 height and width, and jScrollPane keeps those measures after being applied. What I came up with

[jQuery] Re: Newbie: .after to add an image ref into code

2008-09-22 Thread ricardobeat
Are you running this code inside the head tag? Try wrapping it like this: $(document).ready(function(){ $('.openInNewWindow').after('img src=images/newWindow.gif /'); }); Also, why are you setting the target attribute if it is already set to the same value? cheers - ricardo On Sep 22,

[jQuery] Re: Superfish loading problem

2008-09-22 Thread ricardobeat
Are you using any other Javascript library in the same page? smarty works server-side, there is no reason to conflict with jQuery unless you're doing something wrong. A working html example would help! On Sep 22, 2:11 pm, macleo [EMAIL PROTECTED] wrote: I found this problem when I using smarty

[jQuery] cool new DatePicker with a familiar name, but how to make multi-month start with current

2008-09-22 Thread pedalpete
I've been using Kevin Lucks datepicker for the past few months, and I was trying to figure out how to make it a 'range' datepicker when I came across http://www.eyecon.ro/datepicker/ The naming will probably get confusing, but this is a really nice range picker. I am having one problem with it

[jQuery] Re: IE ignores event load()

2008-09-22 Thread Martynas Brijunas
Hi MorningZ, $(window).load(function() {      $(img.thumb).addClass(visible); }); will do what you are after thank you for your response. The problem with this one is that it will not show a single image until the whole lot has loaded - and that can be 20 or so seconds if the connection

[jQuery] Re: jScrollPane and fadeIn

2008-09-22 Thread Richard Brier
Fantastic work! For posterity, to help any noobs (like me!), here is the way the script is used in its entirety... script type=text/javascript $(document).ready(function(){ $('.scroll-pane').jScrollPane();

[jQuery] Re: Bind events on DOM elements inserted from other frame

2008-09-22 Thread hubbs
So, would this be in addition to my normal document ready? On Sep 17, 7:12 pm, ricardobeat [EMAIL PROTECTED] wrote: Not sure but $(frames['frame'].document).ready() should work (from the parent window). On Sep 17, 8:21 pm, hubbs [EMAIL PROTECTED] wrote: Ok, I am realizing it has to do

[jQuery] Re: cool new DatePicker with a familiar name, but how to make multi-month start with current

2008-09-22 Thread Wayne
Wow, that's got some pretty styling. Good find. I don't know how to modify the plugin code, but I found that if you want to display the current month as the first month, you can set the current value to a date in next month, while leaving the date value to the date you want initially selected.

[jQuery] using click() with $(event.target).is(something)

2008-09-22 Thread light-blue
I'm a Jquery newbie, so if this answer is available somewhere, please let me know. My user needs to click button B, which processes some info with AJAX (working great), and then needs to programmatically click button A, which itself runs an AJAX request. Button B works fine, but when it tries

[jQuery] Re: using click() with $(event.target).is(something)

2008-09-22 Thread Andy Matthews
If the click event for button A happens after the page load, then you'll need to rebind the event for button A in button b's success block. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of light-blue Sent: Monday, September 22, 2008 3:24 PM To:

[jQuery] Re: cool new DatePicker with a familiar name, but how to make multi-month start with current

2008-09-22 Thread pedalpete
Very nice work around Wayne, can't believe I didn't think of that. Here's the code I used to set-up the next month in case anybody else needs this. [code] function multiCalDate(){ var startingDate = new Date(); var startMonth = startingDate.addMonths(1);

[jQuery] Apply JQuery to HTML returned by AJAX function $.get()

2008-09-22 Thread yanbozey
This is a problem that I can solve with callbacks, but I dont know if there is another way to do this.. Lets say that I have this HTML div id=parent pThis is the first string/p /div If i specify... $(#parent p).hover(function(){ $(this).addClass(blue); },

[jQuery] Help with ajax contact form

2008-09-22 Thread Derba
I'm trying to use the ajax contact form i found from: http://capsizedesigns.com/blog/2008/04/an-ultra-slick-ajax-contact-form-with-jquery/ PHP: ?php error_reporting(E_NOTICE); function valid_email($str) { return ( ! preg_match(/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]

[jQuery] Manipulating input fields

2008-09-22 Thread Brett Alton
I'm trying to take the input from one text input field to the next and I'm not sure how to do it through jQuery. Can someone please send me a tutorial or example of how to do so? Right now I have: $(document).ready(function() { $(#agentfirstname).change(function() {

[jQuery] Change Event Firing Twice

2008-09-22 Thread sobencha
My problem is that I seem to be having a change even firing twice. Here are the details I have several checkboxes (input type=checkbox) all containing a class named metaABOCode. Whenever one is ticked or unticked (hence the change event), I want to grab some data via a json ajax call to

[jQuery] Script Errors

2008-09-22 Thread [EMAIL PROTECTED]
I receive this following error when posting a new post in WP. It freezes up my browser (i've used IE, Firefox, Opera, Chrome, etc.) every single time, please help: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the

[jQuery] Re: jQuery and Rails Block

2008-09-22 Thread Eric
If I understand your question correctly, you should be able to do it by Traversing the DOM. So, let's say that the HTML is like this: div class='one_record' pLorem ipsum.../p a class='hide_show_link' href='#'Hide/Show extra info/a div class='starts_hidden' Show this when the link is

[jQuery] $.modal() Not a function driving me crazy

2008-09-22 Thread JohnC
Hi I know this is going to be something simple, but I've been looking at it for hours and just can't see it. Problem page can be found here: http://www.fridgeframes.co.uk/dashtest.html I'm trying to use the Simple Modal plugin, but just get a $ ().modal() is not a function error each time.

[jQuery] Re: using click() with $(event.target).is(something)

2008-09-22 Thread Eric
Code samples would be really helpful here. I'm assuming that you've already attached a function to the Click event on Button B? $('.buttonB').click( ...some function to attach...); Because, unless you've done that, then running .click() isn't going to have much effect. Can you explain your

[jQuery] A better way to animate this list..?

2008-09-22 Thread PaulC
I'm new to jQuery so be gentle!! I have a menu list, and I want each li to fade in one at a time, I can do this with the following code: $(ul.menu li:first-child).fadeIn(1000, function () { $(this).next().fadeIn(1000, function () {

[jQuery] Re: How can I make sure one AJAX call returns before another?

2008-09-22 Thread Mickster
Maybe this is something for you: http://welcome.totheinter.net/2008/09/21/bundled-and-ordered-asynchronous-ajax/ Haven't read it myseld yet, but judging from the subject of the article, it might help you. I found it on the jQuery-tweet here: http://twitter.com/jquery Regards, Mickster On Sep

[jQuery] tablesorter with pager addon: Adding rows with ajax and auto-sorting

2008-09-22 Thread Jason Rice
I've been trying to get tablesorterPager working with AJAX addition of rows. I can get the rows added, but they are always on the last page, and are never get sorted properly. I've been trying various methods of trying to update the caches that are held by pager and tablesorter, but I haven't

[jQuery] Re: Superfish (IE cleartype bug)

2008-09-22 Thread nicholasnet
Sorry, for late reply. But this code did not worked in my case. I had to stick with my code. On Aug 18, 8:56 pm, Joel Birch [EMAIL PROTECTED] wrote: Hello, 'This' should do the job (pardon the pun): onShow: function(){     if ($.browser.msie){        

[jQuery] ClueTip plugin

2008-09-22 Thread mjs
The ClueTip plugin seems to reject html objects when loading locally. I have a div object that loads fine if I have text in it, but if I put a table in it, the cluetip becomes empty. Can anyone else confirm this? Is it possible to load a local table in a different tooltip implementation? Thank

[jQuery] Re: Simple/obvious way to reveal items clipped by overflow:hidden ?

2008-09-22 Thread Serengeti
Could you post how you got the code to dynamically decide the height of the expanded div? I have a grid system that will possibly have text that moves outside of the alloted 100px height. It could be 105px or it could be 600px tall. On Jul 24, 11:38 pm, Su [EMAIL PROTECTED] wrote: Doh! I forgot

[jQuery] Pb with JqModal et datepicker

2008-09-22 Thread Nicolas JAN
Hi, I would like to display 2 datepickers in a jqm window. The problem is when I click on the second datepicker and I choose a date, the first datepicker displays and I can't choose a date for the second. This is my code : index.html !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN

[jQuery] Re: How can I make sure one AJAX call returns before another?

2008-09-22 Thread Eric
Well, here's a bit of a hackish solution, but you basically want to keep track of what happens when the first batch of Ajax calls complete. You do this by specifying functions to be called when the Ajax calls finish (succeed). http://docs.jquery.com/Ajax/jQuery.ajax#options Let's say you have

[jQuery] Re: Tools for packing js

2008-09-22 Thread Isaak Malik
The jQuery developers use the YUI compressor for their releases. However, I can recommend you this one which is a bit more advanced than the YUI alternative: /packer/ http://dean.edwards.name/packer/ On Mon, Sep 22, 2008 at 4:36 PM, Manuel Meyer [EMAIL PROTECTED]wrote: Hey, few days ago I

[jQuery] Shadowbox and AJAX

2008-09-22 Thread Ruby
I am trying to make a page that is using the ajax call on an XML file. The trouble I am having is trying to get shadowbox to work. I need some help please. Here is the code so far script type=text/javascript !-- var $j = jQuery.noConflict();

[jQuery] Re: jScrollPane and fadeIn

2008-09-22 Thread RitchieTheBrit
It seems that there is some issues with this under Internet Explorer. The DIVs load fine, but the text is missing from the scroll pane, and there is no actual slider (although the scroll track is present). It's a bit late for me to look into it now, but if look at the above page using FF, it

[jQuery] Re: Apply JQuery to HTML returned by AJAX function $.get()

2008-09-22 Thread Norris
I ran into the same thing. Livequery will be your savior. http://brandonaaron.net/docs/livequery/ On Sep 22, 4:02 pm, yanbozey [EMAIL PROTECTED] wrote: This is a problem that I can solve with callbacks, but I dont know if there is another way to do this.. Lets say that I have this

[jQuery] Re: $.modal() Not a function driving me crazy

2008-09-22 Thread JohnC
OK - I have it The modal was calling in an external HTML file that contained a reference to the jquery script. Clearly a no-no! John

[jQuery] Re: using click() with $(event.target).is(something)

2008-09-22 Thread light-blue
I think Andy might be correct about the binding issue. Since I'm relatively new to jquery, I'm likely missing something basic. Below is code sample... // $Id$ // Global killswitch if (Drupal.jsEnabled) { $(document).ready(function(){ $('body').click(function(event) {

[jQuery] Re: missing ) after argument list error

2008-09-22 Thread switch13
Can anyone tell my why this might not work in a separate .js file but it does work from the firebug debugger? On Sep 19, 5:45 pm, switch13 [EMAIL PROTECTED] wrote: FF2 and I also tried IE6. The class is not getting added. That error is appearing in FireBug. Funny thing is, when I test it in

[jQuery] Re: ajax request with datatype:script

2008-09-22 Thread seo++
I am not getting an array, I am getting ids.js contents On Sep 22, 8:12 pm, FrenchiINLA [EMAIL PROTECTED] wrote: inside of your success function success: function(data){} you should refer to 'data' if you're getting back an array, you can refer to as data[0][0] On Sep 21, 9:04 pm, seo++

[jQuery] Is anyone using jQuery + Jaxer?

2008-09-22 Thread MorningZ
I've gotten so much to the point where I think jQuery for everything nowadays, I like the framework that much and really feel like I've got my programming and patterns down pat enough that I am faster/more- complete with anything I have been coding this year With that said, I'm *really*

[jQuery] Re: missing ) after argument list error

2008-09-22 Thread Michael Geary
Do we get to see this mystery .js file? Gonna be hard to guess what's wrong otherwise. From: switch13 Can anyone tell my why this might not work in a separate .js file but it does work from the firebug debugger? ... I can't see why this wouldn't work:

[jQuery] Re: Apply JQuery to HTML returned by AJAX function $.get()

2008-09-22 Thread Richard D. Worth
Here's some more info/options: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F - Richard On Mon, Sep 22, 2008 at 5:51 PM, Norris [EMAIL PROTECTED] wrote: I ran into the same thing. Livequery will be your savior.

[jQuery] Re: Superfish (IE cleartype bug)

2008-09-22 Thread Joel Birch
2008/9/23 nicholasnet [EMAIL PROTECTED]: Sorry, for late reply. But this code did not worked in my case. I had to stick with my code. On Aug 18, 8:56 pm, Joel Birch [EMAIL PROTECTED] wrote: Hello, 'This' should do the job (pardon the pun): onShow: function(){ if

[jQuery] Re: superfish style current top

2008-09-22 Thread Joel Birch
Hello, In the original superfish-navbar.css file there is a rule like this, which you seem to be missing: .sf-navbar li.current { background: #BDD2FF; } Joel Birch.

[jQuery] Re: Superfish and wordpress - menus show up only on first page...?

2008-09-22 Thread Joel Birch
Hello, Looks like you have sorted out the problem as it seems to work fine for me. Joel Birch.

  1   2   >