[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 attribute of the img div? $(".img").click(function(){ $(".pre

[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

[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
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 prett

[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 sho

[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" ); $('a').click(fun

[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: 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] jquery.com is down. John Resig is aware

2007-05-05 Thread Karl Swedberg
Hey folks, In case any of you are wondering about jquery.com at the moment, just wanted to let you know that the site is down, but that John Resig is aware of the situation and is working very hard to get things back up. It might take some time (meaning a day or two), so please be patient

[jQuery] Re: 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) http://www.w3.org/1999/xhtml' > On May 5, 1:15 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Su wrote: > > > On 5/3/07, Glen Lipka <[EMAIL PROTECTED]> wrote: > >> Can jQuery

[jQuery] Re: 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

[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

[jQuery] Re: Node

2007-05-05 Thread Glen Lipka
On 5/5/07, Klaus Hartl <[EMAIL PROTECTED]> wrote: Su wrote: > > On 5/3/07, Glen Lipka <[EMAIL PROTECTED]> wrote: >> Can jQuery access the node and add a class to it? >> Is this invalid XHTML? > > Class is invalid on the HTML element, but you /can/ assign an ID. > Given that there should never

[jQuery] Re: Node

2007-05-05 Thread Klaus Hartl
Su wrote: On 5/3/07, Glen Lipka <[EMAIL PROTECTED]> wrote: Can jQuery access the node and add a class to it? Is this invalid XHTML? Class is invalid on the HTML element, but you /can/ assign an ID. Given that there should never be more than one HTML element in a doc, this is less a restrict

[jQuery] Re: 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: 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 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 not ? Rob. Even with

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

2007-05-05 Thread Paulo Gabriel Antunes
ok, you almost got what i wanted. i would use the first code you gave me, but instead of using just one content, i have lots of html files, which are linked by many links, and all this content is loaded, each at a time on this div. you can check this on my website: www.svplace.com/index2.html (jus

[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) G

[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] 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. Message: How can I handle the

[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 smoo

[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] frameReady some time crash?

2007-05-05 Thread oscar esp
I have next code: jQuery.blockUI(); jQuery("").appendTo("#aplicacion"); jQuery.frameReady(function(){ var a=1;},"top.applicationIframe",function() { autoresizeIFrame();jQuery.unblockUI() }); Where autoresizeIFrame: function autoresizeIFrame() { var the_height= document.getElementById('app

[jQuery] Re: Getting the full class set of the current object

2007-05-05 Thread Giant Jam Sandwich
Dave, Think about it this way - you wanted to find class "a" - it found an element with class "a" and so returned it back to you. This is different than the className() method, which is not asking for class "a" - it is asking for the class name of the element with class "a" that you wanted to fin

[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 "poo

[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 pl

[jQuery] Re: ASP.net and jQuery...Imperfect Together?

2007-05-05 Thread [EMAIL PROTECTED]
JK, See a simple jQuery test piece below. The actual application would have a radiolist generated from a query, and a table also generated from a query. Big question, how to get the onClick and class assignments into the html via asp.net. While I am on the server-side in traditional asp, I know w

[jQuery] Re: ThickBox 3

2007-05-05 Thread Cees
> There is any reason not to simply replace the image and be done with it? > > -- > Jörn Zaefferer > > http://bassistance.de Nope - there is no reason to not do it this way :P After i posted the reply i went to the Thickbox site and saw that the loading image is a seperate download - so everyone

[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] Re: Getting the full class set of the current object

2007-05-05 Thread Jörn Zaefferer
DaveG schrieb: Am I just going the wrong way? Should I switch to normal loop, or an each loop? Comments? $(".a") .each(function(i){ $(this).wrap(''">') .removeClass().addClass("z"); }); Here's my attempt. It works. Is there a better/different way, perhaps not using the each,

[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: