[jQuery] Select Box

2007-01-24 Thread David Gironella
I have a multiple selection select. I can use jquery to check which options
are selected?

 

Some example?

 

Thk.

Giro.

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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Aaron Heimlich

On 1/25/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:


Actually, you can use conditional comments around any HTML (but only HTML)



That means that both of these are valid:


   #foo {
   /* do stuff for every browser...*/
   }







I don't recall whether IE Mac can read conditional comments, but it
shouldn't matter much considering it's pretty much dead and gone by now.

It's also a good idea to put conditional comments after your main styles (as
everyone's examples have done) so that the IE specific rules will properly
override the main ones.

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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Aaron Heimlich

On 1/25/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:


So the sum total is to use conditional comments around the link to a
separate css for IE.



Actually, you can use conditional comments around any HTML (but only HTML)

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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Sam Collett
On 25/01/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
> Sorry for the off-topic post, but I know that css tends to get discussed
> a lot around here, and I'm sure someone here will know what I'm doing wrong.
>
> Okay, so I've got a div that contains a single  tag. In FF 2.0.0.1
> this text is vertically centered inside the div. In IE 6, it is not. So,
> I can fix IE by including a line-height equal to the height of the
> parent div. Fine, but that screws up FF. It seems that conditional
> comments are the solution for me, but I think I'm not using them right,
> because they're not working.
>
> Here's my code:
>
>  snip from css 
> div.SiteHeader{
> border: 1px solid #336566; /*AA*/
> width: 850px;
> background-color: #E3F0D6; /*D5F0D5,CDD9E5*/
> height: 60px;
> text-align: left;
> margin: auto;
> 
> }
> p.SiteHeaderText{
> font-size: 20px;
> font-weight: bold;
> color: #3F6F5E; /*#698DB0 (light), #5880A7 (darker), #4F7396 (darker
> still), #466686 (darkest yet)*/
> padding-left: 5px;
> }
>
>  end snip 
>
>  the html 
> 
> Cottonwood Financial Web Administation
> 
>
> Am I not using the conditional comments correctly? This is my first
> attempt at ever using them.
>
> I should also mention I'm using the following DocType:
>
>  "http://www.w3.org/TR/html4/strict.dtd";>
>
> I'd appreciate any help.
>
> Thanks,
> Chris
>
>
> --
> http://cjordan.info

Create a new stylesheet containing your IE hacks (i.e. ie.css) and in
the head of your html page (if it is needed for IE7 as well, use


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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
So the sum total is to use conditional comments around the link to a
separate css for IE. And possibly more than one for more problems with
each version.

Hopefully you're using some content management or server side includes
or the like to make it site wide.

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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Michael Geary
> > 

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Blair McKenzie

You need to put your IE specific css in a separate css file and put the html
link to that file inside the conditional comments.

If you want to put IE specific css settings inside your css file, you can
use a hack (hack = not supported. MS has committed to supporting conditional
comments). One of those is the underscore hack: '_line-height: 60px;'. Other
browsers ignore this invalid property, but IE skips merrily over it and
parses line-height. NOTE: this IS a hack, which means that it could stop
working at some point. Conditional comments will always work.

Blair

On 1/25/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:


Micheal, so that only works with inline 

Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
I found this quote on the net... it may help

While still in main CSS file, hacked selectors start with * html. This
is known as the 'star-HTML' hack. Standard compliant browsers ignore
this selector, because there's actually no elements above html in a
document tree. Luckily, IE doesn't know that and we're safe to use
this flaw when applying IE specific hacks. Once we move hacks to a
separate file and call it in a document with conditional comments,
it's safe to remove the * html part.

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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Karl Swedberg
That's right, and it often makes sense to put all of your IE-only  
styles in a separate stylesheet. So, in the HTML  you might  
have something like this:


  

  


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



On Jan 25, 2007, at 1:23 AM, Michael Geary wrote:


}



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


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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
Micheal, so that only works with inline 

Re: [jQuery] unobtrus

2007-01-24 Thread Ⓙⓐⓚⓔ
It's easy to lump 'crap html' with 'requiring javascript'... both are
undesirable! Whereas the former has no merit, the latter is sometimes
required for the presentation of beautiful sites!

John's description of 'crap html' shows just how bad the nightmare can be!

So let's all end the nightmare,with jQuery & css to the rescue!

On 1/24/07, John Beppu <[EMAIL PROTECTED]> wrote:
> I'd like to also add that Unobtrusive Javascript is just cleaner and
> easier to understand than the alternative.
>
> When I try to analyze a page that has tons of Javascript mixed with
> HTML, it can be very difficult see what's going on.  Contrast that
> with the unobtrusive approach where you can use CSS selectors or XPath
> queries to grab the elements you care about and apply behaviours to
> them.If you're good at naming your CSS classes and ids, the code
> you end up with has the potential to be so much cleaner and so much
> more beautiful.
>
> I don't even think it's more work to take this approach.
>
> It's not a hassle compared to the maintenance nightmare you might face
> otherwise with entagled Javascript and HTML.
>
> The Separation of Concerns is a good thing.  Many significant advances
> in the art of programming have been through people figuring out ways
> to separating concerns from each other.  MVC separates Models, Views,
> and Controllers from each other -- the benefit is understandability.
> Using HTML for content and CSS for presentation is another form of
> separation where two aspects of display have been separated, and
> again, this makes things easier to understand and way more flexible,
> because now the 2 parts can vary independently.  Javascript being
> separated from HTML is yet another step in this direction.
>
> If you're not sold on the general principles behind separating
> concerns, try to imagine the opposite.
>
> Imagine... a PHP page that makes SQL queries right before it populates
> a big HTML table that makes heavy use of nested tables for layout but
> also has some inlined CSS via the style attribute, and to top it all
> off the HTML is littered with onclick handlers and script tags at
> various places in the page.
>
> Now imagine a whole web site built this way.  (PAIN)
>
>
>
>
> That's what we're trying to get away from.
>
> That's why we (as programmers) are always coming up with new ways to
> separate concerns.
>
> It's a trend that you ignore at your own peril.
>
>
>
> (I'm not sure what possessed me to write so much, but I gotta post
> that to my blog ;-)
>
>
> On 1/24/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> > Ⓙⓐⓚⓔ wrote:
> > > there are a million reasons to separate js from the html!
> > >
> > > but UOJS is the ability for a page to still work without javascript. A
> > > very admirable feature!
> >
> > I'd say accessibility is one - obviously the most important - aspect of
> > UOJS. You could probably code accessible without separating js and html
> > but since the whole UOJS movement started adherers also consider
> > separation good practice.
> >
> > I pretty much believe that this separation is part of UOJS, but hey,
> > nowhere is there an official definition so in the end it's just another
> > personal opinion.
> >
> > And yes of course, it is admirable :-) Everybody should be doing it!
> >
> >
> > -- Klaus
> >
> > ___
> > 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: CSS Conditional Comments

2007-01-24 Thread Michael Geary

> }


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


Re: [jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Ⓙⓐⓚⓔ
sure looks right!  IE is disgusting, as so are conditional comments! I
prefer to kludge IE all at once in an if ($.browser.msie) block , and
even load in a different style sheet for those crazy browsers!  I read
a way that IE naturally ignores some css (without conditional
comments) that  a new compliant IE might obey! Perhaps an IE guru can
shed more info here.




> 

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


Re: [jQuery] unobtrus

2007-01-24 Thread John Beppu
I'd like to also add that Unobtrusive Javascript is just cleaner and
easier to understand than the alternative.

When I try to analyze a page that has tons of Javascript mixed with
HTML, it can be very difficult see what's going on.  Contrast that
with the unobtrusive approach where you can use CSS selectors or XPath
queries to grab the elements you care about and apply behaviours to
them.If you're good at naming your CSS classes and ids, the code
you end up with has the potential to be so much cleaner and so much
more beautiful.

I don't even think it's more work to take this approach.

It's not a hassle compared to the maintenance nightmare you might face
otherwise with entagled Javascript and HTML.

The Separation of Concerns is a good thing.  Many significant advances
in the art of programming have been through people figuring out ways
to separating concerns from each other.  MVC separates Models, Views,
and Controllers from each other -- the benefit is understandability.
Using HTML for content and CSS for presentation is another form of
separation where two aspects of display have been separated, and
again, this makes things easier to understand and way more flexible,
because now the 2 parts can vary independently.  Javascript being
separated from HTML is yet another step in this direction.

If you're not sold on the general principles behind separating
concerns, try to imagine the opposite.

Imagine... a PHP page that makes SQL queries right before it populates
a big HTML table that makes heavy use of nested tables for layout but
also has some inlined CSS via the style attribute, and to top it all
off the HTML is littered with onclick handlers and script tags at
various places in the page.

Now imagine a whole web site built this way.  (PAIN)




That's what we're trying to get away from.

That's why we (as programmers) are always coming up with new ways to
separate concerns.

It's a trend that you ignore at your own peril.



(I'm not sure what possessed me to write so much, but I gotta post
that to my blog ;-)


On 1/24/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Ⓙⓐⓚⓔ wrote:
> > there are a million reasons to separate js from the html!
> >
> > but UOJS is the ability for a page to still work without javascript. A
> > very admirable feature!
>
> I'd say accessibility is one - obviously the most important - aspect of
> UOJS. You could probably code accessible without separating js and html
> but since the whole UOJS movement started adherers also consider
> separation good practice.
>
> I pretty much believe that this separation is part of UOJS, but hey,
> nowhere is there an official definition so in the end it's just another
> personal opinion.
>
> And yes of course, it is admirable :-) Everybody should be doing it!
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] OT: CSS Conditional Comments

2007-01-24 Thread Christopher Jordan
Sorry for the off-topic post, but I know that css tends to get discussed
a lot around here, and I'm sure someone here will know what I'm doing wrong.

Okay, so I've got a div that contains a single  tag. In FF 2.0.0.1
this text is vertically centered inside the div. In IE 6, it is not. So,
I can fix IE by including a line-height equal to the height of the
parent div. Fine, but that screws up FF. It seems that conditional
comments are the solution for me, but I think I'm not using them right,
because they're not working.

Here's my code:

 snip from css 
div.SiteHeader{
border: 1px solid #336566; /*AA*/
width: 850px;
background-color: #E3F0D6; /*D5F0D5,CDD9E5*/
height: 60px;
text-align: left;
margin: auto;

}
p.SiteHeaderText{
font-size: 20px;
font-weight: bold;
color: #3F6F5E; /*#698DB0 (light), #5880A7 (darker), #4F7396 (darker
still), #466686 (darkest yet)*/
padding-left: 5px;
}

 end snip 

 the html 

Cottonwood Financial Web Administation


Am I not using the conditional comments correctly? This is my first
attempt at ever using them.

I should also mention I'm using the following DocType:

http://www.w3.org/TR/html4/strict.dtd";>

I'd appreciate any help.

Thanks,
Chris


-- 
http://cjordan.info

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


Re: [jQuery] Why am I getting this error message?

2007-01-24 Thread Ⓙⓐⓚⓔ
I'm not the expert on easing... I played with them a few times...
enjoyed the little effects and went on to other code!

I use animate and it's a jquery function so when you [1] you just get
the element, I assumed it would not have the animate function in that
simple element. Am I wrong?

Enjoy firebug... it takes some poking around... but it's a whole new
playground for poking!!

