[jQuery] Re: JS stops running

2007-08-30 Thread Pops

I see you have a typo  and wrong id?

$("#commentform form").submit(function(){
var uname = $("#commenter").val();

^^ wrong id?

var email = $('#email').val();
var url = $('#website').val();
var commment = $('#commenter').val();

^ one too many m?

--
HLS

atomicnuke wrote:
> I have the following function, it gets the data in a form and sends it
> to be verified before posting.
>
> $("#commentform form").submit(function(){
>   var uname = $("#commenter").val();
>   var email = $('#email').val();
>   var url = $('#website').val();
>   var commment = $('#commenter').val();
>   $.ajax({
>   type: "POST",
>   url: "../../../testingphase/blog/commenttest.php",
>   dataType: "html",
>   data: "commenter="+escape(uname)+'&email='+escape(email)
> +"&website="+escape(url)+"&comment="+escape(comment),
>   success: function(msg) {
>   if(msg == 0)
>   { $('#errormess').html(msg); }
>   else { alert('Wow');}
>   }
>   });
>   return false;
>   });
>
> First I just set the variables and showed them in an alert to make
> sure I was targeting them. Then I added the ajax and on submit it just
> processes with php. I did the ajax just like my other post and get,
> but can't see why this one doesn't work.



[jQuery] SITE: Kohls.com

2007-08-30 Thread Quin Hoxie

Just saw that kohls was using jquery on their site, and by using I
mean including it.  I could not actually see them using it anywhere,
though I probably just could not find it.  Anyway, there are plenty of
places where they should have used it to simplify things.

http://www.kohls.com/upgrade/myaccount/kohls_login.jsp



[jQuery] Re: JS stops running

2007-08-30 Thread atomicnuke

Was hoping someone could shed some light on this, but I'll post back
if I find the problem, just hard with no errors.



[jQuery] Re: next() problems

2007-08-30 Thread Karl Swedberg
The .next() method will only select the very next sibling. If you  
have other siblings in between the two h4s, you'll need to use a  
different selector.


You could try this instead:

jQuery('div.faq h4').click(function() {
  jQuery('~ h4:first', this).addClass('top');
});

That'll find the first sibling h4 that follows the clicked h4.

--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Aug 30, 2007, at 8:03 PM, Josh Nathanson wrote:



Next() will only get siblings -- can you post the html?

-- Josh

- Original Message - From: "ruperdupe" <[EMAIL PROTECTED]>
To: "jQuery (English)" 
Sent: Thursday, August 30, 2007 11:36 AM
Subject: [jQuery] next() problems



What I'm trying to do is when someone clicks on a h4 heading the next
one has a class (top) added to it. In between each heading there are
other elements. The h4s are inside a div called 'faq'.
So far I've tried:
jQuery('div.faq h4').click(function() {
jQuery(this).next().addClass('top');
});
And:
jQuery('div.faq h4').click(function() {
jQuery(this).next('h4').addClass('top');
});
Neither works and I can't figure out why? If anyone could help, that
would be great!
(I'm using jQuery instead of $ because I'm using Prototype as well)





[jQuery] Re: Stop Default Event

2007-08-30 Thread Larry Garfield

I usually do:

$().bind('click', function(event) {
  event.preventDefault().
  ...
});

On Thursday 30 August 2007, Rafael Santos wrote:
> Are there anyone who have a snippet to really prevent the something is
> fired.
>
> Sometimes my "return false" doesn't work on FF, IE6 and IE7. hehe =(
>
> And i see mootools can do something like this:
>
> e.stop();


-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


[jQuery] check uncheck

2007-08-30 Thread [EMAIL PROTECTED]

I need the check of a checkbox disable other inputs and change value
to others.
Here the code:

//click on keep prop cancel unnecesary fields
$(document).ready(function(){
$('#keepProp').click(function(){
state = $('.percent').val();
if (this.checked){
$('.depend').attr({disabled:'true'});
$('.percent').val('%');
} else {
$('.depend').attr({disabled:'false'});
$('.percent').val(state);
};
});
});

Works fine if I check but the uncheck operation do not do nothing???

Help

Andrea



[jQuery] Re: Stop Default Event

2007-08-30 Thread John Resig

When does return false not work?

--John

On 8/30/07, Rafael Santos <[EMAIL PROTECTED]> wrote:
> Are there anyone who have a snippet to really prevent the something is
> fired.
>
> Sometimes my "return false" doesn't work on FF, IE6 and IE7. hehe =(
>
> And i see mootools can do something like this:
> e.stop();
>
>
>
> --
> Rafael Santos Sá :: webdeveloper
> www.rafael-santos.com


[jQuery] Stop Default Event

2007-08-30 Thread Rafael Santos
Are there anyone who have a snippet to really prevent the something is
fired.

Sometimes my "return false" doesn't work on FF, IE6 and IE7. hehe =(

And i see mootools can do something like this:

e.stop();


-- 
Rafael Santos Sá :: webdeveloper
www.rafael-santos.com


[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Rey Bango


Ah. I jumped the gun thinking he had simply cut and pasted his post 
because I read this "[From the original thread:]" in the message.


Thats what I get for not taking the time to fully read whats in front of 
me. :P


Sorry about that Bennett.

Rey

Mike Alsup wrote:

Yes I read the original post plus what you wrote on your site. What I'm
asking for is an actual example, not just a "hypothetical" scenario.


I think Bennett gave an excellent example with the rounded corners
bit.  I often see delayed rounding on page load.

Mike



[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Pops

Thinking about this, ideally, this would the way a "ideal JS/DOM/HTML"
system would behave:



function divConstructor(self) {
  ...
}






What happens now is that when the page is being rendered (spit out by
the server and received by the browser),  when DOM sees elements like
tis  with the onConstructor event, it can dynamically spawn
element constructors.

Of course, people might just say, why now just embed the 

[jQuery] Re: Accessible News Slider plugin for jQuery -- the final release

2007-08-30 Thread Chris Beaven

On Aug 30, 11:19 pm, Giant Jam Sandwich <[EMAIL PROTECTED]> wrote:
> Thanks for pointing out that bug. I can't believe in all this time I
> never found that. Part of my tests usually is to click a bunch of
> times on stuff like that to see what happens. I will have to take
> another look at it -- it is probably something easy that I missed.

It was the first thing I noticed too (as a habitual double-clicker)

It's an easy fix: you just need to move your "return false;"
statements out one level so that clicking always returns false,
whether or not you are animating.



[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Mike Alsup

> Yes I read the original post plus what you wrote on your site. What I'm
> asking for is an actual example, not just a "hypothetical" scenario.

I think Bennett gave an excellent example with the rounded corners
bit.  I often see delayed rounding on page load.

Mike


[jQuery] Re: Accessible News Slider plugin for jQuery -- the final release

2007-08-30 Thread Mike Alsup

> I have made a final adjustment to the Accessible News Slider plugin
> for jQuery, and I will no longer be supporting new releases or feature
> requests. The primary purpose behind building this plugin was to
> demonstrate that dynamic components can be accessible if appropriate
> steps are taken. This has been a successful experiment, and I still
> get quite a bit of traffic for the plugin.

This is very cool, Brian.  Nice work!

Mike


[jQuery] Problem with $.ajax() over HTTPS in FF2

2007-08-30 Thread jorgeBadaBing

Error: [Exception... "'Permission denied to call method
XMLHttpRequest.open' when calling method:
[nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)"  location: ""  data: no]

this is the error message I get when I switch from http to https. It
works fine in IE 7.

I heard somewhere that FF2 needs to have a signed script in order to
do https. Since I can't sign my script, is there a way around this? I
need this login to work on all browsers.

Any clue regarding what I need to do to get this login function to
work?

anyone else has come across the same issue?

Any help with me very much appreciate it.

thanks



[jQuery] Re: Cookie Plugin - Trying to get the values of elements in the array of cookies.

2007-08-30 Thread Pyrolupus

> I'm using the cookie plugin.  And, I have created 4 cookies with it
> and they are named [Expanded[]].
>
> I also keep a count of the number of cookies that have been created
> and the name of this cookie is [onExpandCount].
>
> How do I loop through these cookies?
>
> function expandMenuUsingCookie() {
> for (var index=0;index<$.cookie('onExpandCount');index++) {
> //console.log(index);
> 
> YAHOO.widget.TreeView.getNode('menu',$.cookie('Expanded['+index
> +']')).toggle();
> }
>
> }
>
> There's something wrong with this line right about where I try to get
> the value of the cookie:
> YAHOO.widget.TreeView.getNode('menu',$.cookie('Expanded['+index
> +']')).toggle();
You are mixing up your quotes.  Too make this work (did not test
syntax or library) and also make it a tad more readable, get your node
index before you try to access the node:

nodeIdx = $.cookie('Expanded')[index]);
...getNote('menu', $.cookie(nodeIdx))...

Note the movement of the square brackets to the outside of
$.cookie().  Having just looked through the source for
jquery.cookie.js, though (I haven't used the plugin before), I'm not
sure that it returns an array of "subcookies."  You may need to
experiment with split()ing the return value to get what you're after.

Also, your loop will perform much faster if you store your array
length before starting the loop so that it's not looked up each
iteration (e.g., var arrLen = arr.length; for (var i = 0; i < arrLen; i
++) {}).[1]

Pyro

[1] http://www.thinksharp.org/?p=83



[jQuery] trying to do a image selection depending on the div id

2007-08-30 Thread hollow

Hi all,

i'm trying to make a script that selects a different image depending
on the id of the div then if the div isn't existing show a different
image.

I'm quite new to jquery, but have some php skills.

1- is the first i tried but no good. (it stills hovers but doesn't
show any different image.
2- same problem.

$('.div').bind("mouseover", function(){
1- if($('[EMAIL 
PROTECTED]'+$(this).attr("id")+"]") != "1"){
1- 
$(this).css({background:"url(images/
book_side_hover1.jpg)"});
1- }
2- else 
if($('[EMAIL PROTECTED]'+$(this).attr("2")+"]").attr("rel") !
= "selected"){

2-$(this).css({background:"url(images/
book_side_hover2.jpg)"});
2-}
3-else {

3-$(this).css({background:"url(images/book_side_hover.jpg)"});
3-}

  });

If someone knows how to do this please.

Thanks



[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Pops

Rey, I think, if its the same thing I am thinking would be where many
developers and working sites mix up HTML and 

[jQuery] Re: $(html) error...I think. Please help, I'm stumped!

2007-08-30 Thread Michael Geary

Since the only thing you're doing with the underlying DOM element ('this' in
the callback function) is to wrap it right back up in a $() wrapper, you can
do it much more simply:

   var text = $(html).find('#invoice').text();
   alert( text );

You could also write it this way:

   var text = $('#invoice',html).text();
   alert( text );

If you wanted to do something with the DOM element itself, you'd access it
with [0]:

   var div = $(html).find('#invoice')[0];
   alert( div.tagName );

Both of these snippets assume that there is only one element in the query
result - which should be the case since you're using the ID to select it.

-Mike

> From: Dustin
> 
> You're right, I had pasted the code snippet from another 
> script and forgot to change the code. I do only have a 
> question though. If am only meaning to look for an ID that 
> only exists once, what would be the syntax for that?
> For example, right now I have
> 
> $(html).find('#invoice').each(function(){
>  var invalidDiv = $(this).text();
>  alert(invalidDiv);
> });



[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Rey Bango


Hi Bennett,

Yes I read the original post plus what you wrote on your site. What I'm 
asking for is an actual example, not just a "hypothetical" scenario.


Rey...

Bennett McElwee wrote:

I'm really interested in understanding more about this plugin. Could you
give an example of when and how it might be used? I know you listed some
sample code on your page but I'd like to get a use case for it.


[From the original thread:]

Here's a simple example of where jQuery.ready is insufficient. A large-
ish page (50kb) uses jQuery.ready to add rounded corners to the header
at the top of the page. The title displays straight away with square
corners; then the rest of the page loads (a delay of a second); then
jQuery.ready fires and the corners abruptly become rounded. If we
rounded the corners as soon as the header was available then the user
experience would be smoother.
- from 
http://groups.google.com/group/jquery-dev/browse_thread/thread/263b3ee5c6e4e63e/896356fc3f78c65d

Generally this is useful when you want to use unobtrusive JavaScript
to set up the page. Another example is setting up event handlers. You
normally have to do this in jQuery.ready(), but this means the
handlers don't get set up until the entire DOM has loaded. Until that
time, the affected element will be inert, causing irritation when
users click it expecting to see their popup calendar or whatever. The
gap may only be a second or two, but it's long enough to annoy users
and result in helpdesk calls. This recently occurred on a production
site I am working on: the site uses YUI, so I was able to use
YAHOO.util.Event.onAvailable() to set up the event as soon as the
element was ready. That made me wonder whether such a facility existed
in jQuery; hence the elementReady plugin.




[jQuery] Re: next() problems

2007-08-30 Thread Josh Nathanson


Next() will only get siblings -- can you post the html?

-- Josh

- Original Message - 
From: "ruperdupe" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Thursday, August 30, 2007 11:36 AM
Subject: [jQuery] next() problems




What I'm trying to do is when someone clicks on a h4 heading the next
one has a class (top) added to it. In between each heading there are
other elements. The h4s are inside a div called 'faq'.

So far I've tried:

jQuery('div.faq h4').click(function() {
jQuery(this).next().addClass('top');
});

And:

jQuery('div.faq h4').click(function() {
jQuery(this).next('h4').addClass('top');
});

Neither works and I can't figure out why? If anyone could help, that
would be great!

(I'm using jQuery instead of $ because I'm using Prototype as well)



[jQuery] Problem with $.ajax() over HTTPS in FF2

2007-08-30 Thread jorgeBadaBing

Error: [Exception... "'Permission denied to call method
XMLHttpRequest.open' when calling method:
[nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)"  location: ""  data: no]

this is the error message I get when I switch from http to https. It
works fine in IE 7.

Any clue regarding what I need to do to get this login function to
work?

anyone else has come across the same issue?

Any help with me very much appreciate it.

thanks



[jQuery] Re: $(html) error...I think. Please help, I'm stumped!

2007-08-30 Thread Dustin

I am using the latest version of Jquery. I did however, figure out the
problem. I am using Coldfusion and yesterday when I was working of
another problem I turned on debugging and that is when the problem
appeared. I had forgotten that I turned it on until today so when I
turned it off the problem was fixed. Frankly I am rather confused as
to why this caused the problem in the first place so if you or anyone
else know what was going on I'd love to here the explanation.

On Aug 30, 12:36 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> What version of jQuery are you using?
>
> --John
>
> On 8/30/07, Dustin Martin <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello everyone! My name is Dustin and was hoping I could get a little
> > help with a JQuery problem  I've run into. I just started using JQuery
> > and have been trying out a little AJAX when I ran into a problem. In
> > Firefox (using Firebug) I get the error:
>
> > ret[i].getElementsByTagName is not a function
> > r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));
>
> > Here is my Javascript code where the error appears to be.
>
> > $.ajax({
> > url: 'CS_AJAX_Server_Responder.cfm',
> > type: 'POST',
> > dataType: 'html',
> > timeout: 3,
> > data:
> > {Invoice:invoiceNum,Store:storeNum,Div:divNum,invoicevalidate:'true' },
> > error: function(){
> > $('#loadingimg').fadeOut("slow");
> > alert('Error accessing server. Please try again.');
> > },
> > success: function(html){
> > $('#loadingimg').fadeOut("slow");
> > alert('test message');
>
> > $(html).find('#invoice').each(function(){
> > var invalidDiv = $(this).text();
> > alert(invalidDiv);
> > });
> > }
> > });
> > }
> > }
>
> > My server side code is very simple.
>
> > invalid
>
> > The error appears to be caused by $(html).find() but I really do not
> > have a clue as to why.  Once I remove the  $(html).find() code it no
> > longer throws the error. The frustrating thing is that I had
> > everything working yesterday but it does not work any longer and I
> > have no idea what I changed that could have led to this error. In IE I
> > don't get any error but it doesn't proceed through the code like
> > normal. Please, any insight and help would be appreciated...this has
> > been driving me up the wall.



[jQuery] Re: getting query string val method with jquery

2007-08-30 Thread JimD

Very cool Josh thanks for letting me know. I'll check it out.

On Aug 30, 3:09 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Hey Jim,
>
> I have an extension "jqURL" you can check out.  The demos aren't quite
> finished, but it works.  Here's the link:
>
> http://www.oakcitygraphics.com/jquery/jqURL/jqURLdemo.html
>
> Basically if your query string value is "myvar", you do:
>
> var x = $.jqURL.get("myvar");
>
> There are some other useful functions too.
>
> -- Josh
>
>
>
> - Original Message -
> From: "JimD" <[EMAIL PROTECTED]>
> To: "jQuery (English)" 
> Sent: Thursday, August 30, 2007 12:34 PM
> Subject: [jQuery] getting query string val method with jquery
>
> > Hi all,
>
> > Is there any new built in method to get a query string value into a
> > var for jquery
>
> > For example this same question came up awhile ago here:
> >http://groups.google.com/group/jquery-en/browse_thread/thread/99e1bc2...
>
> > I wasnt sure with the new versions of jquery if there is anything new
> > built in to do such a thing or if you'd still need to create your own
> > function to handle it.
>
> > Jim- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: $(html) error...I think. Please help, I'm stumped!

2007-08-30 Thread Dustin

You're right, I had pasted the code snippet from another script and
forgot to change the code. I do only have a question though. If am
only meaning to look for an ID that only exists once, what would be
the syntax for that?
For example, right now I have

$(html).find('#invoice').each(function(){
 var invalidDiv = $(this).text();
 alert(invalidDiv);
});

If I remove each, how do I call the function that is previously
contained in each?

$(html).find('#invoice')

function(){   <--Where do I put this
function?
 var invalidDiv = $(this).text();
 alert(invalidDiv);
}

Also, on the topic of getting data from a server, right now I am
getting html back from the server and parsing that, however, should I
be using JSON or XML instead? Are these alternative better than html?
HTML is just what I have seen demonstrated so I have just been trying
it out but I am certainly open to new and better ideas.

~Dustin

On Aug 30, 12:55 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> I notice you are running an "each" method when the "find" is looking for an
> id ("#invoice").  This implies that you are looping over multiple elements
> with the same id.  This will mess things up as it is invalid to have
> multiple elements with the same id.  Try using "invoice" as a class rather
> than an id in your html.
>
> invalid
>
> -- Josh
>
> - Original Message -
> From: "John Resig" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, August 30, 2007 9:36 AM
> Subject: [jQuery] Re: $(html) error...I think. Please help, I'm stumped!
>
> > What version of jQuery are you using?
>
> > --John
>
> > On 8/30/07, Dustin Martin <[EMAIL PROTECTED]> wrote:
>
> >> Hello everyone! My name is Dustin and was hoping I could get a little
> >> help with a JQuery problem  I've run into. I just started using JQuery
> >> and have been trying out a little AJAX when I ran into a problem. In
> >> Firefox (using Firebug) I get the error:
>
> >> ret[i].getElementsByTagName is not a function
> >> r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));
>
> >> Here is my Javascript code where the error appears to be.
>
> >> $.ajax({
> >> url: 'CS_AJAX_Server_Responder.cfm',
> >> type: 'POST',
> >> dataType: 'html',
> >> timeout: 3,
> >> data:
> >> {Invoice:invoiceNum,Store:storeNum,Div:divNum,invoicevalidate:'true' },
> >> error: function(){
> >> $('#loadingimg').fadeOut("slow");
> >> alert('Error accessing server. Please try
> >> again.');
> >> },
> >> success: function(html){
> >> $('#loadingimg').fadeOut("slow");
> >> alert('test message');
>
> >> $(html).find('#invoice').each(function(){
> >> var invalidDiv = $(this).text();
> >> alert(invalidDiv);
> >> });
> >> }
> >> });
> >> }
> >> }
>
> >> My server side code is very simple.
>
> >> invalid
>
> >> The error appears to be caused by $(html).find() but I really do not
> >> have a clue as to why.  Once I remove the  $(html).find() code it no
> >> longer throws the error. The frustrating thing is that I had
> >> everything working yesterday but it does not work any longer and I
> >> have no idea what I changed that could have led to this error. In IE I
> >> don't get any error but it doesn't proceed through the code like
> >> normal. Please, any insight and help would be appreciated...this has
> >> been driving me up the wall.



[jQuery] next() problems

2007-08-30 Thread ruperdupe

What I'm trying to do is when someone clicks on a h4 heading the next
one has a class (top) added to it. In between each heading there are
other elements. The h4s are inside a div called 'faq'.

So far I've tried:

jQuery('div.faq h4').click(function() {
jQuery(this).next().addClass('top');
});

And:

jQuery('div.faq h4').click(function() {
jQuery(this).next('h4').addClass('top');
});

Neither works and I can't figure out why? If anyone could help, that
would be great!

(I'm using jQuery instead of $ because I'm using Prototype as well)



[jQuery] Re: AJAX GetElementByID problem

2007-08-30 Thread happycfer

Hi Glenn,

If you are asking where the script to include the js for jquery is, it is 
located within the head tag of the first page.  my jquery js file (v 1.1.3.1 
btw) is located in the folder as both the source page and the page retrieved.

Does this answer your question?

-Kevin


Date: Wed, 29 Aug 2007 10:52:16 -0700
From: [EMAIL PROTECTED]
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: AJAX GetElementByID problem

Where is the jQuery?Glen


On 8/29/07, Kevin <[EMAIL PROTECTED]> wrote:

Hi All,

I'm trying to use an ajax call to call a 2nd page which uses a
getElementByID to set a div's content on that page.  If I just try to
call the 2nd page, I get a js error that I can't run the

getElementByID because it has no properties.  If I change the 2nd page
to be a callback function and call that via the callback function of
jquery it works fine, so it sounds like an order of operations problem

here.  Is there anyway to allow getElementByIDs without forcing them
in a callback function?

Here is my ajax call:



document.getElementById("destDiv1").innerHTML = "
\"Loading...\"
"; $.ajax({ url: 'j1.html?a=' + Math.random(), type: 'GET', dataType: 'html', timeout: 6, error: function(a,b,c){ document.getElementById ("destDiv1").innerHTML = 'Error loading channel' + a + "|" + b + "|" + c; }, success: function(thehtml){ // do something with HTML document.getElementById("destDiv1").innerHTML = thehtml; } }); Now the page to be loaded: alert("hi"); document.getElementById("blah1").innerHTML = "hi"; This throws the error: TypeError: document.getElementById("blah1") has no properties Any ideas? Thanks! -Kevin _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread Duncan Heal

Hi Rolf
Let us know how you go - I'd be interested to see how it comes out.
I think the Dashboard implementation is very elegant. Something  
similar would make a great jQuery plug-in (but way beyond my skill).

Regards
Duncan
- - - - - - - - - - - - - - - - -
Sprocket Web Design
www.sprocket.co.nz
- - - - - - - - - - - - - - - - -


On 31/08/2007, at 10:04 AM, rolfsf wrote:




Yeah, that gives an idea of how to 'fake it'... I might have to  
pursue that

approach if I don't drop the idea all together
thanks!
Rolf



duncanh wrote:


this may help - it's a page flipping animation
http://www.sitepoint.com/blogs/2007/07/20/javascript-sprite- 
animation-

using-jquery/


Duncan
- - - - - - - - - - - - - - - - -
Sprocket Web Design
www.sprocket.co.nz
- - - - - - - - - - - - - - - - -


On 31/08/2007, at 5:58 AM, rolfsf wrote:




Is there an easy way to get the animation style used in the Apple
dashboard
widgets that flips the widget over to reveal the 'back'?

Thanks for any leads or tips
Rolf
--
View this message in context: http://www.nabble.com/Apple-dashboard-
style-animation-in-jquery--tf4355930s15494.html#a12412783
Sent from the JQuery mailing list archive at Nabble.com.







--
View this message in context: http://www.nabble.com/Apple-dashboard- 
style-animation-in-jquery--tf4355930s15494.html#a12417083

Sent from the JQuery mailing list archive at Nabble.com.





[jQuery] Re: jdmenu and css issue?

2007-08-30 Thread Eridius


it seems to be the image cuase when i put image under one  there is a space
on the bottom, what the hell could be cuasing this?


Eridius wrote:
> 
> http://www.kaizendigital.com/index2.php
> 
> I don't see anything wrong with my code of jdmenu codee(css wize) but when
> using jdmeny and am image on top there is a small space between the image
> and jdmenu, can anyone help me as css is not my strongest area dn it is
> driving me crazy.
> 

-- 
View this message in context: 
http://www.nabble.com/jdmenu-and-css-issue--tf4354044s15494.html#a12418063
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: New plugin: elementReady

2007-08-30 Thread Bennett McElwee

> I'm really interested in understanding more about this plugin. Could you
> give an example of when and how it might be used? I know you listed some
> sample code on your page but I'd like to get a use case for it.

[From the original thread:]

Here's a simple example of where jQuery.ready is insufficient. A large-
ish page (50kb) uses jQuery.ready to add rounded corners to the header
at the top of the page. The title displays straight away with square
corners; then the rest of the page loads (a delay of a second); then
jQuery.ready fires and the corners abruptly become rounded. If we
rounded the corners as soon as the header was available then the user
experience would be smoother.
- from 
http://groups.google.com/group/jquery-dev/browse_thread/thread/263b3ee5c6e4e63e/896356fc3f78c65d

Generally this is useful when you want to use unobtrusive JavaScript
to set up the page. Another example is setting up event handlers. You
normally have to do this in jQuery.ready(), but this means the
handlers don't get set up until the entire DOM has loaded. Until that
time, the affected element will be inert, causing irritation when
users click it expecting to see their popup calendar or whatever. The
gap may only be a second or two, but it's long enough to annoy users
and result in helpdesk calls. This recently occurred on a production
site I am working on: the site uses YUI, so I was able to use
YAHOO.util.Event.onAvailable() to set up the event as soon as the
element was ready. That made me wonder whether such a facility existed
in jQuery; hence the elementReady plugin.



[jQuery] Re: Form Input Lookup

2007-08-30 Thread Pyrolupus

> 1: Grab the value of a form input
> 2: Grab results of a .php page via AJAX ( $.get()?? )
> 3: Check through the AJAX results ( should i return the data as JSON?
> or just | it? )
> 4: If there is a match / likeness for what is in the form input
> addClass('error') IF NOT addClass('accept')
...
> Thanks for the replies i am actually using the autocomplete plugin for
> my live search parts, but what im trying to create is just a lookup
> which will not return any selection values but just addClass depending
> what it finds.

When returning data that is to be used directly by JavaScript (#3
above), I always prefer JSON unless there are specific reasons to do
otherwise.  (JSON is already in a JavaScript-digestible format.)

I don't know the nature of your data or what you are trying to match,
but if it is something like

Form field:  'myentry'

And the returnData = {
 myentry: "this is a real user",
 film: "at eleven"
}

Then:

//may have to test this slightly differently,
//i.e., if (returnData.hasOwnProperty('myentry') {...}
if (typeof returnData.myentry !== 'undefined') {
 ...addClass('returnDataMatches');..
} else {
 ...addClass('noMatchMan');
}

Pyro



[jQuery] Re: Cookie Plugin - Trying to get the values of elements in the array of cookies.

2007-08-30 Thread Benjamin Sterling
have you tried wrapping $.cookie('onExpandCount') in a
parseInt($.cookie('onExpandCount'))?

Also

On 8/30/07, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
>
> I think this is actually more of a problem with Javascript syntax than
> it is with the cookie plugin, but any help would be much appreciated.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] [Tablesorter] QuickSearch

2007-08-30 Thread Leonardo K
Hi,

I would like to know if there are plans to integrate a quicksearch (
http://rikrikrik.com/jquery/quicksearch) funcionality in the tablesorter
plugin as a widget.

If someone already did that, can you share please?

Thanks in advance


[jQuery] Re: Looking for a calendar picker that allows for two instances on one page

2007-08-30 Thread Felix Geisendörfer




I saw that, but I want to
actually display the calendar itself, not just on popup, but fully
displayed.
AFAIK kevin's plugin is capable to do this. See: http://kelvinluck.com/assets/jquery/datePicker/v2/demo/renderCalendar.html

-- Felix
--
My Blog: http://www.thinkingphp.org
My Business: http://www.fg-webdesign.de



Andy Matthews wrote:

  
  
  I saw that, but I want to
actually display the calendar itself, not just on popup, but fully
displayed.
  
  
  From:
jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On
Behalf Of Alex Ezell
  Sent: Thursday, August 30, 2007 4:40 PM
  To: jquery-en@googlegroups.com
  Subject: [jQuery] Re: Looking for a calendar picker that
allows for two instances on one page
  
  
Andy,
  I've used datePicker[1] from Kelvin Luck to do multiple date
fields on the same page. I am still using v1 (because I am too lazy to
update it and test the new v2), but I'm sure v2 would work fine for
you. 
  
  
  There are some cool things being done with time and date pickers
that work nicely if you need time.
  
  
  [1]  http://kelvinluck.com/assets/jquery/datePicker
  
  
  /alex
  
  On 8/30/07, Andy Matthews <[EMAIL PROTECTED]>
wrote:
  

I'm working on an app which
allows users to search against data in our db using a date range
(start, end).
 
What I need is a calendar
which allows a user to select both dates, then click submit. So I need
a calendar which allows for two instances of itself on one page. 
 
I'm looking at jCalendar: http://tedserbinski.com/jcalendar/index.html which
looks really great. But
does anyone know if there's a better one?
 


 
Andy Matthews
Senior
ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com
 

  
  
  
 





[jQuery] Re: getting query string val method with jquery

2007-08-30 Thread Josh Nathanson


Hey Jim,

I have an extension "jqURL" you can check out.  The demos aren't quite 
finished, but it works.  Here's the link:


http://www.oakcitygraphics.com/jquery/jqURL/jqURLdemo.html

Basically if your query string value is "myvar", you do:

var x = $.jqURL.get("myvar");

There are some other useful functions too.

-- Josh




- Original Message - 
From: "JimD" <[EMAIL PROTECTED]>

To: "jQuery (English)" 
Sent: Thursday, August 30, 2007 12:34 PM
Subject: [jQuery] getting query string val method with jquery




Hi all,

Is there any new built in method to get a query string value into a
var for jquery

For example this same question came up awhile ago here:
http://groups.google.com/group/jquery-en/browse_thread/thread/99e1bc29713bba37/09506175a651256e?lnk=gst&q=query+string&rnum=2#

I wasnt sure with the new versions of jquery if there is anything new
built in to do such a thing or if you'd still need to create your own
function to handle it.

Jim





[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


Yeah, that gives an idea of how to 'fake it'... I might have to pursue that
approach if I don't drop the idea all together
thanks!
Rolf



duncanh wrote:
> 
> this may help - it's a page flipping animation
> http://www.sitepoint.com/blogs/2007/07/20/javascript-sprite-animation- 
> using-jquery/
> 
> 
> Duncan
> - - - - - - - - - - - - - - - - -
> Sprocket Web Design
> www.sprocket.co.nz
> - - - - - - - - - - - - - - - - -
> 
> 
> On 31/08/2007, at 5:58 AM, rolfsf wrote:
> 
>>
>>
>> Is there an easy way to get the animation style used in the Apple  
>> dashboard
>> widgets that flips the widget over to reveal the 'back'?
>>
>> Thanks for any leads or tips
>> Rolf
>> -- 
>> View this message in context: http://www.nabble.com/Apple-dashboard- 
>> style-animation-in-jquery--tf4355930s15494.html#a12412783
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12417083
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


I guess that would make sense. So... I'll have to fake it or forget about it!

thanks all!


Andy Matthews-4 wrote:
> 
> 
> It's probably triggered via Javascript. But I'll bet that the animation
> uses
> Quartz. 
> 
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of rolfsf
> Sent: Thursday, August 30, 2007 4:37 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Apple dashboard-style animation in jquery?
> 
> 
> 
> I got the impression from reading through the developer notes that it is a
> javascript animation:
> 
> http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashbo
> ard_ProgTopics/index.html
> 
> Choose "Widget Backs and Preferences", and scroll down to "Flipping Sides"
> 
> Perhaps I need to dig deeper into the developer tools. 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12417082
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Looking for a calendar picker that allows for two instances on one page

2007-08-30 Thread Andy Matthews
I saw that, but I want to actually display the calendar itself, not just on
popup, but fully displayed.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Ezell
Sent: Thursday, August 30, 2007 4:40 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Looking for a calendar picker that allows for two
instances on one page


Andy, 
I've used datePicker[1] from Kelvin Luck to do multiple date fields on the
same page. I am still using v1 (because I am too lazy to update it and test
the new v2), but I'm sure v2 would work fine for you. 

There are some cool things being done with time and date pickers that work
nicely if you need time.

[1]  http://kelvinluck.com/assets/jquery/datePicker

/alex


On 8/30/07, Andy Matthews <[EMAIL PROTECTED]> wrote: 

I'm working on an app which allows users to search against data in our db
using a date range (start, end).
 
What I need is a calendar which allows a user to select both dates, then
click submit. So I need a calendar which allows for two instances of itself
on one page. 
 
I'm looking at jCalendar: http://tedserbinski.com/jcalendar/index.html which
looks really great. But does anyone know if there's a better one?
 


 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com  
 


 
<>

[jQuery] Re: Cookie Plugin - Trying to get the values of elements in the array of cookies.

2007-08-30 Thread cfdvlpr

I think this is actually more of a problem with Javascript syntax than
it is with the cookie plugin, but any help would be much appreciated.



[jQuery] Re: Looking for a calendar picker that allows for two instances on one page

2007-08-30 Thread Alex Ezell
In particular, see this demo of the v2 of the plugin.

http://kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerStartEnd.html


[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread Andy Matthews

It's probably triggered via Javascript. But I'll bet that the animation uses
Quartz. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rolfsf
Sent: Thursday, August 30, 2007 4:37 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Apple dashboard-style animation in jquery?



I got the impression from reading through the developer notes that it is a
javascript animation:

http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashbo
ard_ProgTopics/index.html

Choose "Widget Backs and Preferences", and scroll down to "Flipping Sides"

Perhaps I need to dig deeper into the developer tools. 



bmsterling wrote:
> 
> I see; well ultimately you can't flip anything like that in 
> javascript, BUT...  You may be able to achieve it thru trickery, now, 
> I am just rambling this off the top of my head, but what if you create 
> four images.  Image 1 was the front side and when something is 
> clicked, a link or something, that content fades out, image 2 (an 
> animated gif) replaces image 1 and when image 2's animation is 
> complete (you will need to play with the timing between the gif and 
> javascript) you replace image 2 with image 3.  Now to go back to the 
> front side, you can just reverse it, but instead of image 2, put image 
> 4 (the reverse animation gif).  You will need to preload each image 
> for smoothness.  I would love to see if you can do this, if not, let 
> me know, I may give it a run as a plugin.  I just need to see the 
> video again.
> 
> 

--
View this message in context:
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s1
5494.html#a12416724
Sent from the JQuery mailing list archive at Nabble.com.




[jQuery] Re: Looking for a calendar picker that allows for two instances on one page

2007-08-30 Thread Alex Ezell
Andy,I've used datePicker[1] from Kelvin Luck to do multiple date fields on
the same page. I am still using v1 (because I am too lazy to update it and
test the new v2), but I'm sure v2 would work fine for you.

There are some cool things being done with time and date pickers that work
nicely if you need time.

[1] http://kelvinluck.com/assets/jquery/datePicker

/alex

On 8/30/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>  I'm working on an app which allows users to search against data in our db
> using a date range (start, end).
>
> What I need is a calendar which allows a user to select both dates, then
> click submit. So I need a calendar which allows for two instances of itself
> on one page.
>
> I'm looking at jCalendar: http://tedserbinski.com/jcalendar/index.html which
> looks really great. But does anyone know if there's a better one?
>
> * 
>
> Andy Matthews
> *Senior ColdFusion Developer
>
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]
> www.dealerskins.com
>
>
<>

[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


I got the impression from reading through the developer notes that it is a
javascript animation:

http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics/index.html

Choose "Widget Backs and Preferences", and scroll down to "Flipping Sides"

Perhaps I need to dig deeper into the developer tools. 



bmsterling wrote:
> 
> I see; well ultimately you can't flip anything like that in javascript,
> BUT...  You may be able to achieve it thru trickery, now, I am just
> rambling
> this off the top of my head, but what if you create four images.  Image 1
> was the front side and when something is clicked, a link or something,
> that
> content fades out, image 2 (an animated gif) replaces image 1 and when
> image
> 2's animation is complete (you will need to play with the timing between
> the
> gif and javascript) you replace image 2 with image 3.  Now to go back to
> the
> front side, you can just reverse it, but instead of image 2, put image 4
> (the reverse animation gif).  You will need to preload each image for
> smoothness.  I would love to see if you can do this, if not, let me know,
> I
> may give it a run as a plugin.  I just need to see the video again.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12416724
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


I got the impression from reading through the developer notes that it is a
javascript animation:

http://developer.apple.com/documentation/AppleApplications/Conceptual/Dashboard_ProgTopics/index.html

Choose "Widget Backs and Preferences", and scroll down to "Flipping Sides"

Perhaps I need to dig deeper into the developer tools. 



bmsterling wrote:
> 
> I see; well ultimately you can't flip anything like that in javascript,
> BUT...  You may be able to achieve it thru trickery, now, I am just
> rambling
> this off the top of my head, but what if you create four images.  Image 1
> was the front side and when something is clicked, a link or something,
> that
> content fades out, image 2 (an animated gif) replaces image 1 and when
> image
> 2's animation is complete (you will need to play with the timing between
> the
> gif and javascript) you replace image 2 with image 3.  Now to go back to
> the
> front side, you can just reverse it, but instead of image 2, put image 4
> (the reverse animation gif).  You will need to preload each image for
> smoothness.  I would love to see if you can do this, if not, let me know,
> I
> may give it a run as a plugin.  I just need to see the video again.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12416725
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Looking for a calendar picker that allows for two instances on one page

2007-08-30 Thread Andy Matthews
I'm working on an app which allows users to search against data in our db
using a date range (start, end).
 
What I need is a calendar which allows a user to select both dates, then
click submit. So I need a calendar which allows for two instances of itself
on one page. 
 
I'm looking at jCalendar: http://tedserbinski.com/jcalendar/index.html which
looks really great. But does anyone know if there's a better one?
 

 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com  
 
<>

[jQuery] Re: Accessible News Slider plugin for jQuery -- the final release

2007-08-30 Thread Benjamin Sterling
I actually read that before I responded, like Rey, I found myself being
distracted by your blog.  Loved the "Message board etiquette for
programmers" post, so true.


On 8/30/07, Giant Jam Sandwich <[EMAIL PROTECTED]> wrote:
>
>
> Hey, thanks Benjamin!
>
> Nothing wrong with tooting your own horn. I am finding out that very,
> very few developers have hands-on accessibility experience like you
> mentioned. If you didn't get a chance, have a read:
>
>
> http://blog.reindel.com/2007/08/29/web-site-accessibility-awareness-loses-steam/
>
> It sounds like we had a similar enlightenment :)
>
> Brian
>
>
> On Aug 30, 9:55 am, "Benjamin Sterling"
> <[EMAIL PROTECTED]> wrote:
> > Great great great plugin!  And not just because of its functionality,
> but
> > for the accessibility of it.  I am glad to see that you stuck to your
> guns
> > about keeping it so.  My dev team had the priviledge to go to the EPA
> and to
> > their compliance testing center where we sat with gentleman that was
> blind
> > and got to "hear" how some of the sites we were developing sounded and
> it
> > was horrible.  I took steps in building a new framework (my company does
> a
> > lot of web based training sites) that is compliant and uses
> jQuery/xml/xhtml
> > (airplume.informationexperts.com) and hearing it in JAWS sound so much
> > better.  Anyway, I am tooting my own horn here, just wanted to say that
> I am
> > with you on taking "accessibility into account."
> >
> > Great work!
> >
> > On 8/30/07, Giant Jam Sandwich <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > > Well, for me that's a good thing, but probably not so much for your
> > > work :)
> >
> > > Thanks for pointing out that bug. I can't believe in all this time I
> > > never found that. Part of my tests usually is to click a bunch of
> > > times on stuff like that to see what happens. I will have to take
> > > another look at it -- it is probably something easy that I missed.
> >
> > > Thanks Rey.
> >
> > > On Aug 30, 12:29 am, Rey Bango <[EMAIL PROTECTED]> wrote:
> > > > BTW Brian, your blog has s much awesome content that its
> > > > completely distracted me from my work!! :p
> >
> > > > ;)
> >
> > > > Rey...
> >
> > > > Giant Jam Sandwich wrote:
> > > > > I have made a final adjustment to the Accessible News Slider
> plugin
> > > > > for jQuery, and I will no longer be supporting new releases or
> feature
> > > > > requests. The primary purpose behind building this plugin was to
> > > > > demonstrate that dynamic components can be accessible if
> appropriate
> > > > > steps are taken. This has been a successful experiment, and I
> still
> > > > > get quite a bit of traffic for the plugin.
> >
> > > > > Unfortunately, most of the feature requests that I receive do not
> take
> > > > > accessibility into account. Many of them are both interesting and
> > > > > usable, but not necessarily accessible. For this reason I am
> releasing
> > > > > the final version completely into the public domain. The plugin
> has
> > > > > always been available under the GNU GPL, but you may now use it to
> > > > > suit any of your project needs.
> >
> > > > > You will always find the support page
> > > athttp://www.reindel.com/accessible_news_slider.
> >
> > > > > Enjoy!
> >
> > --
> > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread Benjamin Sterling
Wow... that is almost exactly what I had in mind.

On 8/30/07, Duncan Heal <[EMAIL PROTECTED]> wrote:
>
> this may help - it's a page flipping animation
> http://www.sitepoint.com/blogs/2007/07/20/javascript-sprite-animation-using-jquery/
>
>
> Duncan
> - - - - - - - - - - - - - - - - -
> Sprocket Web Design
> www.sprocket.co.nz
> - - - - - - - - - - - - - - - - -
>
>
> On 31/08/2007, at 5:58 AM, rolfsf wrote:
>
>
>
> Is there an easy way to get the animation style used in the Apple
> dashboard
> widgets that flips the widget over to reveal the 'back'?
>
> Thanks for any leads or tips
> Rolf
> --
> View this message in context:
> http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12412783
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread Duncan Heal

this may help - it's a page flipping animation
http://www.sitepoint.com/blogs/2007/07/20/javascript-sprite-animation- 
using-jquery/



Duncan
- - - - - - - - - - - - - - - - -
Sprocket Web Design
www.sprocket.co.nz
- - - - - - - - - - - - - - - - -


On 31/08/2007, at 5:58 AM, rolfsf wrote:




Is there an easy way to get the animation style used in the Apple  
dashboard

widgets that flips the widget over to reveal the 'back'?

Thanks for any leads or tips
Rolf
--
View this message in context: http://www.nabble.com/Apple-dashboard- 
style-animation-in-jquery--tf4355930s15494.html#a12412783

Sent from the JQuery mailing list archive at Nabble.com.





[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread Benjamin Sterling
I see; well ultimately you can't flip anything like that in javascript,
BUT...  You may be able to achieve it thru trickery, now, I am just rambling
this off the top of my head, but what if you create four images.  Image 1
was the front side and when something is clicked, a link or something, that
content fades out, image 2 (an animated gif) replaces image 1 and when image
2's animation is complete (you will need to play with the timing between the
gif and javascript) you replace image 2 with image 3.  Now to go back to the
front side, you can just reverse it, but instead of image 2, put image 4
(the reverse animation gif).  You will need to preload each image for
smoothness.  I would love to see if you can do this, if not, let me know, I
may give it a run as a plugin.  I just need to see the video again.

On 8/30/07, rolfsf <[EMAIL PROTECTED]> wrote:
>
>
>
> doh!
> http://www.apple.com/macosx/theater/dashboard.html
>
>
>
> rolfsf wrote:
> >
> > There is a quicktime demo of the whole dashboard, and you can see the
> > various animations used. About a third of the way through you'll see
> them
> > click on the bottom right corner of a weather app and it flips over and
> > resizes
> >
> > thanks,
> > Rolf
> >
> >
> >
> > bmsterling wrote:
> >>
> >> Sadly I don't have a mac, is there a demo anywhere I can have a look
> at?
> >>
> >> On 8/30/07, rolfsf <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> >>> Is there an easy way to get the animation style used in the Apple
> >>> dashboard
> >>> widgets that flips the widget over to reveal the 'back'?
> >>>
> >>> Thanks for any leads or tips
> >>> Rolf
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12412783
> >>> Sent from the JQuery mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >> --
> >> Benjamin Sterling
> >> http://www.KenzoMedia.com
> >> http://www.KenzoHosting.com
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12415128
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] MooTools $events expando workaround

