[jQuery] Selector Help

2007-03-20 Thread BJ Clark
Hello,
I'm new to jQuery and I'm not sure if I have my selectors right and
how to test. The first part of my JS (below) is working, but the 2nd
part, the accordion stuff, is not. My relevant html and JS are below.

div id="ancillary">
   
   
   
   Recent Content
   open
   
   
   get_block_output('block_1'); ?>
   
   
   
   

   
   
   
   Categories & Links
   open
   
   
   get_block_output('block_2'); ?>
   
   
   
   

   
   
   
   Photos & Music
   open
   
   
   get_block_output('block_3'); ?>
   
   
   
   





//



Any ideas? Is there an easy way to tell if the click event is being
attached and if it's targeting the correct div?

Thanks,
BJ Clark

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Another jQuery powered Site

2007-03-20 Thread James McCabe
While in my surfing I came across a new text-editor that is using jQuery in
its product home page. I checked the "Sites using Jquery" list, but didn't
see this one. Hope this isn't a repeat:

 

http://www.e-texteditor.com/index.html

 

James R. McCabe, USN

IS Architecture and Security Analyst

pers // [EMAIL PROTECTED]

work // [EMAIL PROTECTED]

 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jquery.de

2007-03-20 Thread Paul Bakaus

Hi Michael,

I apologize for not contacting you earlier, I certainly read your mail but I
was pretty busy the last couple of days (weeks).

There is a special mailing list for people who currently work on the new
website, but I too would like to hear about the current progress.

Especially important is the localisation component of Drupal: Is there
anything to preview, so we can start localizing?

Michael: The probably best way is to do it like the other big players:
Forward jquery.de to jquery.com, and on jquery.com, we will do a
refferer/locale lookup and change to the right language.

Talk to you soon,

Paul


2007/3/20, Michael Fuerst <[EMAIL PROTECTED]>:


Hi,

sorry, this is could a little of topic:

Maybe some of you already found jquery.de and wondered what's it all about
and why there isn't happening anything:

I registered jquery.de a year ago, just befor jquery got really popular.
As I'm not a big mailing list fan I thought it would be nice to have a
german speaking jQuery forum.

I contacted John and told him about my plans and he thought it was okay,
but told me, that he is also working on a multi language webpage based on
Drupal for jQuery and we could also link jquery.de to the German part of
his "new" webpage.

We agreed to wait until his page is ready and not go on with a seperate
forum. Unfortunately almost one year hast past now and nothing happend.

I was contacted by Paul Bakaus of the jQuery developing team two month
ago, but all attempts to get in touch again faild.

So I was wandering what you poeple think about this. Should we wait until
hopefully one day the multi language page will be ready, or should we go
on and try to create a German speaking support forum on our own?

Don't get me wrong, I do not plan to create competition for this mailing
list or something where I get money out of it.
Nor is this ment to be any critcism for the development team or John.
I simply want to know, how to go on with jquery.de

Best regards, Michael


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
--
Paul Bakaus
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation and hidden fields problem

2007-03-20 Thread Jonathan Bloomer
Thats fantastic, I had no idea you could do that! You have just made
my day thanks Mike :)

On 20/03/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> Did you try:
>
> $('div:not(:hidden) .required').each(...
>
> > get all elements that have the class 'required' as long as the
> > container does not have the class 'hidden' but sometimes there are
> > loads of nested elements so its not always the parent as such. I've
> > tried 'filter' and 'not' but with success, anyone got any ideas (it
> > may be my syntax)?
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Release: Validation plugin beta 2

2007-03-20 Thread Aaron Heimlich

Jorn,

Great stuff so far!

I wonder, though, if it would be possible to have settings.rules and
settings.messages be organized by element name instead of element ID.

If I'm trying export server-side validation rules to your plugin (as JSON
and then converted into your settings format by a small wrapper), the
server-side validation processor may not know what each element's ID
attribute is.

I suppose, in my wrapper, I could take all of the element names and find the
appropriate IDs, but it seems like it would be easier if settings.rules and
settings.messages were organized by element name.

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


Dan G. Switzer, II schrieb:
> For example, for radio & checkbox elements you use the NAME attribute,
but
> for everything else you use the ID attribute. I just find it confusing
to
> try to explain the difference (on when you use what.)
>
Currently I'm internally passing around element IDs. I want to remove
that as far as possible, maybe I can reduce the need for IDs, too.

There is one good argument for using IDs: You can click the error labels
to focus the associated input, without any additional JS, just using the
for attribute.

--
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dimensions plugin Mozilla bug

2007-03-20 Thread Brandon Aaron
After some investigating, I'm not able to reproduce what you describe.
Could you possibly post up or send me a test case for this? The
highest the loop should go to is the body tag (in Mozilla). Once it
hits the body tag inside the loop you describe the code that gives you
an error *should* not run. Also, you might want to insure you have the
latest revision: 1485.

Thanks
--
Brandon Aaron

On 3/18/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> Thanks for the bug ... I'll get this fixed soon!
>
> --
> Brandon Aaorn
>
> On 3/18/07, Wizzud <[EMAIL PROTECTED]> wrote:
> >
> > While playing with Ext I encountered a problem in Firefox whereby the offset
> > function in dimensions was causing an elem.style error. The reason is that
> > there is a do-while loop if options.scroll is set, and that loop will go all
> > the way up to the document, at which point - if the browser is Mozilla - the
> > code attempts to check the css for overflow not visible and falls over
> > because document has no style.
> > I fixed this in my version by modifying line 260 of dimensions.js and
> > inserting a check for op, so the line now begins ...
> >
> > if (op && jQuery.browser.mozilla && 
> >
> > This prevents the jQuery.css() call failing at the document level.
> > --
> > View this message in context: 
> > http://www.nabble.com/dimensions-plugin-Mozilla-bug-tf3421935.html#a9537545
> > Sent from the jQuery Plugins mailing list archive at Nabble.com.
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal overlay problem in IE6, IE7

2007-03-20 Thread Laurent Yaish

Hi Brice and Benjamin,

Thanks for the replies. I looked at the z-index and it seemed to be fine. I
even manually set it in the css file for
.jqWindow to 3000, but it still didn't work.
The HTML for the windows is indeed nested several levels deep, so I will try
to make them direct children of  and
will let you know how that goes.

Thanks!

Laurent

On 3/20/07, Brice Burgess <[EMAIL PROTECTED]> wrote:


Laurent Yaish wrote:
> Hi,
>
> I just started using jqModal and it works fine in Firefox but in IE (6
> and 7) the window
> appears under the overlay. I tried turning on and off modal mode but
> it made no difference.
> I wish I could post the code, but it's for an intranet...
>
> I am using the CSS file from the jqModal site.
> Any ideas where I should start looking?
>
> Thanks,
>
> Laurent
Laurent,

  Try having the modal dialog outside of any containing elements (e.g. a
direct child of ) .. I have found that parent z-index && overflow
settings interfere with/take precedence of the target element's settings.

Hope this helps,

~ Brice

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] IE bug or bug in my code?

2007-03-20 Thread Jack Gleeson
In firefox the follow code works fine

 $(document).ready(function() {
  $(".form_con").hide();
  $("[EMAIL PROTECTED]").change( function() {
  if($.browser.safari) {
  if(this.value != 0)
  $(".form_con").hide();
  $("#form" + (this.value)).show();
  } else {
  if(this.value != 0) {
  $(".form_con").hide();
  $("#form" + (this.value)).fadeIn("slow");
  }
  }
  });
});

But in IE the above code does not work, I thought it would be an issue
with using swfobject with jquery buty I patched that up and the issue
is still unsolved.

It's pretty simple code, it hides 4 forms on load and then whatever
option you select from the select list, it shows the form. It works
fine in Firefox but in IE when I submit the page and do my regular
expression checks it shows all forms which is not correct.

Here is the on submit code,

$(document).ready(function() {
  $(".form").hide();
  $("#form" + ()).show();
  $('#conveyancing_list').attr('disabled', 'disabled');
  $("[EMAIL PROTECTED]").change( function() {
  if($.browser.safari) {
  if(this.value != 0)
  $(".form").hide();
  $("#form" + (this.value)).show();
  } else {
  if(this.value != 0) {
  $(".form").hide();
  $("#form" + (this.value)).fadeIn("slow");
  }
  }
  });
});

$contype being the form from the previous page which was selected,
this is so it shows the correct form errors.

Thanks alot

-- 
--

Jack Gleeson
Web Developer

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] (OT) DED|Chain

2007-03-20 Thread David Dexter
Sounds like the like the pronunciation issue I had with convincing my boss
to switch to FCKeditor!

David Dexter

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Cherne
Sent: Tuesday, March 20, 2007 7:39 PM
To: jQuery Discussion.
Subject: Re: [jQuery] (OT) DED|Chain

 

I have a hard enough time selling jQuery's 20 KB overhead. DED|Chain's 100
KB download is not practical for real-world sites. Not to mention the
pronunciation of DED|Chain comes off sounding like "Dead Chain"... and that
just makes it sound so informal / less business-like. 

But I like this guy's initiative and appreciate the hard work... if anything
this will probably help give jQuery more exposure.

Brian.

On 3/20/07, Kush Murod <[EMAIL PROTECTED]> wrote:

looks good
personally though, I prefer JQuery because it is simple and importantly
tiny-mini :)

Yansky wrote:
> I just saw this as I was browsing delicious. It seems to be another new
> library. It's based on YUI & has "the developer friendliess of jQuery". 
>
> http://dedchain.dustindiaz.com/
>

--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___ 
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] (OT) DED|Chain

2007-03-20 Thread Brian Cherne

I have a hard enough time selling jQuery's 20 KB overhead. DED|Chain's 100
KB download is not practical for real-world sites. Not to mention the
pronunciation of DED|Chain comes off sounding like "Dead Chain"... and that
just makes it sound so informal / less business-like.

But I like this guy's initiative and appreciate the hard work... if anything
this will probably help give jQuery more exposure.

Brian.

On 3/20/07, Kush Murod <[EMAIL PROTECTED]> wrote:


looks good
personally though, I prefer JQuery because it is simple and importantly
tiny-mini :)

Yansky wrote:
> I just saw this as I was browsing delicious. It seems to be another new
> library. It's based on YUI & has "the developer friendliess of jQuery".
>
> http://dedchain.dustindiaz.com/
>

--
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] (OT) DED|Chain

2007-03-20 Thread John Resig
The list is having serious problems. I'll be making a post stating
that we're moving to Google Groups very soon.

--John

On 3/20/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> I sent a message about this same thing an hour and a half ago. Is the list
> slow or is there something wrong on my end?
>
> --Erik
>
>
> On 3/20/07, Yansky <[EMAIL PROTECTED]> wrote:
> >
> > I just saw this as I was browsing delicious. It seems to be another new
> > library. It's based on YUI & has "the developer friendliess of jQuery".
> >
> > http://dedchain.dustindiaz.com/
> > --
> > View this message in context:
> http://www.nabble.com/%28OT%29-DED%7CChain-tf3437899.html#a9585995
> > Sent from the JQuery mailing list archive at Nabble.com.
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] (OT) DED|Chain

2007-03-20 Thread Erik Beeson

I sent a message about this same thing an hour and a half ago. Is the list
slow or is there something wrong on my end?

--Erik


On 3/20/07, Yansky <[EMAIL PROTECTED]> wrote:



I just saw this as I was browsing delicious. It seems to be another new
library. It's based on YUI & has "the developer friendliess of jQuery".

http://dedchain.dustindiaz.com/
--
View this message in context:
http://www.nabble.com/%28OT%29-DED%7CChain-tf3437899.html#a9585995
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] (OT) DED|Chain