On 1/24/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> For whatever reason, dropping the [1] didn't help, either.
>
> However, when I ran the code live on my production server,
> it worked like a charm... ???
>
> Rick
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
> Sent: Wednesday, January 24, 2007 7:53 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Why am I getting this error message?
>
> you don't animate an el, you animate a jQuery object! drop the [1]!
>
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Why am I getting this error message?

2007-01-24 Thread Rick Faircloth
I already had Firefox installed, but now I have Firebug... don't quite know
what to do with it, but I'm sure I'll figure it out along the way.

Here's one question... I really like the way the "easeout" function works
on http://gsgd.co.uk/sandbox/jquery.easing.php
and would like to use it on a calendar.  When a user clicks "Details" for an
event, I would like for the details to slide down from the main event line.

However, the event is "easeout", not "easedown".  I would like to use an
event that shows the details sliding down smoothly.

Can you, Jake, or anyone else, point me to a tutorial on how to make that
happen?

I'd like to use table rows for the calendar, although the details definitely 
don't
have to be rows... the container could be a div.

Suggestions?

Rick



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Sent: Wednesday, January 24, 2007 7:56 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Why am I getting this error message?

and as to why you get that message and the line number don't help much
is that you are attempting to debug in IE!
The players use firefox + firebug!





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


Re: [jQuery] Why am I getting this error message?

2007-01-24 Thread Rick Faircloth
For whatever reason, dropping the [1] didn't help, either.

However, when I ran the code live on my production server,
it worked like a charm... ???

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Sent: Wednesday, January 24, 2007 7:53 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Why am I getting this error message?

you don't animate an el, you animate a jQuery object! drop the [1]!





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


Re: [jQuery] $(ele).css('height') and $.css(ele, 'height') are different?

2007-01-24 Thread Blair Mitchelmore
Not sure on this but...

I believe that's because .css() - in the case of IE - returns the 
element.currentStyle value which is exactly the same as what the 
stylesheet says. In other browsers, 
document.defaultView.getComputedStyle is used which computes the actual 
pixel value of what it returns based on what the stylesheet says.

-blair

Arrix wrote:
> html: Hello
>
> JavaScript: $(function() {
> alert($('#div1').css('height') + ' ' + $('#div1').height() + ' ' + 
> $.css($('#div1')[0], 'height'));
> });
>
> The result is as follows
>  
> Firefox:  19px 19 19
> Opera:   19px 19 19
> IE: auto 19 19
>
> Why is $(ele).css('height') in IE different? Is this a bug or by design?
> -- 
> Arrix
>
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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


[jQuery] $(ele).css('height') and $.css(ele, 'height') are different?

2007-01-24 Thread Arrix

html: Hello

JavaScript: $(function() {
   alert($('#div1').css('height') + ' ' + $('#div1').height() + ' ' +
$.css($('#div1')[0], 'height'));
});

The result is as follows

Firefox:  19px 19 19
Opera:   19px 19 19
IE: auto 19 19

Why is $(ele).css('height') in IE different? Is this a bug or by design?
--
Arrix
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Giving up regular DOCTYPES

2007-01-24 Thread Ⓙⓐⓚⓔ
I gave up relying on custom doctypes when I realized no matter how
nice a dtd I made, the only use was at the validaters! I looked around
for syntax driven editors, and found only a few and they were schema
based!

Now I just use XHTML 1.1 and play my own tricks... with the help of jquery!

 is just fine for me.

On 1/24/07, zelexir <[EMAIL PROTECTED]> wrote:
>
> So, I had a wakeup call the other day when looking for a solution to a
> problem of mine when I bumped into this:
> http://www.cs.tut.fi/~jkorpela/html/own-dtd.html Creating your own DTD for
> HTML validation .
>
> So I'm wondering, why this isn't more widespread.
>
> Now I can write code like this: This is a topic and
> still make validation (not for the standard but for my edited version of
> one).
>
> So I made a few changes in a edit in place script I'm working on, and I
> gotta say it makes the source much more readable.
>
> so instead of
> This is the topic of news
> nr5
>
> I get
> This is the topic of
> news nr5
>
> Or like I'm using it:
> 
>This is the topic of news nr5
>This is a editable paragraph
> 
>
> and with jQuery I'm able to use the selectors $('h1[editable=true]') to
> generate a  field and $('div[editable=true]') to generate a WYSIWYG
> editor.
>
> I get the current table and unique id from checking the parent div's
> parameters, and the field from the current element.
>
> Ok so this is getting a little long, but why oh why, havn't I thought of
> this before? And whats the catch?!
> I'ts late and I really gotta get some sleep, but I would love to hear some
> input in this from fellow JQuery users, we do want our code to be easy to
> read, don't we? :P
> --
> View this message in context: 
> http://www.nabble.com/Giving-up-regular-DOCTYPES-tf3095989.html#a8595317
> 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] Dom Updates?

2007-01-24 Thread Daemach

Nuts - I just saw the link to your source file.  Oddly, the document.ready
function isn't firing an alert on my page if I submit a form then hit the
back button to get to my original page


tmcw wrote:
> 
> Thanks, I've got it fixed now, for the most part. Ha, except I think it's
> encountering race conditions and my CS major-in-progress might actually
> come into use, but probably not. You can check it out here -
> http://rockpolka.workingidea.com/
> 
> Jörn Zaefferer wrote:
>> 
>> tmcw schrieb:
>>> Does jQuery automatically update the DOM after new content is loaded via
>>> the
>>> .load() function? It seems like it's working in some cases and failing
>>> on
>>> others right now. If not, is there a way to manually update it? I'm
>>> binding
>>> a function to links with a certain class on document.ready, but when new
>>> links are loaded in, they don't trigger the function.
>>>   
>> You have to reapply the event bindings to elements that you add later to 
>> the DOM, like the ones loaded via load().
>> 
>> See also http://www.learningjquery.com/2006/09/sacrificial-lambda
>> 
>> -- 
>> Jörn Zaefferer
>> 
>> http://bassistance.de
>> 
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dom-Updates--tf3036986.html#a8595652
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Dom Updates?

2007-01-24 Thread tmcw

The code is here - http://rockpolka.workingidea.com/js/driver.js

I don't understand how this just abruptly stopped working and now I can't
get it to ever work with a callback.


tmcw wrote:
> 
> Can the callback be the function that it's in? For some reason, if I try
> it with another function, for instance, test_alert, it runs, but it the
> callback is the exterior function nothing at all happens.
> 
> 
> wycats wrote:
>> 
>> Yep. I think there should be a way to encapsulate it, but I'll have to
>> give
>> it more thought. I use this technique in an app that has some people
>> insisting on using Prototype, and the great thing is that they can use it
>> to. They simply call docReady("#theirId")
>> 
>> -- Yehuda
>> 
>> On 1/18/07, Justin Carter <[EMAIL PROTECTED]> wrote:
>>>
>>> On 1/19/07, Yehuda Katz <[EMAIL PROTECTED]> wrote:
>>> > What I do is apply a context to the function called by document.ready,
>>> and
>>> > use that context in all of the calls I make in it. Then, on load()'s
>>> > complete, I pass the stuff being updated into that method.
>>> >
>>> > docReady = function(cx) {
>>> >   cx = cx || document;
>>> >   $("tr:odd", cx).addClass("odd")
>>> > }
>>> >
>>> > $(docReady);
>>> >
>>> > $("#container").load(url, function(html) { docReady(html) })
>>> >
>>> > Something like that should work :-D
>>> >
>>> > -- Yehuda
>>>
>>> That's a great tip Yehuda! Keeps everything contained in 1 nice function
>>> :)
>>>
>>> cheers,
>>> Justin
>>>
>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>
>> 
>> 
>> 
>> -- 
>> Yehuda Katz
>> Web Developer | Wycats Designs
>> (ph)  718.877.1325
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dom-Updates--tf3036986.html#a8595650
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Dom Updates?

2007-01-24 Thread Daemach

I notice that if I use history to go back to a page with the alert box "links
prepared" you are able to capture that and re-prepare the links.  I am
trying to solve a window/page focus/loading event issue.  Would you mind
posting how you're doing the binding that calls that function?



tmcw wrote:
> 
> Thanks, I've got it fixed now, for the most part. Ha, except I think it's
> encountering race conditions and my CS major-in-progress might actually
> come into use, but probably not. You can check it out here -
> http://rockpolka.workingidea.com/
> 
> Jörn Zaefferer wrote:
>> 
>> tmcw schrieb:
>>> Does jQuery automatically update the DOM after new content is loaded via
>>> the
>>> .load() function? It seems like it's working in some cases and failing
>>> on
>>> others right now. If not, is there a way to manually update it? I'm
>>> binding
>>> a function to links with a certain class on document.ready, but when new
>>> links are loaded in, they don't trigger the function.
>>>   
>> You have to reapply the event bindings to elements that you add later to 
>> the DOM, like the ones loaded via load().
>> 
>> See also http://www.learningjquery.com/2006/09/sacrificial-lambda
>> 
>> -- 
>> Jörn Zaefferer
>> 
>> http://bassistance.de
>> 
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dom-Updates--tf3036986.html#a8595651
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Dom Updates?

2007-01-24 Thread tmcw

Can the callback be the function that it's in? For some reason, if I try it
with another function, for instance, test_alert, it runs, but it the
callback is the exterior function nothing at all happens.


wycats wrote:
> 
> Yep. I think there should be a way to encapsulate it, but I'll have to
> give
> it more thought. I use this technique in an app that has some people
> insisting on using Prototype, and the great thing is that they can use it
> to. They simply call docReady("#theirId")
> 
> -- Yehuda
> 
> On 1/18/07, Justin Carter <[EMAIL PROTECTED]> wrote:
>>
>> On 1/19/07, Yehuda Katz <[EMAIL PROTECTED]> wrote:
>> > What I do is apply a context to the function called by document.ready,
>> and
>> > use that context in all of the calls I make in it. Then, on load()'s
>> > complete, I pass the stuff being updated into that method.
>> >
>> > docReady = function(cx) {
>> >   cx = cx || document;
>> >   $("tr:odd", cx).addClass("odd")
>> > }
>> >
>> > $(docReady);
>> >
>> > $("#container").load(url, function(html) { docReady(html) })
>> >
>> > Something like that should work :-D
>> >
>> > -- Yehuda
>>
>> That's a great tip Yehuda! Keeps everything contained in 1 nice function
>> :)
>>
>> cheers,
>> Justin
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> Yehuda Katz
> Web Developer | Wycats Designs
> (ph)  718.877.1325
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dom-Updates--tf3036986.html#a8595600
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Giving up regular DOCTYPES

2007-01-24 Thread zelexir

So, I had a wakeup call the other day when looking for a solution to a
problem of mine when I bumped into this:
http://www.cs.tut.fi/~jkorpela/html/own-dtd.html Creating your own DTD for
HTML validation .

So I'm wondering, why this isn't more widespread.

Now I can write code like this: This is a topic and
still make validation (not for the standard but for my edited version of
one).

So I made a few changes in a edit in place script I'm working on, and I
gotta say it makes the source much more readable.

so instead of
This is the topic of news
nr5

I get
This is the topic of
news nr5

Or like I'm using it:

   This is the topic of news nr5
   This is a editable paragraph


and with jQuery I'm able to use the selectors $('h1[editable=true]') to
generate a  field and $('div[editable=true]') to generate a WYSIWYG
editor.

I get the current table and unique id from checking the parent div's
parameters, and the field from the current element.

