[jQuery] Re: How can I return some value in jquery's callback function?

2008-11-13 Thread DYH1919
Just it! I didn't remeber pass function Thank for your reply. 2008/11/14 Erik Beeson <[EMAIL PROTECTED]> > I'm not quite understanding you, but it seems like you need to just pass > along callback functions? Maybe you want something like: > > function checkRegistered(email, doIfRegistered, doIfN

[jQuery] Re: Lightbox overlay, fade out background

2008-11-13 Thread coughlinsmyalias
Thank you, ill check that out. Ryan On Nov 13, 8:38 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > No need to reinvent the wheel, I'd use the BlockUI plugin in conjunction > with whatever you're working on. > > -- Josh > > -Original Message- > From: jquery-en@googlegroups.com [mailto:

[jQuery] Re: How can I return some value in jquery's callback function?

2008-11-13 Thread Erik Beeson
I'm not quite understanding you, but it seems like you need to just pass along callback functions? Maybe you want something like: function checkRegistered(email, doIfRegistered, doIfNotRegistered) { var url='http://localhost/coudou/check/register.php?email=' + email; $.getJSON(url,

[jQuery] Re: Animating table rows

2008-11-13 Thread Shawn Grover
Another option is to wrap each of your TDs within the row with a DIV. Then you can do something like $("#myRow div.animateMe").slideUp(); Then the row has no vertical height because it's content is now invisible. Just a thought Shawn Karl Swedberg wrote: Chris, The .fadeIn() and .fade

[jQuery] Re: Stumped with a each() / height() problem

2008-11-13 Thread DejanNenov
To answer my own question: there is a difference between the javascrip "this" and the jQuery $ (this) - beware of it :) Cheers, Dejan On Nov 13, 10:34 pm, DejanNenov <[EMAIL PROTECTED]> wrote: > Hello All - > > I am stumped with the following problem - within an each() loop it > seems that thi

[jQuery] Stumped with a each() / height() problem

2008-11-13 Thread DejanNenov
Hello All - I am stumped with the following problem - within an each() loop it seems that this.height() is not working - or - more likely - I am doing something so obviously wrong I cannot see it :) Here is the code: function adjustRowHeights() { var maxH = 0; console.log('Array

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread n00bert
Hi Brandon, I put an alert in like so: $('#content div.thumb a').livequery('click', function(e) { alert ('clicked'); e.preventDefault(); var href = $(this).attr('href'); $('#mainMenu ul li ul li a[href$="' + href + '"]').triggerHandler ('click'); return fa

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread Ahhk
Brilliant! I'll take any incompatibilities of getElementByName over the totally broken radios any day! I never thought to change that to a standard method. Thank you so much. That was driving me nuts! George-147 wrote: > > > I just had a wild idea and it looks like working > > replace

[jQuery] Re: How can I return some value in jquery's callback function?

2008-11-13 Thread Freshow
Yes, it work but I want define the total as a function be called by different var url, and do different actions judge by true or false returned, any way can realize it ? On 11月14日, 上午1时41分, "Michael Geary" <[EMAIL PROTECTED]> wrote: > The $.getJSON callback function is not called at the time you

[jQuery] Re: Animating table rows

2008-11-13 Thread Karl Swedberg
Chris, The .fadeIn() and .fadeOut() might be an acceptable compromise. By the way, IE doesn't understand display: table-row, so if I recall correctly the display: block actually works there. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Nov 13, 2008, a

[jQuery] mcDropDown: How to reload?

2008-11-13 Thread CED
Anyone know how to force a mcdropdown element to reload? I am trying to update the mcdropdown via another action. McDropDown returns the element if its already been defined. Christian

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread Brandon Aaron
Well, to help debug the issue, try putting an alert within the click handler to make sure the click event is being bound and it isn't livequery causing the issue. Are you getting any script errors on the page? -- Brandon Aaron On Thu, Nov 13, 2008 at 10:04 PM, n00bert <[EMAIL PROTECTED]> wrote:

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread n00bert
Hi Brandon, thanks for your speedy reply. I added the $ as shown below. Unfortunately, ie still doesn't recognise the links added to #content as clickable. I know I'm pushing it, but do you have any other ideas as to why this should be? Sameer On Nov 14, 3:27 am, "Brandon Aaron" <[EMAIL PROTEC

[jQuery] Re: livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread Brandon Aaron
It is most likely an issue with selecting the a tag by the href attribute. Sometimes the href attribute gets serialized by IE. Try using the $= attribute selector ( http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue ) to find that a tag. $('#mainMenu ul li ul li a[href$="' + href +

[jQuery] livequery not binding to ajax loaded links in ie6 and ie7?

2008-11-13 Thread n00bert
Hi, I have the following code: //link is loaded via ajax into a div in #content //when clicked find a link in #mainMenu with the same href and trigger a click on it $('#content div.thumb a').livequery('click', function(e) { e.preventDefault();

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread George
I just had a wild idea and it looks like working replace following code in prettyCheckboxes $('input[name='+$toCheck.attr('name')+']').each(function(){ $('label[for=' + $(this).attr('id')+']').removeClass ('checked'); }); with $(document.getElementsByName($toCheck.attr('name'))).

[jQuery] Re: Animating table rows

2008-11-13 Thread c.barr
Hmm, well that's too bad. I actually tried to do a custom .animate() with a height from 0 to the corrcet height, but that's the same issue - it sets it to display:block. The closest I've come is to do my animation, and then do a callback when it finishes of .css("display","table-row") - which wo

[jQuery] Re: Animating table rows

2008-11-13 Thread ricardobeat
It's impossible to animate a table row's height to/from 0. Try setting the tr height less than the text height, it doesn't work. Only block elements can use this effect :) On Nov 13, 9:06 pm, "c.barr" <[EMAIL PROTECTED]> wrote: > I'm creating an admin section for a site where I need to dynamicall

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-13 Thread ricardobeat
Here's my take - very limited (17 minutes :D): http://jsbin.com/ovisa On Nov 13, 7:42 pm, Jay <[EMAIL PROTECTED]> wrote: > Thought it was pretty cool, so I threw my own plug in together in a > little over an hour to mimic what he did there.   It's pretty simple > but should work in ie6/7,ff,safa

[jQuery] Re: Expand Upward

2008-11-13 Thread Karl Swedberg
Hi Douglas, You can do that by setting the element's position to either relative or absolute and then setting its bottom property (rather than its top) to anchor to the bottom of its closest positioned ancestor element. --Karl Karl Swedberg www.englishrules.com www.learningjqu

[jQuery] Re: Lightbox overlay, fade out background

2008-11-13 Thread Josh Nathanson
No need to reinvent the wheel, I'd use the BlockUI plugin in conjunction with whatever you're working on. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of coughlinsmyalias Sent: Thursday, November 13, 2008 5:15 PM To: jQuery (English) S

[jQuery] Re: set rounded corners to multiple divs

2008-11-13 Thread Mike Alsup
> Yeah, that's the one.  So there is no way to do "transparent" ?   or > do i just wrap a div around it with a background-color, so it will > bick up that parent div ?  thanks for your help !! You've got it. The code walks up the parent chain until it finds an element with a non-transparent back

[jQuery] Lightbox overlay, fade out background

2008-11-13 Thread coughlinsmyalias
Hey guys, I have been looking at some code of lighboxes and am trying to fade out the background like you see when you look at lightbox scripts. I am trying to get some code from other plugins but it is kind of a mess. Do anyone of you know how to fade out the background add an overlay with an op

[jQuery] event binding at bottom of page instead of ready() pitfalls?

2008-11-13 Thread decostop
Anyone have a link to some good info on or an experience based opinion on what risks I might face if I were to do my event binding at the bottom of my html instead of in the DOM ready? Not pretty but the objective would be to get the events working when the page is loaded, but right before some s

[jQuery] Re: Tab divs disappear

2008-11-13 Thread Klaus Hartl
I can't see how the disappearing lasts one second. Between the animations there has to take place a switch of course, that makes the tab navigation jump to the top. You could overcome that problem with some CSS trickery (like absolutely position the nav to the bottom of a container that has fixed

[jQuery] Re: set rounded corners to multiple divs

2008-11-13 Thread ramiro77
Yeah, that's the one. So there is no way to do "transparent" ? or do i just wrap a div around it with a background-color, so it will bick up that parent div ? thanks for your help !! On Nov 13, 6:53 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > Thank you Mike. one more problem i see with thi

[jQuery] Re: set rounded corners to multiple divs

2008-11-13 Thread Mike Alsup
> Thank you Mike.  one more problem i see with this script.  It seems to > pick up the page background color in order to do the alias.  is there > a way to change this ? If you're talking about Dave Methvin's corner plugin, then no, you can't change that. Using the background color of the parent

[jQuery] Jquery rounded corners

2008-11-13 Thread ramiro77
Is anyone using the rounded corners script ? If so, I am having some alias trouble. I have a background image set for my page ... it appears that the script gets the BG color of the Body tag and uses that for its aliasing ... is there anyway to set it to transparent ?

[jQuery] jeditable and XHTML?

2008-11-13 Thread Rodent of Unusual Size
Is there a known problem with jQuery/jeditable and XHTML? I keep running into this 'invalid string' message with JS and XHTML. First Dojo, now here.. it's getting discouraging. What am I doing wrong? Anyway, is there anything obviously wrong with the fragment at http://apache.pastebin.ca/12544

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread Ahhk
Wow, ok...thanks! I didnt think it was a jQuery issue and am surprised that jQuery, with as robust and fantastic as it is, wouldn't support array names for form elements. That seems like a major oversight to me :/ But, maybe I'm one of only a few people who actually use array names/IDs. hr

[jQuery] Animating table rows

2008-11-13 Thread c.barr
I'm creating an admin section for a site where I need to dynamically add a new row to a table - which I know how to do just fine, but the problem is that when you do an animation like .slideDown() jQuery sets it to display:block; and for a table row this is incorrect, as it should be display:table

[jQuery] Expand Upward

2008-11-13 Thread DougMellon
Hey, I was wondering if anyone knew of a way to get the div to expand upwards? Something like this (http://docs.jquery.com/Effects/ slideDown#speedcallback) just instead of expanding downwards have it expand upwards. Any help would be awesome. Thanks in advance. - Douglas Mellon

[jQuery] 3rd party code interference with responsive jquery event handling

2008-11-13 Thread decostop
I can't imagine my situation is very unique so I must be failing to see the trees through the forest. 1) We have a site that has a number of JQuery style event handlers. By this I mean we use the ready to apply event bindings based on jq selectors. 2) We have 3rd party JS which we have no control

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread George
I am with you now the problem is that you have weird name, with '[]' in it. this line $('input[name='+$toCheck.attr('name')+']') fails and returns empty collection. The problem is described here http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_chara

[jQuery] Re: Tab divs disappear

2008-11-13 Thread aaron
Sorry, wrong links. http://www.usm.edu/pr/web/beta/index.php http://www.usm.edu/pr/web/beta/index2.php On Nov 13, 3:26 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > In any case - as I already stated - rotate with Ajax tabs is not > supported at the moment. > > --Klaus > > On 13 Nov., 22:25, Klau

[jQuery] Re: Tab divs disappear

2008-11-13 Thread aaron
Sorry, wrong links. http://www.usm.edu/pr/web/beta/index.php http://www.usm.edu/pr/web/beta/index2.php On Nov 13, 3:26 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > In any case - as I already stated - rotate with Ajax tabs is not > supported at the moment. > > --Klaus > > On 13 Nov., 22:25, Klau

[jQuery] Re: jQuery + AWS = Fun (and a new search engine)

2008-11-13 Thread Alexandre Plennevaux
veeery nice ! at last, some comfy interface to "see" the book ! would be cool to not be leaving the app once you click on a book cover. dunno if it is possible, though On Thu, Nov 13, 2008 at 7:35 PM, JohnForsythe <[EMAIL PROTECTED]> wrote: > > Hey, > > Just wanted to show off my new search

[jQuery] Re: Parsing JSON with JQuery

2008-11-13 Thread nic
Thanks all for the responses. In case anyone reads this post ... This is what I did to get it working: The JSON data I had was: {"vegetables":null,"fruit":["orange","apple","peach"]} In my jsp (html, whatever) I had: $().ready(function() {

[jQuery] Re: jQuery / XML / IE

2008-11-13 Thread ken
http://dev.jquery.com/ticket/3143 http://docs.jquery.com/Specifying_the_Data_Type_for_AJAX_Requests (the code block) On Thu, Nov 13, 2008 at 10:37 AM, Jemo <[EMAIL PROTECTED]> wrote: > > OK, this works marvelously in Safari and Firefox for the Mac as well > as Firefox for the PC but it doesn't w

[jQuery] Re: set rounded corners to multiple divs

2008-11-13 Thread ramiro77
Thank you Mike. one more problem i see with this script. It seems to pick up the page background color in order to do the alias. is there a way to change this ? On Nov 13, 4:50 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > I am using the rounded corner script on one of my sites. I am using >

[jQuery] set rounded corners to multiple divs

2008-11-13 Thread ramiro77
Hi All, I am using the rounded corner script on one of my sites. I am using the below to round a corner on a div called 'rounded'. my question is, how can i apply this to multiple divs ... for example apply it to a div called #one, #two and #three. thank you $(document).ready(fun

[jQuery] Re: set rounded corners to multiple divs

2008-11-13 Thread Mike Alsup
> I am using the rounded corner script on one of my sites.   I am using > the below to round a corner on a div called 'rounded'.  my question > is, how can i apply this to multiple divs ... for example apply it to > a div called #one, #two and #three. > > thank you > >     >         $(document).r

[jQuery] Re: Tab divs disappear

2008-11-13 Thread aaron
Sorry, wrong links. http://www.usm.edu/pr/web/beta/index.php http://www.usm.edu/pr/web/beta/index2.php On Nov 13, 3:26 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > In any case - as I already stated - rotate with Ajax tabs is not > supported at the moment. > > --Klaus > > On 13 Nov., 22:25, Klau

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-13 Thread Jay
Thought it was pretty cool, so I threw my own plug in together in a little over an hour to mimic what he did there. It's pretty simple but should work in ie6/7,ff,safari. You can set a few different options, and I'm sure this could be expanded upon to give it a lot more power. Anyway, here you

[jQuery] Re: jQuery / XML / IE

2008-11-13 Thread Mike Alsup
> OK, this works marvelously in Safari and Firefox for the Mac as well > as Firefox for the PC but it doesn't work worth spit in IE. I would > appreciate any assistance. > > It's just reading form a simple XML file to output information in > divs. > > http://rationalogic.com/xml/ Works ok in IE7

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread Ahhk
Thanks, but I didnt say I didnt want them to have the same name, I said that the script didnt work when the names were arrays. When the radio button groups have an name with an array, the script breaks and you can select/deselect multiple radio buttons within the group. Here's an example: 1 2

[jQuery] Re: [treeview] Suggestion: function callback after async update

2008-11-13 Thread Dirceu Barquette
Is the above code to my plugin (jqTreevial)? If yes, thanks a lot!!! If no, thanks to!!! Barquette (http://sourceforge.net/projects/jqtreevial/) 2008/11/13 Dominik Deobald <[EMAIL PROTECTED]> > > Just a quick suggestion for future versions of treeview: > > I've added > >if (typeo

[jQuery] Re: Tab divs disappear

2008-11-13 Thread Klaus Hartl
In any case - as I already stated - rotate with Ajax tabs is not supported at the moment. --Klaus On 13 Nov., 22:25, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Maybe I am just blind, but I couldn't find tabs, and got a "We > couldn't find your document." instead...? > > --Klaus > > On 13 Nov., 21

[jQuery] Re: Tab divs disappear

2008-11-13 Thread Klaus Hartl
Maybe I am just blind, but I couldn't find tabs, and got a "We couldn't find your document." instead...? --Klaus On 13 Nov., 21:23, aaron <[EMAIL PROTECTED]> wrote: > Unfortunately, that isn't working either.  Let me link my page and > maybe you can see what is going on.  I have two versions. >

[jQuery] jQuery + AWS = Fun (and a new search engine)

2008-11-13 Thread JohnForsythe
Hey, Just wanted to show off my new search engine, built using jQuery and Amazon Web Services: http://bigbooksearch.com/ It's a multi-purpose image search, useful for finding cover art, obscure novels and albums, and things you forget the name of, but know how they look. Here's what I'm using:

[jQuery] Re: blockUI:

2008-11-13 Thread Mike Alsup
> $().ajaxStart($.blockUI).ajaxStop($.unblockUI); > > Now, i would like to know if it is possible to customize this call so > that the concerned element shows blockUI, instead of the whole page ? To block only a single element you would use "block" instead of "blockUI". $('#myDiv').block(); ...

[jQuery] jqModal and IE6 - flag continues to wave

2008-11-13 Thread Jeromatron
We noticed that in IE6, in our code and on the examples, if you open the modal, the IE flag icon waves and doesn't stop. Also, when the modal is closed, the flag continues to wave. http://dev.iceburg.net/jquery/jqModal/#examples We asked on the IRC channel, and someone suggested that we trying

[jQuery] Re: jQuery Ajax load problem

2008-11-13 Thread Tor Skogen
Prototype and Scriptaculous just dont get along On Thu, Nov 13, 2008 at 7:45 PM, Shazzaam <[EMAIL PROTECTED]> wrote: > > > Hi, I am using jQuery 1.2.6, and also have Prototype 1.6.0.1 and > Scriptaculous 1.8.1 in my page. > > I have pretty much everything working without receiving any javascript

[jQuery] Superfish - sf-breadcrumb question

2008-11-13 Thread John S
This regards using Superfish in a common navigation element. I'm finding that I need to have "sf-breadcrumb" on one of the sf-menu list items in orde for the matching sf-navbar to appear onload. I've been trying to use jQuery to remove the hard coded class and use addClass to add "sf-breadcrumb"

[jQuery] Re: jqRevolve - new, simplistic carousel-like plugin released!

2008-11-13 Thread benjam
Doesn't work at all for me. FF 3.0.3 on Vista On Nov 12, 3:38 pm, Brice Burgess <[EMAIL PROTECTED]> wrote: > Ladies and Gentlemen, > >   I'm writing to inform you all of a new addition to the jQuery plugin > family... Please welcome jqRevolve! > >   jqRevolve is a carousel-like plugin for jQuery.

[jQuery] Animation Question

2008-11-13 Thread [EMAIL PROTECTED]
Right now, I have it so that the menu animates as follows: animation : {opacity:'show',height:'show'}, How would I go about coding the js so it animates out in the opposite effect animation {opacity:'hide',height:'hide'}? Example of what I have so far can be seen here: http://zidea.zidea

[jQuery] Tiime spent vertical scrolling and moving the mouse

2008-11-13 Thread stephan . koelle
Hallo everybody! For web analytics purpose I'm trying to record the time a user spends scrolling on my page and the the time a visitor spent moving the mouse. What is the easiest way to get this data? Thanks for your help bye - stephan #adBox3 {display:none;}

[jQuery] Re: jQuery Ajax load problem

2008-11-13 Thread Tor Skogen
Sorry for the recent post Prototype ang JQ just dont get along On Thu, Nov 13, 2008 at 7:48 PM, Tor Skogen <[EMAIL PROTECTED]> wrote: > Prototype and Scriptaculous just dont get along > > > On Thu, Nov 13, 2008 at 7:45 PM, Shazzaam <[EMAIL PROTECTED]> wrote: > >> >> >> Hi, I am using jQuery 1.2.6

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-13 Thread George
Count me in for the Plug-In request :) It's pretty cool and the whole site is done very well, I put it in to my Favorites so later I could revisit and 'steal' some design ideas. PS: I am a .NET developer myself and so far find it to be more superior (if I can say that) to Perl. The problem you m

[jQuery] Re: Tab divs disappear

2008-11-13 Thread aaron
Unfortunately, that isn't working either. Let me link my page and maybe you can see what is going on. I have two versions. One is using Tabs 3 with the rotate option: http://www.usm.edu/pr/web/index.php One is using jquery UI Tabs with the rotate option and Ajax: http://www.usm.edu/pr/web/ind

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread George
Sorry instead of "Why do you want to give them the same name?" I meant to say "Why do you not want to give them the same name?" George. On Nov 13, 3:06 pm, George <[EMAIL PROTECTED]> wrote: > The problem that regular radio buttons are working only when they have > the same name. > No wonder p

[jQuery] Re: jqRevolve - new, simplistic carousel-like plugin released!

2008-11-13 Thread George
It does not seem to work... I had tried in FF 3.03 and IE 7.0 In both browsers nothing happens... George. On Nov 12, 5:38 pm, Brice Burgess <[EMAIL PROTECTED]> wrote: > Ladies and Gentlemen, > >   I'm writing to inform you all of a new addition to the jQuery plugin > family... Please welcome jqR

[jQuery] Re: PrettyCheckboxes not working with radio array names

2008-11-13 Thread George
The problem that regular radio buttons are working only when they have the same name. No wonder prettty ones not working too... :) Why do you want to give them the same name? You can use different ids if you want. Something like this George. On Nov 12, 2:05 pm, Ahhk <[EMAIL PROTECTED]> wro

[jQuery] "this" and z-index changes

2008-11-13 Thread CodingCyborg
I recently have been playing around with a "Desktop" module that was on nettuts and made a modification for it that doesn't fully work. There are many draggable windows, and in order for them to function like a real desktop they need to have z-index changes such that if you close one on top the la

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread Hector Virgen
It looks like the iframe is not an immediate descendant of the div with id "win10". Remove the ">" from your selector and it should work: $(win+' iframe').attr("src",url); -Hector On Thu, Nov 13, 2008 at 10:51 AM, CodingCyborg <[EMAIL PROTECTED]>wrote: > > >Personal Settings >

[jQuery] Re: jQuery Ajax load problem

2008-11-13 Thread Shazzaam
nm, I think it's an issue with something inside the load method. -- View this message in context: http://www.nabble.com/jQuery-Ajax-load-problem-tp20486998s27240p20487325.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread CodingCyborg
That did the trick! I guess I misread the documentation on the child selector, though it makes sense now that you point it out. Thank you very much :) On Nov 13, 12:55 pm, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > It looks like the iframe is not an immediate descendant of the div with id > "wi

[jQuery] Re: accessing Object properties in getJSON function call

2008-11-13 Thread Michael Geary
"this" is different in every function. Inside your processJSONFunc() callback, "this" is not what you might expect - as you discovered. That function is not being called as a method of your object. As you also discovered, you do have complete access to *local variables* defined in the parent func

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread CodingCyborg
Personal Settings And then elsewhere i have a link that onclick does link ("#win10","mailbox.php") The window has the focus changed so I know the code is passing through the function, but even if I take off the "if(url)" part it doesn't change the src.

[jQuery] jQuery Ajax load problem

2008-11-13 Thread Shazzaam
Hi, I am using jQuery 1.2.6, and also have Prototype 1.6.0.1 and Scriptaculous 1.8.1 in my page. I have pretty much everything working without receiving any javascript errors, but for some reason the ajax load script is not working: jQuery(".tablesorter > tbody", "#tab").load(path, data, functi

[jQuery] Re: selector to .wrap multiple elements in HTML

2008-11-13 Thread ricardobeat
Ah, thanks Karl, writing to this list has become one of my favorite spare time hobbies :) On Nov 13, 1:23 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Not a problem, Ricardo. :-) > > sorry, everyone else, for going off-topic, but I'd like to thank   > Ricardo publicly for all the help he has be

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-13 Thread AstroIvan
I hear your pain. Working with java's front-end component frameworks suck and get in the way of productive javascript coding. On Nov 13, 1:28 pm, heysatan <[EMAIL PROTECTED]> wrote: > Sean, > > Thanks!  I really feel that's how web 2.0 should be used, minimally > and usefully.  I'll start workin

[jQuery] Re: has anyone come across a plugin like this ?

2008-11-13 Thread heysatan
Sean, Thanks! I really feel that's how web 2.0 should be used, minimally and usefully. I'll start working on the plugin next week, I'll try and have a beta version up by the end of november. We were working within .NET which made it hard to implement some of the things I wanted to. The sign i

[jQuery] Re: Explain this please: (Perfromance, dynamic DOM creation)

2008-11-13 Thread Eli
And a quick reply to myself. It's also quicker (though we are talking like 1 ms quicker), to refactor the code to never create the $j() at all, and instead to directly inject the HTML into the page, and then manipulate after the fact, instead of before hand. Eli -- Still curious to know why the

[jQuery] Re: How can I return some value in jquery's callback function?

2008-11-13 Thread Michael Geary
The $.getJSON callback function is not called at the time you make the $.getJSON call. It's called asynchronously, much later, after the data has been downloaded. The return value from the callback is discarded - there's no one to return it to. Did you want to take two different actions depending

[jQuery] Re: only one $(document).ready() with IE6?

2008-11-13 Thread Stan McFarland
Karl, that was exactly it - a trailing comma. Thanks a bunch! -stan On Nov 13, 12:27 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > I have never had this problem before on any browser. Do you have a   > test page you could show us? It could be that one of your JavaScript   > files has somet

[jQuery] Re: blockUI:

2008-11-13 Thread George
Ok, now i am not sure what exactly is a problem... sorry. You can call this code $().ajaxStart($('#mydiv').blockUI).ajaxStop($('#mydiv').unblockUI); as many time as you want. It only changes which function will be called once AJAX is doing the call.. So right before doing your ajax call to the

[jQuery] Re: only one $(document).ready() with IE6?

2008-11-13 Thread Stan McFarland
Hi, thanks for replying. I'm on an Intranet, so I can't show you, but I'll comment out all the code in the two files except for the document.ready() calls and see if I can trace it down. Thanks again. -stan On Nov 13, 12:27 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > I have never had thi

[jQuery] Re: only one $(document).ready() with IE6?

2008-11-13 Thread Karl Swedberg
I have never had this problem before on any browser. Do you have a test page you could show us? It could be that one of your JavaScript files has something in it that only IE reports as an error, such as a trailing comma after the last object property. --Karl Karl Swedberg www

[jQuery] Re: blockUI:

2008-11-13 Thread Alexandre Plennevaux
hi Georges, yes, but the problem is that i don't know which element is concerned by the call (unless i hardcode it each time of course, but that's what i would like to avoid). Thanks for your input nonetheless. On Thu, Nov 13, 2008 at 6:12 PM, George <[EMAIL PROTECTED]> wrote: > > you just need

[jQuery] Re: How to get the element number from a click event

2008-11-13 Thread Karl Swedberg
You could do something like this: $('p').click(function() { console.log( $('p').index(this) ); }); Or you could use an each() method, which has a built-in index argument: $('p').each(function(index) { $(this).click(function() { console.log(index); }); });

[jQuery] Re: blockUI:

2008-11-13 Thread George
you just need to change $.blockUI to $('#mytagid').bockUI. The sasme with unblock call. George On Nov 13, 12:07 pm, pixeline <[EMAIL PROTECTED]> wrote: > Hi! > > My website uses ajax to refresh various elements in the course of the > user's navigation. I would like to display a "please wait" mes

[jQuery] blockUI:

2008-11-13 Thread pixeline
Hi! My website uses ajax to refresh various elements in the course of the user's navigation. I would like to display a "please wait" message in the element being refreshed and blockUI is the perfect candidate for that. However, there are many elements concerned, and i would like to systematize t

[jQuery] How can I return some value in jquery's callback function?

2008-11-13 Thread Freshow
it didn't work when I 'return true' or 'return false', is there some way to get it? == var url='http://localhost/coudou/check/register.php?email=' + str; $.getJSON(url, function(res){ if(res.registed){

[jQuery] accessing Object properties in getJSON function call

2008-11-13 Thread Yazan
Hi all, I trying to understand the right way to access the properties of my object from within a function called by the $.getJSON function. Here is an example of what I have: function MyWidgetObject(_parentObject){ this.parentObject = _parentObject; this.jsonFunc = function(){ $

[jQuery] only one $(document).ready() with IE6?

2008-11-13 Thread Stan McFarland
Hi, Newbie here. I have two JS files, common.js and homepage.js. Both have calls to $(document).ready(). Using FF, both $(document).ready() methods execute, but in IE6, only one does. Is this a known problem? Thanks, Stan McFarland

[jQuery] Explain this please: (Perfromance, dynamic DOM creation)

2008-11-13 Thread Eli
So, I had some code that was performing very badly. Specifically tracked it down to the following: var li = $j('\ \ \ \ ' + optionKey + '\ \ \ \ '); I was doing that, in order to create a new LI element with the appropriate 'stuff' fil

[jQuery] jQuery / XML / IE

2008-11-13 Thread Jemo
OK, this works marvelously in Safari and Firefox for the Mac as well as Firefox for the PC but it doesn't work worth spit in IE. I would appreciate any assistance. It's just reading form a simple XML file to output information in divs. http://rationalogic.com/xml/

[jQuery] Re: Can I make image change only by part of it?

2008-11-13 Thread livefree75
I couldn't get your link to load, but it sounds like you may need to do something similar to the following. The image you're mapping would need to be either relative or absolutely positioned. Note that #map_area is the area you're mousing over. #bg_image is the image the map is on. Not sure if

[jQuery] How to get the element number from a click event

2008-11-13 Thread Logictrap
Is there a simple method for determining the element number for a click event? Using this html code: Some Text Some Text Some Text Some Text Some Text Is there a click event that will tell you the element number of which was clicked on starting with 0 as the first one? ie if you clicked on t

[jQuery] Re: [treeview] Don't close subtree when clicking on tree "header"

2008-11-13 Thread Dominik Deobald
Great, that was the hint I needed. I changed the code of jquery.treeview.js (line 66-) to: if (settings.toggleonspan !== false) { this.filter(":has(>ul):not(:has(>a))").find(">span").click(function (event) {

[jQuery] [treeview] Suggestion: function callback after async update

2008-11-13 Thread Dominik Deobald
Just a quick suggestion for future versions of treeview: I've added if (typeof(settings.asyncload) == 'function') { settings.asyncload(container); } at the end of the async load function to be able to inject some of my own code after an AJ

[jQuery] Re: Validate. Can I validate using 2 values?

2008-11-13 Thread Jörn Zaefferer
The plugin doesn't support that. As a workaround, you can use jQuery's ajaxSend callback to add additional data to the request: http://docs.jquery.com/Ajax/ajaxSend#callback Jörn On Thu, Nov 13, 2008 at 3:35 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hello, > > I am using the following to validat

[jQuery] Re: [treeview] Don't close subtree when clicking on tree "header"

2008-11-13 Thread Jörn Zaefferer
It depends on the markup. This is selector for that click: ":has(>ul):not(:has(>a))").find(">span") So remove or replace the span on the parent item. Jörn On Thu, Nov 13, 2008 at 4:06 PM, Dominik Deobald <[EMAIL PROTECTED]> wrote: > > I'm using treeview in one of my projects. > > Treeview automa

[jQuery] Re: position of element

2008-11-13 Thread fabio . lazaro
Try var pos = $(this).position(); 'this' is a object 2008/11/13 Espen AJ <[EMAIL PROTECTED]> > > I'm trying to get the position of all div-elements with a given class > ("point") with this code: > > $(".point").each( >function() { >var pos = this.position(); >

[jQuery] Re: Changing the SRC of an iframe

2008-11-13 Thread ricardobeat
That should work, can you show us some HTML? On Nov 13, 1:02 pm, CodingCyborg <[EMAIL PROTECTED]> wrote: > I currently have this function set up: > > function link(win,url){ >         if(url){ >                 $(win+' > iframe').attr("src",url); >         } >         setFocus(win); > > } > > And

[jQuery] [treeview] Don't close subtree when clicking on tree "header"

2008-11-13 Thread Dominik Deobald
I'm using treeview in one of my projects. Treeview automatically opens and closes the subtree if you click on an item that contains children. I need the option to allow the user to select an item without closing the subtree. + item 1 <- User clicks here | + item 1.1 | + item 1.2 + ite

[jQuery] Re: selector to .wrap multiple elements in HTML

2008-11-13 Thread Karl Swedberg
Not a problem, Ricardo. :-) sorry, everyone else, for going off-topic, but I'd like to thank Ricardo publicly for all the help he has been giving to this list in the past few months. Ricardo, your contributions are much appreciated. Cheers, --Karl Karl Swedberg www.englishrul

[jQuery] xslt

2008-11-13 Thread Gropey
Is there a way using jquery to manipulate xsl then reapply the changes to the xml data? i.e., change the xsl:sort select attribute value.

[jQuery] Can you recommend a drag & drop tree-view script?

2008-11-13 Thread fambi
Hi all, I need a drag & drop treeview script which uses ajax to save its structure to a mysql database. Does it exist and can anyone recommend it? Thanks

  1   2   >