2007-03-20 Thread Kush Murod
looks good
personally though, I prefer JQuery because it is simple and importantly 
tiny-mini :)

Yansky wrote:
> I just saw this as I was browsing delicious. It seems to be another new
> library. It's based on YUI & has "the developer friendliess of jQuery".
>
> http://dedchain.dustindiaz.com/
>   

-- 
Kush Murod, Web applications developer
Sensory Networks
[E] [EMAIL PROTECTED]
[W] www.sensorynetworks.com
[T] +61 2 8302 2745
[F] +61 2 9475 0316
[A] Level 6, 140 William Street East Sydney 2011


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation plugin: on blur using ajax

2007-03-20 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb:
> Gareth,
>
> In order to get this to work the way you have it, you'd have to do a
> "synchronous" call to the server, which wouldn't be AJAX (the "A" is for
> asynchronous.) :)
>
> Because the code you have is running asynchronously, the AJAX call is fired
> off and then the validation routine continues on its way. However, when the
> server responds back, your callback function runs--which displays the alert.
>
> You should be able to do a synchronous call using the $.ajax() function, but
> it's pretty much always a bad idea to rely on synchronous operations (since
> if something happens during the transmission--it can really cause problems.)
>
> For asynchronous validation, I'd recommend doing those as a separate remote
> call and then have once the validation returns, have it fire off the rest of
> the local validation. You could build a queuing of remote validation rules
> that get fired off and once all the rules have returned, run the local
> validation.
>
> Just be aware that AJAX validation can really cause UI issues if the server
> is unresponsive.
>   
Hardly anything to add, thanks Dan, once again.

I still want to enable client-side validation on submit and keyup and 
ajax validation on blur without to much effort on the clients side (the 
user of the plugin).

So far you have to manully trigger the ajax validation, and then use the 
validator object (returned by the validate method) to display error 
messages via the showErrors() method ( 
http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatorprotoypeshowErrorsMap
 
).

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Release: Validation plugin beta 2

2007-03-20 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb:
>> I'd have to take a look at your demo page, but it sounds like what you
>> need to use is the errorPlacement option. That allows you to customize
>> the placement of generated labels (instead of the default, insert after
>> invalid element). Let me know if that doesn't work in your scenario.
>> 
>
> I guess I could use the errorPlacement, but that can get ugly when it's
> really only one error message you want to move.
>
> Take a look at your example page:
> http://jquery.bassistance.de/validate/demo-test/
>
> My code is almost identical (because it's seeded from your example.)
> However, on the "Please agree to our policy" line, I've moved the checkbox
> *before* the phrase--which is generally where people put it.
>
> When you do this, the default placement for this one label isn't in a good
> spot--it gets placed between the checkbox and the text. My work around was
> to put this line after the "please agree" text:
>
> 
>
> Having to add the "generated" attribute makes the markup fail validation.
>   
Thanks for detailing this example. If have placement of generated labels 
at radio buttons and checkboxes still on my know issues list, this 
should help solving that.

I'm not 100% sure how you would like to have the error message 
displayed, you could paste a more complete example? Or page? Whatever 
shows where the error should be in relation to the checkbox.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Chris W. Parker
On Tuesday, March 20, 2007 8:18 AM amircx <> said:

> im trying to see some working online examples of sortable plugin and
> its seems there is no such thing execept the offical website.. .why
> pepole dont use it?

Do you mean this? http://interface.eyecon.ro/demos/sort.html

If so, there's not really any integration required. You write a PHP
function that loops through your array to write the appropriate HTML.
And voila, you're done.

If I'm missing something please let me know.

> i see the scriptaculs thing that rule on the web...
> maybe its because there are working examples of scriptacouls with
> php/mysql integration?

Can you give an example?



Chris.



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Ⓙⓐⓚⓔ
I always assumed the css was pre-fetched and cached because of the
http headers (that are derived from the )

Link: ; /="/"; rel="stylesheet"; type="text/css"

is generated by apache when a link is in the head. But I've never
served a page with a fake header to prove it.

On 3/20/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Aaron Heimlich schrieb:
> >
> > On 3/20/07, *Matt Stith* <[EMAIL PROTECTED]
> > > wrote:
> >
> > The browser will cache scripts and css included in the header, but
> > not anywhere else.
> >
> >
> > Really!? Where did you get that from?
>
> I'd like to know that as well. How would a browser distinguish where
> from the DOM an external file is loaded? Why should images be cached
> then, when they're included in the body only?
>
> That may be true for external style sheets, but only because you can
> only include external style sheets in the head.
>
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE how I love thee - effects happening twice

2007-03-20 Thread Tom Holder

Hi Jim,

Did you find a solution to this? I'm getting exactly the same thing and it's
driving me bonkers :) I've tried clearing styles after the highlight but
with no joy.

Thanks
Tom

On 28/02/07, Priest, James (NIH/NIEHS) [C] <[EMAIL PROTECTED]> wrote:


OK - I finally got around to looking at things in IE (everything works
great in FF)

I'm using the fade (highlight) effect from the interface library and
what happens is when the fade comes in - it fires twice.

My script is about as simple as you can get:


  $(document).ready(function(){
$('#warning').Highlight(2000, '#74');   // fades in
background color
});


It seems to botch up in both IE6 and 7.  No problems or errors in FF.

Any ideas? Is there a jQuery FAQ anywhere?

Thanks!
Jim

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Tom Holder

Technical Director
SimpleWeb Limited
Great websites. Low cost. No catch.

http://www.simpleweb-online.co.uk/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation plugin: on blur using ajax

2007-03-20 Thread Dan G. Switzer, II
Gareth,

In order to get this to work the way you have it, you'd have to do a
"synchronous" call to the server, which wouldn't be AJAX (the "A" is for
asynchronous.) :)

Because the code you have is running asynchronously, the AJAX call is fired
off and then the validation routine continues on its way. However, when the
server responds back, your callback function runs--which displays the alert.

You should be able to do a synchronous call using the $.ajax() function, but
it's pretty much always a bad idea to rely on synchronous operations (since
if something happens during the transmission--it can really cause problems.)

For asynchronous validation, I'd recommend doing those as a separate remote
call and then have once the validation returns, have it fire off the rest of
the local validation. You could build a queuing of remote validation rules
that get fired off and once all the rules have returned, run the local
validation.

Just be aware that AJAX validation can really cause UI issues if the server
is unresponsive.
 
-Dan



>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of Gareth Hughes
>Sent: Tuesday, March 20, 2007 4:52 PM
>To: jQuery Discussion.
>Subject: [jQuery] Validation plugin: on blur using ajax
>
>I've been playing with Jörn's excellent validation plugin (beta 2) to try
>and get it to validate individual fields using ajax on blur. It's a pretty
>basic attempt (because I'm sure Jörn is going to do something much better
>soon :), but I've got stuck and I can't fathom out why. I've added a new
>method called remote that I call in my rules like this:
>
>headerx: {remote: "/gen/valid.cfm"}
>
>And in the validate.js the new method looks like this:
>
>remote: function(value, element, remoteurl) {
>$.getJSON(remoteurl+"?value="+value,
>function(data){
>//alert(data.SUCCESS);
>if(data.SUCCESS == 'true'){
>return true;
>}
>});
>},
>
>It works to point; the validation page is called and the value is passed
>correctly, the validation page does its stuff and passes back true or false
>depending on the result being good or bad and the alert displays the
>correct
>true/false result. But, I can't seem to get the 'if' statement to work and,
>even if I put 'return true' above the 'if' (but below the $.getJSON) it
>always returns false.
>
>This is the first time I've used jQuery so A) I'm pretty pleased I got this
>far and B) if what I'm doing looks stupid, please forgive me :)
>
>If anyone can offer a clue I'd appreciate it.
>
>Thanks
>
>Gareth
>
>
>___
>jQuery mailing list
>discuss@jquery.com
>http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Release: Validation plugin beta 2

2007-03-20 Thread Dan G. Switzer, II
>I'd have to take a look at your demo page, but it sounds like what you
>need to use is the errorPlacement option. That allows you to customize
>the placement of generated labels (instead of the default, insert after
>invalid element). Let me know if that doesn't work in your scenario.

I guess I could use the errorPlacement, but that can get ugly when it's
really only one error message you want to move.

Take a look at your example page:
http://jquery.bassistance.de/validate/demo-test/

My code is almost identical (because it's seeded from your example.)
However, on the "Please agree to our policy" line, I've moved the checkbox
*before* the phrase--which is generally where people put it.

When you do this, the default placement for this one label isn't in a good
spot--it gets placed between the checkbox and the text. My work around was
to put this line after the "please agree" text:



Having to add the "generated" attribute makes the markup fail validation.

-Dan


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Hierarchical Dropdown menu?

2007-03-20 Thread Brad Perkins
Roman and Christopher,

Thanks for the suggestions. I'll have a closer look at both of these.

-- Brad

On 3/20/07, Roman Weich <[EMAIL PROTECTED]> wrote:
> Brad Perkins schrieb:
> > Is there a JQuery implementation of a hierchical dropdown menu? I'm
> > looking for something that could replace an existing user interface
> > that has multiple  menus that provide a drilldown interface
> > with a single hierarchical menu.
> >
> How about http://p.sohei.org/jquery-plugins/clickmenu/
>
> Cheers,
> /rw
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] [JQuery] Attribute selector

2007-03-20 Thread Glen Lipka

My expandos are like school in the summer.  No Class.
My html is like my father.  No Style.


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


Klaus Hartl schrieb:
> Klaus Hartl schrieb:
>
>> It's a common misunderstanding that classes are
>> for style.
>>
>
> ... that classes are for style *only*.
>
No class, no style!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Klaus Hartl
Aaron Heimlich schrieb:
> 
> On 3/20/07, *Matt Stith* <[EMAIL PROTECTED] 
> > wrote:
> 
> The browser will cache scripts and css included in the header, but
> not anywhere else.
> 
> 
> Really!? Where did you get that from?

I'd like to know that as well. How would a browser distinguish where 
from the DOM an external file is loaded? Why should images be cached 
then, when they're included in the body only?

That may be true for external style sheets, but only because you can 
only include external style sheets in the head.



-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Hierarchical Dropdown menu?

2007-03-20 Thread Roman Weich
Brad Perkins schrieb:
> Is there a JQuery implementation of a hierchical dropdown menu? I'm
> looking for something that could replace an existing user interface
> that has multiple  menus that provide a drilldown interface
> with a single hierarchical menu.
> 
How about http://p.sohei.org/jquery-plugins/clickmenu/

Cheers,
/rw

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal overlay problem in IE6, IE7

2007-03-20 Thread Benjamin Sterling

Laurent,
I would say it is a zindex issue, since we can't look at any code this could
be a pretty good guessing game :)

Can you post what you have and if you are using firebug, take a look at the
zindex thru the dom inpector.

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Validation plugin: on blur using ajax

2007-03-20 Thread Gareth Hughes
I've been playing with Jörn's excellent validation plugin (beta 2) to try 
and get it to validate individual fields using ajax on blur. It's a pretty 
basic attempt (because I'm sure Jörn is going to do something much better 
soon :), but I've got stuck and I can't fathom out why. I've added a new 
method called remote that I call in my rules like this:

headerx: {remote: "/gen/valid.cfm"}

And in the validate.js the new method looks like this:

remote: function(value, element, remoteurl) {
$.getJSON(remoteurl+"?value="+value,
function(data){
//alert(data.SUCCESS);
if(data.SUCCESS == 'true'){
return true;
}
});
},

It works to point; the validation page is called and the value is passed 
correctly, the validation page does its stuff and passes back true or false 
depending on the result being good or bad and the alert displays the correct 
true/false result. But, I can't seem to get the 'if' statement to work and, 
even if I put 'return true' above the 'if' (but below the $.getJSON) it 
always returns false.