2007-08-30 Thread Rey Bango


There was a recent flurry of emails on the list discussing a conflict 
with the use of MooTools in conjunction with jQuery. When MooTools 
released v1.1, they renamed their events expando to $events, thus 
conflicting instantly with jQuery.


Well, Brazilian developer Alexandre Magno 
(http://blog.alexandremagno.net/) came up with a novel and quite simple 
solution to get around this issue; rename the $event expando in Mootools!


"I found a solution that works perfectly. Im the live example that we 
need sometimes to use the both frameworks. Im develop all my projects in 
jQuery, cause I learn more easily and feel more comfotable with it. 
Nothing to do with Mootools, with is a beatiful framework too... But I 
need the fancy upload to work and is just possible with Mootools, I make 
everything, but doesnt work because the conflict with the variable 
$event. I solve this issue by getting the mootools download with no 
compression, use a software like aptana, dreamweaver, or even notepad to 
replace all ocurrences of $event to $event2 for example, and compress 
the libraty after it. This way, the two frameworks works perfectly, 
since the use of jquery with noConflit its configured. I hope this works 
and soon I will develop this fancy upload for jquery to dont have to use 
both. Its a shame for the mootools team wait to Jquery solve this 
problem that noboby its blame... its just convention... why just simple 
replace $event for $mootoolsEvent or $mooEvent for example??? Somethimes 
its necessary use both, no doubt..""


This was posted in the MooTools forum in response to a post where John & 
  I were trying to resolve an integration problem for a MooTools user 
who wanted to use MooTools and jQuery together. We realize that its 
unrealistic to expect that developers are going to use just one library 
and the team goes to great lengths to ensure some level of 
interoperability between other libraries via noConflict(). In jQuery 
v1.2, we take that a step further by allowing the renaming of the events 
expando to whatever you would like, thus avoiding any conflict.


While this was not a bug in jQuery, we feel strongly about allowing 
developers to leverage the tools that they need to do their work and we 
never want jQuery to be a bottleneck.


Thank you John & the jQuery team for continuing to make jQuery such a 
flexible solution and thank you Alexandre for expanding jQuery's reach 
to Brazil and offering up this great workaround.


Rey...


[jQuery] Re: Weird behavior of CSS float! Different in IE and Firefox

2007-08-30 Thread Klaus Hartl


seedy wrote:


Just as a follow up on this, it doesn't have to be overflow hidden, just any
overflow attribute.  Applying the overflow forces the browser to calculate
the size of the div to see if it needs to show the scrollbar or not.


...any overflow value *other than "visible"* which is the initial value. 
Also note that automatic clearing via setting overflow does not work in 
IE 6.


In this case although clearing is triggered by setting a width on the 
parent element.



--Klaus


[jQuery] Re: The Mitchies. Rating the Best GUI Plugins

2007-08-30 Thread Mitch

I am so pleased you took the time to look closely at my project. Your
analysis is perfect, but I do have some questoins below. Some may
sound dumb because I am so new to all this.

On Aug 29, 10:48 pm, Pops <[EMAIL PROTECTED]> wrote:
> Mitch,
>
> I have to say - excellent job, very nice.  I do have some comments,
> and this is not just you but nearly all the web 2.0 sites:
>
> - No Javascript
>
> Since it depends on JavaScript, and you don't want to make it work in
> web 1.0, then add the following:
>
> 
> This site requires JavaScript to be enabled!
> 
>

That is easy to fix and I will add it. There was some thought I might
create a version that did require JS but I can see now that is the
impossible dream.

> It is really odd to see a site go gun-ho with a fancy like web 2.0. It
> must it taking alot of work, yet, they don't do some basic
> fundamentals.
>
> - Font Size Scaling
>
> Don't assume one size fits all.  For me, my eyes are not like it use
> to be. So many times I hit ctrl + a few times to increase the size..
> Many sites don't scale correctly when the fonts change.  Plus, it
> really looks fantastic to be able to increase the web site font size
> on a large flat screen!  You would be able to demo your web site and
> people see it from a distance. :-)

