[jQuery] Re: how to trigger a functionality when 2 fields are filled

2007-12-14 Thread Alexandre Plennevaux
hi karl, yes i've thought about doing it like that. It 's probably the best way to do that but i've never used custom events so i thought it might be another possibility. cheers! alex On Dec 14, 2007 4:10 AM, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Alexandre, Could you just use the

[jQuery] missing keydown/keyup

2007-12-14 Thread Mateusz Misiorny
Hi, What I am trying to do, is figure out if there was a change in the input field, so I want compare the value of the field before and after a keypress. And it works, but not when I type fast. Then the browser is just losing some events. This shows the problem: html head script

[jQuery] Re: scrolling browserwindow while dragging elements

2007-12-14 Thread Richard D. Worth
Yes it is. See here for an example: http://dev.jquery.com/view/trunk/ui/current/tests/draggable.html Go down to the test for option scroll: true - Richard On Dec 13, 2007 11:00 AM, Niels [EMAIL PROTECTED] wrote: Hmmm, where did my previous post go? (hope this won't be a double post)

[jQuery] Re: Drag and Resize

2007-12-14 Thread Richard D. Worth
Here's some rough pseudo-code: $('body').mousedown(function(ev) { //move div to ev.pageX, ev.pageY //store ev.pageX and ev.pageY in some variables //define mousemove handler mousemovehandler = function(ev) { //inc or dec div width and height //based on diff between saved pageX and

[jQuery] selecting node values in XML

2007-12-14 Thread perikut
hi everybody, I want to change the values of an XML node (if another ajax result is successful). I'm not sure how to access these values (and if found, execute something). If I visualize this xml in localhost (http://localhost/example.xml), should I be able to apply and visualize the results of

[jQuery] Re: operation aborted error - please help

2007-12-14 Thread KidsKilla .grin! wuz here
start your code inside $(document).ready(function(){ ... }); about: http://weblogs.asp.net/infinitiesloop/archive/2006/11/02/Dealing-with-IE-_2600_quot_3B00_Operation-Aborted_2600_quot_3B002E00_-Or_2C00_-how-to-Crash-IE.aspx 2007/12/14, BarakLevy [EMAIL PROTECTED]: Hello, I programmed a

[jQuery] Re: preloading images with jquery in IE

2007-12-14 Thread Jannik
Try this $(document).ready(function(){ var $img = $('img').load(function (){ alert('loaded!'); }).appendTo('body').attr('src',$img.src); }); It takes the images from the page and preloads them. Can't remember where I found it so sorry that I can't credit the

[jQuery] Disabling enter key button from displaying the hidden fields

2007-12-14 Thread Rathna
In my page there are some fields which gets displayed by checking a radio button, this functionality is implemented using jquery. But when i press enter button without checking the radio button all the fields which are hidden appears and iam also unable to submit the form. It would be really

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-14 Thread Erlend Schei
You basically need two changes: Use the new easing names, and replace the dequeue calls. Instead of doing: replace .each(function() { $.dequeue(this, fx); }) with .stop() around line 84-85. you could replace with $(this).dequeue(fx). But I don't know the difference between stop() and dequeue()

[jQuery] Re: newbie - need help finding element

2007-12-14 Thread MorningZ
$('#img'+j).fadeIn(slow); // fade in selected image (this is what doesn't work, obviously) Did you notice that no where did you define or set variable j ? On Dec 5, 8:15 pm, HXn [EMAIL PROTECTED] wrote: Hi, I'm brand new to jQuery. Here's what I'm trying to achieve: I have an unordered

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Giovanni Battista Lenoci
Don't know if I understood, $.ajax({type: POST, url: foo2.php, data: data, dataType: json, success: function(server_response) { switch(server_response.wich_function) { case '1': on_success_one(server_response); break;

[jQuery] Re: tablesorter onafer feature?

2007-12-14 Thread tlphipps
Thanks Christian! That rocks! I thought I saw that yesterday, but I got sidetracked and forgot to go back and look. On Dec 13, 6:18 pm, Christian Bach [EMAIL PROTECTED] wrote: Hi, there is a new undocumented features for this type of behaviour take a look

[jQuery] Re: cf ajax example