This is the first time I've used jQuery so A) I'm pretty pleased I got this 
far and B) if what I'm doing looks stupid, please forgive me :)

If anyone can offer a clue I'd appreciate it.

Thanks

Gareth


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin released: textify. PROBLEMS UNSOLVED

2007-03-20 Thread Jörn Zaefferer
Abel Tamayo schrieb:
>  but others like support for snippets I don't even know what that 
> means. Also, I couldn't find better icons for foreground and 
> background colors; I thought those were OK.
Okay, I write together a "usecase", more details hopefully coming later.

I want to write a post on my blog containing a few code snippets. 
Something about jQuery. So I start with a few paragraphs of text, maybe 
adding a bit bold text here and there, or a few subheadlines. Now comes 
the first HTML snippet I want to present. I copy a bit of HTML from a 
demo page, and insert it as escaped HTML into the page. Here the editor 
has to present a one- or two-click approach of inserting this: 
(pasted, escaped html).
A few lines later I want to insert a bit JavaScript, no escaping 
neccessary, but I want to have the correct pre/code tags around it: 
(pasted js).
Another few lines later I have some inline Javascript, somewhere in a 
sentence: (pasted js).

I wouldn't mind configuring support for JS and other languages I'd like 
to use, but at least the HTML support with escaping must be built-in.

The actualy syntax-highlighting on the code elements (according to the 
given class) is done by the excellent Chili plugin 
(http://www.mondotondo.com/aercolino/noteslog/?cat=8).

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jqModal overlay problem in IE6, IE7

2007-03-20 Thread Laurent Yaish

Hi,

I just started using jqModal and it works fine in Firefox but in IE (6 and
7) the window
appears under the overlay. I tried turning on and off modal mode but it made
no difference.
I wish I could post the code, but it's for an intranet...

I am using the CSS file from the jqModal site.
Any ideas where I should start looking?

Thanks,

Laurent
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New Window Handle?

2007-03-20 Thread Jörn Zaefferer
Eric Mckenna schrieb:
> Found one piece to my puzzle.
> There is no $(expr, context) in 1.0.3. 
> That function comes with 1.1.2
>
>   
That isn't the right piece. I'm pretty sure that $(expr, context) 
already existed in 1.0.3, its just that we worked on the documentation.

The issue that was fixed in 1.1.0 is this: You are using an ID selector 
with a context, but jQuery 1.0.3 ignores that context and simply uses 
document.getElementById.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New Window Handle?

2007-03-20 Thread emckenna

Here's the original post, not sure what happened to it ...

I'm stumped.
I'm opening another browser window to display a print friendly page.  For
the "print" window,
I'm using JQuery to change the style sheet.
I thought all I would have to do is use a css selector with the context of
the "print" window.

What am I doing wrong?

Here's my code.
print_win = window.open(window.location).focus();
$("div#class1", print_win.document ).css("display","none");
$("div#class2", print_win.document).css("display","none");
...

this is kicked off from an onclick event from an anchor tag.

Using JQuery 1.0.3 with Drupal 4.7 via the jquery47 Drupal Module.


Thanks in Advance,
eric mckenna. 


emckenna wrote:
> 
> Found one piece to my puzzle.
> There is no $(expr, context) in 1.0.3. 
> That function comes with 1.1.2
> 
> -- 
> Eric Mckenna
> Software Developer
> Phase2 Technology
> [EMAIL PROTECTED]
> 
> www.phase2technology.com
> Web solutions that fit your business.
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-New-Window-Handle--tf3434871.html#a9581235
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin released: textify. PROBLEMS UNSOLVED

2007-03-20 Thread Kenneth

It might be because execCommand() is a proprietary, IE-only feature. Not
sure how it would've worked in FF unless you were using a different
implementation at the time...


On 3/19/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:


Hi everyone.

Finally I'm releasing the plugin I've been so busy developing in the last
month. Textify (see homepage)  It's a
function that transforms a regular iFrame element into a text editor and I
hope it will serve everyone who needs it well. Think of all the
possibilities: email applications, blog, forums, maybe chats...

First thanks to everyone who helped me in developing this plugin (see
acknowlegments in the webpage).

Now, and this is making me crazy: I swear the code worked fine under FF2 a
week ago, but now I'm getting an exception each time I try to apply a style
(any kind of style). These is the exceprt of code that triggers the
exception:

doRichEditCommand: function(aName, aArg){
  try {
private.document.execCommand(aName, false, aArg);
   } catch (er){
if (window.console) console.log(er)
else alert(er);
  }
private.iFrame.contentWindow.focus();
}

So basically now it works pretty well in IE6, but not in Firefox and I
don't understand why. I even tried disabling some of my plugins in case they
where messing it up or something, but nothing, so I would be really thankful
if someone could take a look at it and test it themselves.

Thanks everyone.

Abel.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] [JQuery] Attribute selector

2007-03-20 Thread Jörn Zaefferer
Klaus Hartl schrieb:
> Klaus Hartl schrieb:
>   
>> It's a common misunderstanding that classes are 
>> for style.
>> 
>
> ... that classes are for style *only*.
>   
No class, no style!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin released: textify. PROBLEMS UNSOLVED

2007-03-20 Thread Jörn Zaefferer
Abel Tamayo schrieb:
>
> is it possible to bind it to an input field or a textarea? Without
> javascript the iframe has no function on the page. I think the
> easiest way to do this is to check if the tag is an iframe, if
> it's not get the dimensions of the element and replace it with an
> iframe.
>
>
> I think that's a wonderful idea. I add it to the to-do list.
I second that! The serverside code can the simply generate a plain 
textarea that is transformed on the client-side.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Release: Validation plugin beta 2

2007-03-20 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb:
>
> Jorn,
>
> Also, while preparing my demo I found I needed to explicitly declare 
> in the HTML where a validation error might appear for a given form 
> field. I had to actually go into the code to determine the correct way 
> to format the  tag.
>
> What happens if you want a static message, you do:
>
> 
>
> Please select at least two topics you'd like to receive.
>
> 
>
> If an error occurred for a field with the ID or NAME attribute of 
> “topic”, this label would be displayed.
>
> However, if you want to define the exact placement of an error for a 
> dynamic message (i.e. generated from the message maps or from the 
> rules themselves) you have to do:
>
> 
>
> I had to dig through the code to figure out I needed to manually add 
> the “generated” attribute. Also, doing this makes the markup invalid.
>
> I’d like to see a better method of mapping individual error messages 
> to the correct element on the screen. Perhaps another mapping option:
>
> $("#form").validate({
>
> rules: {email: {required: true}},
>
> messages: {email: "Please enter an e-mail address."},
>
> errorElement: {email: "#errorEmail"}
>
> });
>
> Where the errorElement structure would allow you to define the element 
> in which the error gets displayed. I’m not sure I like the name 
> “errorElement”, but you get the idea.
>
I'd have to take a look at your demo page, but it sounds like what you 
need to use is the errorPlacement option. That allows you to customize 
the placement of generated labels (instead of the default, insert after 
invalid element). Let me know if that doesn't work in your scenario.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Release: Validation plugin beta 2

2007-03-20 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb:
> For example, for radio & checkbox elements you use the NAME attribute, but
> for everything else you use the ID attribute. I just find it confusing to
> try to explain the difference (on when you use what.)
>   
Currently I'm internally passing around element IDs. I want to remove 
that as far as possible, maybe I can reduce the need for IDs, too.

There is one good argument for using IDs: You can click the error labels 
to focus the associated input, without any additional JS, just using the 
for attribute.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Plugin released: textify. PROBLEMS UNSOLVED

2007-03-20 Thread Jörn Zaefferer
Abel Tamayo schrieb:
>
> I don't really have any idea about your current issue.
>
>
> Well, I guess that means my Firefox is broken, since I'm still getting 
> that error wich sucks cause I'd hate to reinstall it with all the 
> plugins, passwords, etc...
I get the same exception! We either have the same plugins installed 
causing the issues, or its something else (which is more likely).
> As for the rest of your recommendations (all of them very 
> appreciated), some of them I already had in mind, but others like 
> support for snippets I don't even know what that means. Also, I 
> couldn't find better icons for foreground and background colors; I 
> thought those were OK.
Ok, I try to put a little specification together for code snippets, 
hopefully that gets you the right idea. Its something I'm really missing 
from virtually every browser rich text editor I've seen so far.

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Aaron Heimlich

On 3/20/07, Matt Stith <[EMAIL PROTECTED]> wrote:


The browser will cache scripts and css included in the header, but not
anywhere else.



Really!? Where did you get that from?

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Matt Stith

The browser will cache scripts and css included in the header, but not
anywhere else.

On 3/20/07, Kush Murod <[EMAIL PROTECTED]> wrote:


 Hi Klaus,

When you say cached you mean browser caches them for you *OR* do you need
to do something else yourself

Cheers,
Kush

Klaus Hartl wrote:

Chris Domigan schrieb:

 Also scripts linked in the head can be cached.

- Chris

 All *external* scripts can be cached, no matter if you include them in
the head or elsewhere.


-- Klaus


___
jQuery mailing list
[EMAIL PROTECTED]://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE bug or bug in my code ?

2007-03-20 Thread spinnach
yup, all my doctypes are xhtml1.0 transitional, all markup 100% valid..

dennis.

abba bryant wrote:
> Have you both double checked your doc-types? And your markup? The only time I
> have found ready to fail was when I was either in quirks mode or my dom was
> mangled somehow.
> 
> Abba
> 
> 
> 
> spinnach wrote:
>> i've also had issues with this, not only in ie but sometimes in firefox 
>> too.. and ie 6&7 occasionally crashed or couldn't load the page when 
>> using $().ready() so now i just call the init function from the footer 
>> of the page.. i know it's kind of ugly but it works every time and 
>> doesn't crash :)..
>>
>> oh and it sometimes happens for me on http://jquery.com/api too 
>> ($().ready not firing - both in ie6&7 and firefox2)..
>>
>> dennis.
>>
>> Jack Killpatrick wrote:
>>> FWIW, I've had issues in IE 6/7 with $(document).ready() not firing 
>>> something in it's function. I've never dug into exactly why it happens, 
>>> but found a workaround using setTimeout, like this:
>>>
>>> $(document).ready(function() {
>>> setTimeout(
>>> function(){
>>>your code that isn't firing in IE here
>>> }
>>> , ( $.browser.msie ) ? 500 : 0
>>> )
>>> });
>>>
>>> So, maybe give that a try. FWIW, we (me and the folks I work with) found 
>>> that 500ms seemed to do the trick, but 100ms didn't.
>>>
>>> Also, If anyone knows why that's needed for some things to fire via 
>>> $(document).ready, I'd love to know. We've also worked around it by 
>>> doing these things:
>>>
>>> 1. putting our $(document).ready at the end of the HTML page (after the 
>>> objects that we need ready).
>>> 2. used setTimeout() to check for the presence of the object(s) we need 
>>> ready, and when they become ready, binding to them.
>>>
>>> - Jack
>>>
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
> 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE bug or bug in my code ?

2007-03-20 Thread Jack Killpatrick
I think mine were using 4.0 (or 4.01) transitional, and I did not have 
the option to switch that to XHTML.


- Jack

abba bryant wrote:

Have you both double checked your doc-types? And your markup? The only time I
have found ready to fail was when I was either in quirks mode or my dom was
mangled somehow.

Abba



spinnach wrote:
  
i've also had issues with this, not only in ie but sometimes in firefox 
too.. and ie 6&7 occasionally crashed or couldn't load the page when 
using $().ready() so now i just call the init function from the footer 
of the page.. i know it's kind of ugly but it works every time and 
doesn't crash :)..