I have the same complaint about sites using fonts that are too hard to
read. Honestly I have not been thinking about eyes and I better start
today. Can you offer any words of wisdom on what I need to do to scale
well. Does it mean using "ems" instead of points? I dont know much
about ems and not sure I understand them enough to do it right.

What happens when the font is too big for its container? Like I didnt
design the tabs or accordion and I dont know how to scale them.

>
> For your web site,
>
> 1) why restrict the width size? Make it work with 2 4 or 5% left and
> width margins.

I definitly want to restrict the width because this is a control panel
like environment, not a web site. Its more like Flash. I need to know
where text is precisely for this to work. That is why the height is
fixed too.

>
> 2) You will see the run off in tab 1 if you don't auto-fit the
> content.
>

What do  you mean here but "run off" How do I see that?

> 3) Tab 2 is all messy when the font size has changed. More below with
> tab 2.

I just did moved the font size around and I am surprised at how little
is wrong with it. I didnt know that radio buttons owuld enlarge when
you make the font larger but of course that makes sense now. I dont
see how I can do that if the width is fixed.

>
> 4) Tab 3 is perfect, It scales correctly (but will look better if the
> width was wider).

It better look good. All that is there is a single paragraph of text.

>
> About tab 2,  very nice looking, but there is so much.

The whole goal of this was to get it on one screen so that is why its
the way it is. I probably have gone a little overboard but I cant get
rid of a lot of stuff on that page and still have it make sense.

>
> - Make it work in full screen!

This is a debatable issue. I think full screen would look weird but I
am open to seeing it.
>
> - Maybe another tab?

You could put History on another tab, but the beauty is allowing
people with large screens see it all. To be honest if I had to do this
all over again I might use a drag and drop front end where the user
could decide what to move and where to put it.  I could hide the radio
buttons in a drop down menu.
>
> - Make the location an accordion too?
>   - How about group it by region
>
>-  North East States
>-  Mid East States
>-  South East States
>-  North Central States
>-  Mid Central States
>-  South Central States
>-  North West States
>-  Mid West States
>-  South West States
>
>Or just North, Mid, South or  East, Central, West.

If you used region it might work nice as an accordion. I dont see how
to do that with locatoin by state, and keep in mind that the user
often selects more then one location (pacific coast, california,
oregon).

>
> Other than that - Great job!

Thanks that is kind of you, given all the stuff I got wrong.

Mitch

>
> --
> HLS
>
> On Aug 29, 6:21 pm, Mitch <[EMAIL PROTECTED]> wrote:
>
>
>
> > The Mitchies. Rating the Best GUI Plugins
>
> > My interface is an example of what a novice non programmer can do
> > using jQuery and a number of its best plugins.
>
> > The goal was to build a GUI that contained a large number of web 2.0
> > features, meaning controls that gave a desktop experience inside the
> > browser. Besides wanting to upgrade my very popular avian search
> > engine (http://www.whatbird.com), I wanted to see how far I could go,
> > how many controls could I use to make my GUI inviting and modern. I
> > also wanted to see how such a GUI would work in the various browsers,
> > such as IE and FF. I wanted to see how fragile javascirpted web 2.0
> > pages we

[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Brandon Aaron
I believe this code has just been migrated from an earlier hack for Safari.
We used to just clone the event object only for Safari but now we clone it
for all browsers. The best thing that can be done to help us make sure we
don't browser sniff unless we absolutely have to is to create a new ticket
with a test case and even better a patch.

Thanks :)

--
Brandon Aaron

On 8/30/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
> > > In this case you are fixing a bug that happens to appear in one
> > > browser, but why limit the fix to only that browser? What
> > > if another browser based on Safari comes out but has a
> > > different user agent string and isn't recognized by jQuery?
> > > Wouldn't you still want the bug to be fixed? What harm
> > > would it cause to leave out the browser check?
>
> > Why fix something that isn't broken?  You can play the
> > hypothetical both ways without satisfaction.  What if another
> > browser comes out that breaks when this fix is applied?  It's
> > a pragmatic solution to a problem that exists today.
>
> In general, I agree with you. But look at the specific code again:
>
>   // check if target is a textnode (safari)
>   if (jQuery.browser.safari && event.target.nodeType == 3)
> event.target = originalEvent.target.parentNode;
>
> The purpose of this code is to detect when event.target is a text node and
> substitute the parent node instead.
>
> The only reason to make this specific to Safari would be if we *want* to
> allow event.target to be a text node in other browsers. But we don't want
> event.target to be a text node, in any browser. We'd always want to get
> the
> parent node in such a situation, even if it happened in some unknown
> future
> browser.
>
> -Mike
>
>


[jQuery] Re: Binding a Click Event to Anchor Tag

2007-08-30 Thread Andy Matthews

I'm not having the exact same issue, but I am having inconsistencies with
the click method. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giant Jam Sandwich
Sent: Thursday, August 30, 2007 1:42 PM
To: jQuery (English)
Subject: [jQuery] Binding a Click Event to Anchor Tag


I used to be able to do this:

$("a").click(function(){
   alert("test");
   return false;
});

test

It no longer works in Firefox. I read some other posts that seem to be
discussing the same thing, but nothing definitive. Bind does not work
either. However, if I change click to mouseover, then it works.
Suggestions?

Thanks.

Brian




[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


doh!
http://www.apple.com/macosx/theater/dashboard.html



rolfsf wrote:
> 
> There is a quicktime demo of the whole dashboard, and you can see the
> various animations used. About a third of the way through you'll see them
> click on the bottom right corner of a weather app and it flips over and
> resizes
> 
> thanks,
> Rolf
> 
> 
> 
> bmsterling wrote:
>> 
>> Sadly I don't have a mac, is there a demo anywhere I can have a look at?
>> 
>> On 8/30/07, rolfsf <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>> Is there an easy way to get the animation style used in the Apple
>>> dashboard
>>> widgets that flips the widget over to reveal the 'back'?
>>>
>>> Thanks for any leads or tips
>>> Rolf
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12412783
>>> Sent from the JQuery mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
>> -- 
>> Benjamin Sterling
>> http://www.KenzoMedia.com
>> http://www.KenzoHosting.com
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12415128
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


There is a quicktime demo of the whole dashboard, and you can see the various
animations used. About a third of the way through you'll see them click on
the bottom right corner of a weather app and it flips over and resizes

thanks,
Rolf



bmsterling wrote:
> 
> Sadly I don't have a mac, is there a demo anywhere I can have a look at?
> 
> On 8/30/07, rolfsf <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Is there an easy way to get the animation style used in the Apple
>> dashboard
>> widgets that flips the widget over to reveal the 'back'?
>>
>> Thanks for any leads or tips
>> Rolf
>> --
>> View this message in context:
>> http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12412783
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12415126
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Michael Geary

> > In this case you are fixing a bug that happens to appear in one 
> > browser, but why limit the fix to only that browser? What 
> > if another browser based on Safari comes out but has a
> > different user agent string and isn't recognized by jQuery?
> > Wouldn't you still want the bug to be fixed? What harm
> > would it cause to leave out the browser check?

> Why fix something that isn't broken?  You can play the 
> hypothetical both ways without satisfaction.  What if another 
> browser comes out that breaks when this fix is applied?  It's 
> a pragmatic solution to a problem that exists today.

In general, I agree with you. But look at the specific code again:

  // check if target is a textnode (safari)
  if (jQuery.browser.safari && event.target.nodeType == 3)
event.target = originalEvent.target.parentNode;

The purpose of this code is to detect when event.target is a text node and
substitute the parent node instead.

The only reason to make this specific to Safari would be if we *want* to
allow event.target to be a text node in other browsers. But we don't want
event.target to be a text node, in any browser. We'd always want to get the
parent node in such a situation, even if it happened in some unknown future
browser.

-Mike



[jQuery] Re: Question about Collapse/Expand

2007-08-30 Thread Priest, James (NIH/NIEHS) [C]

 

> -Original Message-
> From: FrankTudor [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 30, 2007 9:44 AM
> To: jQuery (English)
> Subject: [jQuery] Question about Collapse/Expand

 
> http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery
> 
> I am working with example b.
> 
> The think I am trying to do is to make it default collapesed instead
> of expanded.

I'm headed out the door so this is a quick reply but...

Couldn't you hide the element by default, and then do your slideDown on
a click or whatever action you want to use to display the element...

Some basic show/hide tutorials:

http://www.learningjquery.com/2006/09/basic-show-and-hide
http://www.learningjquery.com/2006/09/slicker-show-and-hide

For the most part - you can replace show/hide - with
slideUp/slideDown...

HTH

Jim


[jQuery] Re: Weird behavior of CSS float! Different in IE and Firefox

2007-08-30 Thread seedy


Just as a follow up on this, it doesn't have to be overflow hidden, just any
overflow attribute.  Applying the overflow forces the browser to calculate
the size of the div to see if it needs to show the scrollbar or not.


Giuliano Marcangelo wrote:
> 
> 
> 
> On 30/08/2007, Paladin <[EMAIL PROTECTED]> wrote:
>>
>>
>> I just discovered some weird behavior of float. The following is the
>> html code.
>>
>> http://www.w3.org/
>> TR/html4/strict.dtd">
>> 
>> 
>> 
>> Untitled Document
>> 
>> 
>> 
>> > style="position:relative;float:left;border:1px
>> solid;width:200px;height:40px;">This is child1
>> > style="position:relative;float:left;border:1px
>> solid;width:200px;height:40px;">This is child2
>> 
>> 
>> 
>>
>> if rendered in FF, you will see that the children are out of the
>> parent border. In IE, the page is correctly rendered.
>> However, if we change the positioning of parent to position to
>> absolute, you will see the childeren are correctly rendered inside the
>> parent.
>> Could someone do me some help? I just want to dynamically change the
>> height of parent to contain the children divs, meanwhile every div
>> maintain their position in the document flow. I happened to succeeded
>> once but now even I repeat the code they don't seem to work. Very
>> funny!
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Weird-behavior-of-CSS-float%21-Different-in-IE-and-Firefox-tf4353488s15494.html#a12414829
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] getting query string val method with jquery

2007-08-30 Thread JimD

Hi all,

Is there any new built in method to get a query string value into a
var for jquery

For example this same question came up awhile ago here:
http://groups.google.com/group/jquery-en/browse_thread/thread/99e1bc29713bba37/09506175a651256e?lnk=gst&q=query+string&rnum=2#

I wasnt sure with the new versions of jquery if there is anything new
built in to do such a thing or if you'd still need to create your own
function to handle it.

Jim



[jQuery] Re: Coldfusionistas

2007-08-30 Thread [EMAIL PROTECTED]

Ray,

thanks.
Should be an honour to know that you will check out my works for
integrating in AjaxCfc.

Let me have your feedbacks and suggestions.
In the weeend I will end the docs for first 2 tags and will post a
fashrotator using media plugin.

Bye

Andrea

On 30 ago, 13:52, "Christopher Jordan" <[EMAIL PROTECTED]>
wrote:
> Andrea,
>
> Nice idea! Will this work with all MX  versions of CF as well as CF8?
>
> Chris
>
> On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > I have now set up a blog with the purpose to show up integration ways
> > between cf and jQuery (basically converting jquery plug-in in easy
> > reusable Custom Tags).
> > Any suggestion, ideas, code and so on should be really appreciate.
>
> > The blog iswww.andreacfm.com
>
> > Thanks
>
> > Andrea Campolonghi
>
> --http://cjordan.us



[jQuery] Re: Coldfusionistas

2007-08-30 Thread [EMAIL PROTECTED]

Christopher,

Yes it will work.
Actually the blog is hosted on MX7 and examples pages works fine.
Check it out:

http://www.andreacfm.com/examples/cfjq_tab/
http://www.andreacfm.com/examples/cfjq_popup/

Let me have your feedback.

Andrea



On 30 ago, 13:52, "Christopher Jordan" <[EMAIL PROTECTED]>
wrote:
> Andrea,
>
> Nice idea! Will this work with all MX  versions of CF as well as CF8?
>
> Chris
>
> On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > I have now set up a blog with the purpose to show up integration ways
> > between cf and jQuery (basically converting jquery plug-in in easy
> > reusable Custom Tags).
> > Any suggestion, ideas, code and so on should be really appreciate.
>
> > The blog iswww.andreacfm.com
>
> > Thanks
>
> > Andrea Campolonghi
>
> --http://cjordan.us



[jQuery] Re: Binding a Click Event to Anchor Tag

2007-08-30 Thread Giant Jam Sandwich

Turns out it was an old version of the library.

On Aug 30, 1:42 pm, Giant Jam Sandwich <[EMAIL PROTECTED]> wrote:
> I used to be able to do this:
>
> $("a").click(function(){
>alert("test");
>return false;
>
> });
>
> test
>
> It no longer works in Firefox. I read some other posts that seem to be
> discussing the same thing, but nothing definitive. Bind does not work
> either. However, if I change click to mouseover, then it works.
> Suggestions?
>
> Thanks.
>
> Brian



[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Matt Kruse

On Aug 30, 2:06 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Why fix something that isn't broken?  You can play the hypothetical
> both ways without satisfaction.

I don't think so - in the case where it "isn't broken" then nothing
bad will result. The correction will not execute. In fact, it's less
code to take the better approach.
And how do you know it's not broken in another browser, and will never
be broken in any future browser? Fixing it only in the case you know
about right now is short-sighted and completely unnecessary.
Experienced Javascript developers could look at the cited code and use
it as a reason to question the coding in the library.

> What if another browser comes out
> that breaks when this fix is applied?

Is that even possible? And even if it somehow is, isn't it far less
likely than another browser coming out that has the same problem but
won't execute the fix because you've limited it to only safari?

Fixing browser-specific bugs using browser sniffing is highly suspect
and almost never necessary. In almost all cases, the bug/quirk can be
fixed in the general case without any check for browser.

Matt Kruse



[jQuery] Re: Apple dashboard-style animation in jquery?

2007-08-30 Thread Benjamin Sterling
Sadly I don't have a mac, is there a demo anywhere I can have a look at?

On 8/30/07, rolfsf <[EMAIL PROTECTED]> wrote:
>
>
>
> Is there an easy way to get the animation style used in the Apple
> dashboard
> widgets that flips the widget over to reveal the 'back'?
>
> Thanks for any leads or tips
> Rolf
> --
> View this message in context:
> http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12412783
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Brandon Aaron
On 8/30/07, Matt Kruse <[EMAIL PROTECTED]> wrote:

> In this case you are fixing a bug that happens to appear in one
> browser, but why limit the fix to only that browser? What if another
> browser based on Safari comes out but has a different user agent
> string and isn't recognized by jQuery? Wouldn't you still want the bug
> to be fixed? What harm would it cause to leave out the browser check?



I forgot to mention that the check against $.browser.safari is a little
deceiving. We are actually checking against WebKit, which would also catch
any browser based on Safrai ... like Shiira.

It is a very sticky topic and one we all feel very passionate about. None
and I mean _none_ of us like doing browser detection/sniffing. It if it is
there, it has mostly likely be tested without it first and added only when
absolutely necessary. Regarding this particular fix, I don't recall if it
negatively affected another browser/engine.

--
Brandon Aaron


[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Mike Alsup

> In this case you are fixing a bug that happens to appear in one
> browser, but why limit the fix to only that browser? What if another
> browser based on Safari comes out but has a different user agent
> string and isn't recognized by jQuery? Wouldn't you still want the bug
> to be fixed? What harm would it cause to leave out the browser check?

Why fix something that isn't broken?  You can play the hypothetical
both ways without satisfaction.  What if another browser comes out
that breaks when this fix is applied?  It's a pragmatic solution to a
problem that exists today.

Mike


[jQuery] Re: height of div

2007-08-30 Thread Dragan Krstic
In this situations, I prefer to use dimension plugin. It is quite charming
to use it.

2007/8/30, b0bd0gz <[EMAIL PROTECTED]>:
>
>
>
> Thanks for the quick reply, still getting a height value of zero I'm
> afraid,
> any other ideas?
>
> b0bd0gz
>
>
>
> Try this:
>
> $('#content').load('home.html', function(){
>   $(".seperator").height( $(this).height() );
> });
>
> --John
> --
> View this message in context:
> http://www.nabble.com/height-of-div-tf4352381s15494.html#a12402042
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Running a Function After All other Javascript is Loaded

2007-08-30 Thread cfdvlpr

Here's what I am doing currently:
setTimeout("expandMenuUsingCookie()",550);

But, I'm sure there is a better way than that.  Can anyone share a
better way to run code last?



[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Matt Kruse

On Aug 30, 12:52 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> The example you posted is a very specific bug in Safari and running it for
> other browsers would be incorrect.

If the bug is that the original target of events in safari can be a
text node within an element rather than the element itself, then why
would it matter if you run it for other browsers?

In this case you are fixing a bug that happens to appear in one
browser, but why limit the fix to only that browser? What if another
browser based on Safari comes out but has a different user agent
string and isn't recognized by jQuery? Wouldn't you still want the bug
to be fixed? What harm would it cause to leave out the browser check?

This and a few other places seem like situations where the bug is
known to exist in only a single browser, so the fix is needlessly
targeted to only a specific browser using unnecessary browser
sniffing. Or are there other reasons that I'm not aware of?

Matt Kruse





[jQuery] Re: Coldfusionistas

2007-08-30 Thread Christopher Jordan
Andrea,

Nice idea! Will this work with all MX  versions of CF as well as CF8?

Chris

On 8/30/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have now set up a blog with the purpose to show up integration ways
> between cf and jQuery (basically converting jquery plug-in in easy
> reusable Custom Tags).
> Any suggestion, ideas, code and so on should be really appreciate.
>
> The blog is www.andreacfm.com
>
> Thanks
>
> Andrea Campolonghi
>
>


-- 
http://cjordan.us


[jQuery] Re: JS stops running

2007-08-30 Thread atomicnuke

Still trying, if I comment out the $.ajax section and put an alert
after that section the code runs, but once I uncomment the page just
processes the default way. I get no errors in firebug or anything, so
not sure why it just seems to skip the function.



[jQuery] Re: Accessible News Slider plugin for jQuery -- the final release

2007-08-30 Thread Giant Jam Sandwich

Hey, thanks Benjamin!

Nothing wrong with tooting your own horn. I am finding out that very,
very few developers have hands-on accessibility experience like you
mentioned. If you didn't get a chance, have a read:

http://blog.reindel.com/2007/08/29/web-site-accessibility-awareness-loses-steam/

It sounds like we had a similar enlightenment :)

Brian


On Aug 30, 9:55 am, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> Great great great plugin!  And not just because of its functionality, but
> for the accessibility of it.  I am glad to see that you stuck to your guns
> about keeping it so.  My dev team had the priviledge to go to the EPA and to
> their compliance testing center where we sat with gentleman that was blind
> and got to "hear" how some of the sites we were developing sounded and it
> was horrible.  I took steps in building a new framework (my company does a
> lot of web based training sites) that is compliant and uses jQuery/xml/xhtml
> (airplume.informationexperts.com) and hearing it in JAWS sound so much
> better.  Anyway, I am tooting my own horn here, just wanted to say that I am
> with you on taking "accessibility into account."
>
> Great work!
>
> On 8/30/07, Giant Jam Sandwich <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Well, for me that's a good thing, but probably not so much for your
> > work :)
>
> > Thanks for pointing out that bug. I can't believe in all this time I
> > never found that. Part of my tests usually is to click a bunch of
> > times on stuff like that to see what happens. I will have to take
> > another look at it -- it is probably something easy that I missed.
>
> > Thanks Rey.
>
> > On Aug 30, 12:29 am, Rey Bango <[EMAIL PROTECTED]> wrote:
> > > BTW Brian, your blog has s much awesome content that its
> > > completely distracted me from my work!! :p
>
> > > ;)
>
> > > Rey...
>
> > > Giant Jam Sandwich wrote:
> > > > I have made a final adjustment to the Accessible News Slider plugin
> > > > for jQuery, and I will no longer be supporting new releases or feature
> > > > requests. The primary purpose behind building this plugin was to
> > > > demonstrate that dynamic components can be accessible if appropriate
> > > > steps are taken. This has been a successful experiment, and I still
> > > > get quite a bit of traffic for the plugin.
>
> > > > Unfortunately, most of the feature requests that I receive do not take
> > > > accessibility into account. Many of them are both interesting and
> > > > usable, but not necessarily accessible. For this reason I am releasing
> > > > the final version completely into the public domain. The plugin has
> > > > always been available under the GNU GPL, but you may now use it to
> > > > suit any of your project needs.
>
> > > > You will always find the support page
> > athttp://www.reindel.com/accessible_news_slider.
>
> > > > Enjoy!
>
> --
> Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com



[jQuery] Binding a Click Event to Anchor Tag

2007-08-30 Thread Giant Jam Sandwich

I used to be able to do this:

$("a").click(function(){
   alert("test");
   return false;
});

test

It no longer works in Firefox. I read some other posts that seem to be
discussing the same thing, but nothing definitive. Bind does not work
either. However, if I change click to mouseover, then it works.
Suggestions?

Thanks.

Brian



[jQuery] Re: Coldfusionistas

2007-08-30 Thread Rey Bango


Andrea, this is VERY cool. Definitely hit me up offlist as Rob Gonda and 
I are going to be updating AjaxCFC with jQuery v1.2 shortly and the 
custom tags you're building could be a very nice fit.


http://www.reybango.com/index.cfm/2007/8/30/Rob-Gondas-AjaxCFC-Library-Important-News

Rey...
jQuery Project Team

[EMAIL PROTECTED] wrote:

Hi,

I have now set up a blog with the purpose to show up integration ways
between cf and jQuery (basically converting jquery plug-in in easy
reusable Custom Tags).
Any suggestion, ideas, code and so on should be really appreciate.

The blog is www.andreacfm.com

Thanks

Andrea Campolonghi




[jQuery] Release: Accordion 1.5

2007-08-30 Thread Erin Doak
I agree that people like the animation effects. 
I'm all for them. The problem is that if a 
menu/header is still in the opening animation 
process and the mouse is moved to a new 
menu/header item the new menu doesn't open at all 
- no matter how long one waits. That to me is a 
bug.


Erin



In the real world, things dont always happen instantly.

A sliding door (like on Star Trek) opens with a 
whoosh.  I am sure they "could" have built a 
door "shield" that was opened instantly rather 
than a whooshing door.  Especially with their 
futuristic technology.  However, people like the 
whoosh.  It's possible to have it too long, like 
whosh.  In which case 
you bump into the door with your nose ( i.e. 
Supermarket Doors) or "whsh" in which case it 
feels like the "power" it turned up too high, 
which is jarring.


The perfect effect is timed to the Goldilocks 
principle.  Not too quick, not too slow, not the 
instant the user puts their mouseover, not 
waiting too long to fire, not too much bounce, 
not too robot-like.  It should be "just-right".


Glen

On 8/30/07, Erin Doak 
<[EMAIL PROTECTED]> 
wrote:


In my opinion (and only my opinion) i think 
that it is kinda disturbing if we hover on one 
item and immediately if we hover on another 
item, the accordian doesn't open for the second 
item.




I think that the interface should always be 
responsive to the user. If the mouse is over a 
menu it should activate. The animation is really 
just an 'extra'. The ability to navigate a web 
site by accessing the menu items is of paramount 
importance.


One possible solution might be to offer either behavior as an option.

Erin






On 8/26/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:


Ganeshji Marwaha schrieb:

 Jörn, this is fantastic... very re-usable as well..

 I have a question/suggestion though... When i hover over one of the
 items, and before the animation completes if i hover over another
 item, the animation for the second item doesn't occur. Now, i will
 have to move my mouse out of that item and hover over it again to get
 the other item to expand. Is it something that can be fixed, or is it
 a known limitation that we will have to live by...


Well, so far that was intended to be a feature, not a bug. The
combination of long-running animations with hover is annoying, right.
But it is also annoying when the accordion keeps changing on each mouse
move, even when you didn't intend to get a different chunk. "Fixing" it
isn't difficult, but it is difficult to decide what the right fix
actually is. Your help is appreciated.

-- Jörn


[jQuery] Re: Release: Accordion 1.5

2007-08-30 Thread Glen Lipka
In the real world, things dont always happen instantly.

A sliding door (like on Star Trek) opens with a whoosh.  I am sure they
"could" have built a door "shield" that was opened instantly rather than a
whooshing door.  Especially with their futuristic technology.  However,
people like the whoosh.  It's possible to have it too long, like
whosh.  In which case you bump into the door with
your nose (i.e. Supermarket Doors) or "whsh" in which case it feels like the
"power" it turned up too high, which is jarring.

The perfect effect is timed to the Goldilocks principle.  Not too quick, not
too slow, not the instant the user puts their mouseover, not waiting too
long to fire, not too much bounce, not too robot-like.  It should be
"just-right".

Glen

On 8/30/07, Erin Doak <[EMAIL PROTECTED]> wrote:
>
>  In my opinion (and only my opinion) i think that it is kinda disturbing
> if we hover on one item and immediately if we hover on another item, the
> accordian doesn't open for the second item.
>
>
> I think that the interface should always be responsive to the user. If the
> mouse is over a menu it should activate. The animation is really just an
> 'extra'. The ability to navigate a web site by accessing the menu items is
> of paramount importance.
>
> One possible solution might be to offer either behavior as an option.
>
> Erin
>
>
>
>
> On 8/26/07,* Jörn Zaefferer* <[EMAIL PROTECTED]> wrote:
>
>
> Ganeshji Marwaha schrieb:
> > Jörn, this is fantastic... very re-usable as well..
> >
> > I have a question/suggestion though... When i hover over one of the
> > items, and before the animation completes if i hover over another
> > item, the animation for the second item doesn't occur. Now, i will
> > have to move my mouse out of that item and hover over it again to get
> > the other item to expand. Is it something that can be fixed, or is it
> > a known limitation that we will have to live by...
>
> Well, so far that was intended to be a feature, not a bug. The
> combination of long-running animations with hover is annoying, right.
> But it is also annoying when the accordion keeps changing on each mouse
> move, even when you didn't intend to get a different chunk. "Fixing" it
> isn't difficult, but it is difficult to decide what the right fix
> actually is. Your help is appreciated.
>
> -- Jörn
>
>
>


[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Brandon Aaron
The example you posted is a very specific bug in Safari and running it for
other browsers would be incorrect. We do feature/object checking when it is
possible.

--
Brandon Aaron

On 8/30/07, Matt Kruse <[EMAIL PROTECTED]> wrote:
>
>
> On Aug 30, 7:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > I was wondering why jquery would not automatically do a browser sniff,
> > and fall back to methods that non-supported browsers understand.
>
> Why browser sniff at all? Why not detect for supported methods and do
> what is supported.
>
> I'm a bit concerned at the level of browser sniffing already in
> jQuery, as has been pointed in a recent thread in a different group.
>
> For example,
>
> |  --jquery-1.1.4.js:1604-
> |  // check if target is a textnode (safari)
> |  if (jQuery.browser.safari && event.target.nodeType == 3)
> |event.target = originalEvent.target.parentNode;
>
> Why not just:
>
> if (event.target.nodeType == 3)
>event.target = originalEvent.target.parentNode;
>
> ?
>
> In some fringe cases, resorting to browser sniffing as a last resort
> may be justified, but surely some of the sniffing that exists in
> jQuery already is unnecessary.
>
> Matt Kruse
>
>
>


[jQuery] Re: Best of both jquery validate and jqueryyav

2007-08-30 Thread Jörn Zaefferer


Olivier Percebois-Garve schrieb:

Will "implies" be integrated anytime soon in validate ?


Could someone please explain how implies works like? I looked at the 
examples of YAV, but apart from the notion of dependencies I could 
figure out how it works. I'd be happy to integrate a similar feature 
into the validation plugin, once I understand what it does. Maybe its 
already possible and just not documented.


-- Jörn


[jQuery] Apple dashboard-style animation in jquery?

2007-08-30 Thread rolfsf


Is there an easy way to get the animation style used in the Apple dashboard
widgets that flips the widget over to reveal the 'back'? 

Thanks for any leads or tips
Rolf
-- 
View this message in context: 
http://www.nabble.com/Apple-dashboard-style-animation-in-jquery--tf4355930s15494.html#a12412783
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: how to block another ajax request when one is in the progress

2007-08-30 Thread Chris W. Parker

On Thursday, August 30, 2007 8:46 AM Xinhao Zheng said:

> i write a hover event for div,and in the handler use ajax to request
> data.but it give me a problem:
> it do the same ajax request many times(the number is the times i hover
> the div) when the first ajax didn't finished.

I don't have an answer to your specific question but maybe you should
consider changing the event trigger from hover to click? Alternatively
you might be able to utilize the BlockUI
(http://www.malsup.com/jquery/block/) plugin to prevent interaction
(clicks, hovers, etc.) with your page (or just that element) until the
first request has been completed.



Regards,
Chris.


[jQuery] Re: sending xml using $ajax()

2007-08-30 Thread Andy Martone

I've used LiveHTTPHeaders to inspect XML payloads in POST requests,
since they don't show up in Firebug.  You may want to give that a
shot:

http://livehttpheaders.mozdev.org/


On Aug 30, 11:22 am, ekene <[EMAIL PROTECTED]> wrote:
> $.ajax({
> contentType: 'text/xml',
> dataType: 'html',
> data:'asdfasdf client>2007asdf',
> processData: false,
> timeout: 5000,
> type: 'POST',
> url: 'saveXML.php',
> error: function(){
> alert('Error loading result from saveXML.php');
> },
> success: function(html){
> alert(html);
> }
>
> });
>
> my php file is simply echoing $_POST. each time an array is printed in
> the alert box. how do i view what parameters are being sent.



[jQuery] jCarousel feature request

2007-08-30 Thread KidsKilla

can you implement one thing: now, to rewind all items to the last one,
i must know how much of them, substract quantity of scrolled items and
set it to the property "start". but it nedded quite frequently.
maybe it'll be good idea to make a new value to the "start" property:
"last" or something...

sorry for my bad english =)



[jQuery] Cookie Plugin - Trying to get the values of elements in the array of cookies.

2007-08-30 Thread cfdvlpr

I'm using the cookie plugin.  And, I have created 4 cookies with it
and they are named:

Expanded[1]=3
Expanded[2]=18
Expanded[3]=27
Expanded[4]=37

I also keep a count of the number of cookies that have been created
and the name of this cookie is this:

onExpandCount=4


How do I loop through these cookies?  I can't seem to get the syntax
right.

Here's what I've tried:

function expandMenuUsingCookie() {
for (var index=0;index<$.cookie('onExpandCount');index++) {
//console.log(index);

YAHOO.widget.TreeView.getNode('menu',$.cookie('Expanded['+index
+']')).toggle();
}
}

There's something wrong with this line right about where I try to get
the value of the cookie:
YAHOO.widget.TreeView.getNode('menu',$.cookie('Expanded['+index
+']')).toggle();



[jQuery] Coldfusionistas

2007-08-30 Thread [EMAIL PROTECTED]

Hi,

I have now set up a blog with the purpose to show up integration ways
between cf and jQuery (basically converting jquery plug-in in easy
reusable Custom Tags).
Any suggestion, ideas, code and so on should be really appreciate.

The blog is www.andreacfm.com

Thanks

Andrea Campolonghi



[jQuery] Release: Accordion 1.5

2007-08-30 Thread Erin Doak
In my opinion (and only my opinion) i think that 
it is kinda disturbing if we hover on one item 
and immediately if we hover on another item, the 
accordian doesn't open for the second item.


I think that the interface should always be 
responsive to the user. If the mouse is over a 
menu it should activate. The animation is really 
just an 'extra'. The ability to navigate a web 
site by accessing the menu items is of paramount 
importance.


One possible solution might be to offer either behavior as an option.

Erin




On 8/26/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:


Ganeshji Marwaha schrieb:

 Jörn, this is fantastic... very re-usable as well..

 I have a question/suggestion though... When i hover over one of the
 items, and before the animation completes if i hover over another
 item, the animation for the second item doesn't occur. Now, i will
 have to move my mouse out of that item and hover over it again to get
 the other item to expand. Is it something that can be fixed, or is it
 a known limitation that we will have to live by...


Well, so far that was intended to be a feature, not a bug. The
combination of long-running animations with hover is annoying, right.
But it is also annoying when the accordion keeps changing on each mouse
move, even when you didn't intend to get a different chunk. "Fixing" it
isn't difficult, but it is difficult to decide what the right fix
actually is. Your help is appreciated.

-- Jörn


[jQuery] how to block another ajax request when one is in the progress

2007-08-30 Thread Xinhao Zheng

i write a hover event for div,and in the handler use ajax to request 
data.but it give me a problem:
it do the same ajax request many times(the number is the times i hover 
the div) when the first ajax didn't finished.

xinhaozheng


[jQuery] sending xml using $ajax()

2007-08-30 Thread ekene

$.ajax({
contentType: 'text/xml',
dataType: 'html',
data:'asdfasdf2007asdf',
processData: false,
timeout: 5000,
type: 'POST',
url: 'saveXML.php',
error: function(){
alert('Error loading result from saveXML.php');
},
success: function(html){
alert(html);
}
});

my php file is simply echoing $_POST. each time an array is printed in
the alert box. how do i view what parameters are being sent.



[jQuery] Access Settings in a "Sortable" Element

2007-08-30 Thread Brandon!

Using the Interface Plugin, I have created a "Sortable" element:
jQuery('#rank-products').Sortable();

In there I have passed params like:
handle: 'td.rank-handle'

Is it possible to reference that param?  I am trying to call it in a
function later, and I would like for this to be more generalized so
that I don't have to update a bunch of different spots if I ever
change something.



[jQuery] Re: $(html) error...I think. Please help, I'm stumped!

2007-08-30 Thread Josh Nathanson


I notice you are running an "each" method when the "find" is looking for an 
id ("#invoice").  This implies that you are looping over multiple elements 
with the same id.  This will mess things up as it is invalid to have 
multiple elements with the same id.  Try using "invoice" as a class rather 
than an id in your html.


invalid

-- Josh


- Original Message - 
From: "John Resig" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, August 30, 2007 9:36 AM
Subject: [jQuery] Re: $(html) error...I think. Please help, I'm stumped!




What version of jQuery are you using?

--John

On 8/30/07, Dustin Martin <[EMAIL PROTECTED]> wrote:


Hello everyone! My name is Dustin and was hoping I could get a little
help with a JQuery problem  I've run into. I just started using JQuery
and have been trying out a little AJAX when I ran into a problem. In
Firefox (using Firebug) I get the error:

ret[i].getElementsByTagName is not a function
r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));

Here is my Javascript code where the error appears to be.

$.ajax({
url: 'CS_AJAX_Server_Responder.cfm',
type: 'POST',
dataType: 'html',
timeout: 3,
data:
{Invoice:invoiceNum,Store:storeNum,Div:divNum,invoicevalidate:'true' },
error: function(){
$('#loadingimg').fadeOut("slow");
alert('Error accessing server. Please try 
again.');

},
success: function(html){
$('#loadingimg').fadeOut("slow");
alert('test message');

$(html).find('#invoice').each(function(){
var invalidDiv = $(this).text();
alert(invalidDiv);
});
}
});
}
}

My server side code is very simple.

invalid

The error appears to be caused by $(html).find() but I really do not
have a clue as to why.  Once I remove the  $(html).find() code it no
longer throws the error. The frustrating thing is that I had
everything working yesterday but it does not work any longer and I
have no idea what I changed that could have led to this error. In IE I
don't get any error but it doesn't proceed through the code like
normal. Please, any insight and help would be appreciated...this has
been driving me up the wall.






[jQuery] Re: $(html) error...I think. Please help, I'm stumped!

2007-08-30 Thread John Resig

What version of jQuery are you using?

--John

On 8/30/07, Dustin Martin <[EMAIL PROTECTED]> wrote:
>
> Hello everyone! My name is Dustin and was hoping I could get a little
> help with a JQuery problem  I've run into. I just started using JQuery
> and have been trying out a little AJAX when I ran into a problem. In
> Firefox (using Firebug) I get the error:
>
> ret[i].getElementsByTagName is not a function
> r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));
>
> Here is my Javascript code where the error appears to be.
>
> $.ajax({
> url: 'CS_AJAX_Server_Responder.cfm',
> type: 'POST',
> dataType: 'html',
> timeout: 3,
> data:
> {Invoice:invoiceNum,Store:storeNum,Div:divNum,invoicevalidate:'true' },
> error: function(){
> $('#loadingimg').fadeOut("slow");
> alert('Error accessing server. Please try again.');
> },
> success: function(html){
> $('#loadingimg').fadeOut("slow");
> alert('test message');
>
> $(html).find('#invoice').each(function(){
> var invalidDiv = $(this).text();
> alert(invalidDiv);
> });
> }
> });
> }
> }
>
> My server side code is very simple.
>
> invalid
>
> The error appears to be caused by $(html).find() but I really do not
> have a clue as to why.  Once I remove the  $(html).find() code it no
> longer throws the error. The frustrating thing is that I had
> everything working yesterday but it does not work any longer and I
> have no idea what I changed that could have led to this error. In IE I
> don't get any error but it doesn't proceed through the code like
> normal. Please, any insight and help would be appreciated...this has
> been driving me up the wall.
>
>


[jQuery] Re: Wrap JQuery into YUI namespace?

2007-08-30 Thread John Resig

Yes! With jQuery 1.1.4 you can do:

YAHOO.util.jQuery = jQuery.noConflict(true);

--John

On 8/30/07, howa <[EMAIL PROTECTED]> wrote:
>
> Is it possible?
>
> e.g.
>
> YAHOO.util.jQuery("#test").each(...);
>
>


[jQuery] Wrap JQuery into YUI namespace?

2007-08-30 Thread howa

Is it possible?

e.g.

YAHOO.util.jQuery("#test").each(...);



[jQuery] Re: Graceful degradation (Safari < 2)

2007-08-30 Thread Matt Kruse

On Aug 30, 7:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I was wondering why jquery would not automatically do a browser sniff,
> and fall back to methods that non-supported browsers understand.

Why browser sniff at all? Why not detect for supported methods and do
what is supported.

I'm a bit concerned at the level of browser sniffing already in
jQuery, as has been pointed in a recent thread in a different group.

For example,

|  --jquery-1.1.4.js:1604-
|  // check if target is a textnode (safari)
|  if (jQuery.browser.safari && event.target.nodeType == 3)
|event.target = originalEvent.target.parentNode;

Why not just:

if (event.target.nodeType == 3)
   event.target = originalEvent.target.parentNode;

?

In some fringe cases, resorting to browser sniffing as a last resort
may be justified, but surely some of the sniffing that exists in
jQuery already is unnecessary.

Matt Kruse




[jQuery] Re: What the heck??? Click event intermittently...

2007-08-30 Thread Rick Faircloth
I did have some inconsistencies after reloading a few times.

 

The second time. all was still well.

Third time.got a "page could not be found error" (could be on my end)

Fourth time.some links I clicked on would take me to the top of a new page

and sometimes the comments section would open.

 

Got some other stuff running on the page that might be interfering?

 

Rick

 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, August 30, 2007 11:45 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: What the heck??? Click event intermittently...

 

Try reloading the page a few times, then click on the links again. Like I
said, it works intermittently...

 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Thursday, August 30, 2007 10:28 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: What the heck??? Click event intermittently...

Worked on every comment link I clicked on the homepage.

 

Rick

 

 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, August 30, 2007 10:48 AM
To: [jQuery]
Subject: [jQuery] What the heck??? Click event intermittently...

 

On my blog users click the link at the bottom of each section to expand the
comments section for that post:

 

http://www.andyandjaime.com/

 

The problem is that it's working intemittently in IE7 (haven't tested 6
yet). I'll load the page, click the link and it'll work. Next time I load
the page, it WON'T work. It appears to be consistent in FF2...it works every
time. In IE7, sometimes the section expands as desired, sometimes the page
goes to the link in the href tag. It's like it completely ignores my jQuery
click handler.

 