Ok so this is getting a little long, but why oh why, havn't I thought of
this before? And whats the catch?!
I'ts late and I really gotta get some sleep, but I would love to hear some
input in this from fellow JQuery users, we do want our code to be easy to
read, don't we? :P
-- 
View this message in context: 
http://www.nabble.com/Giving-up-regular-DOCTYPES-tf3095989.html#a8595317
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Mike Alsup
> If you know some link where I can find good material, please let me
> know where.

There is some good material here, just updated tonight.

http://www.malsup.com/jquery/form/

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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Massimiliano Marini
Hi Karl,

> Try adding an "action" attribute to the form. Try first with an empty
> one: action=""
> 
> In theory the form won't submit without an action.

I concord with you, but in a lot of examples the "action"
is omitted, in specific, some script have only the "id" value

-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Massimiliano Marini
Hi,

> It's the stupid PHP!
> that code make a little file then does nothing with it!

Yes I know, I've said it in my first post, is stupid but for simple test
is right.

> Using firefox+firebug , you can monitor just what gets returned from ajax 
> calls!

I use the firebug plugin in my firefox but no messages 
about returned ajax call are displayed, the icon is alway green,
perhaps I have omitted some configurations? 

-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Massimiliano Marini
Hi Kristinn,

>   return false; <-

> will stop the form from submitting and process your calls.

Thank you very much :) 
I ask sorry for my post, but I'm studying and learning
the right things more with this ML instead the tutorial
around the net.

If you know some link where I can find good material, please let me
know where.

Regards
-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Kristinn Sigmundsson
The thing is that the ajax call will never be made, because the form
submits (to itself?). Adding a this:

  /* The same with this code */
  $.post("script.php");
  return false; <-

will stop the form from submitting and process your calls.

On 1/25/07, Karl Rudd <[EMAIL PROTECTED]> wrote:
> Try adding an "action" attribute to the form. Try first with an empty
> one: action=""
>
> In theory the form won't submit without an action.
>
> Karl Rudd
>
> On 1/25/07, Massimiliano Marini <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I want to save data typed into a form in to a simple file
> > with a script file write in PHP.
> >
> > I must use $.ajax or $.post? Well, both don't work for me, sure
> > I'm in error but where?
> >
> > index.htm
> > 
> > 
> >  
> >jquery 
> >   
> >   
> > $(document).ready(function(){
> >   $("#myForm").submit(function(){
> > var testoForm = $("[EMAIL PROTECTED]").val();
> > /* With this code don't work */
> > $.ajax({
> > type: "POST",
> > url: "script.php",
> > data: "ValoreForm="+testoForm,
> > success: function(){$("#output").html("Written data with 
> > success!");}
> > });
> >/* The same with this code */
> >$.post("script.php");
> >   });
> > });
> >  
> >  
> >
> >  
> >   
> >
> >
> >   
> >
> > Ajax response will replace this content.
> >  
> > 
> > 
> >
> > This is a stupid PHP code which I verify if the script go in function
> > creating a txt file with a simple text inside
> > // script.php
> > 
> >  >   $f = "db.txt";
> >   $t = "Hello JQuery!";
> >   $fh = fopen($f, 'wa') or die("Error!!!");
> >   fwrite($fh,$t);
> >   fclose($fh);
> > ?>
> > 
> >
> > --
> > Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
> > "It's easier to invent the future than to predict it."  -- Alan Kay
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
——
 Med Vänliga Hälsningar
 Kristinn "Kiddi" Sigmundsson
   0707-971938
——

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


[jQuery] my code produces an error within jquery.js

2007-01-24 Thread Neko
Hello to you jquery fans out there,
Im using a cusomized Version of Innerfade by medienfreunde.com to be 
able to fade on link mouseover in the same elements as innerfade is 
doing its show while stopping further timed fades.
You can find the Code at http://pastey.net/5487 including some 
explanatory Comments.
Id be pleased if somebody could take a look at it, i could just discard 
using jquery fadeIn but im trying to learn from it :)

greetings,
 Jonas Wolff


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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Karl Rudd
Try adding an "action" attribute to the form. Try first with an empty
one: action=""

In theory the form won't submit without an action.

Karl Rudd

On 1/25/07, Massimiliano Marini <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want to save data typed into a form in to a simple file
> with a script file write in PHP.
>
> I must use $.ajax or $.post? Well, both don't work for me, sure
> I'm in error but where?
>
> index.htm
> 
> 
>  
>jquery 
>   
>   
> $(document).ready(function(){
>   $("#myForm").submit(function(){
> var testoForm = $("[EMAIL PROTECTED]").val();
> /* With this code don't work */
> $.ajax({
> type: "POST",
> url: "script.php",
> data: "ValoreForm="+testoForm,
> success: function(){$("#output").html("Written data with success!");}
> });
>/* The same with this code */
>$.post("script.php");
>   });
> });
>  
>  
>
>  
>   
>
>
>   
>
> Ajax response will replace this content.
>  
> 
> 
>
> This is a stupid PHP code which I verify if the script go in function
> creating a txt file with a simple text inside
> // script.php
> 
>$f = "db.txt";
>   $t = "Hello JQuery!";
>   $fh = fopen($f, 'wa') or die("Error!!!");
>   fwrite($fh,$t);
>   fclose($fh);
> ?>
> 
>
> --
> Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
> "It's easier to invent the future than to predict it."  -- Alan Kay
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Form Ajax and PHP

2007-01-24 Thread Ⓙⓐⓚⓔ
It's the stupid PHP!

that code make a little file then does nothing with it!

add some regular output and see what you get!

or practice with a simple text file!

Using firefox+firebug , you can monitor just what gets returned from ajax calls!

> This is a stupid PHP code which I verify if the script go in function
> creating a txt file with a simple text inside
> // script.php
> 
>$f = "db.txt";
>   $t = "Hello JQuery!";
>   $fh = fopen($f, 'wa') or die("Error!!!");
>   fwrite($fh,$t);
>   fclose($fh);
> ?>
> 
>
> --
> Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
> "It's easier to invent the future than to predict it."  -- Alan Kay
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


[jQuery] Form Ajax and PHP

2007-01-24 Thread Massimiliano Marini
Hi all,

I want to save data typed into a form in to a simple file
with a script file write in PHP.

I must use $.ajax or $.post? Well, both don't work for me, sure
I'm in error but where?

index.htm
 

 
   jquery 
  
  
$(document).ready(function(){
  $("#myForm").submit(function(){
var testoForm = $("[EMAIL PROTECTED]").val();
/* With this code don't work */
$.ajax({ 
type: "POST", 
url: "script.php", 
data: "ValoreForm="+testoForm, 
success: function(){$("#output").html("Written data with success!");}
});
   /* The same with this code */ 
   $.post("script.php");
  });
});
 
 

 
  
   
   
  

Ajax response will replace this content.
 



This is a stupid PHP code which I verify if the script go in function
creating a txt file with a simple text inside
// script.php




-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] Why am I getting this error message?

2007-01-24 Thread Ⓙⓐⓚⓔ
and as to why you get that message and the line number don't help much
is that you are attempting to debug in IE!
The players use firefox + firebug!

On 1/24/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> you don't animate an el, you animate a jQuery object! drop the [1]!
>
> On 1/24/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi, all…
> >
> > I'm trying to run some of the jQuery.easing code, but having a problem…
> >
> > When I run the code below I get this error message:
> >
> > "An error has occurred in the script on this page."
> >
> > Line: 50
> >
> > Char: 1
> >
> > Error: Object expected
> >
> > Code: 0
> >
> > URL:
> > file:///G:/Website%20Trials/Disappearing%20Div_01.html
> >
> > Ideas anyone?
> >
> > Thanks!
> >
> >
> >
> > Here's the code between the head tags:
> >
> >  > type="text/javascript">
> >
> >  > type="text/javascript">
> >
> > 
> >
> > $(document).ready(function() {
> >
> > $("#examples a").toggle(function(){
> >
> > var el = $('#' + this.href.split('#')[1]);
> >
> > var method = el[0].id;
> >
> > el.animate({width:600}, {duration: 1000, easing:
> > method});
> >
> > },function(){
> >
> > var el = $('#' + this.href.split('#')[1]);
> >
> > var method = el[0].id;
> >
> > el.animate({width:400}, {duration: 1000, easing:
> > method});
> >
> > });
> >
> > });
> >
> > 
> >
> >
> >
> > Here's the code between the body tags:
> >
> >
> >
> > 
> >
> > toggle
> >
> > easeout
> >
> > 
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> >
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>


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


Re: [jQuery] Why am I getting this error message?

2007-01-24 Thread Ⓙⓐⓚⓔ
you don't animate an el, you animate a jQuery object! drop the [1]!

On 1/24/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi, all…
>
> I'm trying to run some of the jQuery.easing code, but having a problem…
>
> When I run the code below I get this error message:
>
> "An error has occurred in the script on this page."
>
> Line: 50
>
> Char: 1
>
> Error: Object expected
>
> Code: 0
>
> URL:
> file:///G:/Website%20Trials/Disappearing%20Div_01.html
>
> Ideas anyone?
>
> Thanks!
>
>
>
> Here's the code between the head tags:
>
>  type="text/javascript">
>
>  type="text/javascript">
>
> 
>
> $(document).ready(function() {
>
> $("#examples a").toggle(function(){
>
> var el = $('#' + this.href.split('#')[1]);
>
> var method = el[0].id;
>
> el.animate({width:600}, {duration: 1000, easing:
> method});
>
> },function(){
>
> var el = $('#' + this.href.split('#')[1]);
>
> var method = el[0].id;
>
> el.animate({width:400}, {duration: 1000, easing:
> method});
>
> });
>
> });
>
> 
>
>
>
> Here's the code between the body tags:
>
>
>
> 
>
> toggle
>
> easeout
>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


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


Re: [jQuery] Why am I getting this error message?

2007-01-24 Thread Rick Faircloth
Oh, btw. Line 50 is the $(document).ready(function() { line.
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Wednesday, January 24, 2007 7:09 PM
To: 'jQuery Discussion.'
Subject: [jQuery] Why am I getting this error message?
 
Hi, all.
I'm trying to run some of the jQuery.easing code, but having a problem.
When I run the code below I get this error message:
"An error has occurred in the script on this page."
Line: 50
Char: 1
Error: Object expected
Code: 0
URL:   
file:///G:/Website%20Trials/Disappearing%20Div_01.html
Ideas anyone?
Thanks!
Here's the code between the head tags:



$(document).ready(function() {
$("#examples a").toggle(function(){
var el = $('#' + this.href.split('#')[1]);
var method = el[0].id;
el.animate({width:600}, {duration: 1000, easing:
method});
},function(){
var el = $('#' + this.href.split('#')[1]);
var method = el[0].id;
el.animate({width:400}, {duration: 1000, easing:
method});
});
});

Here's the code between the body tags:

toggle
easeout

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


Re: [jQuery] dropdown menu with IE select fix?

2007-01-24 Thread rolfsf


What element would I apply bgiframe to - the select or the nested lists in
the menu? I've played a bit with the lists but it's not working yet.


Sure, just use the bgiframe plugin found in the plugins svn.
http://jquery.com/dev/svn/trunk/plugins/bgiframe/bgiframe.js?format=txt

--
Brandon Aaron


-- 
View this message in context: 
http://www.nabble.com/dropdown-menu-with-IE-select-fix--tf3084885.html#a8594257
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Why am I getting this error message?

2007-01-24 Thread Rick Faircloth
Hi, all.

I'm trying to run some of the jQuery.easing code, but having a problem.
When I run the code below I get this error message:

"An error has occurred in the script on this page."

Line: 50
Char: 1
Error: Object expected
Code: 0
URL:  file:///G:/Website%20Trials/Disappearing%20Div_01.html

Ideas anyone?

Thanks!



Here's the code between the head tags:




$(document).ready(function() {
$("#examples a").toggle(function(){
var el = $('#' + this.href.split('#')[1]);
var method = el[0].id;
el.animate({width:600}, {duration: 1000, easing:
method});
},function(){
var el = $('#' + this.href.split('#')[1]);
var method = el[0].id;
el.animate({width:400}, {duration: 1000, easing:
method});
});
});




Here's the code between the body tags:




toggle
easeout


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


Re: [jQuery] Fwd : simple selector with ID doesn't work anymore

2007-01-24 Thread Klaus Hartl
Repost, didn't came through I guess...

[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> I've been looking for a solution regarding my problem... first, it 
> appears I hadn't the right files when doing my tests with different 
> versions. So it works fine  with the packed version 1.0.4 . But when I 
> replace it with the packed v1.1.1, the code
> alert(' div : '+$("div#tab_0").length+'- li : 
> '+$("li#tab_0").length);
> doesn't produce the same result.
> with v1.0.4 : "div : 1- li : 1"
> with v1.1.1 : "div : 0 - li : 1"
> 
> The generated HTML code parsed by Jquery is something like this  :
> 
> 
> 
>   style="cursor: pointer;">Great Clients
>   style="cursor: pointer;">Good Clients
>   style="cursor: pointer;">Bad Clients
>
>  loading...  
> 
> 
> 
> 
> div0
> 
> 
> div1
> 
> 
> 
> I really don't understand why the li element matches, but not the div 
> element. Can somebody help me please ?
> 
> Thanks in advance


Vincent,

an id has to be unique in a document, I wouldn't rely on anything with
invalid HTML.

I assume the following happens: document.getElementById usually
retrieves the first element with the given id if you have more than one
element with that id. It will never return both by design.

 From what I know from discussions about speeding up jQuery 1.1 it uses
getElementById for the selector 'div#id' and then checks if the type is
correct. That means:

$("li#tab_0") and $("div#tab_0") and $("#tab_0") with your HTML will all
first return the following element (which comes first in the source):



Checking the type now obviously only returns an element for $("li#tab_0").

If you'd use valid HTML you wouldn't have all the problems and jQuery
cannot be blamed to have a bug here. If you want to differentiate
elements (that seem to belong to a certain class here) by its type in a
selector use the class attribute.


-- Klaus



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


Re: [jQuery] select form problem

2007-01-24 Thread j. siefer

have you tried this? ...checked="checked">

 $("select#s_morning option:eq(" + people + ")").attr("checked", "checked");
-- 
View this message in context: 
http://www.nabble.com/select-form-problem-tf3080085.html#a8589550
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Kelvin's Scroll Pane

2007-01-24 Thread Kelvin Luck
Yehuda Katz wrote:
> Cool! I hope my efforts were useful in your updates!
> 
> I noticed a slight glitch in IE with the OSX display, which could easily 
> be resolved by simply moving the dragger's z-index in front of the bar 
> (and perhaps some sort of png opacity fix).
> 
> -- Yehuda

Yes - thanks for your efforts with the plugin :)

I've kind of fixed the IE issue although it's still not perfect. Let me 
know if you can come up with a better solution but that's the best I can 
do for now...

Cheers,

Kelvin :)

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


Re: [jQuery] Kelvin's Scroll Pane

2007-01-24 Thread Kelvin Luck
Mateusz Misiorny wrote:
> On 1/23/07, Kelvin Luck <[EMAIL PROTECTED]> wrote:
> 
>> Thanks for the feedback. I'm afraid I can't reproduce your problem
>> though... For me (IE6 and FF2 on WinXP) when you click an arrow it moves
>> immediately, pauses, moves, pauses and then starts moving quite
>> smoothly... Actually, I just noticed that this is slightly different to
>> the default behaviour on Windows and so I've changed it so that it now
>> only pauses once briefly after the first movement,
> 
> For me it still behaves the same.
> If I click with 1 sec intervals, only some clicks have any effect on
> the scrollbar (like 1 in ~3, feels like it was accumulating the time
> in clicked state). But each click is being recognized because the
> arrows change to pressed state.
> Before I wrote about it I checked also in Opera, and it is consistent,
> so I assumed it must be js issue, not a browser quirk. I am on Linux,
> that's true, but I don't think it's an issue here.
> 
> Interesting that you cannot reproduce it, I will try to debug it then.
> 
> Matt

Hi,

Ahhh - I see what you meant. When you click repeatedly and quickly on 
the arrow button (I was clicking and holding). I've now fixed this issue 
- thanks for the report!

Cheers,

Kelvin :)

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


Re: [jQuery] unobtrus

2007-01-24 Thread Klaus Hartl
Ⓙⓐⓚⓔ wrote:
> there are a million reasons to separate js from the html!
> 
> but UOJS is the ability for a page to still work without javascript. A
> very admirable feature!

I'd say accessibility is one - obviously the most important - aspect of 
UOJS. You could probably code accessible without separating js and html 
but since the whole UOJS movement started adherers also consider 
separation good practice.

I pretty much believe that this separation is part of UOJS, but hey, 
nowhere is there an official definition so in the end it's just another 
personal opinion.

And yes of course, it is admirable :-) Everybody should be doing it!


-- Klaus

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


Re: [jQuery] simple selector with ID doesn't work anymore

2007-01-24 Thread j. siefer

hi, tiny hint $("div#tab_1") is slower then $("#tab_1") 

to your problem, i think your error might be somewhere else, maybe you gave
your object with

$('').id('tab_1') // this will not work anymore
$('').attr('id','tab_1') // you have to do it like this,

maybe you got stucked there some where, just look for ".id(" inside your
code


Vincent FUCHS wrote:
> 
> Hi,
> 
> I've just upgraded from 1.0.3 to 1.1.1 and some selectors don't work 
> anymore.
> A simple selector like $("div#tab_1") cant' find the div  
> in v1.1.1 while there was no problem with v1.0.3 .
> 
> So unless the selecting philosophy has greatly changed between these two 
> versions, I guess this is a pretty important bug.
> 
> It seems to be OK on 1.0.4 though, but I have a "$(document).ready is not 
> a function" error.
> 
> Can somebody tell me if I'm wrong or if it's a bug ? 
> 
> Thanks in advance 
> 
> -- 
> Vincent FUCHS
> *
> This message and any attachments (the "message") are confidential and
> intended solely for the addressee(s).
> Any unauthorised use or dissemination is prohibited. E-mails are
> susceptible to alteration.   
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall
> be liable for the message if altered, changed or
> falsified.
>   
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> confidentiels et etablis a l'intention exclusive de ses
> destinataires. Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration. 
> La SOCIETE GENERALE et ses filiales declinent toute responsabilite au
> titre de ce message s'il a ete altere, deforme ou falsifie.
> *
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/simple-selector-with-ID-doesn%27t-work-anymore-tf3080046.html#a8588456
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Form and .submit

2007-01-24 Thread j. siefer


$(document).ready(function(){
$("#myForm").submit(function(){
alert("Submit Pressed");
)};// swirtch it to });
});



-- 
View this message in context: 
http://www.nabble.com/Form-and-.submit-tf3084893.html#a8586446
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] cant append() form objects

2007-01-24 Thread Jeremy Dill
After upgrading from 1.0.4 to 1.1.1 the following code no longer works.
Please tell me if there is a solution to this issue.
 
---WORKING HTML TEST PAGE
http://www.w3.org/1999/xhtml";  >


test

.layerbox{font-size:8pt;text-align:left;padding:10px;margin:20px;border:1px
solid #B2C5EC; background-color:#FCFCFC;float:left;
clear:left;height:200px;width:200px}



 



function appLayer(id){
 //create layerbox
  var layerbox=document.createElement('div');
  layerbox.id=id+"_layer";
  layerbox.className="layerbox";
  $("#content").prepend(layerbox);
  this.divName=layerbox.id;
  this.layerobj=layerbox;
 //create form
  var frm=document.createElement('form');
  frm.id=id+"_form";
  frm.name=id+"_form";
  frm.action = "index.php";
  frm.method = "post";
   this.frm=frm.id;
//---HERE IS THE PROBLEM-///
  $("#"+this.divName).append(frm);
//---APPEND DOESNT WORK FOR FORM OBJECT--///
  //create main div
 var main=document.createElement('div');
 main.id=id+"_main";
 main.className="morebox";
 main.innerHTML="This box should get created, but it doesnt because form
didnt get created";
 $("#"+this.frm).prepend(main);
}
tst=new appLayer('Test');



END PAGE-
 
The form object does not get created.  I don't have any problems appending
other objects such as divs, but the form object won't work anymore.
 
It works fine in 1.0.4.  Try it out.
 
Thanks in advance.
 
Jeremy
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] dropdown menu with IE select fix?

2007-01-24 Thread rolfsf

Thanks everyone - now I've got a couple options.

Not sure how I missed jd_menu.. :-}
-- 
View this message in context: 
http://www.nabble.com/dropdown-menu-with-IE-select-fix--tf3084885.html#a8586070
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] dropdown menu with IE select fix?

2007-01-24 Thread Olaf Bosch
Jonathan Sharp schrieb:
> http://jdsharp.us/code/jQuery/plugins/jdMenu/
> 
> It's not vertical but would be easy enough to convert.

You have 2 times the dimensionPlugin in the HEAD, 1 is enough ;)

see:




$(function() {
//$('ul.menu').jdMenu();
});





-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

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


Re: [jQuery] dropdown menu with IE select fix?

2007-01-24 Thread Ⓙⓐⓚⓔ
Hi Jonathan, I hit your site... in the main js  code you look at
ul.menu, but the html uses ul.jd_menu, and that what you have hard
coded in the plugin! Possibly an oversight, otherwise great menus!

On 1/24/07, Jonathan Sharp <[EMAIL PROTECTED]> wrote:
> http://jdsharp.us/code/jQuery/plugins/jdMenu/
>
> It's not vertical but would be easy enough to convert.
>
> -js
>
>
>
> On 1/24/07, rolfsf <[EMAIL PROTECTED]> wrote:
> >
> > I've seen a few JQuery interpretations of the Suckerfish menu, but has
> anyone
> > taken them a little further to include a fix for the IE Select bug wherein
> > the dropdown menu will appear behind a Select menu in IE6? The only fix
> I've
> > seen for the bug involves slipping an iframe under the dropdown.
> >
> > This script combines the idea behind Suckerfish menus with an iframe on
> > hover... but is there a JQuery version of this idea?
> >
> http://homepage.mac.com/igstudio/design/ulsmenus/vertical-uls-iframe-2.html
> > --
> > View this message in context:
> http://www.nabble.com/dropdown-menu-with-IE-select-fix--tf3084885.html#a8573656
> > 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] FaviconLinkMarker 1.0 stable out now

2007-01-24 Thread Olaf Bosch
Olaf Bosch schrieb:
> Hi all,
> i have now release a stable Version. Have a look at:
> http://olaf-bosch.de/bugs/jquery/faviconlinkmarker/index.html


Oh,oh, now i have a problem
I tested this with application/xhtml+xml
i cane not say what is bad, i search 2 hour's, nothing to find.