oh and it sometimes happens for me on http://jquery.com/api too 
($().ready not firing - both in ie6&7 and firefox2)..


dennis.

Jack Killpatrick wrote:

FWIW, I've had issues in IE 6/7 with $(document).ready() not firing 
something in it's function. I've never dug into exactly why it happens, 
but found a workaround using setTimeout, like this:


$(document).ready(function() {
setTimeout(
function(){
   your code that isn't firing in IE here
}
, ( $.browser.msie ) ? 500 : 0
)
});

So, maybe give that a try. FWIW, we (me and the folks I work with) found 
that 500ms seemed to do the trick, but 100ms didn't.


Also, If anyone knows why that's needed for some things to fire via 
$(document).ready, I'd love to know. We've also worked around it by 
doing these things:


1. putting our $(document).ready at the end of the HTML page (after the 
objects that we need ready).
2. used setTimeout() to check for the presence of the object(s) we need 
ready, and when they become ready, binding to them.


- Jack

  


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Daemach2

I think this works.  You're used to using classnames, but most folks using
jQuery are expecting this type of interface in a plugin.

So if I want to use tablefilter/sort I can pass a list of columns or column
names?  single column references to autosort/filter?


Matt Kruse-2 wrote:
> 
>> What is the jQuery interface going to look like?
> 
> It will simply expose methods like
>  .autosort()
>  .autofilter()
>  .autopage()
>  .tablesort()
>  .tablefilter()
>  .tablepage()
> 
> that hook into the jQuery syntax, either on document.ready or triggered
> manually. Ideally, I think the unobtrusive classname-driven functionality
> should be preferred, but the above style will be there in case more
> complex
> things need to be done.
> 
> Are there any other hooks specifically into jquery that you think would be
> beneficial?
> 
> Matt
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/anyone-success-to-inegrate-sortable-with-mysql-php--tf3434368.html#a9579880
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE bug or bug in my code ?

2007-03-20 Thread abba bryant

Have you both double checked your doc-types? And your markup? The only time I
have found ready to fail was when I was either in quirks mode or my dom was
mangled somehow.

Abba



spinnach wrote:
> 
> i've also had issues with this, not only in ie but sometimes in firefox 
> too.. and ie 6&7 occasionally crashed or couldn't load the page when 
> using $().ready() so now i just call the init function from the footer 
> of the page.. i know it's kind of ugly but it works every time and 
> doesn't crash :)..
> 
> oh and it sometimes happens for me on http://jquery.com/api too 
> ($().ready not firing - both in ie6&7 and firefox2)..
> 
> dennis.
> 
> Jack Killpatrick wrote:
>> FWIW, I've had issues in IE 6/7 with $(document).ready() not firing 
>> something in it's function. I've never dug into exactly why it happens, 
>> but found a workaround using setTimeout, like this:
>> 
>> $(document).ready(function() {
>> setTimeout(
>> function(){
>>your code that isn't firing in IE here
>> }
>> , ( $.browser.msie ) ? 500 : 0
>> )
>> });
>> 
>> So, maybe give that a try. FWIW, we (me and the folks I work with) found 
>> that 500ms seemed to do the trick, but 100ms didn't.
>> 
>> Also, If anyone knows why that's needed for some things to fire via 
>> $(document).ready, I'd love to know. We've also worked around it by 
>> doing these things:
>> 
>> 1. putting our $(document).ready at the end of the HTML page (after the 
>> objects that we need ready).
>> 2. used setTimeout() to check for the presence of the object(s) we need 
>> ready, and when they become ready, binding to them.
>> 
>> - Jack
>> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/IE-bug-or-bug-in-my-code---tf3432817.html#a9579831
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Docs for id and name functions?

2007-03-20 Thread Aaron Heimlich

No problem. HTH

On 3/20/07, Brad Perkins <[EMAIL PROTECTED]> wrote:


Thanks for the clarification.

-- Brad

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Docs for id and name functions?

2007-03-20 Thread Brad Perkins
Thanks for the clarification.

-- Brad

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Docs for id and name functions?

2007-03-20 Thread Brad Perkins
I stumbled across some JQuery cheatsheets for an older version. In the
DOM/Attributes section there were references to the id and name
functions. I also found them in some code examples in this lists'
archives. I don't see these in the latest online docs (1.1.2). Were
these commands removed?

If not, are these simply shortcuts for attr('id) and attr('name')?

Thanks

Brad

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Docs for id and name functions?

2007-03-20 Thread Aaron Heimlich

On 3/20/07, Brad Perkins <[EMAIL PROTECTED]> wrote:


Were these commands removed?



Yes, they were removed in 1.1 as part of a general cleaning of the API

If not, are these simply shortcuts for attr('id) and attr('name')?


Yup, that's why they were removed.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Gerry Danen

On 3/20/07, Matt Kruse <[EMAIL PROTECTED]> wrote:


>I still prefer to use PHP, and not AJAX for sorting, like I've done at
http://www.atasteofdutch.com/catalog.htm

If you want to go back to the server and sort using php (why?)



For a different view? Sort by price, or description? Give the customer
options...

then why would

you need a javascript solution at all?



*I* don't... ;-)

Gerry
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery breaks iframes and back button?

2007-03-20 Thread Geoffrey Knutzen
Just trying to do my part.

Some of you have done so much. Makes some of us feel kind of guilty

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Brandon Aaron
Sent: Tuesday, March 20, 2007 11:15 AM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery breaks iframes and back button?

Thanks for tracking down the issue and creating a ticket Geoffrey!

--
Brandon Aaron

On 3/20/07, Geoffrey Knutzen <[EMAIL PROTECTED]> wrote:
> I have been able to reproduce this bug and have opened a ticket on it.
#1061
> It really isn't the back button but how ie is refreshing the page.
>
> I think I found the cause of the problem and noted it in the ticket.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of clifforama
> Sent: Monday, March 19, 2007 10:27 AM
> To: discuss@jquery.com
> Subject: [jQuery] jQuery breaks iframes and back button?
>
>
> jQuery seems to cause unexpected behaviour in IE6 and IE7 when used in
> combination with iframes. In fact, it occurs without actually making use
of
> jQuery, but just including it is enough. Here's the problem:
>
> I have two pages that each contain 2 iframes. For illustrative purposes,
> they will have the same contents:
>
> [container1.html and container2.html]
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> The two pages loaded in each iframe simply contain the following bodies.
> Neither contain any reference to jQuery:
>
> [left.html]
> This is 'left'
> container2
>
> [right.html]
> This is 'right'
> container2
>
> Now, just load container1.html and click on either link. You will see no
> change, since container2.html is the same as container1.html. But, if you
> click the back button to return to container1.html, you will see that both
> iframes now contain the contents of right.html.
>
> If I simply remove the jQuery references, the problem goes away.
>
> Any ideas?
>
> Cliff
>
> --
> View this message in context:
>
http://www.nabble.com/jQuery-breaks-iframes-and-back-button--tf3428574.html#
> a9556791
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Matt Kruse
> What is the jQuery interface going to look like?

It will simply expose methods like
 .autosort()
 .autofilter()
 .autopage()
 .tablesort()
 .tablefilter()
 .tablepage()

that hook into the jQuery syntax, either on document.ready or triggered
manually. Ideally, I think the unobtrusive classname-driven functionality
should be preferred, but the above style will be there in case more complex
things need to be done.

Are there any other hooks specifically into jquery that you think would be
beneficial?

Matt



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Matt Kruse
>If something like AJAX DataGrid
(http://www.phpclasses.org/browse/package/3610.html) can edit using AJAX, I'm
sure some sorting can be done.

Sorting via Ajax doesn't make much sense.

>I still prefer to use PHP, and not AJAX for sorting, like I've done at
http://www.atasteofdutch.com/catalog.htm

If you want to go back to the server and sort using php (why?) then why would
you need a javascript solution at all?

Matt


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery breaks iframes and back button?

2007-03-20 Thread Brandon Aaron
Thanks for tracking down the issue and creating a ticket Geoffrey!

--
Brandon Aaron

On 3/20/07, Geoffrey Knutzen <[EMAIL PROTECTED]> wrote:
> I have been able to reproduce this bug and have opened a ticket on it. #1061
> It really isn't the back button but how ie is refreshing the page.
>
> I think I found the cause of the problem and noted it in the ticket.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of clifforama
> Sent: Monday, March 19, 2007 10:27 AM
> To: discuss@jquery.com
> Subject: [jQuery] jQuery breaks iframes and back button?
>
>
> jQuery seems to cause unexpected behaviour in IE6 and IE7 when used in
> combination with iframes. In fact, it occurs without actually making use of
> jQuery, but just including it is enough. Here's the problem:
>
> I have two pages that each contain 2 iframes. For illustrative purposes,
> they will have the same contents:
>
> [container1.html and container2.html]
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> The two pages loaded in each iframe simply contain the following bodies.
> Neither contain any reference to jQuery:
>
> [left.html]
> This is 'left'
> container2
>
> [right.html]
> This is 'right'
> container2
>
> Now, just load container1.html and click on either link. You will see no
> change, since container2.html is the same as container1.html. But, if you
> click the back button to return to container1.html, you will see that both
> iframes now contain the contents of right.html.
>
> If I simply remove the jQuery references, the problem goes away.
>
> Any ideas?
>
> Cliff
>
> --
> View this message in context:
> http://www.nabble.com/jQuery-breaks-iframes-and-back-button--tf3428574.html#
> a9556791
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jquery.de

2007-03-20 Thread Luke Lutman
Why not see if you can get involved with the 'official' effort? John Resig 
mentioned at SXSW 
that part of what's taking time is getting things translated, and finding 
people who speak the 
language (German in this case) to help organize and maintain the non-english 
versions. Maybe you 
could help?

Luke

Yansky wrote:
> I'd say go for it. There's already a Chinese one http://bbs.jquery.org.cn/
> 
> Michael Fuerst wrote:
>> Hi,
>>
>> sorry, this is could a little of topic:
>>
>> Maybe some of you already found jquery.de and wondered what's it all about
>> and why there isn't happening anything:
>>
>> I registered jquery.de a year ago, just befor jquery got really popular.
>> As I'm not a big mailing list fan I thought it would be nice to have a
>> german speaking jQuery forum.
>>
>> I contacted John and told him about my plans and he thought it was okay,
>> but told me, that he is also working on a multi language webpage based on
>> Drupal for jQuery and we could also link jquery.de to the German part of
>> his "new" webpage.
>>
>> We agreed to wait until his page is ready and not go on with a seperate
>> forum. Unfortunately almost one year hast past now and nothing happend.
>>
>> I was contacted by Paul Bakaus of the jQuery developing team two month
>> ago, but all attempts to get in touch again faild.
>>
>> So I was wandering what you poeple think about this. Should we wait until
>> hopefully one day the multi language page will be ready, or should we go
>> on and try to create a German speaking support forum on our own?
>>
>> Don't get me wrong, I do not plan to create competition for this mailing
>> list or something where I get money out of it.
>> Nor is this ment to be any critcism for the development team or John.
>> I simply want to know, how to go on with jquery.de
>>
>> Best regards, Michael
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
> 


-- 
zinc Roe Design
www.zincroe.com
(647) 477-6016

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] animating off screen

2007-03-20 Thread Karl Swedberg


On Mar 20, 2007, at 1:14 PM, Robert O'Rourke wrote:

> [EMAIL PROTECTED] wrote:
>> Hi,
>>
>> Yesterday I got some great help on how to animate a DIV and move  
>> it from offscreen left to the middle of the screen.  My question  
>> now is I want to slide that div to off-screen right.  The  
>> complication is that I don't know how big the user's browser is  
>> going to be.  How can I slide the div completely off screen to the  
>> right?
>>
>> Thanks, - Dave
>>
>>
>
> The user's browser width should always be 100%. Kind of a CSS  
> variable.
> Perhaps use jQuery to get that value and then shove the div off by  
> 50%.
> One thing you want to watch out for is converting things to pixel
> dimensions so if I maximise my screen after the div has disappeared  
> off
> the side I mightbe able to see it again. Use % to offset the div  
> and you
> should be fine.
>
> Rob

Just to be safe, you might want to hide the div after you've animated  
it out of the viewable area.
Putting $(this).hide() in the callback of .animate() should do the  
trick.

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




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Daemach2

Can't wait to see it ;)  What is the jQuery interface going to look like?



Matt Kruse-2 wrote:
> 
>> i see the scriptaculs thing that rule on the web...
>> maybe its because there are working examples of scriptacouls with
>> php/mysql
>> integration?
> 
> How would a client-side sorting plugin interact with php/mysql? Once the
> rows
> are delivered to the browser (independent of server-side technology) then
> it's
> all javascript from there, right? What kind of functionality are you
> looking
> for?
> 
> I am almost done with my table sort/filter/page plugin at
> http://www.JavascriptToolbox.com/lib/table/ (updated last night to version
> .981) and if you have any suggestions about how to improve it to do what
> you're
> looking for, I'd like to hear it!
> 
> Matt Kruse
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/anyone-success-to-inegrate-sortable-with-mysql-php--tf3434368.html#a9578209
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jquery.de

2007-03-20 Thread Yansky

I'd say go for it. There's already a Chinese one http://bbs.jquery.org.cn/

Michael Fuerst wrote:
> 
> Hi,
> 
> sorry, this is could a little of topic:
> 
> Maybe some of you already found jquery.de and wondered what's it all about
> and why there isn't happening anything:
> 
> I registered jquery.de a year ago, just befor jquery got really popular.
> As I'm not a big mailing list fan I thought it would be nice to have a
> german speaking jQuery forum.
> 
> I contacted John and told him about my plans and he thought it was okay,
> but told me, that he is also working on a multi language webpage based on
> Drupal for jQuery and we could also link jquery.de to the German part of
> his "new" webpage.
> 
> We agreed to wait until his page is ready and not go on with a seperate
> forum. Unfortunately almost one year hast past now and nothing happend.
> 
> I was contacted by Paul Bakaus of the jQuery developing team two month
> ago, but all attempts to get in touch again faild.
> 
> So I was wandering what you poeple think about this. Should we wait until
> hopefully one day the multi language page will be ready, or should we go
> on and try to create a German speaking support forum on our own?
> 
> Don't get me wrong, I do not plan to create competition for this mailing
> list or something where I get money out of it.
> Nor is this ment to be any critcism for the development team or John.
> I simply want to know, how to go on with jquery.de
> 
> Best regards, Michael
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jquery.de-tf3432907.html#a9578247
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Gerry Danen

Matt,

If something like AJAX DataGrid (
http://www.phpclasses.org/browse/package/3610.html) can edit using AJAX, I'm
sure some sorting can be done. Would depend on the amount of data, of
course.

I still prefer to use PHP, and not AJAX for sorting, like I've done at
http://www.atasteofdutch.com/catalog.htm

Gerry

On 3/20/07, Matt Kruse <[EMAIL PROTECTED]> wrote:


> i see the scriptaculs thing that rule on the web...
> maybe its because there are working examples of scriptacouls with
php/mysql
> integration?

How would a client-side sorting plugin interact with php/mysql? Once the
rows
are delivered to the browser (independent of server-side technology) then
it's
all javascript from there, right? What kind of functionality are you
looking
for?

I am almost done with my table sort/filter/page plugin at
http://www.JavascriptToolbox.com/lib/table/ (updated last night to version
.981) and if you have any suggestions about how to improve it to do what
you're
looking for, I'd like to hear it!

Matt Kruse



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Gerry Danen
Developer support:
http://dev.danen.org/
http://groups.yahoo.com/group/php_and_mysql/
Lily Register:
http://www.lilyregister.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread Matt Kruse
> i see the scriptaculs thing that rule on the web...
> maybe its because there are working examples of scriptacouls with php/mysql
> integration?

How would a client-side sorting plugin interact with php/mysql? Once the rows
are delivered to the browser (independent of server-side technology) then it's
all javascript from there, right? What kind of functionality are you looking
for?

I am almost done with my table sort/filter/page plugin at
http://www.JavascriptToolbox.com/lib/table/ (updated last night to version
.981) and if you have any suggestions about how to improve it to do what you're
looking for, I'd like to hear it!

Matt Kruse



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] animating off screen

2007-03-20 Thread Alex Cook
Wow... that is ... so not the jQuery way to do things ;)

 

First, go download the Dimensions plugin.  With it you can get a value
for the window's innerWidth cross-browser.  See, Dimensions extends the
.width() and .height() functions so you can pass window to the $()
selector and get a proper value.  Once that's in place you would just do
something like this...

 

$elm = $(elm); // if we are going to $() something more then once, make
a reference to it instead

$elm.animate({

left:$(window).width() + $elm.width() + 20 // just to be on
the safe side

});

 

This is UNTESTED, and prolly doesn't fit your scenario perfectly, but
you can get an idea of what you will need to go forward.

 

HTH.

 

-ALEX

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Bryan McLemore
Sent: Tuesday, March 20, 2007 9:55 AM
To: [EMAIL PROTECTED]; jQuery Discussion.
Subject: Re: [jQuery] animating off screen

 

Here is some code from the Geometry lib I've written based on some code
out of one of my books and whatnot.


if (window.innerWidth) { //All but IE
Geometry.getViewportWidth= function() { return
window.innerWidth; };
Geometry.getViewportHeight   = function() { return
window.innerHeight; };
Geometry.getHorizontalScroll = function() { return
window.pageXOffset; };
Geometry.getVerticalScroll= function() { return
window.pageYOffset; };
} else if (document.documentElement &&
document.documentElement.clientWidth) { // IE6 w/ doctype
Geometry.getViewportWidth= function() { return
document.documentElement.clientWidth; };
Geometry.getViewportHeight   = function() { return
document.documentElement.clientHeight; };
Geometry.getHorizontalScroll = function() { return
document.documentElement.scrollLeft ; };
Geometry.getVerticalScroll   = function() { return
document.documentElement.scrollTop; };
} else if (document.body.clientWidth) { // IE4,5,6(w/o doctype)
Geometry.getViewportWidth= function() { return
document.body.clientWidth; };
Geometry.getViewportHeight   = function() { return
document.body.clientHeight; };
Geometry.getHorizontalScroll = function() { return
document.body.scrollLeft; };
Geometry.getVerticalScroll   = function() { return
document.body.scrollTop; };
}


The Viewport functions will tell you how big the browser window is (
displayable area only)

On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:

Hi,

Yesterday I got some great help on how to animate a DIV and move it from
offscreen left to the middle of the screen.  My question now is I want
to slide that div to off-screen right.  The complication is that I don't
know how big the user's browser is going to be.  How can I slide the div
completely off screen to the right? 

Thanks, - Dave

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/ 




-- 
--
Bryan McLemore
Kaelten 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] animating off screen

2007-03-20 Thread Robert O'Rourke
[EMAIL PROTECTED] wrote:
> Hi,
>
> Yesterday I got some great help on how to animate a DIV and move it from 
> offscreen left to the middle of the screen.  My question now is I want to 
> slide that div to off-screen right.  The complication is that I don't know 
> how big the user's browser is going to be.  How can I slide the div 
> completely off screen to the right?
>
> Thanks, - Dave
>
>   

The user's browser width should always be 100%. Kind of a CSS variable. 
Perhaps use jQuery to get that value and then shove the div off by 50%. 
One thing you want to watch out for is converting things to pixel 
dimensions so if I maximise my screen after the div has disappeared off 
the side I mightbe able to see it again. Use % to offset the div and you 
should be fine.

Rob

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] animating off screen

2007-03-20 Thread dalvarado
Thanks, Bryan.  So if I want to get the viewable width of the screen, would I 
call Geometry.getHorizontalScroll?

 - Dave

