[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread ricardobeat
Thanks Karl. That was actually stupidity of my part, that single replace() call must be slower than most of the script. Number also seems to be slower than parseInt on all modern browsers (despite being 6x faster on IE6) - I like the looks of Number(...) though :] - ricardo On 25 out, 20:54, Ka

[jQuery] Re: Hover with a fade question (n00b)

2008-10-25 Thread ricardobeat
Oh, so you can actually "fade a class"! Nice :D I'm not very intimate with jQuery UI, sorry gerbert, thanks Karl :) On 25 out, 18:57, Karl Swedberg <[EMAIL PROTECTED]> wrote: > With jQuery UI, you can also animate with .addClass() and .removeClass() > > $(document).ready(function() { > >        

[jQuery] Re: full screen window

2008-10-25 Thread Michael Geary
You're right, you can't do that with JavaScript. Flash, yes. (For example, the full screen mode on YouTube.) -Mike > From: bwallis42 > > I'm very new to jQuery and also don't have a lot of > javascript experience so this might be a FAQ but I haven't > managed to find an answer either way via

[jQuery] Re: full screen window

2008-10-25 Thread bwallis42
Not sure what you mean by example. A screen shot is large and doesn't show much. The current viewer opens a new window on top of all the other windows (browser and other apps). The new window covers the whole PC screen and only has horizontal and vertical scrollbars. No borders, toolbars, menus,

[jQuery] Re: full screen window

2008-10-25 Thread ripple
Do you have an example to show?   That could/would help.           http://2whoa.com/dominate   --- On Sat, 10/25/08, bwallis42 <[EMAIL PROTECTED]> wrote: From: bwallis42 <[EMAIL PROTECTED]> Subject: [jQuery] full screen window To: "jQuery (English)" Date: Saturday, October 25, 2008, 9:25 PM I

[jQuery] jquery ui tabs - screen jumps to top when clicked

2008-10-25 Thread Ed
I have jquery ui tabs at the bottom of my page. When a tab is clicked, the screen jumps/scrolls to top. How can I prevent this?

[jQuery] full screen window

2008-10-25 Thread bwallis42
I'm very new to jQuery and also don't have a lot of javascript experience so this might be a FAQ but I haven't managed to find an answer either way via searching. I am trying to see if I can replace an existing activeX control with some javascript. It doesn't do anything particularly complex. It

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread Karl Swedberg
that looks great, Ricardo. I'm interested to hear why you chose to write this: var normal = Number(this.find('a:first').css('paddingLeft').replace('px','')); instead of this: var normal = parseInt(this.find('a:first').css('paddingLeft'),10); Is there an advantage to your line? I

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread c.barr
Awesome guys, thanks for the help here, both of these look more effiecient that what I was doing. I'm not in front of a Windows machine right now, so I can't test it in IE, but how does that seem to preform there? On Oct 25, 5:34 pm, "Mauricio \(Maujor\) Samy Silva" <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread Mauricio (Maujor) Samy Silva
Here another approach: http://jsbin.com/omefi Maurício It's working again: http://jsbin.com/evodi/

[jQuery] Re: Add class (highlight) to link if other element has given attribute

2008-10-25 Thread jlgoolsbee
Yeah; it's a different approach than what I was thinking, but from the looks of it this is probably the right way to go. I'm new to jQuery, and my javascript skills are a little rusty, but let me give this approach a try. Thanks! On Oct 25, 3:23 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > So

[jQuery] reset jquery multifile uploader fields onsubmit

2008-10-25 Thread bogyvet
I have small problem. Is there any code to reset multifile form on submit. I am using jquery.js, jquery.form.js and jquery.MultiFile.js for e107 plugin I work on. I make some modifications. I have only this problem when I upload image is it posibility to reset multifile form. there are jquery

[jQuery] Use JSON from .post