Here's the relevant HTML


Comments :4: - View comments


(I know the link is bogus, but I'm just testing). 

 

Here's the jQuery code:

$('.openComments a').click(function(){
 
$(this).parents('.openComments').next('.comments').slideDown().parent('.comm
entShell').ScrollTo(800);
return false;
});

 

Please help!

 

 



 

Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 

<>

[jQuery] Re: Best of both jquery validate and jqueryyav

2007-08-30 Thread Olivier Percebois-Garve
Hi

So far I have been able to make custom error boxes with the following code:
  $(".error").each(function(i, n){
$formElement = $(n).next('input, select');
$offset = $formElement.offset();
$left =
$offset.left+$formElement.width()+$formElement.parent().next(".error_exclamation_mark").width();
$top = $offset.top;
$(n).wrap("");
$(n).before('Error');
$formElement.after('');
$formElement.wrap('');

$(n).parent(".errorBox").css('position',
'absolute').css('left', $left).css('top', $top);
  });

Open issues with that are :
- the code is being runned each time I hit the submit button, so the error
boxes are are duplicated.
 I dont know how to make it run just once.
-my dimension code get some positions wrong, I cant tell where it comes
from.

But that is peanuts compared to the pain of getting the "implies" rules to
work.
I just broke my head on that the whole afternoon and feel very frustrated.

The rules syntax seem easier on the yav website.

Sevir, you may want to add examples on your website.
If I can give some constructive critics:
-The code in the "alt" attribute may be indented. its just too long to read.
-Each example should have only one specific thing: for instance
http://projects.sevir.org/storage/yav/relationships.html
 that page demonstrates a relation + a custom rule.


Ok, that's what I can say for now, my brain is smoking ;-(

-Olivier


On 8/30/07, SeViR <[EMAIL PROTECTED]> wrote:
>
>
> I don't understand WHY you need pass a function for show the errors...
> The position of the
> errors in jQuery.YAV is related to the error element. So you can only
> pass jQuery transversing
> and manipulation functions ("after", "before", "prepend",). The rest
> (the error visualization) can
> be set using CSS. You can also play with error elements after the
> validation process using "onError"
> function.
>
> As I see, your code seems show the error in a layer box. This example
> with jQuery.YAV can help
> you (the first example):
>
> The code:
>
> http://letmehaveblog.blogspot.com/2007/08/some-ideas-using-jqueryyav-plugin.html
> Run the example (clicking in the Go! button):
> http://projects.sevir.org/storage/yav/idea1.html
>
> Maybe you have the idea using validation plugin and you don't see that
> you can do similar things using
> other methods ;-)
>
> Jose
>
> Olivier Percebois-Garve escribió:
> > Hi
> >
> > I have a dilema between jquery validate and jqueryyav.
> >
> > I am using validate which offers great flexibility in the error
> > placement, because I can pass a function to it :
> >
> > errorPlacement: function(error, element){ 
> >
> > jqueryYAV offers the "implies" that I need, but I cannot pass a
> > function to the error placement.
> > Its showError method looks like that :
> >
> > evalText = "jQuery('#"+ objError.id +"')." +
> > params.errorPosition +
> >   "(\"" +
> >   "<" + params.errorTag + " class='"+params.errorClass+"'>" +
> objError.msg + ""
> >
> >   + "\")";
> >
> > Is there a miracle solution ? ;-)
> > Will "implies" be integrated anytime soon in validate ?
> > Is jqueryYAV's code easily hackable in order to pass a function to the
> > errorPosition ?
> >
> > -Olivier
> >
> >
> >
> > PS: here is my actual errorPlacement code just to let know the sort of
> > thing I'm doing :
> >
> > errorPlacement: function(error, element){
> >   element.after(" > class=\"errorBox clearfix\"> > class=\"errorBoxTitle\">Error");
> >   $left =
> > element.offset
> ().left+element.width()+element.next(".error_exclamation_mark").width();
> >   $top = element.offset().top;
> >   element.siblings("div.errorBox").css('position',
> > 'absolute').css('left', $left).css('top', $top);
> >   error.appendTo(element.siblings("div.errorBox"));
> >   if ($.browser.msie) element.wrap(" > id=\"wrap_select_for_ie\">");
> > }
> >
> >
>
>
> --
> Best Regards,
> José Francisco Rives Lirola 
>
> SeViR CW · Computer Design
> http://www.sevir.org
>
> Murcia - Spain
>
>


[jQuery] Re: What the heck??? Click event intermittently...

2007-08-30 Thread Andy Matthews
Try reloading the page a few times, then click on the links again. Like I
said, it works intermittently...

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Thursday, August 30, 2007 10:28 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: What the heck??? Click event intermittently...



Worked on every comment link I clicked on the homepage.

 

Rick

 

 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, August 30, 2007 10:48 AM
To: [jQuery]
Subject: [jQuery] What the heck??? Click event intermittently...

 

On my blog users click the link at the bottom of each section to expand the
comments section for that post:

 

http://www.andyandjaime.com/

 

The problem is that it's working intemittently in IE7 (haven't tested 6
yet). I'll load the page, click the link and it'll work. Next time I load
the page, it WON'T work. It appears to be consistent in FF2...it works every
time. In IE7, sometimes the section expands as desired, sometimes the page
goes to the link in the href tag. It's like it completely ignores my jQuery
click handler.

 

Here's the relevant HTML


Comments :4: - View comments


(I know the link is bogus, but I'm just testing). 

 

Here's the jQuery code:

$('.openComments a').click(function(){
 
$(this).parents('.openComments').next('.comments').slideDown().parent('.comm
entShell').ScrollTo(800);
return false;
});

 

Please help!

 

 



 

Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 

<>

[jQuery] Re: What the heck??? Click event intermittently...

2007-08-30 Thread Rick Faircloth
Worked on every comment link I clicked on the homepage.

 

Rick

 

 

 

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, August 30, 2007 10:48 AM
To: [jQuery]
Subject: [jQuery] What the heck??? Click event intermittently...

 

On my blog users click the link at the bottom of each section to expand the
comments section for that post:

 

http://www.andyandjaime.com/

 

The problem is that it's working intemittently in IE7 (haven't tested 6
yet). I'll load the page, click the link and it'll work. Next time I load
the page, it WON'T work. It appears to be consistent in FF2...it works every
time. In IE7, sometimes the section expands as desired, sometimes the page
goes to the link in the href tag. It's like it completely ignores my jQuery
click handler.

 

Here's the relevant HTML


Comments :4: - View comments


(I know the link is bogus, but I'm just testing). 

 

Here's the jQuery code:

$('.openComments a').click(function(){
 
$(this).parents('.openComments').next('.comments').slideDown().parent('.comm
entShell').ScrollTo(800);
return false;
});

 

Please help!

 

 



 

Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249

[EMAIL PROTECTED]
www.dealerskins.com  

 

<>

[jQuery] Re: $.load(url) and IE fails to find CSS/JS

2007-08-30 Thread John Napiorkowski


--- Shelane <[EMAIL PROTECTED]> wrote:

> 
> Actually, this has been discussed quite a bit.
> 
>
http://groups.google.com/group/jquery-en/browse_thread/thread/6722e380538892b9/
> 
> I did manage to get scripts working properly in IE,
> with some trick
> that John Resig told me to try.  Look at the code I
> have in my
> examples pack:
> http://education.llnl.gov/jquery/

Hi,

Thanks for the reply.  I don't mean to hassle you, but
if you could be a bit more explicit as to the trick I
think lots of people would be grateful.  I searched
the group archive for 'john resig' you and IE trouble,
etc. but couldn't find the thread with the tricks and
the examples on your page are geared toward showing
Jquery, there is no reference to IE troubles and
workarounds.  I don't mind looking through code, but
if you could mention one of the examples that is using
the workaround I would be VERY grateful.

Thanks!

John 

> 
> On Aug 29, 12:41 pm, John Napiorkowski
> <[EMAIL PROTECTED]> wrote:
> > --- Michael Lo <[EMAIL PROTECTED]> wrote:
> >
> > > Try this
> >
> > > $.get('page.html',function(data){
> > > ($('#target').html(data);
> > > });
> >
> > > Michael
> >
> > The problem seems to be that IE strips script and
> > style tags on incoming with the xmlrequestobject
> and
> > firefox doesn't...
> >
> > I'm shocked that this issue isn't noticed or
> discussed
> > more, but I guess I'm just too new to this to know
> > these kinds of things.
> >
> > Does anyone know a way to force this behavior to
> > change on IE, or do I need to come up with a
> different
> > workaround?
> >
> > If someone assists me I promise to add details to
> the
> > wiki someplace obvious.
> >
> > Thanks!
> >
> > --John
> >
> > PS, if we could all try to not top post it will
> help
> > us follow long discussion threads!  Thanks!
> >
> >
> >
> >
> >
> > > On 8/24/07, John Napiorkowski
> <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > --- polyrhythmic <[EMAIL PROTECTED]> wrote:
> >
> > > > > John,
> > > > > What version of jQuery are you running?  And
> > > what
> > > > > are your browser
> > > > > versions?  Also,  tags must be placed
> > > inside
> > > > > the  tags.
> > > > > jQuery makes it easy to manipulate DOM
> styles
> > > from
> > > > > AJAX data, but if
> > > > > you would like to import styles as inline
> HTML
> > > you
> > > > > must style each
> > > > > invidual element using its style attribute:
> > > > > 
> >
> > > > > Charles
> > > > > doublerebel.com
> >
> > > > I am using the latest JQuery from the download
> > > area.
> >
> > > > What I have is a full webpage that I am
> > > dynamically
> > > > injecting some HTML into via $.load(...) and
> that
> > > > injected bit has a style and script block.  On
> > > FireFox
> > > > it seems that that scripts and styles get
> > > activated,
> > > > but on IE is doesn't.  For example if I put a
> >
> > > > 
> >
> > > > into the injected page, on FF I see the alert
> when
> > > the
> > > > page loads, but on IE I don't.
> >
> > > > To be honest this is a huge difference in
> > > behavior, so
> > > > I figure I can't be the only one that ran into
> the
> > > > trouble.  It looks like JQuery does some sort
> of
> > > eval
> > > > if it finds a script tag, but Maybe IE is
> removing
> > > > them.  Anyway, just trying to figure out If I
> can
> > > make
> > > > this work or not.
> >
> > > > Thanks for your reply and I hope I've
> described my
> > > > issue correctly.
> >
> > > > --John
> >
> > > > > On Aug 22, 9:47 pm, John Napiorkowski
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> >
> > > > > > I'm sure this is a stupid error on my part
> but
> > > > > it's
> > > > > > driving me crazy.  I have a bit of html
> that I
> > > > > want to
> > > > > > inject into my page like so:
> >
> > > > > > $('#target').load('page.html');
> >
> > > > > > Now this works, but I find that if
> 'page.html'
> > > > > > contains a script and style section IE
> won't
> > > > > process
> > > > > > it, but Firefox seems to.  What I mean is
> that
> > > if
> > > > > the
> > > > > > 'pages.html' itself contains some inline
> > > > > javascript
> > > > > > than Firefox will execute it but IE
> doesn't.
> >
> > > > > > So for example my 'pages.html' might look
> like
> > > > > (this
> > > > > > is abbreviated, but I think you'll get the
> > > idea):
> >
> > > > > > 
> > > > > >