>  ---Original Message---
>  From: Bryan McLemore <[EMAIL PROTECTED]>
>  Subject: Re: [jQuery] animating off screen
>  Sent: Mar 20 '07 16:54
>  
>  Here is some code from the Geometry lib I've written based on some code
>  out of one of my books and whatnot.
>  
>  
>  if (window.innerWidth) { //All but IE
>  Geometry.getViewportWidth= function() { return
>  window.innerWidth; };
>  Geometry.getViewportHeight   = function() { return
>  window.innerHeight; };
>  Geometry.getHorizontalScroll = function() { return
>  window.pageXOffset; };
>  Geometry.getVerticalScroll= function() { return
>  window.pageYOffset; };
>  } else if (document.documentElement &&
>  document.documentElement.clientWidth) { // IE6 w/ doctype
>  Geometry.getViewportWidth= function() { return
>  document.documentElement.clientWidth; };
>  Geometry.getViewportHeight   = function() { return
>  document.documentElement.clientHeight; };
>  Geometry.getHorizontalScroll = function() { return
>  document.documentElement.scrollLeft ; };
>  Geometry.getVerticalScroll   = function() { return
>  document.documentElement.scrollTop; };
>  } else if (document.body.clientWidth) { // IE4,5,6(w/o doctype)
>  Geometry.getViewportWidth= function() { return
>  document.body.clientWidth; };
>  Geometry.getViewportHeight   = function() { return
>  document.body.clientHeight; };
>  Geometry.getHorizontalScroll = function() { return
>  document.body.scrollLeft; };
>  Geometry.getVerticalScroll   = function() { return
>  document.body.scrollTop; };
>  }
>  
>  
>  The Viewport functions will tell you how big the browser window is (
>  displayable area only)
>  
>  
>  On 3/20/07, [LINK: MAILTO:[EMAIL PROTECTED]
>  [EMAIL PROTECTED] <[LINK: mailto:[EMAIL PROTECTED]
>  [EMAIL PROTECTED]> wrote: Hi,
>  
>  Yesterday I got some great help on how to animate a DIV and move it from
>  offscreen left to the middle of the screen.  My question now is I want to
>  slide that div to off-screen right.  The complication is that I don't
>  know how big the user's browser is going to be.  How can I slide the
>  div completely off screen to the right?
>  
>  Thanks, - Dave
>  
>  ___
>  jQuery mailing list
>  [LINK: mailto:[EMAIL PROTECTED] discuss@jquery.com
>  [LINK: http://jquery.com/discuss/] http://jquery.com/discuss/
>  
>  
>  --
>  --
>  Bryan McLemore
>  Kaelten

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] animating off screen

2007-03-20 Thread Bryan McLemore

Here is some code from the Geometry lib I've written based on some code out
of one of my books and whatnot.


if (window.innerWidth) { //All but IE
   Geometry.getViewportWidth= function() { return window.innerWidth;
};
   Geometry.getViewportHeight   = function() { return
window.innerHeight; };
   Geometry.getHorizontalScroll = function() { return
window.pageXOffset; };
   Geometry.getVerticalScroll   = function() { return
window.pageYOffset; };
   } else if (document.documentElement &&
document.documentElement.clientWidth) { // IE6 w/ doctype
   Geometry.getViewportWidth= function() { return
document.documentElement.clientWidth; };
   Geometry.getViewportHeight   = function() { return
document.documentElement.clientHeight; };
   Geometry.getHorizontalScroll = function() { return
document.documentElement.scrollLeft; };
   Geometry.getVerticalScroll   = function() { return
document.documentElement.scrollTop; };
   } else if (document.body.clientWidth) { // IE4,5,6(w/o doctype)
   Geometry.getViewportWidth= function() { return
document.body.clientWidth; };
   Geometry.getViewportHeight   = function() { return
document.body.clientHeight; };
   Geometry.getHorizontalScroll = function() { return
document.body.scrollLeft; };
   Geometry.getVerticalScroll   = function() { return
document.body.scrollTop; };
   }


The Viewport functions will tell you how big the browser window is (
displayable area only)

On 3/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

Yesterday I got some great help on how to animate a DIV and move it from
offscreen left to the middle of the screen.  My question now is I want to
slide that div to off-screen right.  The complication is that I don't know
how big the user's browser is going to be.  How can I slide the div
completely off screen to the right?

Thanks, - Dave

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
--
Bryan McLemore
Kaelten
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery breaks iframes and back button?

2007-03-20 Thread Geoffrey Knutzen
I have been able to reproduce this bug and have opened a ticket on it. #1061
It really isn't the back button but how ie is refreshing the page.

I think I found the cause of the problem and noted it in the ticket.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of clifforama
Sent: Monday, March 19, 2007 10:27 AM
To: discuss@jquery.com
Subject: [jQuery] jQuery breaks iframes and back button?


jQuery seems to cause unexpected behaviour in IE6 and IE7 when used in
combination with iframes. In fact, it occurs without actually making use of
jQuery, but just including it is enough. Here's the problem:

I have two pages that each contain 2 iframes. For illustrative purposes,
they will have the same contents:

[container1.html and container2.html]










The two pages loaded in each iframe simply contain the following bodies.
Neither contain any reference to jQuery:

[left.html]
This is 'left'
container2

[right.html]
This is 'right'
container2

Now, just load container1.html and click on either link. You will see no
change, since container2.html is the same as container1.html. But, if you
click the back button to return to container1.html, you will see that both
iframes now contain the contents of right.html.

If I simply remove the jQuery references, the problem goes away.

Any ideas?

Cliff

-- 
View this message in context:
http://www.nabble.com/jQuery-breaks-iframes-and-back-button--tf3428574.html#
a9556791
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE bug or bug in my code ?

2007-03-20 Thread spinnach
i've also had issues with this, not only in ie but sometimes in firefox 
too.. and ie 6&7 occasionally crashed or couldn't load the page when 
using $().ready() so now i just call the init function from the footer 
of the page.. i know it's kind of ugly but it works every time and 
doesn't crash :)..

oh and it sometimes happens for me on http://jquery.com/api too 
($().ready not firing - both in ie6&7 and firefox2)..

dennis.

Jack Killpatrick wrote:
> FWIW, I've had issues in IE 6/7 with $(document).ready() not firing 
> something in it's function. I've never dug into exactly why it happens, 
> but found a workaround using setTimeout, like this:
> 
> $(document).ready(function() {
> setTimeout(
> function(){
>your code that isn't firing in IE here
> }
> , ( $.browser.msie ) ? 500 : 0
> )
> });
> 
> So, maybe give that a try. FWIW, we (me and the folks I work with) found 
> that 500ms seemed to do the trick, but 100ms didn't.
> 
> Also, If anyone knows why that's needed for some things to fire via 
> $(document).ready, I'd love to know. We've also worked around it by 
> doing these things:
> 
> 1. putting our $(document).ready at the end of the HTML page (after the 
> objects that we need ready).
> 2. used setTimeout() to check for the presence of the object(s) we need 
> ready, and when they become ready, binding to them.
> 
> - Jack
> 



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE bug or bug in my code ?

2007-03-20 Thread Jack Killpatrick
FWIW, I've had issues in IE 6/7 with $(document).ready() not firing 
something in it's function. I've never dug into exactly why it happens, 
but found a workaround using setTimeout, like this:

$(document).ready(function() {
setTimeout(
function(){
   your code that isn't firing in IE here
}
, ( $.browser.msie ) ? 500 : 0
)
});

So, maybe give that a try. FWIW, we (me and the folks I work with) found 
that 500ms seemed to do the trick, but 100ms didn't.

Also, If anyone knows why that's needed for some things to fire via 
$(document).ready, I'd love to know. We've also worked around it by 
doing these things:

1. putting our $(document).ready at the end of the HTML page (after the 
objects that we need ready).
2. used setTimeout() to check for the presence of the object(s) we need 
ready, and when they become ready, binding to them.

- Jack

Jack Gleeson wrote:
> In firefox the follow code works fine
>
>  $(document).ready(function() {
>  $(".form_con").hide();
>  $("[EMAIL PROTECTED]").change( function() {
>  if($.browser.safari) {
>  if(this.value != 0)
>  $(".form_con").hide();
>  $("#form" + (this.value)).show();
>  } else {
>  if(this.value != 0) {
>  $(".form_con").hide();
>  $("#form" + (this.value)).fadeIn("slow");
>  }
>  }
>  });
> });
>
> But in IE the above code does not work, I thought it would be an issue
> with using swfobject with jquery buty I patched that up and the issue
> is still unsolved.
>
> It's pretty simple code, it hides 4 forms on load and then whatever
> option you select from the select list, it shows the form. It works
> fine in Firefox but in IE when I submit the page and do my regular
> expression checks it shows all forms which is not correct.
>
> Here is the on submit code,
>
> $(document).ready(function() {
>  $(".form").hide();
>  $("#form" + ()).show();
>  $('#conveyancing_list').attr('disabled', 'disabled');
>  $("[EMAIL PROTECTED]").change( function() {
>  if($.browser.safari) {
>  if(this.value != 0)
>  $(".form").hide();
>  $("#form" + (this.value)).show();
>  } else {
>  if(this.value != 0) {
>  $(".form").hide();
>  $("#form" + (this.value)).fadeIn("slow");
>  }
>  }
>  });
> });
>
> $contype being the form from the previous page which was selected,
> this is so it shows the correct form errors.
>
> Thanks alot
>
>   

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] IE bug or bug in my code ?

2007-03-20 Thread Remy Sharp

Hi Jack,

Occasionally I get the oddity of JavaScript not working in IE too, so I
recently converted the 
http://remysharp.com/2007/03/13/firebug-in-ie-for-any-web-site/ Firebug lite
to a bookmarklet  so you can easily debug what's going on any page.

I would recommend adding a few console.info and console.dir (to dump
objects) within your code to see what's going on inside IE.


Jack Gleeson wrote:
> 
> But in IE the above code does not work, I thought it would be an issue
> with using swfobject with jquery buty I patched that up and the issue
> is still unsolved.
> 
> It's pretty simple code, it hides 4 forms on load and then whatever
> option you select from the select list, it shows the form. It works
> fine in Firefox but in IE when I submit the page and do my regular
> expression checks it shows all forms which is not correct.
> 

-- 
View this message in context: 
http://www.nabble.com/IE-bug-or-bug-in-my-code---tf3432817.html#a9576217
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New Window Handle?

2007-03-20 Thread Eric Mckenna
Found one piece to my puzzle.
There is no $(expr, context) in 1.0.3. 
That function comes with 1.1.2

-- 
Eric Mckenna
Software Developer
Phase2 Technology
[EMAIL PROTECTED]

www.phase2technology.com
Web solutions that fit your business.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] animating off screen

2007-03-20 Thread dalvarado
Hi,

Yesterday I got some great help on how to animate a DIV and move it from 
offscreen left to the middle of the screen.  My question now is I want to slide 
that div to off-screen right.  The complication is that I don't know how big 
the user's browser is going to be.  How can I slide the div completely off 
screen to the right?

Thanks, - Dave

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation Plugin Beta 2 Bug - Radio Buttons

2007-03-20 Thread Ryan Rose
Dan,

That fixed it. Now everything is working as expected. Thanks for the help.

Ryan Rose
Vice President
Digiwize, Inc.
One Technology Drive
Tolland, CT 06084
e: [EMAIL PROTECTED]
p: 860.730.2631
http://www.digiwize.com

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 11:27 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Validation Plugin Beta 2 Bug - Radio Buttons

Ryan,

You can fix this bug by changing lines 637-638 in the jquery.validate.js to:

if( /radio|checkbox/i.test(element.type) )
return jQuery(element.form ||
document).find('[EMAIL PROTECTED]"' + element.name + '\"]:checked').length;

The problem is the CSS selector needs quotes around the value of the name
attribute in order to find the array syntax field names.

The change should probably be made to the forId() method (lines 250-252) as
well just to be safe:

forId: function( id ) {
return this.filter( '[EMAIL PROTECTED]"' + id + '"]' );
}

-Dan

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of Ryan Rose
>Sent: Tuesday, March 20, 2007 10:11 AM
>To: discuss@jquery.com
>Subject: [jQuery] Validation Plugin Beta 2 Bug - Radio Buttons
>
>First I would like to say that this plugin is absolutely amazing…excellent
>work Jörn!
>
>Now on to my problem: I’ve noticed that the validation plugin doesn’t
>support radio buttons with name="data[FormItem][38]" specified. It will
>correctly validate the radio button group (for instance, if required=true
>if
>will display the error label indicating the field is required if a radio
>button was not clicked), however, it will not submit the form once a valid
>option is chosen.
>
>If I change the name to not use the [] array format then the submitHandler
>will fire correctly. Unfortunately this is not an option for me as the []
>array format is used for all CakePHP form elements. The validation plugin
>handles all other form elements with this format correctly. I have added a
>short test case below. Clicking submit will correctly display the error
>label if an item is not chosen. Clicking a radio button and submitting the
>form again will not fire the submitHandler. If you change the radio group
>name to “test” then everything works as expected.
>
>Thank you for any help you can provide.
>
>
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>http://www.w3.org/1999/xhtml";>
>
>
>Test for jQuery validate() plugin
>/>
>
>
>
>
>
>  $(document).ready(function() {
>    // validate the form when it is submitted
>    $.validator.setDefaults({
>  debug: false,
>  focusInvalidElement: true,
>  submitHandler: function(form) {
>    alert("submit");
>  }
>    });
>    $("#form1").validate();
>
>  });
>
>
>
>
>  
>  Validating a form with a radio and checkbox buttons
>  
>  *Makes
>  
>  value="Honda" class="f-radio {required:true}" />
>  Honda
>  
>  value="Hyundai" class="f-radio"  />
>  Hyundai
>  
>  value="Toyota" class="f-radio"  />
>  Toyota
>  Please select your family
>status.
>  
>    
>    
>  
>  
>
>
>
>
>Ryan Rose
>Vice President
>Digiwize, Inc.
>One Technology Drive
>Tolland, CT 06084
>e: [EMAIL PROTECTED]
>p: 860.730.2631
>http://www.digiwize.com
>
>
>
>___
>jQuery mailing list
>discuss@jquery.com
>http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] blockui crushes IE6

2007-03-20 Thread Christopher Jordan
Sure Mike! Thanks and I'm sorry I never got a publicly accessible 
example up and going. Work is crazy right now. I'll download the 1.02 
version and see if it fixes my problem. If it does, you'll be my hero! :o)

Cheers!
Chris

Mike Alsup wrote:
> Christopher,
> 
> I think I may have fixed this.  If you're able to duplicate the
> problem could you test it with the latest rev (1.02)?
> 
> http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt
> 
> Thanks.
> 
> Mike
> 
> 
> On 3/19/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>> I'll try and put something together that can be publicly accessible.
>>
>> Thanks,
>> Chris
>>
>> Mike Alsup wrote:
>>> I think we're dealing with two very different errors.   Do you have a
>>> url that exhibits the focus problem, that would be a big help.
>>>
>>> Mike
>>>
>>> On 3/19/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
 Well, I knew he meant crashes. :oP

 I just wanted the crash specifics. I posted a problem a few times a
 while back and got no response -- I know, folks are busy :o) So I wanted
 to confirm that it was the same problem I was having.

 Here was my exact error message (had to look it up):

  "Can't move focus to the control because it is invisible, not
  enabled, or of a type that does not accept the focus."

 So do you think your latest patch fixes this? (*hoping*):oD

 Chris

 Mike Alsup wrote:
> I think he means "crashes".  The latest code in SVN *should* fix the
> problem.  Please let me know if it doesn't.
>
> http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt
>
>
> On 3/19/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>> By 'crushes' do you mean that you get a javascript error stating that
>> some element can't do something because it is hidden or missing (... I
>> know, my memory is great... sorry)... did you get something like that?
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
 --
 http://www.cjordan.us

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>
>> --
>> http://www.cjordan.us
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

-- 
http://www.cjordan.us

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Powered Sites - New Sites Added

2007-03-20 Thread Glen Lipka

Finally, http://www.quickbooks.com and http://www.quicken.com have added the
QuickLinks at the top.
Also, http://www.turbotax.com uses jQuery fairly extensively.  These sites
get alot more traffic than the other intuit ones.

Glen



On 3/19/07, Rey Bango <[EMAIL PROTECTED]> wrote:


New sites added:

Curse Gaming
ValidHTML
Flashr Flickr Wrapper

http://docs.jquery.com/Sites_Using_jQuery

Keep the submissions coming but please, please provide a good & short
description of what the site does so I can put it into the listing.

Also, please be sure to mention where the site uses jQuery.

Thanks,

Rey


--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation Plugin Beta 2 Bug - Radio Buttons

2007-03-20 Thread dswitzer
Ryan,

You can fix this bug by changing lines 637-638 in the jquery.validate.js to:

if( /radio|checkbox/i.test(element.type) )
return jQuery(element.form ||
document).find('[EMAIL PROTECTED]"' + element.name + '\"]:checked').length;

The problem is the CSS selector needs quotes around the value of the name
attribute in order to find the array syntax field names.

The change should probably be made to the forId() method (lines 250-252) as
well just to be safe:

forId: function( id ) {
return this.filter( '[EMAIL PROTECTED]"' + id + '"]' );
}

-Dan

>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>Behalf Of Ryan Rose
>Sent: Tuesday, March 20, 2007 10:11 AM
>To: discuss@jquery.com
>Subject: [jQuery] Validation Plugin Beta 2 Bug - Radio Buttons
>
>First I would like to say that this plugin is absolutely amazing…excellent
>work Jörn!
>
>Now on to my problem: I’ve noticed that the validation plugin doesn’t
>support radio buttons with name="data[FormItem][38]" specified. It will
>correctly validate the radio button group (for instance, if required=true
>if
>will display the error label indicating the field is required if a radio
>button was not clicked), however, it will not submit the form once a valid
>option is chosen.
>
>If I change the name to not use the [] array format then the submitHandler
>will fire correctly. Unfortunately this is not an option for me as the []
>array format is used for all CakePHP form elements. The validation plugin
>handles all other form elements with this format correctly. I have added a
>short test case below. Clicking submit will correctly display the error
>label if an item is not chosen. Clicking a radio button and submitting the
>form again will not fire the submitHandler. If you change the radio group
>name to “test” then everything works as expected.
>
>Thank you for any help you can provide.
>
>
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>http://www.w3.org/1999/xhtml";>
>
>
>Test for jQuery validate() plugin
>/>
>
>
>
>
>
>  $(document).ready(function() {
>    // validate the form when it is submitted
>    $.validator.setDefaults({
>  debug: false,
>  focusInvalidElement: true,
>  submitHandler: function(form) {
>    alert("submit");
>  }
>    });
>    $("#form1").validate();
>
>  });
>
>
>
>
>  
>  Validating a form with a radio and checkbox buttons
>  
>  *Makes
>  
>  value="Honda" class="f-radio {required:true}" />
>  Honda
>  
>  value="Hyundai" class="f-radio"  />
>  Hyundai
>  
>  value="Toyota" class="f-radio"  />
>  Toyota
>  Please select your family
>status.
>  
>    
>    
>  
>  
>
>
>
>
>Ryan Rose
>Vice President
>Digiwize, Inc.
>One Technology Drive
>Tolland, CT 06084
>e: [EMAIL PROTECTED]
>p: 860.730.2631
>http://www.digiwize.com
>
>
>
>___
>jQuery mailing list
>discuss@jquery.com
>http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] anyone success to inegrate sortable with mysql/php?

2007-03-20 Thread amircx

im trying to see some working online examples of sortable plugin and its
seems there is no such thing execept the offical website.. .why pepole dont
use it?
i see the scriptaculs thing that rule on the web... 
maybe its because there are working examples of scriptacouls with php/mysql
integration?

-- 
View this message in context: 
http://www.nabble.com/anyone-success-to-inegrate-sortable-with-mysql-php--tf3434368.html#a9574721
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] itemWidth and itemHeight

2007-03-20 Thread leone

I've got a vertical scroll with jCarousel inside a div with a width of 200px.
The images that's beeing scrolled are 145px wide. At first, IE showed this
fine but FF just showed half the image until i reloaded the page. (The image
got cut vertically so the right side of the image didn't show.)

Because all my images are 145px wide i then set the itemWidth to 155. Now i
works in both IE and FF.

But the images have different heights. And it's the same problem with FF
(The image gets cut horizontal so the bottom doesn't show). It just shows
half the picture if the picture is higher than something like 145-150px.

It works if i set itemHeight to 200 but then it'll be too much space between
the images because some images are just 120px high.

Any suggestions?

Thanks,

leone
-- 
View this message in context: 
http://www.nabble.com/itemWidth-and-itemHeight-tf3421087.html#a9535234
Sent from the jCarousel mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)

2007-03-20 Thread agent2026

It's Netscape I'm having problems in, not FF.  Yours doesn't work in NS
either.

You're good in IE7, but I think it's only because the loaded content is very
small in file size.  My loaded content is much, much larger, so I must call
the function from the loaded content (otherwise the function would fire
before it had the scroll height).

.load() fires for me in FF as well, but I don't see it's purpose. 
Everything works without .load().

Btw, if you do a search for IE6 stand alone, you can find out how to run
both IE6 and 7 on the same machine.

Adam



Danny Wachsstock wrote:
> 
> Actually, I am calling it all from the parent. You can see it at
> youngisrael-stl.org ; look at the wood-grain calendar (in Hebrew) on the
> right. You don't have to be able to read it, but on a slow computer you
> can see it come up with scroll bars then re-adjust the size. '.load()'
> doesn't fire in IE6; the iframe is loaded before $(document).ready so
> .load would fire before the code is executed. It does fire for me in FF,
> since the iframe is loaded afterward. I don't have IE7, so I don't know if
> it works. I  hope it does.
> 
> Trying to figure out FF: if you look at the
> this.contentWindow.document.body.scrollHeight after the iframe is loaded
> (try adding a button that has 
> .click(function(){alert($('iframe')[0].contentWindow.document.body.scrollHeight})
> or something like that) does it have a height?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Anyone-ever-heard-of-this-Netscape-bowser---%29-tf3426039.html#a9573672
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-03-20 Thread [-Stash-]

Don't forget to SHOUT LOUDLY when that day of work is complete ;)

Luke


Klaus Hartl wrote:
> 
> Joel Birch schrieb:
>> Anything we can do to lighten the load? I'm sure many of us will  
>> agree that this is one of the most exciting and important plugin  
>> projects at the moment.
>> 
>> Good luck with everything Klaus.
>> 
>> Joel.
> 
> Thanks for your kind offer, Joel! I think I'll be needing just another 
> day of work to be able to announce beta.

-- 
View this message in context: 
http://www.nabble.com/ANNOUNCE%3A-Thickbox-Reloaded-alpha-tf3293077.html#a9573616
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] NEWS: jQuery Powered PassPack.com on Ajaxian (Resend)

2007-03-20 Thread Rey Bango
Ajaxian.com posts about another jQuery-Powered site:

http://ajaxian.com/archives/passpack-new-version

Check it out.

Rey...

-- 
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)

2007-03-20 Thread Danny Wachsstock

Actually, I am calling it all from the parent. You can see it at
youngisrael-stl.org ; look at the wood-grain calendar (in Hebrew) on the
right. You don't have to be able to read it, but on a slow computer you can
see it come up with scroll bars then re-adjust the size. '.load()' doesn't
fire in IE6; the iframe is loaded before $(document).ready so .load would
fire before the code is executed. It does fire for me in FF, since the
iframe is loaded afterward. I don't have IE7, so I don't know if it works. I 
hope it does.

Trying to figure out FF: if you look at the
this.contentWindow.document.body.scrollHeight after the iframe is loaded
(try adding a button that has 
.click(function(){alert($('iframe')[0].contentWindow.document.body.scrollHeight})
or something like that) does it have a height?


agent2026 wrote:
> 
> Hey,
> I thought you were somehow managing to do all of this from the parent, but
> upon further testing I realize you meant to call the function from the
> loaded content.
> 
> So, back to normal in IE6/7, but still have the same problem with
> Netscape.  
> 
> Curious btw, .load() isn't fired in IE, and everything still works without
> it (other than NS). Is it necessary?
> 
> Adam
> 
> 
> agent2026 wrote:
>> 
>> Okay, in the parent (in cheap-debug mode):
>> 
>> $(function(){
>> $('iframe')
>>  
>> .each(function(){alert('.each()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';})
>>  
>> .load(function(){alert('.load()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';});
>> });
>> 
>> IE7: .load() never fires, but I'm getting an "object required" error now
>> for some reason.
>> 
>> IE6: Here it gets interesting - .load() also never fires, but it works
>> without errors.
>> 
>> Still doesn't work in Netscape btw.  No errors, but it doesn't resize the
>> iframe.
>> 
>> Adam
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Anyone-ever-heard-of-this-Netscape-bowser---%29-tf3426039.html#a9573331
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Validation Plugin Beta 2 Bug - Radio Buttons

2007-03-20 Thread Ryan Rose
First I would like to say that this plugin is absolutely amazing…excellent
work Jörn! 

Now on to my problem: I’ve noticed that the validation plugin doesn’t
support radio buttons with name="data[FormItem][38]" specified. It will
correctly validate the radio button group (for instance, if required=true if
will display the error label indicating the field is required if a radio
button was not clicked), however, it will not submit the form once a valid
option is chosen.

If I change the name to not use the [] array format then the submitHandler
will fire correctly. Unfortunately this is not an option for me as the []
array format is used for all CakePHP form elements. The validation plugin
handles all other form elements with this format correctly. I have added a
short test case below. Clicking submit will correctly display the error
label if an item is not chosen. Clicking a radio button and submitting the
form again will not fire the submitHandler. If you change the radio group
name to “test” then everything works as expected.

Thank you for any help you can provide.


http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Test for jQuery validate() plugin






  $(document).ready(function() {
    // validate the form when it is submitted
    $.validator.setDefaults({
  debug: false,
  focusInvalidElement: true,
  submitHandler: function(form) {
    alert("submit");
  }
    });
    $("#form1").validate();

  });




  
  Validating a form with a radio and checkbox buttons
  
  *Makes
  
  
  Honda
  
  
  Hyundai
  
  
  Toyota
  Please select your family
status.
  
    
    
  
  




Ryan Rose
Vice President
Digiwize, Inc.
One Technology Drive
Tolland, CT 06084
e: [EMAIL PROTECTED]
p: 860.730.2631
http://www.digiwize.com



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Kush Murod

Hi Klaus,

When you say cached you mean browser caches them for you *OR* do you 
need to do something else yourself


Cheers,
Kush

Klaus Hartl wrote:

Chris Domigan schrieb:
  

Also scripts linked in the head can be cached.

- Chris



All *external* scripts can be cached, no matter if you include them in 
the head or elsewhere.



-- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
  
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Validation Plugin Beta 2 Bug - Radio Buttons

2007-03-20 Thread Ryan Rose
First I would like to say that this plugin is absolutely amazing…excellent
work Jörn! 

 

Now on to my problem: I’ve noticed that the validation plugin doesn’t
support radio buttons with name="data[FormItem][38]" specified. It will
correctly validate the radio button group (for instance, if required=true if
will display the error label indicating the field is required if a radio
button was not clicked), however, it will not submit the form once a valid
option is chosen.

 

If I change the name to not use the [] array format then the submitHandler
will fire correctly. Unfortunately this is not an option for me as the []
array format is used for all CakePHP form elements. The validation plugin
handles all other form elements with this format correctly. I have added a
short test case below. Clicking submit will correctly display the error
label if an item is not chosen. Clicking a radio button and submitting the
form again will not fire the submitHandler. If you change the radio group
name to “test” then everything works as expected.

 

Thank you for any help you can provide.

 



http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml";>





Test for jQuery validate() plugin













  $(document).ready(function() {

// validate the form when it is submitted

$.validator.setDefaults({

  debug: false,

  focusInvalidElement: true,

  submitHandler: function(form) {

alert("submit");

  }

});

$("#form1").validate();

 

  });









  

  Validating a form with a radio and checkbox buttons

  

  *Makes

  

  

  Honda

  

  

  Hyundai

  

  

  Toyota

  Please select your family
status.

  





  

  







 

Ryan Rose
Vice President
Digiwize, Inc.
One Technology Drive
Tolland, CT 06084
e: [EMAIL PROTECTED]
p: 860.730.2631
http://www.digiwize.com

 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] NEWS: jQuery Powered PassPack.com on Ajaxian

2007-03-20 Thread Rey Bango
Ajaxian.com posts about another jQuery-Powered site:

http://ajaxian.com/archives/passpack-new-version

Check it out.

Rey...

-- 
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jquery.treeview.js

2007-03-20 Thread Peter Gordon
Hi.

I am using jquery.treeview.js to display a tree.

When I select a leaf of the tree, I send back the text using
$(this).text() 

What I need though, is the text of all the previous nodes, so that I
have a context for the information.

Can anyone tell me how to get and send the information.

Thanks,

Peter


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jquery.de

2007-03-20 Thread Michael Fuerst
Hi,

sorry, this is could a little of topic:

Maybe some of you already found jquery.de and wondered what's it all about
and why there isn't happening anything:

I registered jquery.de a year ago, just befor jquery got really popular.
As I'm not a big mailing list fan I thought it would be nice to have a
german speaking jQuery forum.

I contacted John and told him about my plans and he thought it was okay,
but told me, that he is also working on a multi language webpage based on
Drupal for jQuery and we could also link jquery.de to the German part of
his "new" webpage.

We agreed to wait until his page is ready and not go on with a seperate
forum. Unfortunately almost one year hast past now and nothing happend.

I was contacted by Paul Bakaus of the jQuery developing team two month
ago, but all attempts to get in touch again faild.

So I was wandering what you poeple think about this. Should we wait until
hopefully one day the multi language page will be ready, or should we go
on and try to create a German speaking support forum on our own?

Don't get me wrong, I do not plan to create competition for this mailing
list or something where I get money out of it.
Nor is this ment to be any critcism for the development team or John.
I simply want to know, how to go on with jquery.de

Best regards, Michael


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] blockui crushes IE6

2007-03-20 Thread Mike Alsup
Christopher,

I think I may have fixed this.  If you're able to duplicate the
problem could you test it with the latest rev (1.02)?

http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt

Thanks.

Mike


On 3/19/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
> I'll try and put something together that can be publicly accessible.
>
> Thanks,
> Chris
>
> Mike Alsup wrote:
> > I think we're dealing with two very different errors.   Do you have a
> > url that exhibits the focus problem, that would be a big help.
> >
> > Mike
> >
> > On 3/19/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
> >> Well, I knew he meant crashes. :oP
> >>
> >> I just wanted the crash specifics. I posted a problem a few times a
> >> while back and got no response -- I know, folks are busy :o) So I wanted
> >> to confirm that it was the same problem I was having.
> >>
> >> Here was my exact error message (had to look it up):
> >>
> >>  "Can't move focus to the control because it is invisible, not
> >>  enabled, or of a type that does not accept the focus."
> >>
> >> So do you think your latest patch fixes this? (*hoping*):oD
> >>
> >> Chris
> >>
> >> Mike Alsup wrote:
> >>> I think he means "crashes".  The latest code in SVN *should* fix the
> >>> problem.  Please let me know if it doesn't.
> >>>
> >>> http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt
> >>>
> >>>
> >>> On 3/19/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>  By 'crushes' do you mean that you get a javascript error stating that
>  some element can't do something because it is hidden or missing (... I
>  know, my memory is great... sorry)... did you get something like that?
> >>> ___
> >>> jQuery mailing list
> >>> discuss@jquery.com
> >>> http://jquery.com/discuss/
> >>>
> >> --
> >> http://www.cjordan.us
> >>
> >> ___
> >> jQuery mailing list
> >> discuss@jquery.com
> >> http://jquery.com/discuss/
> >>
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> --
> http://www.cjordan.us
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation and hidden fields problem

2007-03-20 Thread Mike Alsup
Did you try:

$('div:not(:hidden) .required').each(...

> get all elements that have the class 'required' as long as the
> container does not have the class 'hidden' but sometimes there are
> loads of nested elements so its not always the parent as such. I've
> tried 'filter' and 'not' but with success, anyone got any ideas (it
> may be my syntax)?

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] IE bug or bug in my code ?

2007-03-20 Thread Jack Gleeson
In firefox the follow code works fine

 $(document).ready(function() {
 $(".form_con").hide();
 $("[EMAIL PROTECTED]").change( function() {
 if($.browser.safari) {
 if(this.value != 0)
 $(".form_con").hide();
 $("#form" + (this.value)).show();
 } else {
 if(this.value != 0) {
 $(".form_con").hide();
 $("#form" + (this.value)).fadeIn("slow");
 }
 }
 });
});

But in IE the above code does not work, I thought it would be an issue
with using swfobject with jquery buty I patched that up and the issue
is still unsolved.

It's pretty simple code, it hides 4 forms on load and then whatever
option you select from the select list, it shows the form. It works
fine in Firefox but in IE when I submit the page and do my regular
expression checks it shows all forms which is not correct.

Here is the on submit code,

$(document).ready(function() {
 $(".form").hide();
 $("#form" + ()).show();
 $('#conveyancing_list').attr('disabled', 'disabled');
 $("[EMAIL PROTECTED]").change( function() {
 if($.browser.safari) {
 if(this.value != 0)
 $(".form").hide();
 $("#form" + (this.value)).show();
 } else {
 if(this.value != 0) {
 $(".form").hide();
 $("#form" + (this.value)).fadeIn("slow");
 }
 }
 });
});

$contype being the form from the previous page which was selected,
this is so it shows the correct form errors.

Thanks alot

-- 
--

Jack Gleeson
Web Developer

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)

2007-03-20 Thread agent2026

Hey,
I thought you were somehow managing to do all of this from the parent, but
upon further testing I realize you meant to call the function from the
loaded content.

So, back to normal in IE6/7, but still have the same problem with Netscape.  

Curious btw, how come .load() isn't fired in IE, and is required in Moz?

Adam


agent2026 wrote:
> 
> Okay, in the parent (in cheap-debug mode):
> 
> $(function(){
> $('iframe')
>  
> .each(function(){alert('.each()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';})
>  
> .load(function(){alert('.load()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';});
> });
> 
> IE7: .load() never fires, but I'm getting an "object required" error now
> for some reason.
> 
> IE6: Here it gets interesting - .load() also never fires, but it works
> without errors.
> 
> Still doesn't work in Netscape btw.  No errors, but it doesn't resize the
> iframe.
> 
> Adam
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Anyone-ever-heard-of-this-Netscape-bowser---%29-tf3426039.html#a9568052
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Anyone ever heard of this Netscape bowser? ;)

2007-03-20 Thread agent2026

Okay, in the parent (in cheap-debug mode):

$(function(){
$('iframe')
 
.each(function(){alert('.each()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';})
 
.load(function(){alert('.load()');this.style.height=(this.contentWindow.document.body.scrollHeight)+'px';});
});

IE7: .load() never fires, but I'm getting an "object required" error now for
some reason.

IE6: Here it gets interesting - .load() also never fires, but it works
without errors.

Still doesn't work in Netscape btw.  No errors, but it doesn't resize the
iframe.

Adam




Danny Wachsstock wrote:
> 
> Odd. Mine works in IE. Can you tell what object and property is throwing
> the error (try just putting 'alert's before each line--cheap debugger) ?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Anyone-ever-heard-of-this-Netscape-bowser---%29-tf3426039.html#a9567952
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] DOM manipulation

2007-03-20 Thread Karl Rudd
Something like this will work:

var newDiv = $('').appendTo( this.parentNode ).append( '' );

Karl

On 3/20/07, Allan Mullan <[EMAIL PROTECTED]> wrote:
> Hey :-)
>
> Just trying to work out how in jQuery you would do something like
> (inside a function):
>
> var newDiv = this.parentNode.appendChild(document.createElement("div"));
> newDiv.appendChild(document.createElement('img'));
>
> Because this is in a function I'm trying to append the items to the
> object being passed (i.e. a parent div) using $('div').blah();
>
> I'm having a complete mind blank so would appreciate any help.
> I'm guessing it's using the append() functions etc??
>
> Thanks in advance
> Allan
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] DOM manipulation

2007-03-20 Thread Rob Desbois

var newDiv = $("").appendTo(this.parentNode);
$("").appendTo(newDiv);
[untested]

I'm don't think you need to jQuerify this.parentNode before doing appendTo
on it, although might be wrong.


On 3/20/07, Allan Mullan <[EMAIL PROTECTED]> wrote:


Hey :-)

Just trying to work out how in jQuery you would do something like
(inside a function):

var newDiv = this.parentNode.appendChild(document.createElement("div"));
newDiv.appendChild(document.createElement('img'));

Because this is in a function I'm trying to append the items to the
object being passed (i.e. a parent div) using $('div').blah();

I'm having a complete mind blank so would appreciate any help.
I'm guessing it's using the append() functions etc??

Thanks in advance
Allan

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] DOM manipulation

2007-03-20 Thread Allan Mullan
Hey :-)

Just trying to work out how in jQuery you would do something like 
(inside a function):

var newDiv = this.parentNode.appendChild(document.createElement("div"));
newDiv.appendChild(document.createElement('img'));

Because this is in a function I'm trying to append the items to the 
object being passed (i.e. a parent div) using $('div').blah();

I'm having a complete mind blank so would appreciate any help.
I'm guessing it's using the append() functions etc??

Thanks in advance
Allan

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] A few more plugins: crop, labelOver and pluck

2007-03-20 Thread Remy Sharp

I've not used VML before, I'll have a read around and see if I can do it -
it's certainly a lot better if you don't have to pass in the image.


Yansky wrote:
> 
> Regarding the IE glitch and the need to include a transparent gif rather
> than creating it on the fly; could you maybe use VML to render a
> transparent vector image?
> 

-- 
View this message in context: 
http://www.nabble.com/A-few-more-plugins%3A-crop%2C-labelOver-and-pluck-tf3430300.html#a9567911
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] [JQuery] Attribute selector

2007-03-20 Thread Klaus Hartl
Klaus Hartl schrieb:
> It's a common misunderstanding that classes are 
> for style.

... that classes are for style *only*.


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/