Also the IMG function have a bug with application, div.innerhtml what
doing wrap works not correct.

An invalid or illegal string was specified" code: "12

I have all try and try. nothing works

look here, with NON-IE:
http://olaf-bosch.de/bugs/jquery/faviconlinkmarker/index.xhtml

What is to do?

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

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


Re: [jQuery] dropdown menu with IE select fix?

2007-01-24 Thread Jonathan Sharp

http://jdsharp.us/code/jQuery/plugins/jdMenu/

It's not vertical but would be easy enough to convert.

-js



On 1/24/07, rolfsf <[EMAIL PROTECTED]> wrote:



I've seen a few JQuery interpretations of the Suckerfish menu, but has
anyone
taken them a little further to include a fix for the IE Select bug wherein
the dropdown menu will appear behind a Select menu in IE6? The only fix
I've
seen for the bug involves slipping an iframe under the dropdown.

This script combines the idea behind Suckerfish menus with an iframe on
hover... but is there a JQuery version of this idea?

http://homepage.mac.com/igstudio/design/ulsmenus/vertical-uls-iframe-2.html
--
View this message in context:
http://www.nabble.com/dropdown-menu-with-IE-select-fix--tf3084885.html#a8573656
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] unobtrus

2007-01-24 Thread Ⓙⓐⓚⓔ
there are a million reasons to separate js from the html!

but UOJS is the ability for a page to still work without javascript. A
very admirable feature!


On 1/24/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Ⓙⓐⓚⓔ wrote:
> > I'm with you! If you know your audience you don't need to do
> > unobtrusive JavaScript.
> >
> > But generally it's much cooler to make sites that work for alternate
> > devices! sight impaired and physically challenged folks need
> > information too! Not to mention the fools who have javascript turned
> > off!
>
> There's another great side effect of UOJS, even if you don't have to
> care to be accessible: much improved maintainability. In the old days
> you polluted your HTML with all the inline event handler attributes
> (much like font tags and that sort of thing). If you had to change
> things you had to go and change it in 12399 templates and had at least
> forgotten one.
>
> Now with a clean separation of structure and behavior which is one goal
> of UOJS you simply have to change what is due to change in one line of JS:
>
> $('a').click(function() {
>  // change here once
> });
>
> As much as we try to separate presentation and structure (via CSS) the
> same applies to behavior and structure (and of course behavior and
> presentation).
>
>
> -- Klaus
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Form and .submit

2007-01-24 Thread Massimiliano Marini
Hi Kristinn,

>)}; <-- should be });

Great! It's too late and it's time that I go to sleep
before I ask something more stupid, thanks 1K

-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] unobtrus

2007-01-24 Thread Klaus Hartl
Ⓙⓐⓚⓔ wrote:
> I'm with you! If you know your audience you don't need to do
> unobtrusive JavaScript.
> 
> But generally it's much cooler to make sites that work for alternate
> devices! sight impaired and physically challenged folks need
> information too! Not to mention the fools who have javascript turned
> off!

There's another great side effect of UOJS, even if you don't have to
care to be accessible: much improved maintainability. In the old days
you polluted your HTML with all the inline event handler attributes
(much like font tags and that sort of thing). If you had to change
things you had to go and change it in 12399 templates and had at least
forgotten one.

Now with a clean separation of structure and behavior which is one goal
of UOJS you simply have to change what is due to change in one line of JS:

$('a').click(function() {
 // change here once
});

As much as we try to separate presentation and structure (via CSS) the
same applies to behavior and structure (and of course behavior and
presentation).


-- Klaus


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


Re: [jQuery] Form and .submit

2007-01-24 Thread Massimiliano Marini
Hi Mike,

> I'm working on some major updates to my form plugin example page so
> more info is coming soon.

Ok :)

-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] dropdown menu with IE select fix?

2007-01-24 Thread Brandon Aaron
Sure, just use the bgiframe plugin found in the plugins svn.
http://jquery.com/dev/svn/trunk/plugins/bgiframe/bgiframe.js?format=txt

--
Brandon Aaron

On 1/24/07, rolfsf <[EMAIL PROTECTED]> wrote:
>
> I've seen a few JQuery interpretations of the Suckerfish menu, but has anyone
> taken them a little further to include a fix for the IE Select bug wherein
> the dropdown menu will appear behind a Select menu in IE6? The only fix I've
> seen for the bug involves slipping an iframe under the dropdown.
>
> This script combines the idea behind Suckerfish menus with an iframe on
> hover... but is there a JQuery version of this idea?
> http://homepage.mac.com/igstudio/design/ulsmenus/vertical-uls-iframe-2.html
> --
> View this message in context: 
> http://www.nabble.com/dropdown-menu-with-IE-select-fix--tf3084885.html#a8573656
> 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] Form and .submit

2007-01-24 Thread Kristinn Sigmundsson
Also you had one simple mistake here;

 $("#myForm").submit(function(){
   alert("Submit Pressed");
   )}; <-- should be });


On 1/24/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > I'm new to jquery, I'm trying to make something that work
> > with jquery and form, but I'm in error and I don't know where:
>
> You need to return false after your alert so that the normal browser
> and page navigation is canceled.
>
> I'm working on some major updates to my form plugin example page so
> more info is coming soon.
>
> Mike
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
——
 Med Vänliga Hälsningar
 Kristinn "Kiddi" Sigmundsson
   0707-971938
——

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


Re: [jQuery] unobtrus

2007-01-24 Thread Jörn Zaefferer
Mark D. Lincoln schrieb:
>
> All,
>
>  
>
> We are developing various business Web portals using JQuery and 
> wondered why we should care about unobtrusive JavaScript.  These Web 
> portals are not for the general public and can only be accessed by 
> business clients who subscribe to our service.  When our clients 
> subscribe to our service, we give them the system requirements for 
> using our service and one of them has always been that you must have 
> JavaScript enabled in your browser.  We primarily support the latest 
> versions of IE and Firefox but attempt to be as browser agnostic as 
> possible.  The reason I am asking this question is that we would like 
> to include some very advanced JavaScript controls (i.e. a full 
> featured data aware grid) in our Web portals, however, the inclusion 
> of these controls will basically negate the use of unobtrusive 
> JavaScript which seems to be an important aspect of JQuery development.
>
One nice side effect of unobtrusive side effect is the possibilites to 
print pages without great efforts. That can be a requirement especially 
in business portals.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Form and .submit

2007-01-24 Thread Mike Alsup
> I'm new to jquery, I'm trying to make something that work
> with jquery and form, but I'm in error and I don't know where:

You need to return false after your alert so that the normal browser
and page navigation is canceled.

I'm working on some major updates to my form plugin example page so
more info is coming soon.

Mike

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


Re: [jQuery] jQuery/IE sending duplicate parameter values

2007-01-24 Thread Jörn Zaefferer
Graeme B. Davis schrieb:
> Any ways around this?
>   
That is a bug in jQuery's $.ajax function. Could you please file a bug 
report for this, and add the following:
Fix: Add s.data = null in ajax.js below line 604

I'd commit that right away, but a bit more testing is necessary.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] unobtrus

2007-01-24 Thread Ⓙⓐⓚⓔ
I'm with you! If you know your audience you don't need to do
unobtrusive JavaScript.

But generally it's much cooler to make sites that work for alternate
devices! sight impaired and physically challenged folks need
information too! Not to mention the fools who have javascript turned
off!



On 1/24/07, Mark D. Lincoln <[EMAIL PROTECTED]> wrote:
>
>
>
>
> All,
>
>
>
> We are developing various business Web portals using JQuery and wondered why
> we should care about unobtrusive JavaScript.  These Web portals are not for
> the general public and can only be accessed by business clients who
> subscribe to our service.  When our clients subscribe to our service, we
> give them the system requirements for using our service and one of them has
> always been that you must have JavaScript enabled in your browser.  We
> primarily support the latest versions of IE and Firefox but attempt to be as
> browser agnostic as possible.  The reason I am asking this question is that
> we would like to include some very advanced JavaScript controls (i.e. a full
> featured data aware grid) in our Web portals, however, the inclusion of
> these controls will basically negate the use of unobtrusive JavaScript which
> seems to be an important aspect of JQuery development.
>
>
>
> Mark D. Lincoln
>
>
>
> Mark D. Lincoln, Director of Research & Development
>
> Eye On Solutions, LLC
>
> (866) 253-9366x101
>
> www.eyeonsolutions.com
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


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


[jQuery] dropdown menu with IE select fix?

2007-01-24 Thread rolfsf

I've seen a few JQuery interpretations of the Suckerfish menu, but has anyone
taken them a little further to include a fix for the IE Select bug wherein
the dropdown menu will appear behind a Select menu in IE6? The only fix I've
seen for the bug involves slipping an iframe under the dropdown. 

This script combines the idea behind Suckerfish menus with an iframe on
hover... but is there a JQuery version of this idea?
http://homepage.mac.com/igstudio/design/ulsmenus/vertical-uls-iframe-2.html
-- 
View this message in context: 
http://www.nabble.com/dropdown-menu-with-IE-select-fix--tf3084885.html#a8573656
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] JQuery in Google Maps Info Windows

2007-01-24 Thread dhubbard

UPDATE: 
I was able to get the jQuery code to run inside the info window.  Thought I
would post my solution in case someone else is working a similar issue.  

To do this, I created a separate html file that contains the list of images
I want to fade through as well as the jQuery code to initiate the fading.  I
then served this up in an iFrame inside the info window.  

See http://www.derekandsarah.net/travel/chicago.php for the final result. 
The implementation at this point is rough and is in need of some
enhancements, but the basic idea is in place.  

Some enhancements still to make would be passing the image paths as
parameters to the iFrame somehow so the same html & jQuery code can be
reused for each info window, generalizing the code so each info window can
loop through varying numbers of images, styling with CSS, etc.

This was my stab-in-the-dark attempt to get jQuery code to run inside an
info window and it may not be the most efficient or robust.  I'm definitely
still open to suggestions at this point.  If anyone else has tackled this
situation and has some advice, please let me know.

Thanks,
Derek



dhubbard wrote:
> 
> I pulled the code from $(document).ready() and inserted it after the call
> to marker.openInfoWindowHtml (before the marker is returned to the map),
> but no luck - the images still show up in a list format.  Like you said,
> this seems like the logical place to insert the jQuery code since the list
> items are available at that time.
> 
> Any other ideas?
> 
> 
> 
> Michael Geary wrote:
>> 
>> I'm not very familiar with InnerFade, but wouldn't you do this inside
>> your
>> marker click handler, right after you call marker.openInfoWindowHtml?
>> That's
>> when you have the list items available.
>> 
>>> I'm new to jQuery and am trying to figure this out, but was 
>>> wondering if anyone has had any luck embedding jQuery code 
>>> inside Google Maps info windows?  
>>> 
>>> I have an existing google map that parses coordinates and 
>>> descriptions for points from an xml file and have tried using 
>>> Innerfade ( http://medienfreunde.com/lab/innerfade/
>>> http://medienfreunde.com/lab/innerfade/ ) to rotate through a 
>>> list of images inside the info windows that appear when 
>>> points on the map are clicked.  
>>> 
>>> The points are created when the map is loaded (during page 
>>> loading) but I am unsure when/how to make the call to 
>>> innerfade?  Right now, I'm still calling the innerfade 
>>> function inside document.ready(), but I've tried placing that 
>>> code in various positions inside the load function.  Any ideas?  
>>> 
>>> Here is a link to my site... 
>>> http://www.derekandsarah.net/travel/chicago.php
>>> http://www.derekandsarah.net/travel/chicago.php 
>> 
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JQuery-in-Google-Maps-Info-Windows-tf3083290.html#a8573566
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-24 Thread Ⓙⓐⓚⓔ
what looks like a plug-in and smells like a plug-in should be a plug-in!

http://jpassoc.com/js/jquery-debug.js

the updated (and corrected) debug that I use for Firefox+Firebug and
Safari... it works with IE ... but it's not pretty!

Any more info on debugging in IE can be incorporated, and a simpler
jso would be fine additions!


On 1/24/07, Brice Burgess <[EMAIL PROTECTED]> wrote:
> I smell plugin ;)
>
> ~ Brice
>
>
-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] unobtrus