2008-10-25 Thread jfrymann
Hi, I have just started using jQuery and am trying to get data back from a mysql database in json format. I am using PHP to query the database and returning it with the json_encode method. (Basically I am following the example in the documentation - http://docs.jquery.com/Ajax/jQuery.post#urld

[jQuery] Re: Hover with a fade question (n00b)

2008-10-25 Thread Karl Swedberg
With jQuery UI, you can also animate with .addClass() and .removeClass() $(document).ready(function() { $('.button').hover(function() { $(this).addClass('foo', 500); }, function() { $(this).removeClass('foo', 500); }); }); http://docs.jquery.com/UI/

[jQuery] Re: Missing the previous jQuery site visual style?

2008-10-25 Thread Michael Geary
> From: ricardobeat > > I don't see the trouble with dark borders, is it the contrast > that is hard on the eyes? Yes. :-) But your eyes are not my eyes. Many people are not bothered by the dark borders, but many are. There were a fair number of complaints about this specific issue in the disc

[jQuery] Re: [OT] please check website before launch

2008-10-25 Thread MindstormsKid
...Wow... That's what I call COOL! It took maybe 30 seconds to load. The nav is interesting (though somewhat confusing, but not too much) Anyway, amazing effects :D Windows XP, Firefox 3.3, Laptop Alexandre Plennevaux-2 wrote: > > > Hi mates, > > May i ask you guys to have a look at my late

[jQuery] Re: Missing the previous jQuery site visual style?

2008-10-25 Thread ricardobeat
I don't see the trouble with dark borders, is it the contrast that is hard on the eyes? I agree about the font and font-size though. Trebuchet has reduced readability compared to Arial or Verdana. The code sample in the home page is barely readable and I have perfect vision (in one eye at least ;

[jQuery] Re: load page on onload

2008-10-25 Thread ricardobeat
You don't need jQuery or Javascript at all to that: inside the will redirect all users instantly. If for some reason you need to it via JS you don't need to wait for any event either, not even load jQuery: window.location.href = "ht

[jQuery] Re: Add class (highlight) to link if other element has given attribute

2008-10-25 Thread ricardobeat
Something like this: http://jsbin.com/evoge/ ? - ricardo On Oct 25, 4:58 pm, jlgoolsbee <[EMAIL PROTECTED]> wrote: > I guess I should mention; when I say that I need to highlight the > links on-load, I mean that I need to highlight the link of the > corresponding iframe.  That might have been im

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread ricardobeat
It's working again: http://jsbin.com/evodi/ On Oct 25, 4:18 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > In case Remy Sharp is reading this: > > jsbin is not working here.. when I try to save to a new URL, it goes > tohttp://edit/ > Also, pressing backspace results in lag, using delete doesn't. >

[jQuery] Re: class change problem

2008-10-25 Thread ricardobeat
That wil only toggle the class for the clicked element itself. You need to apply the changes to all of them. This is a bit redundant but is the shortest solution: $(document).ready(function() { var $items = $(".accordion a"); $items.click(function(){ $items.remove

[jQuery] Re: Traversing Question with Parent and Children

2008-10-25 Thread Jason
Resolved. On Oct 25, 11:51 am, Jason <[EMAIL PROTECTED]> wrote: > I have HTML similar to the following: > > > red border > > > Essentially I have a div with a link inside of it. > > What I want to do is have the div selected when the link is clicked. I > need this done without referencing the c

[jQuery] Re: Add class (highlight) to link if other element has given attribute

2008-10-25 Thread jlgoolsbee
I guess I should mention; when I say that I need to highlight the links on-load, I mean that I need to highlight the link of the corresponding iframe. That might have been implied, but clearing it up just in case.

[jQuery] Re: Missing the previous jQuery site visual style?

2008-10-25 Thread Michael Geary
For me it makes the difference between being able to use the site or not. I've spent as little time as I could on the site since the redesign. The black borders are very hard on my eyes, and I have a lot of trouble reading small sizes of Trebuchet. (I know I can blow up the text with Ctrl+Plus, bu

[jQuery] Re: [OT] please check website before launch

2008-10-25 Thread Alexandre Plennevaux
Hi Christoph, thanks for the feedback anyway. cheers, alexandre On Sat, Oct 25, 2008 at 6:27 PM, Christoph Haas <[EMAIL PROTECTED]> wrote: > On Freitag, 24. Oktober 2008, pixeline wrote: >> May i ask you guys to have a look at my latest project,a bit on the >> experimental side in terms of UI :

[jQuery] class change problem

2008-10-25 Thread fotobob
I'm new to jquery so be kind: My problem is this; I am trying to change the class of some links so that when I click on one it becomes class "sel" (a particular background image), then when I click on the next one, it becomes class "sel" and the previous one returns to its before click state. A

[jQuery] Add class (highlight) to link if other element has given attribute

2008-10-25 Thread jlgoolsbee
Hey everybody, I'm trying to get a link to be highlighted on page load if another element (in this case, an iframe) has an inline style of "display: block;". This is what I've got so far: $(document).ready(function() { if ($("#clientA").is("iframe[style*='block']")) { $("a:contains(

[jQuery] Traversing Question with Parent and Children

2008-10-25 Thread Jason
I have HTML similar to the following: red border Essentially I have a div with a link inside of it. What I want to do is have the div selected when the link is clicked. I need this done without referencing the class/id of the parent div. So far I have: $(".link").click(function () {

[jQuery] Re: Hover with a fade question (n00b)

2008-10-25 Thread ricardobeat
Ah I see. You can't "fade a class". You need the animate() function and jQuery UI (http://ui.jquery.com/), then you can do this: $(document).ready(function() { $('.button').hover(function() { $(this).animate({ backgroundColor: '#AAFFAA'}, 500); }, function() {

[jQuery] Re: Validate. Password Bug?

2008-10-25 Thread shapper
You mean using: $.validator.addMethod('password', function (value, element) { return this.optional(element.value) || /^([a-zA-Z0-9]{8,24}) $/.test(value); }, 'Use 8 to 24 letters or numbers only'); I have tried it before and I got the following error in Firebug: element.nodeName is undefined

[jQuery] Re: More efficient animation for multiple elements

2008-10-25 Thread ricardobeat
In case Remy Sharp is reading this: jsbin is not working here.. when I try to save to a new URL, it goes to http://edit/ Also, pressing backspace results in lag, using delete doesn't. I turned your code into a plugin, and made some changes. Now you pass an object with parameters and only need to

[jQuery] drag drop, and store dropped location

2008-10-25 Thread mark
hi all i want to be able to drag elements and drop it, and then store the location where it was dropped, so that i can make the drag drop persistent. i saw the jquery ui draggable library, but how do i get the dropped location? thanks!

[jQuery] Re: Missing the previous jQuery site visual style?

2008-10-25 Thread ricardobeat
It's been there for a few months already, I doubt anyone is considering rolling back the old theme... I don't know what your design background is, but the new style certainly looks more up to date than the old 'htmlish' one. And things are not all that different, everything is mostly in the same

[jQuery] Re: Using ajaxStart/Stop for multiple ajax calls

2008-10-25 Thread Mike Alsup
> This will work? > >  $.ajax({ >    type: "POST", >    url: "some.php", >    data: "name=John&location=Boston", >    success: function(msg){ >      alert( "Data Saved: " + msg ); >    }, >    complete: function(XMLHttpRequest, textStatus) { >        var success = $.httpSuccess(XMLHttpRequest); >

[jQuery] Re: [OT] please check website before launch

2008-10-25 Thread Christoph Haas
On Freitag, 24. Oktober 2008, pixeline wrote: > May i ask you guys to have a look at my latest project,a bit on the > experimental side in terms of UI : a barcode image gallery for a > spanish photographer: http://www.pixeline.be/test/lisapram/ Sorry for my negative feedback but this site is clos

[jQuery] Re: [autocomplete] do search on input focus

2008-10-25 Thread blasto333
That works for when the field is focused by clicking in it, but now when tabbing into it (even though the focus event does occur!) Any other ideas? On Oct 23, 3:57 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Try this: > > $("...").autocomplete("url", { >   minChars: 0 > > }).focus(function

[jQuery] Re: Using ajaxStart/Stop for multiple ajax calls

2008-10-25 Thread Alexsandro_xpt
This will work? $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); }, complete: function(XMLHttpRequest, textStatus) { var success = $.httpSuccess(XMLHttpRequest); if (!success) {

[jQuery] Re: AJAX JSON call and caching?

2008-10-25 Thread Mike Alsup
> Ok, but it does not really work: > > http://www.marctv.de/#moblog_teaser > > What's the matter? Is the server sending cache-control and last-modified headers?

[jQuery] Re: Validate. Password Bug?

2008-10-25 Thread Jörn Zaefferer
Its not a bug, but could be considered bad design. The first argument, value, is the trimmed value. Using element.value should fix the issue. Jörn On Fri, Oct 24, 2008 at 10:50 PM, shapper <[EMAIL PROTECTED]> wrote: > > Hello, > > I am validating a password field as follows: > > $.validator.addMe

[jQuery] Re: AJAX JSON call and caching?

2008-10-25 Thread MarcDK
Ok, but it does not really work: http://www.marctv.de/#moblog_teaser // JSON mit URL und Parameter "page" aufrufen $.getJSON("http://www.marctv.de/index.php?json_output_mob";, { page: settings.cur_page }, // Diese Funktion wird aufgerufen, wenn die JSON-Daten angekommen sind

[jQuery] Re: Using ajaxStart/Stop for multiple ajax calls

2008-10-25 Thread Alexsandro_xpt
Very body! I always have used ajaxError events. The problem with ajaxError it's global event. And I never see documentation about $.httpSuccess Now I will try do like you said. Thank you. On 25 out, 10:33, Mike Alsup <[EMAIL PROTECTED]> wrote: > > And If I want handle to catch AjaxError in a

[jQuery] Re: Using ajaxStart/Stop for multiple ajax calls

2008-10-25 Thread Mike Alsup
> And If I want handle to catch AjaxError in ajaxComplete? > > Exist a way? You can still use ajaxError to trap errors. Also, the XHR object is passed to ajaxComplete callback as the 2nd arg so you can test for success like this: $().ajaxComplete(function(event, xhr, settings) { var success

[jQuery] Re: AJAX JSON call and caching?

2008-10-25 Thread Mike Alsup
> I try to figure out how to enable caching for JSON calls. I used the > example and the jquery documentation but I have no idea where to put > the "cache: true". You don't need to explicitly set cache:true, that is the default behavior.

[jQuery] AJAX JSON call and caching?

2008-10-25 Thread MarcDK
Hi! I try to figure out how to enable caching for JSON calls. I used the example and the jquery documentation but I have no idea where to put the "cache: true". http://docs.jquery.com/Ajax/jQuery.getJSON#urldatacallback $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne? tags=ca

[jQuery] load page on onload

2008-10-25 Thread led
hi , i'm just starting with jquery . It is possible to load a page in the onload event or just calling the load utility in a script ex=$('#divCliente').load('proprietarioLogin.asp'); it's that i want to redirect to another page but i dont hnow how. please help.