[jQuery] Re: Chaining methods

2007-05-05 Thread probert . dave
The thing about chaining is that you need to make sure any plugin/ function returns a jQuery object , so that any chained calls have something to work with. Your plugin doesn't actually return anything for the .click() function to use. As a quick (and dirty) modification - added a return:

[jQuery] Re: .keyup + .html

2007-05-05 Thread Peter Dotinga
Patrick Hall wrote: Helloes, I have a little thingie that clones text from an input into a div: http://ruphus.com/code/jquery/clonetype/clonetype.html Seems to work fine, except when I try to backspace away the entire text in the input -- the final letter refuses to vanish from the div, even

[jQuery] Release: Validation plugin beta 3

2007-05-05 Thread Jörn Zaefferer
Hi folks! I'm glad to announce validation plugin beta 3. A lot of feedback from users went into this release, in the form of several bug fixes and new features. Thanks everyone who participated somehow! As usual, all interesting stuff like downloads, examples and documentation are on the

[jQuery] Interface sortable: Limit of elements which can be dragged into a droppable

2007-05-05 Thread Sebastian Giffhorn
Hi, Please have a look at my sample at http://hosting-saar.de/jquerytest/index.html The situation is: I have 2 sortables, one is the pool which contains all available icons the other should be an ui where you can place icons from the pool. The problem is: There are more icons in the pool than

[jQuery] frameReady some time crash?

2007-05-05 Thread oscar esp
I have next code: jQuery.blockUI(); jQuery(iframe id='applicationIframe' onload='' src='+url+' marginwidth='1' marginheight='1' height='100%' width='100%' scrolling='no' border='0' frameborder='0' / ).appendTo(#aplicacion); jQuery.frameReady(function(){ var

[jQuery] image resizing

2007-05-05 Thread Jack Killpatrick
Hi All, Anyone know if there's a jquery plugin that will do something like this? If not, anyone working on one? http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using-javascript/ TIA, Jack

[jQuery] Re: image resizing

2007-05-05 Thread Dan G. Switzer, II
Jack, Anyone know if there's a jquery plugin that will do something like this? If not, anyone working on one? http://www.agilepartners.com/blog/2005/12/07/iphoto-image-resizing-using- javascript/ The jQuery Interface project shows off a demo exactly like this code, but it's faster and smoother

[jQuery] Handle cross-site JSON in Form Plugin malsup

2007-05-05 Thread JoelSun
hi, I have a question about handle cross-domain JSON data in Form Plugin. I use the sample of JSON at http://www.malsup.com/jquery/form/#code-samples When I place the client Form and Server side code in different domain, it just show the raw JSON data. form id=jsonForm

[jQuery] Widget Framework

2007-05-05 Thread Ian 'Nevir' MacLeod
Hey all, I'm working on a simplistic widget framework to better standardize how widgets work (if only for those that I'm writing) - I'd like to share it to hopefully generate some ideas with it before I get too involved The goals behind it (thus far) are to: * wrap widgets in such a way that

[jQuery] Re: Handle cross-site JSON in Form Plugin malsup

2007-05-05 Thread Ian 'Nevir' MacLeod
Unfortunately that's a limitation of XMLHttpRequest - for primarily security reasons, all browsers disable cross-domain ajax (in general) There are a couple solutions, one of which is to proxy the request through the local server (have it contact your other domain, rather than the browser)

[jQuery] Re: HTML Node

2007-05-05 Thread Klaus Hartl
Rob Desbois wrote: Just to extend on what Su said - you would never need a class or even ID for the html tag because there *is* only one (or should be anyway!) So, to target it with a CSS rule you just need: html { /* ... */ } But as he says, why would you need to target html not body?

[jQuery] Re: HTML Node

2007-05-05 Thread Klaus Hartl
Glen Lipka wrote: div.foo.bar {} works perfectly in IE6, IE7, and FF. No, unfortunately not. IE 6 does not support multiple class selectors. This won't be noticed in some cases, because IE treats the aforementioned selector like div.bar {} -- Klaus