2007-12-14 Thread Rey Bango
Do you have a sample link we can look at? Also, you've specified a return type of JSON (dataType: json). Are you returning JSON from the server? I would assume not since you're trying to insert your results directly into a div. (append(response.rname);) Rey.. -Original Message-

[jQuery] Re: traversing question

2007-12-14 Thread Richard D. Worth
This is a little slimmer, but not all that different from what you're doing: $('.strataTrigger').click(function() { var li = $(this).parent(); var index = li.parent().css({backgroundColor: 'red'}).children('li').index(li[0]); console.log(index= + index); return false; }); -

[jQuery] Re: Performance of jquery

2007-12-14 Thread Sharique
This is my test report. Win Xp64 bit ff Prototype 140 MooTools 135 jquery 441 opera Prototype 72 MooTools 80 jquery 183 IE6 Prototype 1556 MooTools 1104 jquery 1001 safari Prototype 409 MooTools 48 jquery 175 On Dec 11, 7:10 pm, Sharique [EMAIL PROTECTED] wrote: Pls have a look

[jQuery] Re: Why this simple code isn't working

2007-12-14 Thread tobaco
$(#add_linha).emtpy().append(data); it should be empty() not emtpy() ... On 14 Dez., 13:36, Marcelo Wolfgang [EMAIL PROTECTED] wrote: Hi all, I'm banging my head on the keyboard here ... and couldn't figure out why this isn't working I have the following code: HTML: div

[jQuery] Re: cf ajax example

2007-12-14 Thread Priest, James (NIH/NIEHS) [C]
See if this helps?? http://www.thecrumb.com/2007/11/30/fetching-data-with-jquery/ What is the code for: req_processor_employee.cfm Jim -Original Message- From: interarnett [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 6:42 PM To: jQuery (English) Subject:

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-14 Thread Andy Matthews
Never mind... I was using the 1.3 easing plugin rather than the one which came with the lavalamp download. It's working now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Thursday, December 13, 2007 8:29 PM To: jQuery

[jQuery] jQuery, Yahoo Weather and IE Problems

2007-12-14 Thread [EMAIL PROTECTED]
Hello, I'm new to list and I have searched and plugged away on this issue for a few days and not found a definitive answer. I'm fairly new to jQuery but I am a very well versed web developer although this one has caught me out. I have been working to replace an ageing website and within that

[jQuery] Why this simple code isn't working

2007-12-14 Thread Marcelo Wolfgang
Hi all, I'm banging my head on the keyboard here ... and couldn't figure out why this isn't working I have the following code: HTML: div id=add_formColeção class=overflow label for=add_colecaoColeção:/label select name=add_colecao id=select_colecao option

[jQuery] Re: LavaLamp for jQuery 1.2.x?

2007-12-14 Thread Danny
Hi Andy: Erland Schei gave you the answer; the names of the easings changed from the time lavalamp was originally written. Look at http://gsgd.co.uk/sandbox/jquery/easing/ for the correct names. easeOutBack is the classic effect. Danny On Dec 13, 8:29 pm, Andy Matthews [EMAIL PROTECTED] wrote:

[jQuery] Nested Lists and Droppable : issues at over event

2007-12-14 Thread Karl Delandsheere
Hello everybody! I'm building an application quite similar to the Mac OSX Finder with a massive help from jQuery. I've done a lot yet but I'm having some trouble handling the droppable event. Let's see what's in there : I have some nested lists like this example : ul li class=category

[jQuery] [SITE SUBMISSION] LodgeIt pastebin http://paste.pocoo.org/

2007-12-14 Thread Richard D. Worth
I stumbled upon a slick pastebin site this morning, that uses jQuery: LodgeIt! http://paste.pocoo.org/ Not only a really cool pastebin[1], but a fabulous showcase for doing a slick clean interface with jQuery. Props to Armin Ronacher http://lucumr.pocoo.org/, a jQuery

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Richard D. Worth
You could declare a function and give it a name, instead of using an anonymous function, then pass that as the success function for each ajax call. - Richard On Dec 14, 2007 8:51 AM, Mario Moura [EMAIL PROTECTED] wrote: No. Let me explain better. In your scenario you made a individual AJAX

[jQuery] [ANNOUNCE] In need of jQuery UI testers

2007-12-14 Thread Rey Bango
jQuery UI is the project's initiative to bring a rich set of UI controls to the jQuery community. jQuery UI v1.0 was released earlier this year and didn't quite meet the quality standards we had hoped for. The UI team is now on a mission to correct any of the issues from the previous release

[jQuery] [SITE SUBMISSION] http://www.xhtml-css.com/

2007-12-14 Thread pixeline
just found out this excellent online tool allowing to check html and css validation in one click, all made in jquery!! http://www.xhtml-css.com/ Alexandre

[jQuery] Re: Check/Uncheck a radiobutton

2007-12-14 Thread Jörn Zaefferer
debussy007 schrieb: Hello, I always used to uncheck a radio button this way : $('#radio_shuttle_1_4')[0].checked=false; The problem is that when using a selector that matches more than one element, it will not work. e.g. : $('[EMAIL PROTECTED]')[0].checked=false; will not work. Give

[jQuery] Re: sound library for jQuery

2007-12-14 Thread Jörn Zaefferer
sawmac schrieb: Has anyone developed a sound plugin for jQuery like the one Prototype has? I just saw a game with interactive sound controlled by JavaScript: http://wholewheatweb.com/ The sound library is here: http://wholewheatweb.com/javascripts/sound.js Give this a try:

[jQuery] Check/Uncheck a radiobutton

2007-12-14 Thread debussy007
Hello, I always used to uncheck a radio button this way : $('#radio_shuttle_1_4')[0].checked=false; The problem is that when using a selector that matches more than one element, it will not work. e.g. : $('[EMAIL PROTECTED]')[0].checked=false; will not work. Thank you for any help !! --

[jQuery] traversing question

2007-12-14 Thread pixeline
hello! i have this (sample) html: ul id=menu1 class=mainmenu lia href=# class=strataTriggeritem1/a/li lia href=# class=strataTriggeritem2/a/li lia href=# class=strataTriggeritem3/a/li /ul ul id=menu2 class=mainmenu lia href=# class=strataTriggeritem1/a/li lia href=#

[jQuery] onload fadeout

2007-12-14 Thread [EMAIL PROTECTED]
hello i would like to know how it is possible to make an jpg image fade out as the web page loads ? thank you

[jQuery] Re: weird virus alert on juery tabs file

2007-12-14 Thread Enrique Meléndez Estrada
YES, today in my company intranet we had the same issue with SOPHOS and a jquery javascript (jquery.tabs.pack.js) announced as a trojan (All users reported about it). I was told that SOPHOS company inmediatly updated a new version. Thanxs to this email I see it affected all jquery users as I

[jQuery] Re: traversing question

2007-12-14 Thread pixeline
thanks richard, i'll learn from it! On 14 déc, 15:51, Richard D. Worth [EMAIL PROTECTED] wrote: This is a little slimmer, but not all that different from what you're doing: $('.strataTrigger').click(function() { var li = $(this).parent(); var index =

[jQuery] Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
Hi folks Is it possible get the data from ajaxSuccess? So I could validate data from any ajax request in serverside. Example. I am passing div id=myid id2=myid2 id3=myid3 id4=myid4 /div $().ajaxSuccess (function() { if ( $(data).attr(id) = 'myid') { // do stuff with data } });

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
No. Let me explain better. In your scenario you made a individual AJAX request and into this request you create rules. But JQuery could create an universal AjaxSucess to test all data from all ajax requests. So imagine this scenario: The page have a lot of AJAX requests, something like

[jQuery] Re: jQuery sendEvent('stop')

2007-12-14 Thread Ange
Here's the problem I'm having in action. It appears that hiding/toggling the content causes IE/Win to error on the sendEvent. I've put together 2 pages: a href=http://www.circleatseven.com/PROJECTS/mockup/index.php;one with the desired layout/a a

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
Wow, thanks a lot Richard I can do this with php (quite simple) but I am lost with Jquery / Javascript syntax. Could you help me? Example $(#mychild).ajaxForm({ success: function(data) { // do stuff with data; function toCheck() {

[jQuery] Re: preloading images with jquery in IE

2007-12-14 Thread ekallevig
I figured it out last night after I posted this. I just needed to assign the new element to a variable of some sort (or in my case an array item). I already had created an array to keep track of whether or not each image had already been preloaded (to avoid duplication), so instead of setting

[jQuery] If Thickbox doesn't load, then do something

2007-12-14 Thread cfdvlpr
We're finding that a thickbox doesn't load on occasion(maybe one out of every 100 times) and instead it just hangs there with a greyed out background. Is there a way to set a timeout to detect when this has occurred and then try to reload it or do something else?

[jQuery] Re: If Thickbox doesn't load, then do something

2007-12-14 Thread Josh Nathanson
Make sure that it's not loading the thickbox farther up or down the viewport, out of view. I think on IE6 and an older version of Thickbox, it will not center vertically in the viewport. -- Josh - Original Message - From: cfdvlpr [EMAIL PROTECTED] To: jQuery (English)

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Mario Moura
Almost, the problem is always check1 is not defined Example: function checked(check) { this.check = check } $(#ajax).ajaxForm({ success: function(data) { check1 = new checked(data) // do stuff with data;

[jQuery] Re: If Thickbox doesn't load, then do something

2007-12-14 Thread tlphipps
I think the original poster was saying the loading... screen never goes away. I too experience this with my app if a user's session has timed out in the background and they try to view an image (which requires an active session) in a thickbox. So far, I haven't really tried to solve this one.

[jQuery] re: cf ajax example

2007-12-14 Thread Sales Representative
Ok found the problem... You might want to put a disclaimer that this example will not work if you currently are sending ColdFusion Debug to your screen Thanks Craig Return-Path: [EMAIL PROTECTED] Wed Dec 12 18:41:55 2007 Received: from

[jQuery] Re: fValidate breaks jQuery

2007-12-14 Thread metric152
I just found this post today. I've had the same problems trying to use both libraries. I patched fValidate to work with jQuery and Safari. There were a few methods that overlapped and didn't work properly. If you're still interested in using fValidate let me know. Shoot me an email and I can send

[jQuery] $.append(html, callback); ?

2007-12-14 Thread Eric Teubert
Hi there, I struggle with execution time of JS. As any line after some other does not wait for the line before to be executed, my script works sometimes ... and sometimes not. It looks like that: $.ajax({ ... success: function(msg){

[jQuery] Re: preloading images with jquery in IE

2007-12-14 Thread Feed
I didn't quite understand your solution, ekallevig. Can you explain it again, please? I also tried Jannik's solution but it didn't work... it gives me an error saying that $img has no properties. On Dec 14, 1:41 pm, ekallevig [EMAIL PROTECTED] wrote: I figured it out last night after I posted

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread Richard D. Worth
Let's start with a simple example: function alertData(data) { alert(data); } //named callback function $(#mychild).ajaxForm({ success: alertData }); Notice I just give success the name of my function - alertData. No function keyword, no parens, no curly braces. I'm actually passing the

[jQuery] jQuery in the Wild: BBC - beta site

2007-12-14 Thread Karl Swedberg
Hey everyone, Looks like the BBC has a beta site that they're testing now. And guess what? It's using jQuery! :-D http://www.bbc.co.uk/home/beta/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Drop Shadow Plugin

2007-12-14 Thread McLars
I added a new Drop Shadow plugin to the site yesterday. It creates soft drop shadows underneath nearly any element, like text headings, content containers, and images (including transparent GIFs). It has several options, and you can experiment with it on my demo page at

[jQuery] Getting .html() AND the container element

2007-12-14 Thread Donald @ White Whale
Hi all, Working on a jQuery-powered Ajax application here. I need to get the HTML content of an element -- but including the element itself. Meaning, if I have div class=example width=300Lorem ipsum/div I want to return that entire string rather than just the contents inside. In theory I could

[jQuery] Cycle Plugin and Suckerfish

2007-12-14 Thread tracyfloyd
I'm trying to use M. Alsup's cycle plugin (awesome, btw) with a suckerfish menu. But I'm having trouble getting the menu to appear on top of the slideshow in Internet Explorer. http://www.plexindoorsports.com/sandhills/sports/view/inlinehockey Any ideas?

[jQuery] Calling functions across multiple $(document).ready() blocks

2007-12-14 Thread js
Hi, I know it's possible to use multiple $(document).ready() blocks, but it seems as though you are unable to make function calls across the different blocks, eg: $(document).ready(function() { var someFunction = function() { // some function that does stuff }; });

[jQuery] Getting .html() AND the container element

2007-12-14 Thread Donald @ White Whale
(Apologies of this double-posts somehow; lots of trouble with Google Groups earlier, haven't seen the message come up yet, so:) For an Ajax application I'm working on, I need to POST the HTML contents of an element including the element itself. So if I have div class=example id=example10 Lorem

[jQuery] Re: Getting .html() AND the container element

2007-12-14 Thread Dave Methvin
So if I have div class=example id=example10 Lorem ipsum strongdolor sit amet/strong. /div I need to grab that entire bit as a single string, including the first div and it's attributes. How about the.andSelf() method? http://docs.jquery.com/Traversing/andSelf

[jQuery] Re: cf ajax example

2007-12-14 Thread cfdvlpr
A lot of jQuery stuff doesn't work when you have ColdFusion Debug turned on in cf admin. On Dec 14, 11:02 am, Sales Representative [EMAIL PROTECTED] wrote: Ok found the problem... You might want to put a disclaimer that this example will not work if you currently are sending ColdFusion

[jQuery] Re: Getting .html() AND the container element

2007-12-14 Thread Jeffrey Kretz
Here is the method I've used for this: $.fn.outerHtml = function() { if (this.length) { var div = $('div style=display:none/div'); var clone = $(this[0].cloneNode(false)).html(this.html()).appendTo(div); var outer = div.html();

[jQuery] Re: Getting .html() AND the container element

2007-12-14 Thread Flesler
Why not just: $.fn.outerHtml = function(){ return $('div/div').append( this[0] || '' ).html(); }; Ariel Flesler On 14 dic, 22:41, Jeffrey Kretz [EMAIL PROTECTED] wrote: Here is the method I've used for this: $.fn.outerHtml = function() { if (this.length) {

[jQuery] Ok, I give... where does the ; go in this code?

2007-12-14 Thread Rick Faircloth
Hi, all. I'm getting this error message: missing ; before statement window.onload=function() {\n for this code: script type=text/javascript window.onload=funtion() { $(.image).dropshadow({left:6, top:6, blur:3 }) }

[jQuery] Re: Ok, I give... where does the ; go in this code?

2007-12-14 Thread Aaron Heimlich
script type=text/javascript window.onload = function() { $(.image).dropshadow({left:6, top:6, blur:3}); // semi-colon definitely goes here }; // I think one can go here too /script On Dec 14, 2007 10:05 PM, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, all… I'm getting this

[jQuery] Re: cf ajax example

2007-12-14 Thread Rey Bango
Yep. Thats why you need to always use CFSETTING w/ debug output set to know so you can test the called file directly be able to turn it off for your ajax call. Rey cfdvlpr wrote: A lot of jQuery stuff doesn't work when you have ColdFusion Debug turned on in cf admin. On Dec 14, 11:02 am,

[jQuery] Re: Ok, I give... where does the ; go in this code?

2007-12-14 Thread Aaron Heimlich
On Dec 14, 2007 11:33 PM, Rick Faircloth [EMAIL PROTECTED] wrote: $(#shadow).dropshadow is not a function $($shadow).dropshadow({left:6, top:6, blur:3}); It's dropShadow(), not dropshadow() -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Re: Ok, I give... where does the ; go in this code?

2007-12-14 Thread Aaron Heimlich
On Dec 15, 2007 12:01 AM, Rick Faircloth [EMAIL PROTECTED] wrote: That was it! Thanks, Aaron! No prob. HTH. I keep forgetting how case sensitive js is… I get slipped up sometimes too when going between PHP (generally case-insensitive) and JS, so I've made a habit of simply assuming that

[jQuery] Re: Is it possible get the data from ajaxSuccess?

2007-12-14 Thread David Serduke
On Dec 14, 1:06 pm, Richard D. Worth [EMAIL PROTECTED] wrote: $(#target).ajaxSuccess(function(request, settings) { if (check1 == something) { $(this).append(check1); } }); I believe the first parameter for ajaxSuccess functions is the event. Then comes the request and settings. So