[jQuery] Re: Adding :hover css support to IE6 - ie6HoverFix

2007-09-21 Thread Matt Penner

Thanks Christian!  I had this same frustration on a recent product and
simply added a manual class for IE6.  It was a quick fix but you had
to remember to update both if the look and feel was ever changed.  I
like your method much better because it uses the actual original
:hover class definition.

Matt


From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Christian Bach
Sent: Friday, September 21, 2007 7:07 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Adding :hover css support to IE6 - ie6HoverFix

Hi list,

The other day i got feed up with ie6 not having :hover css support so
i decided to fix it.

Here is a simple script that solves the problem:
http://lovepeacenukes.com/jquery/ie6hoverfix/

/christian


[jQuery] Get the element that's appended directly without using second step?

2007-08-20 Thread Matt Penner
This is exactly how I do it. I don't even append the new element until it
has been fully populated or manipulated.  I don't want my users to see a
half way completed div if some procedure takes longer than expected.

*Matt Penner**
*Database Engineer II
GIS Support
[EMAIL PROTECTED]
(951) 940-6108 x10709
 --

*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Karl Swedberg
*Sent:* Monday, August 20, 2007 10:21 AM
*To:* jquery-en@googlegroups.com
*Subject:* [jQuery] Re: Get the element that's appended directly without
using second step?

You could do it like this, perhaps:

var $testDiv = $("").appendTo(
window.document.body);

Is that what you're looking for?

--Karl

_

Karl Swedberg

www.englishrules.com

www.learningjquery.com

   On Aug 20, 2007, at 11:47 AM, Jay W wrote:

With the help from a few jQuery'ers, the only way to dynamically

create and append element using jQuery for multiframe application is

$(window.document.body).append("");

This jQuery statement returns window.document.body object.

There will be quite a few elements created this way in a same

document, it will be confusing to use array index to retrieve the

newly created element. So the question is: if I want to get that newly

created object directly, what's the correct way to do it?

Thanks.


[jQuery] Re: fancy menu - tell me what you guys think

2007-08-14 Thread Matt Penner
 This is great but I have to also comment on the delay.  It does feel a
little unresponsive.  If I click on a menu item before the slider has time
to get there (which is quite easy to do) it tends to flash and act a little
quirky.

I'm using FF 2.0 on WinXP

Good job!
*Matt Penner*

*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Andy Matthews
*Sent:* Tuesday, August 14, 2007 9:19 AM
*To:* jquery-en@googlegroups.com
*Subject:* [jQuery] Re: fancy menu - tell me what you guys think

I LOVE this menu.

My only comment is that there's a delay on mouseover in your version versus
the mootols version. It's slight, but it makes the menu feel unresponsive or
laggy. If you can fix that then it would be perfect.

Freaking great job man!

andy
 --

*From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Ganeshji Marwaha
*Sent:* Tuesday, August 14, 2007 10:32 AM
*To:* jquery-en@googlegroups.com
*Subject:* [jQuery] fancy menu - tell me what you guys think

Hi all,



I have ported this fancy menu over from mootools to jquery. You can take a
look at it http://www.gmarwaha.com/jquery/jfancymenu/test/test.html



The original mootools version is
http://devthought.com/cssjavascript-true-power-fancy-menu/



Tell me what you guys think. As always, based on feedback, we can consider
packaging it as a plugin or not...



Thanks in advance for the great feedback as always,

-GTG


[jQuery] Best way to select a cell in a table?

2007-08-03 Thread Matt Penner
You're right GTG.

I found this out quickly after my post.  I'm using the following:
$('tr:eq(2) td:eq(3)')
which seems to get exactly the one cell I'm looking for.

Just for sake of argument this is a very simple example.  I use variables in
my code and I have only one table on the page.  If I had multiple tables
this would indeed return multiple elements unless I selected the individual
table as well.  At least this is my understanding.

Matt


From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ganeshji Marwaha
Sent: Friday, August 03, 2007 2:54 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Best way to select a cell in a table?

I don't think ur selector is right for selecting the 2nd row, 3rd column.
It most probably is returning you more elements depending on the number of
rows u have.
Eg: if you have 3 rows in your table, then it should return, 1 tr and 3 td's
each representing the 3rd column in every row.

I would use $("td:eq(2)", $("tr:eq(1)"))

-GTG
On 8/3/07, Matt Penner <[EMAIL PROTECTED] > wrote:
I have a table that represents a matrix with various columns and rows.  I
use AJAX/JSON to populate the various cells with data.  Not every cell will
contain an item of data and some may have more than one item.

What's the best way to select a specific cell of the table?

If I wanted the 2nd row 3rd cell the following works:
$("tr:eq(1), td:eq(2)")

This is a rather simplistic example but is this better than, say, giving
every cell its own id or is there a completely different method that others
prefer?

Thanks,
Matt Penner


[jQuery] :eq vs :nth?

2007-08-03 Thread Matt Penner
Ah, thanks for that.  I'll check the code next time.
Matt

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Karl Swedberg
Sent: Friday, August 03, 2007 2:18 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: :eq vs :nth?

They're the same, so you can use whichever you prefer.

>From jquery.js:

nth: "m[3]-0==i",
eq: "m[3]-0==i",




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




On Aug 3, 2007, at 4:51 PM, Matt Penner wrote:


I've searched the groups but I can't seem to find any related talk on this.