2007-01-24 Thread Mark D. Lincoln
All,

 

We are developing various business Web portals using JQuery and wondered why
we should care about unobtrusive JavaScript.  These Web portals are not for
the general public and can only be accessed by business clients who
subscribe to our service.  When our clients subscribe to our service, we
give them the system requirements for using our service and one of them has
always been that you must have JavaScript enabled in your browser.  We
primarily support the latest versions of IE and Firefox but attempt to be as
browser agnostic as possible.  The reason I am asking this question is that
we would like to include some very advanced JavaScript controls (i.e. a full
featured data aware grid) in our Web portals, however, the inclusion of
these controls will basically negate the use of unobtrusive JavaScript which
seems to be an important aspect of JQuery development.

 

Mark D. Lincoln

 

Mark D. Lincoln, Director of Research & Development

Eye On Solutions, LLC

(866) 253-9366x101

www.eyeonsolutions.com

 

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


[jQuery] Form and .submit

2007-01-24 Thread Massimiliano Marini
Hi all,

I'm new to jquery, I'm trying to make something that work
with jquery and form, but I'm in error and I don't know where:



 
   jquery 


$(document).ready(function(){
$("#myForm").submit(function(){
alert("Submit Pressed");
)};
});
  
 
 




 



I've googled a lot of time, but I've not found some "very simple"
tutorial, documentation about how jquey work with Form, fields,
"onsubmit event" and ajax submission ... some link are very helpful :)
Thanks for your help and time

-- 
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

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


Re: [jQuery] Thickbox incompatible with jQuery 1.1

2007-01-24 Thread James Thomas

This is how the new version of interface works - very nice and I think it
would work great for this too.

[-Stash-] wrote:
> 
> I like this idea but for one point.  If you do want everything, then you
> have 8 bazillion requests back and forth to the server.  Not a problem for
> those of us on broadband, but on Dialup it becomes a a really show stopper
> with all the added latency.
> 
> Some method of bundling up (and compressing if possible, but that's
> secondary) all the necessary JS files into a single download would be
> best.
> 
> Luke
> 
> 
> Sam Collett wrote:
>> 
>> On 24/01/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>>> [-Stash-] wrote:
>>> > Unfortunately, it looks like Cody's giving up on ThickBox.  He's put
>>> out a
>>> > request for someone to take it over:
>>> >
>>> http://codylindley.com/thickboxforum/comments.php?DiscussionID=166&page=1#Item_15
>>> >
>>> > Given the improvements Klaus Hartl's already made to ThickBox 2.1, it
>>> would
>>> > be nice if he took it over ;)
>>>
>>> I'd love to do that!
>>>
>>> -- Klaus
>> 
>> We all know you are capable of doing it.
>> 
>> One suggestion though - make it modular. So if you only want to use it
>> for images, you don't download all the things you don't need.
>> 
>> e.g.
>> - Images, inline content - include thickbox.js
>> - Gallery - thickbox.js, thickbox-gallery.js
>> - Ajax: thickbox.js, thickbox-ajax.js
>> - Rich media content (flash, quicktime, pdf's etc) - thickbox.js,
>> thickbox-media.js
>> 
>> and so on.
>> 
>> You could use blockUI for the overlay and bgiframe for rich media.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Thickbox-incompatible-with-jQuery-1.1-tf3063738.html#a8573334
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] A fadeout effect makes the page jump up in IE7

2007-01-24 Thread Stéphane Nahmani
Quoting Brandon Aaron <[EMAIL PROTECTED]>:

> Indeed and it should be mentioned that an improved fx engine is in the works.

That's very good to know. Thanks for all the advice, everything is welcome.

--
  Stéphane Nahmani / sholby
  [EMAIL PROTECTED]
  http://www.sholby.net/

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


Re: [jQuery] FaviconLinkMarker 1.0 stable out now

2007-01-24 Thread Olaf Bosch
Gurpartap Singh schrieb:

> Good stuff Olaf!, got the concept, but unable to understand theory,
> do you have english version for it?

No, i have no english in my head, all this is phantasie. I have no
english never on scool. I must all this learning with read, read and
read. Sorry, write you for me in german!? ;)

I hope you understand this bad english :)
Look of the Demo, all Code is on site, what understand you not?
I will see you answer here, no of the open homepage ;)

> On 1/24/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
>> Cool stuff, Olaf.
>> 
>> I love that the Nifty Corners favicon is distinctly square.  :-)

Yes i do nothing to sugarcoat :)

-- 
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---

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


Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-24 Thread Brice Burgess
Klaus Hartl wrote:
> Ⓙⓐⓚⓔ wrote:
>   
>> Mike, I don't like breaking the chains... I just insert a debug in the
>> middle of the chain...
>>
>> I use this for my debug:
>> jQuery.fn.debug = function(message) {
>>  return this.log('debug:' + (message || '')
>> +"[").each(function(){jQuery.log(this);}).log("]");
>> }
>> jQuery.fn.log = jQuery.log = function(message) {
>>  if (!message) message = 'UNDEFINED'
>>  if (typeof message  == "object") message = jsO(message)
>>  if(window.console && window.console.log) //safari
>>  window.console.log(message)
>>  else if(window.console && window.console.debug) //firebug
>>  window.console.debug(message)
>>  else
>>  jQuery("body").prepend(message+ "")
>>  return this
>> }
>> 
>
> Thanks Jake, very nice! While reading your first sentence I thought 
> "What about a logger in the chain" and there you go ;-)
>
> Straight into my toolbox... :-)
>
> -- Klaus
I smell plugin ;)

~ Brice


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


[jQuery] jQuery/IE sending duplicate parameter values

2007-01-24 Thread Graeme B. Davis
Hello,
 
It appears I'm coming across a weird bug in jQuery that only occurs with IE
(6).


$(document).ready(function(){
$.get("jq2.html",
{ name: "John", time: "2pm" },
function(data){
alert("Data Loaded: " + data);
}
);
});

 
The jq2.html (I use Roxen) returns the form paramater "name" that is passed
to it.

In Firefox (jquery uses GET method), it returns the expected "Data Loaded:
Name=John"
In IE, (jquery uses POST method) it returns "Data Loaded: Name=John�John"

Using Wireshark, it appears that jquery sends a POST request like this:

--
POST /jq2.html?name=John&time=2pm HTTP/1.1
Accept: */*
Accept-Language: en-us
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MCI
Windows Corporate Image; .NET CLR 1.1.4322; InfoPath.1)
Host: xxx:8000
Content-Length: 18
Connection: Keep-Alive
Cache-Control: no-cache

name=John&time=2p


So it's sending the variable in the URL like a GET and in the query like a
POST, thus the web server gets 2 copies of each variable.

Any ways around this?

Thanks!

Graeme



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


Re: [jQuery] Thickbox - Klaus Are You Volunteering?

2007-01-24 Thread Brice Burgess
Klaus Hartl wrote:
> After talking with Jörn we decided to join power and do a rewrite with 
> Thickbox 3 as result...
>
> So yes, we're volunteering!
>
>   
This is most xlnt! :) Off the top -- will you support the ability to 
maintain pre-existing events (e.g. not forget events attached to inline 
content to be displayed via the $.clone() method, as current TB does)?

I've been looking for a minimalistic modal window plugin to use. While I 
like Gavin's (http://jquery.glyphix.com/) I think there could be a more 
streamlined one. Here's a draft of one I wrote;

===[ JS ]===
$().ready(function() {
   // Quick modal
   if($('#Modal')[0]) { // Draw Modal Window on load, if #Modal exists
 var h = $('body').height();
 $('body').append('');
 $('#Overlay').css({display: 'block', height: h+'px', opacity: 0.5});

 // hide/close modal window if clicked "outside", or clicking close 
links inside
 $('#CoverTop a, #Overlay').click(function(){
$('#Cover, #Overlay').hide();
return false;
 });
   }
});

===[ CSS ]===
#Overlay { z-index: 99; position: absolute; width: 100%; top: 0; 
background-color: #000; display: none; }

#ModalContainer { z-index: 100; position: absolute; width: 100%; margin: 
auto; top: 66px; }

#Modal {  width: 600px; margin: auto; background-color: #fff; border: 
1px solid black; padding: 12px; }

#ModalTop {padding-bottom: 5px;}

.left { float: left; }
.right { float: right; }


===[ HTML ]===



CloseClose

...Faux Modal Window Content...



...PAGE CONTENT...

obviously this can be extended.. the overlay may (sometimes) not cover 
whole page. To get around this I'd probably set  overflow to 
hidden & extend the height of the overlay a thousand or so px ;)

~ Brice

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


Re: [jQuery] A fadeout effect makes the page jump up in IE7

2007-01-24 Thread Brandon Aaron
Indeed and it should be mentioned that an improved fx engine is in the works.

--
Brandon Aaron

On 1/24/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> sholby schrieb:
> > I'm wondering if this is a known issue ?
> >
> > (Apparently the type also becomes aliased before the fade completes.)
> >
> > I am thinking of removing the function altogether for IE, but i've
> > already removed so much niceties from my layout for that browser that
> > there is barely anything left...
> Whenever I encountered serious problems with animations (be it IE or
> FF), I simply switched to plain hide/show/toggle calls, without animations.
>
> There are several known issue, like slow animations in FF due to several
> parallel timeouts, ugly fade outs because of unnecessary display-block
> styles, etc.
>
> Not really a big help, but good for orientation.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] A fadeout effect makes the page jump up in IE7

2007-01-24 Thread Jörn Zaefferer
sholby schrieb:
> I'm wondering if this is a known issue ?
>
> (Apparently the type also becomes aliased before the fade completes.)
>
> I am thinking of removing the function altogether for IE, but i've  
> already removed so much niceties from my layout for that browser that  
> there is barely anything left...
Whenever I encountered serious problems with animations (be it IE or 
FF), I simply switched to plain hide/show/toggle calls, without animations.

There are several known issue, like slow animations in FF due to several 
parallel timeouts, ugly fade outs because of unnecessary display-block 
styles, etc.

Not really a big help, but good for orientation.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] A fadeout effect makes the page jump up in IE7

2007-01-24 Thread Kim Johnson
I had the same problem with slide recently, and didn't
get a response from this list :/

What I found (and this might not be the root cause) is
that the margins around the divs or parent divs was
affecting it somehow. If I just had a div by itself,
without a parent div positioning it via margins, let's
say... the jumping didn't happen. I got inconsistent
behavior across the browsers though (FF/IE7/IE6)
depending on what I changed with the margins. I'm
guessing you have a margin on the bottom that pushes
the div up?  for mine, I had a margin on the left and
my div jumped to the right. 

I could be off base, but didn't hear any other ideas
from here so there's mine :)

-kim


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

> Hello,
> 
> I've added an effect to make the pages fade when i
> click on some other  
> internal link, like this:
> 
>   $("a").not(".external").click(function() {
>   var url=this.href;
>   
>   // fade effect
>   $("#contenu").fadeOut("slow",function() {
>   document.location.href=url;
>   });
>   return false;
>   });
> 
> This works in all browsers i've tested (Safari & FF
> on Mac, IE5.5 on  
> Virtual PC, where it is slow, but that was
> expected). However, my  
> client says that on IE7, the #contenu div first
> jumps up by about 20px  
> before it fades out.
> 
> I'm wondering if this is a known issue ?
> 
> (Apparently the type also becomes aliased before the
> fade completes.)
> 
> I am thinking of removing the function altogether
> for IE, but i've  
> already removed so much niceties from my layout for
> that browser that  
> there is barely anything left...
> 
> Thanks for any advice!
> 
> Best regards,
> 
> -- 
>sholby
>courriel : [EMAIL PROTECTED]
>web  : http://www.sholby.net/
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 



 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

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


[jQuery] A fadeout effect makes the page jump up in IE7

2007-01-24 Thread sholby
Hello,

I've added an effect to make the pages fade when i click on some other  
internal link, like this:

$("a").not(".external").click(function() {
var url=this.href;

// fade effect
$("#contenu").fadeOut("slow",function() {
document.location.href=url;
});
return false;
});

This works in all browsers i've tested (Safari & FF on Mac, IE5.5 on  
Virtual PC, where it is slow, but that was expected). However, my  
client says that on IE7, the #contenu div first jumps up by about 20px  
before it fades out.

I'm wondering if this is a known issue ?

(Apparently the type also becomes aliased before the fade completes.)

I am thinking of removing the function altogether for IE, but i've  
already removed so much niceties from my layout for that browser that  
there is barely anything left...

Thanks for any advice!

Best regards,

-- 
   sholby
   courriel : [EMAIL PROTECTED]
   web  : http://www.sholby.net/



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


Re: [jQuery] Problem with Puff

2007-01-24 Thread Jörn Zaefferer
Peter Gordon schrieb:
> I tried that, but it probably needs more libraries. When I use
> interface.js it works. 
>
> Is there a way of displaying which libraries are needed at runtime?
>   
A good place to look at may be the raw demos: 
http://jquery.com/dev/svn/branches/stefan-dev/demos/

According to that, you need iutil, ifx and ifxscale.

Just another problem that clearly shows that we desperatly need an 
automatic dependency managment.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] reload js in iw with ajax

2007-01-24 Thread matt2012


I found out myself  - like eveything in jquery its pure simplicity!

$('#mydiv').load("mypage.php",function(){$.getScript("mycustom.js");});





matt2012 wrote:
> 
> If I reload a part of the page [ using load(.. ] which has elements bound
> to functions for example a table row tr with a click function when that
> table is reloaded the table row no longer has the click function bound to
> it. In FF I can get around this by adding the js functions to the
> mypage.php that im reloading into mydiv - this dosent work for ie however.
> Anyone know how I can get mycustom.js to be reloaded onto the elements in
> my reloaded div.
> 
> Thanks for any help.
> 
> Matt. 
> 

-- 
View this message in context: 
http://www.nabble.com/reload-js-in-iw-with-ajax-tf3083807.html#a8571345
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Problem with Puff

2007-01-24 Thread Peter Gordon
I tried that, but it probably needs more libraries. When I use
interface.js it works. 

Is there a way of displaying which libraries are needed at runtime?



On Wed, 2007-01-24 at 20:03 +0100, Jörn Zaefferer wrote:
> Peter Gordon schrieb:
> > Hi. 
> >
> > I am trying to use Puff from the interface library. The page shows 
> > correctly, 
> > but when I press the href, nothing happens.
> >
> > The only javascript library to have Puff was ifxscale.js. I checked with 
> > GET to see if I 
> > could download jquery.js and ifxscale.js. They both download correctly.
> >
> > Could someone please tell me what I am doing wrong? 
> >   
> Try to include iutil.js from Interface. So far I think all Interface 
> plugins rely on that file.
> 


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


Re: [jQuery] how to tell if checkbox is checked and manipulate

2007-01-24 Thread Sean O

Ah ha!

The .filter was it...

Just tweaked it to change the BG of the parent TD:
$(".checklist").filter(":checked").parent().css("background","lightgreen");

and it works.  Thanks Wizz!


___
SEAN O



Wizzud wrote:
> 
> Try this ...
> $(".checklist").filter(":checked").css("background","lightgreen");
> If that still doesn't work, try putting $(this).css(...) inside an each()
> after the filter().
> 
> 
> Sean O wrote:
>> 
>> Hi J.,
>> 
>> 
>> Thanks for the tips, but I can't seem to address every checkbox.
>> 
>> This code triggers the alert on load:
>>  if ( $(".checklist").is(":checked") ) {
>>  alert("found a checked box");
>>  $(this).parent().css("background","lightgreen");
>>  }
>> 
>> But the background is not changed.
>> 
>> Plus, the alert only fires once, so I take that to mean only one 'hit'
>> was found (in my test, 3 of the 8 boxes with checklist class were
>> checked).
>> I need to have the CSS modify every checked checkbox with a class of
>> "checklist".
>> 
>> 
>> ___
>> SEAN O
>> 
>> 
>> j. siefer wrote:
>>> 
>>> ":checked" should work, in compination with is(":checked");
>>> 
>>> $(this).is(":checked").length ? alert("yes") : alert("no");
>>> 
>>> or something like this, try around
>>> or to highlight 
>>> 
>>> $(".checklist :checked").highlight();
>>> 
>>> 
>>> 
>>> 
>>> Sean O wrote:
 
 Hi,
 
 
 I have a "checklist" comprised of 8 checkboxes in a table, all with the
 class "checklist".
 
 I'm pulling the values from a database, and I want to highlight the
 containing TDs green for the checkboxes that are checked, and leave the
 rest alone.
 
 I can do this onclick:
$(".checklist").click(function(){
($(this)[0].checked) ?
 ($(this).parent().css("background","lightgreen")) :
 ($(this).parent().css("background","none"));
});
 
 Advice?
 
 Thanks,
 
 
 SEAN O
 
 
 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-tell-if-checkbox-is-checked-and-manipulate-tf3082108.html#a8570486
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] how to tell if checkbox is checked and manipulate

2007-01-24 Thread Jörn Zaefferer
Sean O schrieb:
> This doesn't do anything (nor does it produce a Firebug error):
>   if ( $(".checklist").is(":checked") ) {
>  ($(this)[0].checked) ? 
> ($(this).parent().css("background","lightgreen"))
> : ($(this).parent().css("background","none"));
>   }
>
> Advice?
>   
is() just checks if there is at least one element that matches the given 
expression. Try this:

$(".checklist:checked").parent().css("background", "lightgreen");

It selects all checked .checklist elements, gets their parents, and sets 
their background.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] JQuery in Google Maps Info Windows

2007-01-24 Thread dhubbard

I pulled the code from $(document).ready() and inserted it after the call to
marker.openInfoWindowHtml (before the marker is returned to the map, but no
luck - the images still show up in a list format.  Like you said, this seems
like the logical place to insert the jQuery code since the list items are
available at that time.

Any other ideas?



Michael Geary wrote:
> 
> I'm not very familiar with InnerFade, but wouldn't you do this inside your
> marker click handler, right after you call marker.openInfoWindowHtml?
> That's
> when you have the list items available.
> 
>> I'm new to jQuery and am trying to figure this out, but was 
>> wondering if anyone has had any luck embedding jQuery code 
>> inside Google Maps info windows?  
>> 
>> I have an existing google map that parses coordinates and 
>> descriptions for points from an xml file and have tried using 
>> Innerfade ( http://medienfreunde.com/lab/innerfade/
>> http://medienfreunde.com/lab/innerfade/ ) to rotate through a 
>> list of images inside the info windows that appear when 
>> points on the map are clicked.  
>> 
>> The points are created when the map is loaded (during page 
>> loading) but I am unsure when/how to make the call to 
>> innerfade?  Right now, I'm still calling the innerfade 
>> function inside document.ready(), but I've tried placing that 
>> code in various positions inside the load function.  Any ideas?  
>> 
>> Here is a link to my site... 
>> http://www.derekandsarah.net/travel/chicago.php
>> http://www.derekandsarah.net/travel/chicago.php 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JQuery-in-Google-Maps-Info-Windows-tf3083290.html#a8570277
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Problem with Puff

2007-01-24 Thread Jörn Zaefferer
Peter Gordon schrieb:
> Hi. 
>
> I am trying to use Puff from the interface library. The page shows correctly, 
> but when I press the href, nothing happens.
>
> The only javascript library to have Puff was ifxscale.js. I checked with GET 
> to see if I 
> could download jquery.js and ifxscale.js. They both download correctly.
>
> Could someone please tell me what I am doing wrong? 
>   
Try to include iutil.js from Interface. So far I think all Interface 
plugins rely on that file.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Problem with "&" when posting with ajax.

2007-01-24 Thread Jörn Zaefferer
zelexir schrieb:
> Hey must have missed that function thanks alot!
> Is this anywhere in the jQuery documentation? If not it could be a nice
> addition.
>   
You could use jQuery's (internal) param function, which does the 
encoding for $.ajax. Something like this should work:

var stringToSend = jQuery.param({
id: ident,
content: newContent
});

-- 
Jörn Zaefferer

http://bassistance.de


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


[jQuery] reload js in iw with ajax

2007-01-24 Thread matt2012

If I reload a part of the page [ using load(.. ] which has elements bound to
functions for example a table row tr with a click function when that table
is reloaded the table row no longer has the click function bound to it. In
FF I can get around this by adding the js functions to the mypage.php that
im reloading into mydiv - this dosent work for ie however. Anyone know how I
can get mycustom.js to be reloaded onto the elements in my reloaded div.

Thanks for any help.

Matt. 
-- 
View this message in context: 
http://www.nabble.com/reload-js-in-iw-with-ajax-tf3083807.html#a8569777
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] how to tell if checkbox is checked and manipulate

2007-01-24 Thread Sean O

Hi J.,


Thanks for the tips, but I can't seem to address every checkbox.

This code triggers the alert on load:
if ( $(".checklist").is(":checked") ) {
alert("found a checked box");
$(this).parent().css("background","lightgreen");
}

But the background is not changed.

Plus, the alert only fires once, so I take that to mean only one 'hit' was
found (in my test, 3 of the 8 boxes with checklist class were checked).
I need to have the CSS modify every checked checkbox with a class of
"checklist".


___
SEAN O


j. siefer wrote:
> 
> ":checked" should work, in compination with is(":checked");
> 
> $(this).is(":checked").length ? alert("yes") : alert("no");
> 
> or something like this, try around
> or to highlight 
> 
> $(".checklist :checked").highlight();
> 
> 
> 
> 
> Sean O wrote:
>> 
>> Hi,
>> 
>> 
>> I have a "checklist" comprised of 8 checkboxes in a table, all with the
>> class "checklist".
>> 
>> I'm pulling the values from a database, and I want to highlight the
>> containing TDs green for the checkboxes that are checked, and leave the
>> rest alone.
>> 
>> I can do this onclick:
>>  $(".checklist").click(function(){
>>  ($(this)[0].checked) ?
>> ($(this).parent().css("background","lightgreen")) :
>> ($(this).parent().css("background","none"));
>>  });
>> 
>> Advice?
>> 
>> Thanks,
>> 
>> 
>> SEAN O
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-tell-if-checkbox-is-checked-and-manipulate-tf3082108.html#a8569712
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] JQuery in Google Maps Info Windows

2007-01-24 Thread Michael Geary
I'm not very familiar with InnerFade, but wouldn't you do this inside your
marker click handler, right after you call marker.openInfoWindowHtml? That's
when you have the list items available.

> I'm new to jQuery and am trying to figure this out, but was 
> wondering if anyone has had any luck embedding jQuery code 
> inside Google Maps info windows?  
> 
> I have an existing google map that parses coordinates and 
> descriptions for points from an xml file and have tried using 
> Innerfade ( http://medienfreunde.com/lab/innerfade/
> http://medienfreunde.com/lab/innerfade/ ) to rotate through a 
> list of images inside the info windows that appear when 
> points on the map are clicked.  
> 
> The points are created when the map is loaded (during page 
> loading) but I am unsure when/how to make the call to 
> innerfade?  Right now, I'm still calling the innerfade 
> function inside document.ready(), but I've tried placing that 
> code in various positions inside the load function.  Any ideas?  
> 
> Here is a link to my site... 
> http://www.derekandsarah.net/travel/chicago.php
> http://www.derekandsarah.net/travel/chicago.php 


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


Re: [jQuery] What tools should I use to troubleshoot jquery problems? (John Resig, jquery team, other gurus please share your tricks...)

2007-01-24 Thread Ⓙⓐⓚⓔ
YES we all need tiny mundane utilitarian  plugins! Not to be
confused with glorious or exotic or wild!
They  cut development time down!

On 1/24/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Jörn Zaefferer wrote:
> >> Nice, looks exactly like the one I posted last week... ;-)
> >>
> >> http://jquery.com/discuss/2007-January/022164/
> >>
> > Haha. That may explain where I got the idea from. No worries, eh?
>
> No, no... :-)
>
> I wonder if we should add a folder like "Micro plugins" to SVN where
> these little helpers could go into... Brandon posted some as well recently.
>
>
> -- Klaus
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


[jQuery] JQuery in Google Maps Info Windows

2007-01-24 Thread dhubbard

I'm new to jQuery and am trying to figure this out, but was wondering if
anyone has had any luck embedding jQuery code inside Google Maps info
windows?  

I have an existing google map that parses coordinates and descriptions for
points from an xml file and have tried using Innerfade (
http://medienfreunde.com/lab/innerfade/
http://medienfreunde.com/lab/innerfade/ ) to rotate through a list of images
inside the info windows that appear when points on the map are clicked.  

The points are created when the map is loaded (during page loading) but I am
unsure when/how to make the call to innerfade?  Right now, I'm still calling
the innerfade function inside document.ready(), but I've tried placing that
code in various positions inside the load function.  Any ideas?  

Here is a link to my site... 
http://www.derekandsarah.net/travel/chicago.php
http://www.derekandsarah.net/travel/chicago.php 

Thanks in advance,
Derek
-- 
View this message in context: 
http://www.nabble.com/JQuery-in-Google-Maps-Info-Windows-tf3083290.html#a8568177
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] I could use help with Drag-drop

2007-01-24 Thread Circlefusion

hmm...just testing the reply feature. I'm not sure if I understand yet how
Nabble works yet. I had difficulty posting this yesterday as I wasn't a
member of the mailing list. I just signed up for it today.
-- 
View this message in context: 
http://www.nabble.com/I-could-use-help-with-Drag-drop-tf3064614.html#a8568432
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] I could use help with Drag-drop

2007-01-24 Thread Circlefusion

Hey all,

I'm researching JQuery for a project at work. It is a recipe website that
has a "recipe box" feature where they want to be able to drag recipes
between folders for organization. Here is a screen shot of the basic
functionality that I'm trying to accomplish.

http://www.circlefusion.com/projects/ge/recipe_box_drag.png 

A couple of rules for the drag-drop:

If the recipe is not dragged to an appropriate target (a folder) then it
stays in it's original position when the mouse is released.

After the drop is completed, an AJAX call would update the database and
reload the recipe list in whichever folder the user is located.

I couldn't find a clear example of this type of drag-drop scenario on any of
the JQuery demos. I saw similar things on the Interface website in the demos
section. http://interface.eyecon.ro/

Can someone give me some direction? Suggestions? Tips? 

Or just let me know if this can be done using JQuery. I was considering
using YUI, but so far I find JQuery easier to use. I'm assuming that
Interface is what I'm looking for (for drag-drop functionality)

Thanks

Cf
-- 
View this message in context: 
http://www.nabble.com/I-could-use-help-with-Drag-drop-tf3064614.html#a8523227
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Thickbox 2.1.1

2007-01-24 Thread John Resig
> I don't suppose you've written down the changes you made have you?  Is it
> just the .unbind('click') ones or are there more?

That's correct, in Thickbox, the only change was to replace .unclick()
with .unbind("click").

On the Thickbox site he used the Tabs plugin which utilized
:nth-child() (nth-child starts at 1, now, in 1.1). So I just added 1
to the count.

Thickbox 2.1.1 should work seamlessly with jQuery 1.0.4.

--John

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


Re: [jQuery] Thickbox 2.1.1

2007-01-24 Thread [-Stash-]

I don't suppose you've written down the changes you made have you?  Is it
just the .unbind('click') ones or are there more?

Thanks :)


John Resig wrote:
> 
> Hi Everyone -
> 
> I've taken the initiative and fixed Thickbox to work with jQuery
> 1.1.1. I updated the Thickbox site to reflect this (and gave it a new
> version: 2.1.1).

-- 
View this message in context: 
http://www.nabble.com/Thickbox-2.1.1-tf3082201.html#a8567970
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] ret[ret.length - 1] has no properties

2007-01-24 Thread jgrucza

I've submitted a bug report: #881.


jgrucza wrote:
> 
> So I'm getting this error message:
> 
> ret[ret.length - 1] has no properties
> 
> being thrown from this line in the jquery source:
> 
> if ( m[1] == "#" && ret[ret.length-1].getElementById ) {
> 
> for certain selectors, namely when I have an id preceded by a class or
> another id, for example:
> 
> $(".myClass #myId")
> $("#firstId #secondId")
> 
> This was not a problem in previous versions.
> 
> Jennifer
> 

-- 
View this message in context: 
http://www.nabble.com/ret-ret.length---1--has-no-properties-tf3065965.html#a8567968
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Problem with Puff

2007-01-24 Thread Peter Gordon
Hi. 

I am trying to use Puff from the interface library. The page shows correctly, 
but when I press the href, nothing happens.

The only javascript library to have Puff was ifxscale.js. I checked with GET to 
see if I 
could download jquery.js and ifxscale.js. They both download correctly.

Could someone please tell me what I am doing wrong? 

Thanks,

Peter



Interface - Puff



$(document).ready(function() {

});







PulseCamel
  Perl with JQuery
   Puff







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


Re: [jQuery] Thickbox 2.1.1

2007-01-24 Thread Sam Collett
I've noticed with a few plugins that they have their own copy of
jQuery within their svn directory. Perhaps it would be less confusing
if the files weren't there? As it is, you have several copies of the
various versions of jQuery (rather than just the ones in
dev/svn/tags/)

e.g.
http://jquery.com/dev/svn/trunk/plugins/datePicker/
http://jquery.com/dev/svn/trunk/plugins/greybox/
http://jquery.com/dev/svn/trunk/plugins/thickbox/js/


On 24/01/07, John Resig <[EMAIL PROTECTED]> wrote:
> Hi Everyone -
>
> I've taken the initiative and fixed Thickbox to work with jQuery
> 1.1.1. I updated the Thickbox site to reflect this (and gave it a new
> version: 2.1.1).
>
> The updated Thickbox site:
> http://jquery.com/demo/thickbox/
>
> Additionally, Thickbox is completely in SVN now:
> http://jquery.com/dev/svn/trunk/plugins/thickbox/
>
> You can check out your own copy like so:
> svn co svn://jquery.com/trunk/plugins/thickbox/ .
>
> In fact, the Thickbox web site is just a checked-out copy of what's in
> SVN (this way you can have a duplicate working copy of what's on the
> web site).
>
> If anyone still needs the old version of Thickbox, it can be found here:
> http://jquery.com/demo/thickbox-2.1/
>
> However, the new version should work identically with 1.0, as it does with 
> 1.1.
>
> --John
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Problem with "&" when posting with ajax.

2007-01-24 Thread Sam Collett
On 24/01/07, zelexir <[EMAIL PROTECTED]> wrote:
>
> Hey must have missed that function thanks alot!
> Is this anywhere in the jQuery documentation? If not it could be a nice
> addition.
>

This is a feature of Javascript (i.e. you don't need jQuery to use it)
http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp

>
>
> j. siefer wrote:
> >
> > try
> > c = encodeURIComponent("my content with a & lalal test");
> >
> >
> >
> > var pars = 'id='+ident+'&content='+encodeURIComponent(new_content);
> >
> >
> > zelexir wrote:
> >>
> >> Hi there.
> >>
> >> I ran into a little problem today, working with some forms. Whenever
> >> something is submitted and has a "&" in it it will break my code. For
> >> instance:
> >>
> >> I have a admin interface with a WYSIWYG editor, so whenever a &nbps; or
> >> " or anything similar it will break in this part:
> >>
> >> var pars = 'id='+ident+'&content='+new_content;
> >>
> >> lets say the editor only contains  
> >> what my PHP serverside will give my is
> >> * $_POST['id']="theID";
> >> * $_POST['content']="";
> >> * $_POST['nbps;']=""
> >>
> >> testing this more I tried to input this:
> >>  * firstContent&content2=moreContent&content3=evenMore!
> >> which then gave me the following array
> >> Array ( [id] => content-48-news [content] => firstContent [content2] =>
> >> moreContent [content3] => evenMore! )
> >>
> >> I had a hard time trying to search for info on this, but I hope anyone
> >> here could give me some assistance, what can I do to be able to allow "&"
> >> in the input? Tried the .serialize() with the same outcome, is replacing
> >> the '&' with Clientside javascript before posting with something else,
> >> and then revert it serverside really the only option I got?
> >>
> >> Thanks in advance!
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-%22-%22-when-posting-with-ajax.-tf3081836.html#a8563765
> 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] how to tell if checkbox is checked and manipulate

2007-01-24 Thread j. siefer

":checked" should work, in compination with is(":checked");

$(this).is(":checked").length ? alert("yes") : alert("no");

or something like this, try around
or to highlight 

$(".checklist :checked").highlight();




Sean O wrote:
> 
> Hi,
> 
> 
> I have a "checklist" comprised of 8 checkboxes in a table, all with the
> class "checklist".
> 
> I'm pulling the values from a database, and I want to highlight the
> containing TDs green for the checkboxes that are checked, and leave the
> rest alone.
> 
> I can do this onclick:
>   $(".checklist").click(function(){
>   ($(this)[0].checked) ? 
> ($(this).parent().css("background","lightgreen"))
> : ($(this).parent().css("background","none"));
>   });
> 
> Advice?
> 
> Thanks,
> 
> 
> SEAN O
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-tell-if-checkbox-is-checked-and-manipulate-tf3082108.html#a8563817
Sent from the JQuery mailing list archive at Nabble.com.


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


  1   2   >