[jQuery] Re: Handle cross-site JSON in Form Plugin malsup

2007-05-05 Thread JoelSun
I will try proxy. Thanks,Ian. On May 5, 11:43 am, Ian 'Nevir' MacLeod [EMAIL PROTECTED] wrote: Unfortunately that's a limitation of XMLHttpRequest - for primarily security reasons, all browsers disable cross-domain ajax (in general) There are a couple solutions, one of which is to proxy

[jQuery] Re: HTML Node

2007-05-05 Thread Su
On 5/5/07, Glen Lipka [EMAIL PROTECTED] wrote: Unfortunately it seems that id is invalid as well: http://www.w3.org/TR/html401/struct/global.html#h-7.3 -- Klaus So I am back to where I started. Shouldn't put anything on the HTML tag and there is no AND operation in CSS. Seems like a

[jQuery] Re: HTML Node

2007-05-05 Thread Ian 'Nevir' MacLeod
The XHTML 1.0 strict DTD defines id as an attribute on the html node (I haven't looked at transitional or 1.1 strict) !ELEMENT html (head, body) !ATTLIST html %i18n; id ID #IMPLIED xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml' On May 5, 1:15

[jQuery] Re: frameReady some time crash?

2007-05-05 Thread Daemach
I don't see from this code where it might be breaking - can you please give me a URL so I can look at this? BTW, if you add $daemach.debug to your code you can see the loading process in the console. On May 5, 7:11 am, oscar esp [EMAIL PROTECTED] wrote: I have next code: jQuery.blockUI();

[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV

2007-05-05 Thread Shelane
You're loading all these pages at once? Or, you're saying that clicking a specific menu item will load content for that menu item? If it's the first, you want to do the first I said, (the .html..) if it's the second... Look at my example here: http://education.llnl.gov/jQuery/ This loads

[jQuery] Re: Need to attach .click() event to HTML anchor link but it won't stop bubbling...

2007-05-05 Thread Yansky
I was doing something similar recently. I'm not sure if this is the best/right way to do it, but I just added an unbind at the start of the function (before the click event handler is applied) to prevent bubling. e.g. function foo(){ $('a').unbind( click );

[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV

2007-05-05 Thread Paulo Gabriel Antunes
yes, it's the second. the example you sent it pretty good, it's almost what i want but i'm having a little trouble with it. notice that i got links on a div id=menu, and the content is loaded in the div id=total... the main issue, is that i also got links on the 'total' itself, links that

[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV

2007-05-05 Thread Paulo Gabriel Antunes
DONE!! The problem was that i should also link the script in every file, so it could load in the 'total' itself thanks!! check www.svplace.com tomorrow to see it working. =D Paulo On 5/5/07, Paulo Gabriel Antunes [EMAIL PROTECTED] wrote: yes, it's the second. the example you sent it pretty

[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV

2007-05-05 Thread Shelane
Hmmm. It didn't seem to work for me in FF. The first item loaded, but click A história loaded it on its own (not within the div). Declare the second function at the top of your script like so: bindContentLinks = function(){ //bind click function to a tags within object that has class nav

[jQuery] Re: LOADING CONTENT IN A PRE-EXISTING DIV

2007-05-05 Thread Paulo Gabriel Antunes
weird... for me it doesn't work on IE. gotta find a hack. do u know any? On 5/5/07, Shelane [EMAIL PROTECTED] wrote: Hmmm. It didn't seem to work for me in FF. The first item loaded, but click A história loaded it on its own (not within the div). Declare the second function at the top of

[jQuery] image replacement

2007-05-05 Thread Equand
hi all, i'm a newbie in javascript and jquery also. could you please help i'm trying to write a function to do onclick of a div called img to change img in div called 'preview' how do i make it replace with an image which is taken from a href= attribute of the img div? $(.img).click(function(){