What, if any, is the difference between using :eq(n) and :nth(n)?

I'd like to know before I start standardizing on one or the other.

Thanks,
Matt Penner


[jQuery] Best way to select a cell in a table?

2007-08-03 Thread Matt Penner
I have a table that represents a matrix with various columns and rows.  I
use AJAX/JSON to populate the various cells with data.  Not every cell will
contain an item of data and some may have more than one item.

What's the best way to select a specific cell of the table?

If I wanted the 2nd row 3rd cell the following works:
$("tr:eq(1), td:eq(2)")

This is a rather simplistic example but is this better than, say, giving
every cell its own id or is there a completely different method that others
prefer?

Thanks,
Matt Penner


[jQuery] :eq vs :nth?

2007-08-03 Thread Matt Penner
I've searched the groups but I can't seem to find any related talk on this.

What, if any, is the difference between using :eq(n) and :nth(n)?

I'd like to know before I start standardizing on one or the other.

Thanks,
Matt Penner


[jQuery] Coder vs Designer?

2007-08-03 Thread Matt Penner
Good catch Klaus & Christof.  I am a coder and relatively new to CSS.  I do
have a little tenancy towards classitis which I am trying to cure myself
of.

Thanks for the good suggestions!
Matt

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christof Donat
Sent: Friday, August 03, 2007 2:16 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Coder vs Designer?


Hi,

> I spot a typical case of classitis here.

I just used Matts original here.

> Why not getting a little more
> semantic and use a real heading instead of the least semantic element
> with a class "heading":
>
> 
>  Course Title
>  ...
> 
>
> Less bloated, less to transfer...

How about

Course Title
...

And then in the original code have



Even less bloated, less to transfer, more expressive and my suggested code
should still work (as it does with your suggestion).

Christof


[jQuery] Coder vs Designer?

2007-08-02 Thread Matt Penner
It seems that before Web 2.0 and jQuery type frameworks it was easier to
separate server code from web presentation.  Now, especially with AJAX,
things seem to be blurring again.

In my present job we don't have a designer, so us coders are the designer.
I don't mind but I'd still like to keep the two separated as much as
possible.

For instance, in one of my projects we show students the courses they have
taken.  If the student hovers over a course I have a jTip like feature that
loads the details such as their grade, course number, when they took it,
etc.  I have all the main layout in the presentation layer and well
organized css & js folders.  I use Jayrock and JSON to populate the data,
however, for simple tasks like the jTip I'm building the presentation part
(the divs, spans, etc) directly in the JavaScript code.  This seems very
mingled in my point of view.

What are others doing to make sure that even small snippets of HTML aren't
creeping into their js files?  Do you have this in separate html files that
you import and then fill with data?  Are you using some sort of template
framework that works with jQuery?

I just think code like:
$('#courseHist').append('Course Title' + crs.title + '');
is very ugly and muddled.

Thanks!
Matt Penner


[jQuery] Re: Good Javascript editor or IDE?

2007-08-02 Thread Matt Penner
Thanks for all the great suggestions.  I used IntelliJ at a previous job and
loved it.  Unfortunately we're a MS house here and I doubt I could get the
request approved.  :)

I'll check out Aptana's latest as well as Spket.

I use Notepad++ for quick and easy edits so that's my general text editor of
choice.  Thanks to those offering similar solutions.  I'm looking more for
an IDE that can understand the link between several js files and assist with
intelligent Intellisense / Snippet like features.

If anyone else has others to offer keep them coming!
Thanks,
Matt


[jQuery] Good Javascript editor or IDE?

2007-08-01 Thread Matt Penner

I've just started developing with jQuery in the last month.  I usually
use VS 2005 or Notepad++ for my JavaScript.  It's features are pretty
much nil as far as intellisense goes.  Mainly all they do is syntax
highlighting and formatting.

What recommendations on JavaScript editors or IDEs does anyone have?
Is there something sophisticated enough that can have intellisense
with jQuery or my own objects in external js files?

Thanks,
Matt



[jQuery] Cannot get json using a .load(url) request?

2007-07-27 Thread Matt Penner

Is it not possible to load json data into the page with a
div.load(url) function?  I was trying and in FireFox the function just
quit when opening the connection to the url.  In IE 7 I received the
error that the page is trying to load data that may be malicious and
it's been blocked.

I use Jayrock with jQuery.  I was attempting to use jTip to load data
when a user rolls over a div.  Unfortunately I'm mangling my code to
get it to work with jTip or betterTip since I need to format the json
result first.  So I'll just do it manually rather than using the plug
in which is definitely cleaner for my project anyway.

I just thought I'd ask about the loading raw json into the dom part
for future reference.

Thanks!
Matt



[jQuery] Can jQuery get attributes of the actual style sheet?

2007-07-23 Thread Matt Penner
IE does not support the CSS class :active but FireFox does.  I use this to
change the background color on a div to give feedback similar to a button
click.

For IE users I attach the mousedown and mouseup events to a function that
simply does the same thing.  However, if I ever change the color in my CSS
class I have to remember to change the jQuery function to match.

Can I have jQuery find this background color attribute in the css class in
the style sheet?  If so, I could just change it once in the CSS style sheet
and jQuery would use the latest value.

I haven't seen any examples on obtaining values from a style sheet so I
thought I'd ask if it was even possible.

Thanks,
Matt Penner