[jQuery] Re: Loading image with $.get()?

2007-10-05 Thread Suni

AJAX calls follow the same-origin policy, and the browser won't allow
an ajax call to another domain for security reasons. The URL for the
ajax call must reside in the same domain as the page it is being
initiated from.

There are ways around this, one of which is using a server proxy (the
url of the ajax request goes to the same domain as the page. The
server then requests the data from the other domain and passes it
through).

Do note that this doesn't prevent you from getting html (from the same
domain) that includes an img-tag with its src-attribute set to a url
in another domain.



[jQuery] Re: thumbnails in jCarousel inquiry

2007-10-05 Thread Jan Sorgalla

Hi,

Steve Finkelstein schrieb:
> Hi all,
>
> My thumbnails in jCarousel are distorting the aspect ratio of my
> photos. Here's an example:
>
> http://www.f1autoimports.com/inventory/single/11
>
> Would anyone be kind enough to tell me how I can re-adjust the default
> size to make this look more 'proper' per se?
>
> Thanks. :-)
>
> - sf

you can adjust the item width in skin.css:

.jcarousel-skin-ie7 .jcarousel-item {
width: 75px;
height: 75px;
border: 1px solid #fff;
}

After you changed the width, you should also adjust the width of the
clip and container of the the carousel:

.jcarousel-skin-ie7.jcarousel-container-horizontal {
width: 245px;
padding: 20px 40px;
margin-left: 5px;
margin-right: 5px;
}

.jcarousel-skin-ie7 .jcarousel-clip-horizontal {
width:  245px;
height: 77px;
}

Jan



[jQuery] Re: Scope and Visibility from Callback

2007-10-05 Thread Suni

Your problem is that within the function you no longer have a
reference to myObj, since this no longer points to it. Try this trick
(works):

var myObj = {
  foo : function() {
var that = this;
$("#myLink").click(function(){
  that.bar();
});
  },
  bar : function(){
  }
};



[jQuery] Re: editing superfish dropdown menu css

2007-10-05 Thread Suni

Thanks Joel.

The superfish menu is amazing, no wonder nbc picked it up.

I'm starting to use it in an upcoming project and the only questions I
had about it were about reskinning. Now you went and solved all that
before I had the chance to ask.

Thanks!



[jQuery] Re: jQuery Datagrid Plugin v.7

2007-10-05 Thread mohd khairi
I have tested ingrid in ie 7 and firefox 2. It seems that it has bug with
paging. In your demo, even though it shows 17 page, but i can only navigate
to page 16.
One more thing. How to use ingrid with dynamic url (ie: based on user
input).

Tq


On 10/5/07, matthew knight <[EMAIL PROTECTED]> wrote:
>
>
> @Sharique
>
> Yes, it'll work with .NET (just create an aspx page that spits out a
> table as per the instrux), and set the 'url' param accordingly in the
> options. Remember, ingrid's just making an ajax call to some more
> HTML.  Something like this will work:
>
> $(document).ready(
>function() {
>$("#table1").ingrid({
>url: 'myPage.aspx',
>height: 350
>});
>}
> );
>
> ---
> @Saidur
>
> Think you found a little easter egg - that 'remote.html' shouldn't be
> in the actual plugin, it should be set as part of the setup
> Regardless, I should include a sample remote.html file in the
> download.  I'll send around an update when these changes are in.
> Cheers!
>
> ---
> @Guy
>
> Yes, you can use ingrid to style inline tables if you want.  In the
> options, you'll want to set paging:false, sorting:false
>
> ---
> @Shawn
>
> Yep, good call, i'm working on it.  The goal here is to have a
> datagrid in the jQ UI toolbax that's up to snuff with the likes of EXT
> and YUI.  We've got some traction on that front, a couple people have
> offered to help.  Let me know if you're in.
>
> ---
>
> Cheers all,
> Matt
>
>
>
>
>
> On Oct 4, 2:33 pm, Sharique <[EMAIL PROTECTED]> wrote:
> > Really nice work.
> > Did it works will asp.net as well?
> >
> > On Oct 4, 3:15 am, reconstrukt <[EMAIL PROTECTED]> wrote:
> >
> > > Hey all,
> >
> > > I just released Just finished the initial release of my datagrid
> > > plugin.  I named her Ingrid. :)
> >
> > > Features in this release:
> >
> > > - resizable columns
> > > - paging toolbar
> > > - sorting (server-side)
> > > - row & column styling
> >
> > > The goal here is to give jQuery a robust, native datagrid that's up to
> > > snuff with those found in the EXT or YUI libraries.
> >
> > > Check it out here:http://www.reconstrukt.com/ingrid/
> >
> > > Thanks much
> > > Matt
>
>


-- 
Khairi
Web: www.uhs2u.com


[jQuery] Re: ANNOUCE: Easing Plugin Updated

2007-10-05 Thread george.gsgd

> My favorite plugin.  #1.

Thanks Glen :)



[jQuery] [jquery-ui] sortable problem ...

2007-10-05 Thread Michael Stuhr


I have problems getting some of the the callback functions to work.
'stop' and 'update' refuse to work for me.

here's some example code i'm using:



Item 1
Item 2
Item 3
Item 4
Item 5



$j('#List').sortable({
start:function () {
console.log('startdrag'); // traces
},

sort: function () {
console.log('sorting'); // traces
},

update:function () {
console.log('sth changed ...'); // silence ...
},

stop:function () {
console.log('stop drag'); // silence ...
},

change:function () {
		console.log('sth changed ... still draggin ?'); /*traces ... could be 
used instead of 'update' but would be a heavy alternative ... */

}
});


in addition to this, i'm getting constantly errors while trying out the 
demo under:

http://docs.jquery.com/UI/Sortables/sortable#options

firebug keeps tracing errors after dropping one of the items ... i had 
to reload the whole page to stop this.


micha


[jQuery] Re: Alert not working

2007-10-05 Thread Wizzud


You missed a bit of the instruction ...  where it says "In the ready function
(from the example above), add the following:".

So your script should look like this :


  $(document).ready(function(){
  $("a").click(function(){
 alert("Thanks for visiting!");
  });
});


...in other words, where the example had "// your code here", that's exactly
what it meant.


elvisparsley-2 wrote:
> 
> 
> I just started learning jQuery. Could any one help me?
> 
> I was following the jQuery tutorial, and the first one does not work.
> It is supposed to come up alert with Thanks fo visiting!. But it just
> go to a website without alert.
> 
> 
>  
>   
> 
> 
>   // Your code goes here
> $("a").click(function(){
>alert("Thanks for visiting!");
>  });
> 
>   
>   
>  http://jquery.com/ jQuery 
>   
>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Alert-not-working-tf4569739s27240.html#a13056253
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: problems with passing a value via ajax

2007-10-05 Thread Suni

Why not just use $.get directly? This should work:

$(document).ready(function() {
$('#action_link a').click(function()
{
$.get('e.php',{test : 
$(this).text()},function(data)
{
$('#action_link').html(data +" Bar 
Added To Favorites");
});
return false;
});

});

The ".show('slow')" bit in the callback was unnecessary since the
#action_link div was never even hidden, so it didn't do anything.

The second parameter to $.get (as well as $.post or $(...).load) can
be an object of key - value pairs you want to send to the server.



[jQuery] Re: jQuery 1.2.1 and Interface/ui Sortable Bug?

2007-10-05 Thread Suni

Reproduced here with FF 2 on WinXP.

As soon as I let go of a draggable the error console goes mad.



[jQuery] Re: [PREVIEW] another future grid: jquery.KIKEgrid alpha...

2007-10-05 Thread Jean

swt!

On 10/5/07, Enrique Meléndez Estrada <[EMAIL PROTECTED]> wrote:
>
> http://www.ita.es/jquery/kikegrid.htm
>
> This is a preview of something I'm working on. You can see a first
> integration of plugins
> "jquery.grid.columnSizing"+"jquery.grid.columnSizing"+ a plugin for
> navigating via mouse & keys + an edition on line, etc...
>
> *Why another grid? OK, easy answer:*
>
> * MOST grids change a simple HTML TABLE into more TABLES and add
>   numbers of infinite DIVs >> I want it to remain SIMPLE (JUST the
>   original HTML TABLE + smart CSS)
> * Other grids are SLOW in rendering time, and BAD for lot of data
>   cells on screen (and i want huge tables for Intranets)
> * Other grids DO NOT support FULL keyboard navigation (such as in a
>   SPREADSHEET application)
> * Other grids DO NOT support neither of this 2 behaviors: a
>   conservative editing table (once selected a cell, press ENTER or
>   DOUBLECLICK to edit/record) and as a spreadsheet table (using more
>   KEYs for navigation and edition)
>
> *THIS IS ALPHA, I'll change for sure programming, plugin names (and
> versions), css, etc...* (only tested in IE7 and FF2)
>
> ...and next week I'll take holidays for a month, so my work will be
> delayed to next November...;-)
>
> --
> Enrique Meléndez Estrada (2367)
> Servicios Informáticos
> Organización y Servicios Internos
> Instituto Tecnológico de Aragón
>
>


-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] [PREVIEW] another future grid: jquery.KIKEgrid alpha...

2007-10-05 Thread Enrique Meléndez Estrada


http://www.ita.es/jquery/kikegrid.htm

This is a preview of something I'm working on. You can see a first 
integration of plugins 
"jquery.grid.columnSizing"+"jquery.grid.columnSizing"+ a plugin for 
navigating via mouse & keys + an edition on line, etc...


*Why another grid? OK, easy answer:*

   * MOST grids change a simple HTML TABLE into more TABLES and add
 numbers of infinite DIVs >> I want it to remain SIMPLE (JUST the
 original HTML TABLE + smart CSS)
   * Other grids are SLOW in rendering time, and BAD for lot of data
 cells on screen (and i want huge tables for Intranets)
   * Other grids DO NOT support FULL keyboard navigation (such as in a
 SPREADSHEET application)
   * Other grids DO NOT support neither of this 2 behaviors: a
 conservative editing table (once selected a cell, press ENTER or
 DOUBLECLICK to edit/record) and as a spreadsheet table (using more
 KEYs for navigation and edition)

*THIS IS ALPHA, I'll change for sure programming, plugin names (and 
versions), css, etc...* (only tested in IE7 and FF2)


...and next week I'll take holidays for a month, so my work will be 
delayed to next November...;-)


--
Enrique Meléndez Estrada (2367)
Servicios Informáticos
Organización y Servicios Internos
Instituto Tecnológico de Aragón



[jQuery] Re: jQuery 1.2.1 and Interface/ui Sortable Bug?

2007-10-05 Thread Michael Stuhr


Suni schrieb:

Reproduced here with FF 2 on WinXP.

As soon as I let go of a draggable the error console goes mad.



yeah i should've mentioned that too:

i was on winXP FF2 too, but IE6 has Problems too.

the error seems to be this function:

1095 remove: function(a){
1096 if ( !a || jQuery.filter( a, [this] ).r.length ) {
1097 jQuery.removeData( this );
1098 this.parentNode.removeChild( this ); // error: this parent 
node has  	 no properties



micha


[jQuery] Re: show/hide FAQ - simplify my code?

2007-10-05 Thread Wizzud


Purely as an example ...

$(document).ready(function(){
  // close the offDiv content sections (no javascript = content is all
visible)
  $('.offDiv > .show-hide').hide();
  // showLink/hideLink shows/hides the content; showAll/hideAll shows/hides
all the content
  $.each(['.show', '.hide'], function(i,v){
  //opt is object of { from:"switch div class from", to:"switch div
class to", opp:"opposite of v" }
  var opt = v == '.show' ?
{from:'offDiv', to:'onDiv', opp:'.hide'} :
{from:'onDiv', to:'offDiv', opp:'.show'};
  $('a' + v + 'Link').click(function(){
  $('a' + opt.opp + 'All:hidden').show();
  if($('a' + v + 'Link:visible').not(this).size() == 0){
$('a' + v + 'All:visible').hide();
  }
  $(this).siblings('.show-hide').slideToggle('slow').end()
.parents('.' + opt.from).removeClass().addClass(opt.to).end()
.siblings(opt.opp + 'Link').andSelf().toggle();
  return false;
})
// only show if relevant class is set on parent
.filter(function(){ return $(this).parent().hasClass(opt.from);
}).show(); 
  $('a' + v + 'All').click(function(){
  $('a' + v + 'Link:visible').click();
  $(this).hide();
  return false;
})
// only show if relevant, ie don't show showAll if all div are
currently open
.filter(function(){ return ($('a' + v + 'Link:visible').size());
}).show(); 
});
   // title is clickable, and toggles the content, so just click the
relevant link...
  $('.faqTitle').click( function() {
  $(this).siblings('a:visible').click();
  return false;
});
});

Does exactly what yours does, with one extra check on the showAll/hideAll
buttons (only display them if there are actually items to show/hide
respectively). I haven't overloaded on the comments, but see if you can
follow it...
(BTW it's v1.2+ dependent.)


MichaelEvangelista wrote:
> 
> 
> http://www.mredesign.com/demos/jquery-show-hide/#thedemo
> 
> got it working just the way I wanted (thanks, Glen!)
> 
> I wrote out these rules long hand as I went through the creation/learning 
> process,
> but I am sure there are several ways I could compact this to fewer lines.
> 
> Anybody want to have a shot at simplifying / combining rules, just for the 
> sake of example?
> The code for my setup is below the demo on that same page
> 
> Only a few weeks in and I am really digging the power of jQuery... and the 
> community that seems to exist around it.
> jQuery is just so ... usable!
> ( If a js-idiot like me can build something like this after just a few 
> tutorials, the buzz is true, jQuery will be unstoppable. )
> 
> --
> Michael Evangelista, Evangelista Design
> Web : www.mredesign.com
> Newsgroups: news://forums.mredesign.com
> Blog : www.miuaiga.com
> 
> --
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/show-hide-FAQ---simplify-my-code--tf4572895s27240.html#a13058588
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Styling and modifying the MultiFile plugin

2007-10-05 Thread wattaka

HIi

I would like to know how one can syle the multifile plugin, I would
also like to change the placement or make the file queue invisible.
Does anyone have any idea how I could go about that?


Thanks



[jQuery] Re: [Site Submission]: nbc.com

2007-10-05 Thread Andy Matthews

Wow...

That's got to be a killer feeling dude. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joel Birch
Sent: Thursday, October 04, 2007 9:41 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [Site Submission]: nbc.com


On 10/5/07, Steve Finkelstein <[EMAIL PROTECTED]> wrote:
> Dang, I really like the mouseover menu they have on their landing 
> page. Is that just simple CSS?

Wow, that menu uses my Superfish plugin! What a thrill to see it hit the big
time :)

Joel Birch.




[jQuery] Re: [Site Submission]: nbc.com

2007-10-05 Thread Andy Matthews

You should contact their web department and ask if you can use their menu as
an example on your Superfish site. 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joel Birch
Sent: Thursday, October 04, 2007 10:34 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: [Site Submission]: nbc.com


On 10/5/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> So, superfish can do those large drop-down, across the page menus?
> Rick

Yes, the types of menu that Superfish can power is is not limited to the few
demonstrations I show with the documentation. If you have the CSS skills,
you can create new types of menu and have Superfish apply it's functionality
to them. Basically, if you can create a menu using pure CSS hovers in
Firefox, then you can easily progressively enhance it with Superfish
functionality. I find it hard to get that point across sometimes, so
examples like at nbc.com are great for demonstrating it.

Joel Birch.




[jQuery] Re: [PREVIEW] another future grid: jquery.KIKEgrid alpha...

2007-10-05 Thread Andy Matthews

Page not found 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Enrique Meléndez Estrada
Sent: Friday, October 05, 2007 6:10 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] [PREVIEW] another future grid: jquery.KIKEgrid alpha...


http://www.ita.es/jquery/kikegrid.htm

This is a preview of something I'm working on. You can see a first
integration of plugins
"jquery.grid.columnSizing"+"jquery.grid.columnSizing"+ a plugin for
navigating via mouse & keys + an edition on line, etc...

*Why another grid? OK, easy answer:*

* MOST grids change a simple HTML TABLE into more TABLES and add
  numbers of infinite DIVs >> I want it to remain SIMPLE (JUST the
  original HTML TABLE + smart CSS)
* Other grids are SLOW in rendering time, and BAD for lot of data
  cells on screen (and i want huge tables for Intranets)
* Other grids DO NOT support FULL keyboard navigation (such as in a
  SPREADSHEET application)
* Other grids DO NOT support neither of this 2 behaviors: a
  conservative editing table (once selected a cell, press ENTER or
  DOUBLECLICK to edit/record) and as a spreadsheet table (using more
  KEYs for navigation and edition)

*THIS IS ALPHA, I'll change for sure programming, plugin names (and
versions), css, etc...* (only tested in IE7 and FF2)

...and next week I'll take holidays for a month, so my work will be delayed
to next November...;-)

--
Enrique Meléndez Estrada (2367)
Servicios Informáticos
Organización y Servicios Internos
Instituto Tecnológico de Aragón




[jQuery] Re: Loading image with $.get()?

2007-10-05 Thread Andy Matthews

That was one of the things I considered trying. I'd rather not do that if I
can help it. For now, I'm just placing an empty img tag inside my target
div, then changing the src of that onClick. It works well. I'm going to
change up the appearance and functionality, but here's my workup for now: 
http://www.commadelimited.com/code/picasa/3pane


andy


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Suni
Sent: Friday, October 05, 2007 2:32 AM
To: jQuery (English)
Subject: [jQuery] Re: Loading image with $.get()?


AJAX calls follow the same-origin policy, and the browser won't allow an
ajax call to another domain for security reasons. The URL for the ajax call
must reside in the same domain as the page it is being initiated from.

There are ways around this, one of which is using a server proxy (the url of
the ajax request goes to the same domain as the page. The server then
requests the data from the other domain and passes it through).

Do note that this doesn't prevent you from getting html (from the same
domain) that includes an img-tag with its src-attribute set to a url in
another domain.




[jQuery] Re: Selector with Pipe (|) character not working

2007-10-05 Thread Richard D. Worth
You need to escape the pipe since it is a special character. Use \\| instead
of | inside the selector. For more info, see:

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F


- Richard

On 10/3/07, ab <[EMAIL PROTECTED]> wrote:
>
>
> I am trying to select an element with with ID  which have pipe
> character (|)
> i  found that its not working
>
>
> CODE--HTML
> 
>
> CODE-SCRIPT
>alert($("#firstname|1").val() );
>
> and output is "undefined"..
>
> Works well if i remove pipe
>
> Please help me..is it a bug or "feature"
>
>


[jQuery] Re: show/hide FAQ - simplify my code?

2007-10-05 Thread MichaelEvangelista


nice!
the use of js variables must be further back in the book... ;-)
I hadn't even thought of doing it that way - thanks very much.

--

--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com
Newsgroups: news://forums.mredesign.com
Blog : www.miuaiga.com


"Wizzud" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]



Purely as an example ...

$(document).ready(function(){
 // close the offDiv content sections (no javascript = content is all
visible)
 $('.offDiv > .show-hide').hide();
 // showLink/hideLink shows/hides the content; showAll/hideAll shows/hides
all the content
 $.each(['.show', '.hide'], function(i,v){
 //opt is object of { from:"switch div class from", to:"switch div
class to", opp:"opposite of v" }
 var opt = v == '.show' ?
   {from:'offDiv', to:'onDiv', opp:'.hide'} :
   {from:'onDiv', to:'offDiv', opp:'.show'};
 $('a' + v + 'Link').click(function(){
 $('a' + opt.opp + 'All:hidden').show();
 if($('a' + v + 'Link:visible').not(this).size() == 0){
   $('a' + v + 'All:visible').hide();
 }
 $(this).siblings('.show-hide').slideToggle('slow').end()
   .parents('.' + opt.from).removeClass().addClass(opt.to).end()
   .siblings(opt.opp + 'Link').andSelf().toggle();
 return false;
   })
   // only show if relevant class is set on parent
   .filter(function(){ return $(this).parent().hasClass(opt.from);
}).show();
 $('a' + v + 'All').click(function(){
 $('a' + v + 'Link:visible').click();
 $(this).hide();
 return false;
   })
   // only show if relevant, ie don't show showAll if all div are
currently open
   .filter(function(){ return ($('a' + v + 'Link:visible').size());
}).show();
   });
  // title is clickable, and toggles the content, so just click the
relevant link...
 $('.faqTitle').click( function() {
 $(this).siblings('a:visible').click();
 return false;
   });
});

Does exactly what yours does, with one extra check on the showAll/hideAll
buttons (only display them if there are actually items to show/hide
respectively). I haven't overloaded on the comments, but see if you can
follow it...
(BTW it's v1.2+ dependent.)


MichaelEvangelista wrote:



http://www.mredesign.com/demos/jquery-show-hide/#thedemo

got it working just the way I wanted (thanks, Glen!)

I wrote out these rules long hand as I went through the creation/learning
process,
but I am sure there are several ways I could compact this to fewer lines.

Anybody want to have a shot at simplifying / combining rules, just for 
the

sake of example?
The code for my setup is below the demo on that same page

Only a few weeks in and I am really digging the power of jQuery... and 
the

community that seems to exist around it.
jQuery is just so ... usable!
( If a js-idiot like me can build something like this after just a few
tutorials, the buzz is true, jQuery will be unstoppable. )

--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com
Newsgroups: news://forums.mredesign.com
Blog : www.miuaiga.com

--






--
View this message in context: 
http://www.nabble.com/show-hide-FAQ---simplify-my-code--tf4572895s27240.html#a13058588
Sent from the jQuery General Discussion mailing list archive at 
Nabble.com.








[jQuery] Re: Flash and jQuery

2007-10-05 Thread njsuperfreak

Sweet! Good Find Brett, and thanks Sam! I think I am definitely going
to experiment with this. looks interesting...

On Oct 4, 8:19 pm, Brett <[EMAIL PROTECTED]> wrote:
> Interesting, I googled up and found an example of 
> this:http://www.quirksmode.org/js/flash_call.html
>
> Not jQuery as such in the demo, but any function you write can refer
> to jQuery.
>
> On Oct 5, 8:10 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
>
> > your flash would need to be wmode=transparent
>
> > and you'd need to call a javascript function from within flash that in turn
> > calls the grey box function
>
> > since jquery applies the onclick event to all anchors with a class of
> > greybox you'll need simluar code inside you function that you call from
> > flash.
>
> > getURL('javascript:callGreyboxFromFlash()');
>
> > - S
>
> > On 04/10/2007, njsuperfreak <[EMAIL PROTECTED]> wrote:
>
> > > Can Flash communicate with jQuery? I would like to use flash to
> > > interact with jQuery like opening up a dialogbox using the greybox.js
> > > plugin. How would I go about doing that any ideas?
>
> > > The code is activated by the class="greybox"



[jQuery] Downloadable Documentation

2007-10-05 Thread [EMAIL PROTECTED]

Hi everyone,

Is it possible to download the documentation?

Clicking all of those links on a (seemingly) slow server is very painful.

Thanks


[jQuery] Re: Validation madness

2007-10-05 Thread Steve Blades
Jörn,

That would be outstanding. My problem now is, I need this 'stuff' in the
submit. By placing .validate() in the submit I'm able to do both, but.
(see script first):

 $('#CSForm').submit(function(){
var selField = $('select#Make', this);
rewriteMakeOption(selField);

var errContainer = $('#CSForm div.error');
var v = $(this).validate({
errorContainer: errContainer,
errorLabelContainer: $("ol",errContainer),
rules: {
First_Name: "required",
Last_Name: "required",
EMail: {
required: true,
email: true
},
Make: "required",
Model: "required"
},
messages: {
First_Name: "Please enter your First Name",
Last_Name: "Please enter your Last Name",
EMail: "Please enter a valid email address",
Make: "Please select a make",
Model: "Please select a model"
},
wrapper: 'li'
});

if(v.form()){
return true;
}
else
return false;
});

So, I am running a method that rewrites the 'value' of the selected option
in a select. This also removes all of the other options in the process
(since they shouldn't be needed, right?) But, if the validation fails I've
already rewritten the select, so nothing is available any longer. Itchy,
huh?


-- 
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
---
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present


[jQuery] Re: Selector with Pipe (|) character not working

2007-10-05 Thread Andy Matthews
I'd suggest not using the pipe as part of your ID or class names. Try using
a dash - or underscore, then split on those.

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard D. Worth
Sent: Friday, October 05, 2007 9:07 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Selector with Pipe (|) character not working


You need to escape the pipe since it is a special character. Use \\| instead
of | inside the selector. For more info, see:

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element
_that_has_weird_characters_in_its_ID.3F
 

- Richard


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


I am trying to select an element with with ID  which have pipe
character (|)
i  found that its not working


CODE--HTML
 

CODE-SCRIPT
   alert($("#firstname|1").val() );

and output is "undefined"..

Works well if i remove pipe

Please help me..is it a bug or "feature" 






[jQuery] [PREVIEW] another future grid: jquery.KIKEgrid alpha...(TRY NOW)

2007-10-05 Thread Enrique Meléndez Estrada

We had an issue with our server, now it's ok, sorry!!!
please, try again:
http://www.ita.es/jquery/kikegrid.htm

thanx,

>
> Page not found
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Enrique Meléndez Estrada
> Sent: Friday, October 05, 2007 6:10 AM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] [PREVIEW] another future grid: jquery.KIKEgrid alpha...
>
>
> http://www.ita.es/jquery/kikegrid.htm
>
> This is a preview of something I'm working on. You can see a first
> integration of plugins
> "jquery.grid.columnSizing"+"jquery.grid.columnSizing"+ a plugin for
> navigating via mouse & keys + an edition on line, etc...
>
> *Why another grid? OK, easy answer:*
>
> * MOST grids change a simple HTML TABLE into more TABLES and add
>   numbers of infinite DIVs >> I want it to remain SIMPLE (JUST the
>   original HTML TABLE + smart CSS)
> * Other grids are SLOW in rendering time, and BAD for lot of data
>   cells on screen (and i want huge tables for Intranets)
> * Other grids DO NOT support FULL keyboard navigation (such as in a
>   SPREADSHEET application)
> * Other grids DO NOT support neither of this 2 behaviors: a
>   conservative editing table (once selected a cell, press ENTER or
>   DOUBLECLICK to edit/record) and as a spreadsheet table (using more
>   KEYs for navigation and edition)
>
> *THIS IS ALPHA, I'll change for sure programming, plugin names (and
> versions), css, etc...* (only tested in IE7 and FF2)
>
> ...and next week I'll take holidays for a month, so my work will be
> delayed
> to next November...;-)
>
> --
> Enrique Meléndez Estrada (2367)
> Servicios Informáticos
> Organización y Servicios Internos
> Instituto Tecnológico de Aragón
>
>
>




[jQuery] Works in IE not FF?!

2007-10-05 Thread Oscar from Sweden

Hello!
I have buttoms with some letters like Å Ä and Ö. When you click at
them they should be pasted into a textarea. It works perfectly in ie 6
and 7 but not in firefox??!

$("input.infoga_tecken").click(function(){
$("textarea#gb_textarea").append($(this).val());
return false;
});



[jQuery] Re: jScrollpane - Occasionaly runs in IE? (init/load problem)

2007-10-05 Thread Brett

Thank you Kevin!

The reason I had it outside the other ready block is so I can keep the
code seperate, if I ever needed to strip out a part.

As soon as I got rid of the code as in your post, it works great!
everytime it displays, the scrollbar appears correctly.

As a sidenote, the actual jQuery examples should be updated to reflect
this too...

http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12


On Oct 5, 4:29 am, Kelvin Luck <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Glad you like jScrollPane. I can only take a very quick look at this at
> the moment but I'm wondering if it's something to do with this bit of
> your JS:
>
> window.onload = function(){
>  $("tr:nth-child(even)").addClass("even");
>
> };
>
> I think I remember having issues where using this "old school" syntax
> for assigning onload handlers caused jQuery to bomb in IE. Try replacing
> it with:
>
> $(function() {
> $("tr:nth-child(even)").addClass("even");
>
> });
>
> Or even move the striping code up into the ready block you already have...
>
> Hope that helps,
>
> Kelvin :)
>
> Brett wrote:
> > Hey all, LOVING jScrollpane at the moment, here is a page I'm working
> > on.
>
> >http://cressaid.brettjamesonline.com/bvci/plastek/products1.html
>
> > The right area with the grey box is a scrollpane which will have a
> > bunch of different things in it. If you view it in firefox, you'll see
> > that the grey scroll bar comes up, works great :)
>
> > However, on Internet explorer 6, the jScrollpane does not load... I
> > get an error about an exception being not handled.
> > But, the really, really hard to diagnose part? if I reload the page,
> > or occasionaly when I view it, the page will load, jScrollbars
> > functioning!
>
> > Ther are other scrollers under neath too, which I was using to get it
> > at least appear with a default scrollbar. That works, Now I was just
> > wondering what kind of problem would cause this. Is there some kind of
> > loading order I should respect or do differently?
>
> > The javascript code itself at the moment is nothing special - its just
> > an adapted example code:
> >http://cressaid.brettjamesonline.com/bvci/css/scrollpane/scrollpanese...



[jQuery] Re: calling all jQuery Safari wizards!

2007-10-05 Thread rgrwkmn

I just started using jQuery and have so far only run into problems
involving loading images and changing the sources of images. My work
around is not appending new image tags or changing the img src, but
instead creating divs with background images or changing the
background image of div tags. t



[jQuery] Re: ANNOUCE: jQuery lightBox plugin

2007-10-05 Thread Guy Fraser

Leandro Vieira Pinho wrote:
> The jQuery lightBox plugin 0.2 version are available.
>   

Very nice plugin. Does the caption part of the box need to slide in 
every time the next/previous image is shown?


[jQuery] Re: calling all jQuery Safari wizards!

2007-10-05 Thread bytte

Thanks Lukas. However, this doesn't solve my problem.
The fade-out of the old image works. Also the fade-in of the new image
works. But after the fade-in, the image disappears again.

On 5 okt, 08:38, lukas | dressy vagabonds <[EMAIL PROTECTED]>
wrote:
> some time ago i started a rewrite of the lightbox plugin for jquery
> and i encountered the same problem.
>
> strangely, safari doesn't support the Image() function in a way, that
> it creates a new DOM-Element for you.
> the solution was not to use the javascript Image() function but use
> img = document.createElement('img') and work with that.
>
> cheers
>
> lukas
>
> Am 04.10.2007 um 10:34 schrieb bytte:
>
>
>
> > I have made a very basic slideshow, with help from this list, that
> > looks for images in a database, then displays them. Here's the link:
> >http://www.sum.be/project/item.php?item=14&ID=39〈=1 (navigate
> > through the pics by using the small arrows to the right of the
> > picture)
>
> > It works ok in all tested browsers (ff mac/win, ie, opera mac/win),
> > yet not on safari (mac+win).
>
> > As you'll see there's a problem with the fadeIn/fadeOut resulting in a
> > blank space where the picture should reside.
>
> > Here's the code I use to make the old picture fadeOut and the new one
> > fadeIn:
>
> > function showNewPic(json,lang) {
> >  var img = new Image();
> >  img.onload = function(){
> >   $('.jq_loading').hide();
> >   $('.projectpic').fadeOut("fast",function() {
> >$('.projectpic').attr({ src: "../layout/images/
> > uploads/"+json.picture, id: "jq_" +json.item_ID+ "_" +json.menu_een_ID
> > + "_" +json.menu_twee_ID+ "_" +lang+ "_" +json.ID, alt:
> > json.alt }).fadeIn("fast");
> >   });
> >  }
> >  img.src = "../layout/images/uploads/"+json.picture;
>
> > }
>
> > Any idea why it fails in Safari? The Safari Javascript console gives
> > me no errors whatsoever.
> > (sorry for the double post - topic was here already a week ago, but
> > i'm desperate)



[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-05 Thread Guy Fraser

Jörn Zaefferer wrote:
> If you need keyboard navigation, async loading and d&d and similar 
> stuff you need to either wait for the UI tree component or take a look 
> at Ext's tree components. I don't plan to extend this plugin in them 
> mentioned direction: I want to keep it leightweight, providing 
> unobtrusive navigation enhancements.


Keyboard control would be the main one I guess, just for accessibility 
compliance and usability.

Another thing that would be useful is if root nodes didn't have the bit 
of "connector line" showing above their +/- box...

:D

Guy


[jQuery] Re: Alert not working

2007-10-05 Thread elvisparsley

I found the problem in my coding.

I forgot to put the first line of the following.

$(document).ready(function() {
   $("a").click(function() {
 alert("Hello world!");
   });
 });

On Oct 4, 11:36 am, elvisparsley <[EMAIL PROTECTED]> wrote:
> I just started learning jQuery. Could any one help me?
>
> I was following the jQuery tutorial, and the first one does not work.
> It is supposed to come up alert with Thanks fo visiting!. But it just
> go to a website without alert.
>
>  
>   
> 
> 
>   // Your code goes here
>   $("a").click(function(){
>alert("Thanks for visiting!");
>  });
> 
>   
>   
> http://jquery.com/";>jQuery
>   
>   



[jQuery] newbie question

2007-10-05 Thread marciovozes

Hi for all.
First, excuse my english ;)
I'm starting to use JQuery, and I feel that will help me a lot.
I build a class that can help anyone to make tabs without troubles,
but I think it most be improved, and that is the ideal place to do
that.
So by the way, is there anyway to send that code for you?
Thanks,
Marcio



[jQuery] Re: EXTjs and Jquery

2007-10-05 Thread NccWarp9

This thing looks asome.

On Oct 4, 9:08 pm, Steve Brownlee <[EMAIL PROTECTED]> wrote:
> Brook:
>
> Yes, and it's a match made in heaven because jQuery is, in my opinion,
> unmatched at DOM traversing, event handling and element manipulation.
> Ext, as you notice when you're drooling, is by far the best framework
> for making things pretty.
>
> As for working together, as long as you download the adapter, it's a
> completely transparent relationship with no hoops to jump through or
> obscure tricks you have to learn.  Also, if you're not familiar with
> jQuery, or don't want to learn two frameworks at once, there is no
> need since Ext has it's own DOM methods.
>
> The current application I'm developing is going to blow the users
> away.  I find myself very impressed on how Ext makes it easy to
> implement widgets, and also how great it looks.
>
> On Oct 4, 11:07 am, "Brook Davies" <[EMAIL PROTECTED]> wrote:
>
>
>
> > Steve,
>
> > You mention that you use extJS and jQuery. How do they work together and how
> > is this a beneficial relationship? I drool when I see the ext demos.
>
> > How do the two technologies play together?
>
> > BrookD- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: MooTools $events expando workaround

2007-10-05 Thread caruso_g

I am sorry to repost again about this conflict, but I am still having
the conflict beetween this two frameworks. I would like to say that I
LARGELY prefer jQuery, which makes me able (just a graphic with NO
coding skills...) to add utilities and effects to my site in a breeze
(thanks, really)! But I have to make sites where other devs use
Mootools, so I am still encountering the issue. I update the jQuery
package to the latest, since I red that it was solved, but the
conflict is still there. Thanks to everyone which will have the time
to help me. The following is the link where I get the issue:
http://www.bonsai-studio.net/clients/clickadvisor-02/plugins-pages/accordion/index.html

On 29 Set, 06:29, Ayan <[EMAIL PROTECTED]> wrote:
> Thanks for your reply.
>
> I realized that the component might be using 1.1.4 version.
> I have requested them to upgrade it.
>
> Meanwhile, how can I upgrade the jQuery by myself ?
> Here is the file 
> -http://gigahertz.byethost18.com/components/com_fireboard/template/def...



[jQuery] clarification

2007-10-05 Thread dan

I'm just starting with jquery and I guess I'm missing an important
piece because my first tries aren't working:

$('.switch :radio', this).each(function(){
$(this).click(
function(event){
alert($(this).parent(".switch").className);
});
});
//when I click the radio, find the .switch parent and alert it's
classes.

Do regular DOM methods and properties work on jquery objects?



[jQuery] Need a little assistance with a star rating jquery script

2007-10-05 Thread dsizemore

Hi,

I'm trying to implement this star rating script on a site:
http://sandbox.wilstuckey.com/jquery-ratings/

I've got everything working like it should (I think), but I've got
three concerns.

1. The script seems to make all rating start out at 3.5. What can I do
to make the script display no rating until a star has been clicked by
a user?

2. When I click on a star, it remembers the rating I chose. Once I
click refresh, the rating goes back to 3.5 stars. How can I make the
rating "stick" if you will so that once a rating is clicked, that's
what the rating stays out until someone else rates?

3. Lastly, is there anything in place to guard against duplicate
ratings? It's not a huge deal and I know there will always be ways
around it, but if someone rates something I would rather they not be
able to simply refresh and rate again to keep their rating high.

Thanks.

Note: I'm not a programmer at all. I'm just copying and pasting and
hoping that it works. :)



[jQuery] Dynamically Highlighted table rows

2007-10-05 Thread Saidur

Hi

I am a newbie in jquery. I want to know how to change table row color
dynamically. Like i have to display result from the database. And
there is a field in the database price. I have to show red color which
rows price color is greater than 100.So how can i do this?
is there any better plugin for doing this ?


Thanks
Saidur Rahman



[jQuery] Assistance needed with a jQuery star rating script

2007-10-05 Thread dsizemore

Hi,

I'm trying to implement this star rating script on a site:
http://sandbox.wilstuckey.com/jquery-ratings/

I've got everything working like it should (I think), but I've got
three concerns.

What I've done is removed the "delete" button so now I've simply got 5
stars.

1. The script seems to make all every rating start out at 3.5 stars.
What can I do to make the script display no rating (grayed out stars)
until a star has been clicked by a user?

2. When I click on a star, it remembers the rating I chose. Once I
click refresh, the rating goes back to 3.5 stars. How can I make the
rating "stick" if you will so that once a rating is clicked, that's
what the rating stays out until someone else rates?

3. Lastly, is there anything in place to guard against duplicate
ratings? It's not a huge deal and I know there will always be ways
around it, but if someone rates something I would rather they not be
able to simply refresh and rate again to keep their rating high.

Thanks.



[jQuery] Assistance need with a jQuery star rating script

2007-10-05 Thread dsizemore

Hi,

I'm trying to implement this star rating script on a site:
http://sandbox.wilstuckey.com/jquery-ratings/

I've got everything working like it should (I think), but I've got
three concerns.

What I've done is removed the "delete" button so now I've simply got 5
stars.

1. The script seems to make all every rating start out at 3.5 stars.
What can I do to make the script display no rating (grayed out stars)
until a star has been clicked by a user?

2. When I click on a star, it remembers the rating I chose. Once I
click refresh, the rating goes back to 3.5 stars. How can I make the
rating "stick" if you will so that once a rating is clicked, that's
what the rating stays out until someone else rates?

3. Lastly, is there anything in place to guard against duplicate
ratings? It's not a huge deal and I know there will always be ways
around it, but if someone rates something I would rather they not be
able to simply refresh and rate again to keep their rating high.

Thanks.

Note: I'm not a programmer at all. I'm just copying and pasting and
hoping that it works. :)



[jQuery] Re: calling all jQuery Safari wizards!

2007-10-05 Thread bytte

Alright. I got it to work by replacing the last fadeIn() of the new
picture with show().
The fancy fadeIn animation is gone now, but at least the picture shows
up in Safari now.

Could this be reported as a jQuery bug? Using the fadeTo command
doesn't work either. Other animations (have tested some) do work.

On 4 okt, 10:34, bytte <[EMAIL PROTECTED]> wrote:
> I have made a very basic slideshow, with help from this list, that
> looks for images in a database, then displays them. Here's the 
> link:http://www.sum.be/project/item.php?item=14&ID=39〈=1 (navigate
> through the pics by using the small arrows to the right of the
> picture)
>
> It works ok in all tested browsers (ff mac/win, ie, opera mac/win),
> yet not on safari (mac+win).
>
> As you'll see there's a problem with the fadeIn/fadeOut resulting in a
> blank space where the picture should reside.
>
> Here's the code I use to make the old picture fadeOut and the new one
> fadeIn:
>
> function showNewPic(json,lang) {
>  var img = new Image();
>  img.onload = function(){
>   $('.jq_loading').hide();
>   $('.projectpic').fadeOut("fast",function() {
>$('.projectpic').attr({ src: "../layout/images/
> uploads/"+json.picture, id: "jq_" +json.item_ID+ "_" +json.menu_een_ID
> + "_" +json.menu_twee_ID+ "_" +lang+ "_" +json.ID, alt:
> json.alt }).fadeIn("fast");
>   });
>  }
>  img.src = "../layout/images/uploads/"+json.picture;
>
> }
>
> Any idea why it fails in Safari? The Safari Javascript console gives
> me no errors whatsoever.
> (sorry for the double post - topic was here already a week ago, but
> i'm desperate)



[jQuery] Calling JavaScript via .load(), Possible?

2007-10-05 Thread Phunky

Im trying to call a page via AJAX with jQuery which is then printing
out a bunch of JS for a GoogleMap im using

("#map").load("/ajax/googleMap.php", {referral_id: $
("#map").attr("title")});

To load the page, but it ignore's the printed out JS.

Im i going about this the right way? I'm guessing that becuase the
page is already loaded its ignoring the printed JS?



[jQuery] jQuery and Mootools again...

2007-10-05 Thread caruso_g

I am sorry to repost again about this conflict, but I am still having
the conflict beetween this two frameworks. I would like to say that I
LARGELY prefer jQuery, which makes me able (just a graphic with NO
coding skills...) to add utilities and effects to my site in a breeze
(thanks, really)! But I have to make sites where other devs use
Mootools, so I am still encountering the issue. I update the jQuery
package to the latest, since I red that it was solved, but the
conflict is still there. Thanks to everyone which will have the time
to help me. The following is the link where I get the issue:
http://www.bonsai-studio.net/clients/clickadvisor-02/plugins-pages/accordion/index.html



[jQuery] Re: Scope and Visibility from Callback

2007-10-05 Thread NeilM

That's great - thanks.  The only question I have now is whether it
would be possible to modify a prototype somewhere/somehow to provide
this property automatically?

On Oct 5, 8:53 am, Suni <[EMAIL PROTECTED]> wrote:
> Your problem is that within the function you no longer have a
> reference to myObj, since this no longer points to it. Try this trick
> (works):
>
> var myObj = {
>   foo : function() {
> var that = this;
> $("#myLink").click(function(){
>   that.bar();
> });
>   },
>   bar : function(){
>   }
>
>
>
> };- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: Selector with Pipe (|) character not working

2007-10-05 Thread Abubakar Saddique
thanks a lot

On 10/5/07, Richard D. Worth <[EMAIL PROTECTED]> wrote:
>
> You need to escape the pipe since it is a special character. Use \\|
> instead of | inside the selector. For more info, see:
>
> http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
>
>
> - Richard
>
> On 10/3/07, ab < [EMAIL PROTECTED]> wrote:
> >
> >
> > I am trying to select an element with with ID  which have pipe
> > character (|)
> > i  found that its not working
> >
> >
> > CODE--HTML
> > 
> >
> > CODE-SCRIPT
> >alert($("#firstname|1").val() );
> >
> > and output is "undefined"..
> >
> > Works well if i remove pipe
> >
> > Please help me..is it a bug or "feature"
> >
> >
>
> >
>


[jQuery] multiple selects, hiddens and text inputs with same name

2007-10-05 Thread syg6

For reasons I won't go into here I have a page which has a table with
a variable amount of rows. Each row has a hidden, text, and select.
They all have the same name. I also have other selects on the page
with different names.

What I need to do is access only the selects, to be able to add and
remove options. So I need to know how many selects with the name "foo"
are on the page

I have tried this:

jQuery("select#foo")

which simply returns [Object object]. If I do this:

jQuery("select#foo").length

it returns 0 which is not true. When I load the page I have 2 selects
already. So if I do this:

jQuery("select#foo").text()

it returns white space. And

jQuery("select#foo").val()

returns undefined.

I have also tried stuff like

jQuery("select#foo[0]").val()

but nothing seems to work. Since uses can dynamically add rows to the
table (and with each one a hidden, text input and select) I need to 1)
know how many selects with a given id/name there are and 2) be able to
manipulate the values in each one.

How can I do this?

Thanks!



[jQuery] Re: Question to experts on jQuery.

2007-10-05 Thread Flesler

Uff I'm sorry, check the " ' " part... it should say: " ''
"... I'm sorry..

This is fixed, and I tested it in Firefox 2.0.0.7 and IE6, both
Windows. Make sure you put a valid image url instead of xyz.jpg.

$(function(){//make sure this happens after document ready.
$('').load(function(){
var $img = $(this);
var width = $img.width();
var height= $img.height();
$img.remove();//in case you don't want it to stay in the dom
   alert(width + ' '+ height);
   }).attr( 'src', 'xyz.jpg' ).appendTo('body');
});

Ariel Flesler

On 4 oct, 09:18, BAlex <[EMAIL PROTECTED]> wrote:
> I regret, but anything from offered does not work as it is necessary
> in Firefox and Safari.



[jQuery] Assistance needed with jQuery star rating script

2007-10-05 Thread dsizemore

Hi,

I'm trying to implement this star rating script on a site:
http://sandbox.wilstuckey.com/jquery-ratings/

I've got everything working like it should (I think), but I've got
three concerns.

What I've done is removed the "delete" button so now I've simply got 5
stars.

1. The script seems to make all every rating start out at 3.5 stars.
What can I do to make the script display no rating (grayed out stars)
until a star has been clicked by a user?

2. When I click on a star, it remembers the rating I chose. Once I
click refresh, the rating goes back to 3.5 stars. How can I make the
rating "stick" if you will so that once a rating is clicked, that's
what the rating stays out until someone else rates?

3. Lastly, is there anything in place to guard against duplicate
ratings? It's not a huge deal and I know there will always be ways
around it, but if someone rates something I would rather they not be
able to simply refresh and rate again to keep their rating high.

Thanks.



[jQuery] jQuery and Mootools again...

2007-10-05 Thread caruso_g

[Preface: I am tring to post this for the third time, since I didn't
see it in the thread. Please, pardon me if the reason is that the post
must be moderated. (please, don't smile if so... :P )] - I am sorry to
repost again about jQuery and Mootools conflict, but I am still having
the conflict beetween this two frameworks. I would like to say that I
LARGELY prefer jQuery, which makes me able (just a graphic with NO
coding skills...) to add utilities and effects to my site in a breeze
(thanks, really)! But I have to make sites where other devs use
Mootools, so I am still encountering the issue. I update the jQuery
package to the latest, since I red that it was solved, but the
conflict is still there. Thanks to everyone which will have the time
to help me. The following is the link where I get the issue:
http://www.bonsai-studio.net/clients/clickadvisor-02/plugins-pages/accordion/index.html



[jQuery] Assistance needed with jQuery star rating script

2007-10-05 Thread dsizemore

Hi,

I'm trying to implement this star rating script on a site:
http://sandbox.wilstuckey.com/jquery-ratings/

I've got everything working like it should (I think), but I've got
three concerns.

What I've done is removed the "delete" button so now I've simply got 5
stars.

1. The script seems to make all every rating start out at 3.5 stars.
What can I do to make the script display no rating (grayed out stars)
until a star has been clicked by a user?

2. When I click on a star, it remembers the rating I chose. Once I
click refresh, the rating goes back to 3.5 stars. How can I make the
rating "stick" if you will so that once a rating is clicked, that's
what the rating stays out until someone else rates?

3. Lastly, is there anything in place to guard against duplicate
ratings? It's not a huge deal and I know there will always be ways
around it, but if someone rates something I would rather they not be
able to simply refresh and rate again to keep their rating high.

Thanks.



[jQuery] Re: Selector with Pipe (|) character not working

2007-10-05 Thread Abubakar Saddique
may i ask why not pipes?

On 10/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>  I'd suggest not using the pipe as part of your ID or class names. Try
> using a dash - or underscore, then split on those.
>
>  --
> *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Richard D. Worth
> *Sent:* Friday, October 05, 2007 9:07 AM
> *To:* jquery-en@googlegroups.com
> *Subject:* [jQuery] Re: Selector with Pipe (|) character not working
>
>
>  You need to escape the pipe since it is a special character. Use \\|
> instead of | inside the selector. For more info, see:
>
> http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
>
>
> - Richard
>
> On 10/3/07, ab < [EMAIL PROTECTED]> wrote:
> >
> >
> > I am trying to select an element with with ID  which have pipe
> > character (|)
> > i  found that its not working
> >
> >
> > CODE--HTML
> > 
> >
> > CODE-SCRIPT
> >alert($("#firstname|1").val() );
> >
> > and output is "undefined"..
> >
> > Works well if i remove pipe
> >
> > Please help me..is it a bug or "feature"
> >
> >
>
> >
>


[jQuery] automatic way to get click function to work

2007-10-05 Thread zeekjt

Hi

At the Moment I build the click functions with php, because its easy.
But I would like to know if anybody has an idea for building it
automatically with javascript.

$("#historytext0link").click(function(){
tinyMCE.execCommand( "mceSetContent",false, $
("#historytext0").html() );
return false;
});
$("#historytext1link").click(function(){
tinyMCE.execCommand( "mceSetContent",false, $
("#historytext1").html() );
return false;
});
$("#historytext2link").click(function(){
tinyMCE.execCommand( "mceSetContent",false, $
("#historytext2").html() );
return false;
});
$("#historytext3link").click(function(){
tinyMCE.execCommand( "mceSetContent",false, $
("#historytext3").html() );
return false;
});

html looks like:

2007-10-05 16:50:12

test1
 b
 a
 a
 
c 






thx
zeek



[jQuery] Re: Masked Input Plugin 1.1

2007-10-05 Thread Jeferson Koslowski
Hi,

do u know the iMask plugin for Mootools? Its a very nice input mask tool and
i think some features could be incorporated in ur plugin. Take a look:
http://zend.lojcomm.com.br/imask/

On 10/4/07, Josh Bush <[EMAIL PROTECTED]> wrote:
>
>
> For those that care, the problem ended up being a result of my using
> $.each() over a string.  Apparently IE won't let you use [] to access
> an individual character from a string.  The solution for me was to
> call .split on the string as I passed it into $.each() so that it
> looks like this "$.each(myString.split(''),function(i,c){/*code
> here*/});"
>
> Josh
>
> On Oct 4, 12:01 am, Flesler <[EMAIL PROTECTED]> wrote:
> > Congratz, the example works fine now, in IE.
> >
> > On Oct 3, 3:02 pm, Josh Bush <[EMAIL PROTECTED]> wrote:
> >
> > > I managed to get this fixed last night and put a new version up.  I'll
> > > be updating the jquery plugins page tonight.
> >
> > > Josh
> >
> > > On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote:
> >
> > > > It appears something I've done had totally borked this plugin for
> IE.
> > > > I'll figure it out real quick and get a new version out.
> >
> > > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote:
> >
> > > > > Your plugin is great, I checked it out some time ago... you know,
> the
> > > > > example fails in IE (6, windows). When I focus an input or type in
> it,
> > > > > an error pops saying "'res' is not defined".
> >
> > > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote:
> >
> > > > > > I just released version 1.1 of my Masked Input Plugin for
> jQuery. I
> > > > > > have more features in the pipeline to add to 1.2, but I wanted
> to get
> > > > > > a few fixes out the door before doing so. The only thing new
> this time
> > > > > > is an unmask method.
> >
> > > > > > In addition to code changes, I've made a few more enhancements.
> I've
> > > > > > added a packed version for those who want the smallest possible
> > > > > > footprint. I've also given the project page a face lift to make
> things
> > > > > > easier to find.
> >
> > > > > > Below is a list of changes this time:
> >
> > > > > > * NEW FEATURE: unmask() method to remove masking for a
> previously
> > > > > > masked input.
> > > > > > * Safari cursor position fix.
> > > > > > * Cursor position behavior change: Cursor goes to the end of
> the
> > > > > > input on a completed input. Cursor goes to the first placeholder
> > > > > > position on a blank input.
> > > > > > * Fixed improper escaping of certain mask characters.
> > > > > > * Code refactoring to reduce size and complexity.
> >
> > > > > > Please check it out at:
> http://digitalbush.com/projects/masked-input-plugin
> >
> > > > > > Thank You
> > > > > > Josh
> > > > > > digitalbush.com- Hide quoted text -
> >
> > > - Show quoted text -
>
>


[jQuery] jQuery.ScrollTo

2007-10-05 Thread Flesler

Hi, Some days ago I saw this article:
http://www.learningjquery.com/2007/09/animated-scrolling-with-jquery-12
And I decided to make a plugin out of that, adding versatility and
customization.
I'd appreciate some feedback :)

The project is in: http://jquery.com/plugins/project/ScrollTo

Thanks

Ariel Flesler



[jQuery] rails problem with 1.2

2007-10-05 Thread [EMAIL PROTECTED]

So I have this code to unobtrusively add dynamic delete links to my
page.
$(document).ready(function(){
  $('.delete').click(ajaxDelete)
});
function ajaxDelete(){
  $.ajax({
  type: "POST",
  data: {_method: "delete"},
  url: this.href,
  dataType: "script",
  beforeSend: function(xhr) {
confirm('are you sure?');
xhr.setRequestHeader("Accept", "text/javascript");
}
  });
  return false;
}

But upon updating from 1.1.4 to 1.2 it breaks, even with the
compatibilty plugin. The links just break. It seems that rails isn't
recognizing them as xhr requests and just returns the page html.
However I am using ajaxForm in another place and that works. Any ideas?



[jQuery] Delete photo on confirm

2007-10-05 Thread Codex

Maybe I'm going about thewrong way, but this is what I'm trying to
achieve:

I have a page with thumbnails. Underneath each thumbnail there's a
'delete' link:

Delete

On click I would like to fire a confirmation message. Upon
confirmation the image should be deleted for which I have made a
function that's in 'main.js':

function delete_photo (photo_id) {
confirm('Are you sure you want to delete this photo?');
$.post("http://www.domain.com/delphoto/"+ photo_id);
$("#"+ photo_id).fadeOut(500);
return false;
};

The post works, the photo gets deleted, but on cancel the deletion is
also executed. I can see that how I've done it now is incorrect
because yes, the $post is right behind the confirmation so it's
logical it's being executed. But how do you do this the right way??

Thanks in advance!!



[jQuery] Re: How to hide a div without a click function

2007-10-05 Thread somnamblst

Oops, my bad. Thanks motob

The mouseover/mouseout detection is very cool & has me thinking.

I would love to have a trigger div that reacts to a hover and expands
a div that has the ability to hold the expanded state only as long as
the cursor is over the expanded div

On Oct 4, 6:32 pm, somnamblst <[EMAIL PROTECTED]> wrote:
> Thanks Glen,
>
> I have the following
>
> $(document).ready(function() {
> initSlideboxes();
>
> function initSlideboxes()
>
> {
> $('#slidebar').slideDown("slow");
> setTimeout(function()
> {
>   $('#slidebar').slideUp("slow");
>
> }, 7000);
>
> $('#slidebar').html($('#hidebar').html());
> $('#slidebartrigger').click(function(){$('#slidebar').toggle(); });
>
> };
> });
>
> And I don't seem to be encountering the problem I had with
> scriptaculous. The slideDown & slideUp occur without user initiated
> click events
>
> With scriptaculous if the user used the slidebar trigger to close
> before the setTimeout event occured my div would pop back open
>
> In addition jquery does not flicker with Flash content like
> scriptaculous does if the slide is too fast & jquery doesn't need the
> Flash activex control IE workaround.
>
> The real issue that killed my scriptaculous widget was that it didn't
> work at all in IE when being served via a 3rd party javascript
> include. That jquery worked under these conditions has me ecstatic!
>
> On Oct 4, 7:37 am, motob <[EMAIL PROTECTED]> wrote:
>
>
>
> > You could also try using setTimeout() like so:
>
> > setTimeout(function()
> > {
> >   $('#slidebar').toggle();
>
> > }, 2000);
>
> > This will activate the #slidebar toggle after 2000 milliseconds even
> > is the user is trying to interact with the #slidebar which may not be
> > what you want. I'm not sure what the slide bar is being used for but
> > if you wanted a more robust closing solution then you may want to make
> > use of timers to detect when the user is not using, or interacting
> > with #slidebar.
>
> > The following bit of code will detect when the user's mouse is no
> > longer interacting with #slidebar and close it after 2000
> > milliseconds.
>
> > $('#slidebartrigger').click(function(){
> > $('#slidebar').toggle().hover(function(){
> > //mouseover
> > clearTimeout(closetimer);
> > }, function(){
> > //mouseout
> > closetimer = window.setTimeout(function(){
> > $('#slidebar').hide();
> > }, 2000);
> > });
>
> > });
>
> > If the mouse cursor moves off of #slidebar then a timer is created
> > that will fire the $('#slidebar').hide() function after 2000
> > milliseconds. If the cursor moves back over the #slidebar (hovers)
> > then the timer is cleared and #slidebar will not close. This code
> > isn't tested so you might need to tweak it a bit. I am using something
> > similar on my project and it works great.
>
> > On Oct 3, 7:21 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
>
> > > There is a pause plugin.  Does that do the 
> > > trick?http://blog.mythin.net/projects/jquery.php
>
> > > Glen
>
> > > On 10/3/07, somnamblst <[EMAIL PROTECTED]> wrote:
>
> > > > I currently have this
>
> > > > $(document).ready(function() {
> > > > initSlideboxes();
> > > > function initSlideboxes()
> > > > {
> > > > $('#slidebar').show();
> > > > $('#slidebar').html($('#hidebar').html());
> > > > $('#slidebartrigger').click(function(){$('#slidebar').toggle();
> > > > });
>
> > > > };
> > > > });
>
> > > > I would like after a certain duration of several seconds to have the
> > > > slidebar div hide. I know how to do this in scriptaculous but I have
> > > > abandoned my scriptaculous solution for jquery.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -



[jQuery] clarfication

2007-10-05 Thread dan

I just posted about 1 hour ago and my post didn't show up so here goes
again.

new to jquery and there's something I'm missing.

$('.switch :radio', this).each(function(){
$(this).click(
function(){

alert($(this).parent(".switch").get(0).className);
});
});
//when the .switch radio button is clicked go up to the parent and
alert the className.

I always get undefined. Don't dom methods or properties work on jquery
objects?



[jQuery] Assistance needed with jQuery star rating script

2007-10-05 Thread dsizemore

Hi,

I'm trying to implement this star rating script on a site:
http://sandbox.wilstuckey.com/jquery-ratings/

I've got everything working like it should (I think), but I've got
three concerns.

What I've done is removed the "delete" button so now I've simply got 5
stars.

1. The script seems to make all every rating start out at 3.5 stars.
What can I do to make the script display no rating (grayed out stars)
until a star has been clicked by a user?

2. When I click on a star, it remembers the rating I chose. Once I
click refresh, the rating goes back to 3.5 stars. How can I make the
rating "stick" if you will so that once a rating is clicked, that's
what the rating stays out until someone else rates?

3. Lastly, is there anything in place to guard against duplicate
ratings? It's not a huge deal and I know there will always be ways
around it, but if someone rates something I would rather they not be
able to simply refresh and rate again to keep their rating high.

Thanks.



[jQuery] Re: Selector with Pipe (|) character not working

2007-10-05 Thread Andy Matthews
Sure thing. The HTML spec found here:
http://www.w3.org/TR/html401/types.html#type-name
 
Says this:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
by any number
of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"),
and periods ("."). 

  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abubakar Saddique
Sent: Friday, October 05, 2007 11:40 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Selector with Pipe (|) character not working


may i ask why not pipes?


On 10/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote: 

I'd suggest not using the pipe as part of your ID or class names. Try using
a dash - or underscore, then split on those.

  _  

From: jquery-en@googlegroups.com [mailto:
 [EMAIL PROTECTED] On Behalf Of
Richard D. Worth
Sent: Friday, October 05, 2007 9:07 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Selector with Pipe (|) character not working

 

You need to escape the pipe since it is a special character. Use \\| instead
of | inside the selector. For more info, see:

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element
_that_has_weird_characters_in_its_ID.3F
 

- Richard


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


I am trying to select an element with with ID  which have pipe
character (|)
i  found that its not working 


CODE--HTML
 

CODE-SCRIPT
   alert($("#firstname|1").val() );

and output is "undefined".. 

Works well if i remove pipe

Please help me..is it a bug or "feature" 







[jQuery] Re: clarification

2007-10-05 Thread Karl Swedberg
Forgive me if this has been answered already. Seems like I'm getting  
emails dumped into my mail client in a random order.


To use a DOM method on a jQuery object, you first need to convert  
that object. Fortunately, it's easy to do by adding either [0] or .get 
(0) after the selector:


alert($(this).parent(".switch")[0].className);

Also, your selector finds only the direct parent. If you need to go  
up more than one level, you could use .parernts('.switch')[0] instead  
(with an "s" at the end).


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



On Oct 5, 2007, at 9:23 AM, dan wrote:



I'm just starting with jquery and I guess I'm missing an important
piece because my first tries aren't working:

$('.switch :radio', this).each(function(){
$(this).click(
function(event){
alert($(this).parent(".switch").className);
});
});
//when I click the radio, find the .switch parent and alert it's
classes.

Do regular DOM methods and properties work on jquery objects?





[jQuery] Re: clarification

2007-10-05 Thread Karl Swedberg

.parernts('.switch')[0]


Sorry about the typo. Should be .parents('.switch')[0]

--Karl


On Oct 5, 2007, at 1:53 PM, Karl Swedberg wrote:

Forgive me if this has been answered already. Seems like I'm  
getting emails dumped into my mail client in a random order.


To use a DOM method on a jQuery object, you first need to convert  
that object. Fortunately, it's easy to do by adding either [0]  
or .get(0) after the selector:


alert($(this).parent(".switch")[0].className);

Also, your selector finds only the direct parent. If you need to go  
up more than one level, you could use .parernts('.switch')[0]  
instead (with an "s" at the end).


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



On Oct 5, 2007, at 9:23 AM, dan wrote:



I'm just starting with jquery and I guess I'm missing an important
piece because my first tries aren't working:

$('.switch :radio', this).each(function(){
$(this).click(
function(event){
alert($(this).parent(".switch").className);
});
});
//when I click the radio, find the .switch parent and alert it's
classes.

Do regular DOM methods and properties work on jquery objects?







[jQuery] Re: Masked Input Plugin 1.1

2007-10-05 Thread Josh Bush

The best I can tell, the only thing my implementation is missing is
the number masking example that they have.  I'm just not too keen on
how that one takes over so much control from the textbox.

With that one, you can't highlight text in the box and that means you
can't copy that value to the clipboard.  Also, it doesn't handle the
paste events for IE and FF like mine does.

I think I would like to implement the currency masking, and I also
want to add an option to allow incomplete masks.

Thanks for the link.  It's always good to see other similar things.

Josh


On Oct 5, 11:40 am, "Jeferson Koslowski" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> do u know the iMask plugin for Mootools? Its a very nice input mask tool and
> i think some features could be incorporated in ur plugin. Take a 
> look:http://zend.lojcomm.com.br/imask/
>
> On 10/4/07, Josh Bush <[EMAIL PROTECTED]> wrote:
>
>
>
> > For those that care, the problem ended up being a result of my using
> > $.each() over a string.  Apparently IE won't let you use [] to access
> > an individual character from a string.  The solution for me was to
> > call .split on the string as I passed it into $.each() so that it
> > looks like this "$.each(myString.split(''),function(i,c){/*code
> > here*/});"
>
> > Josh
>
> > On Oct 4, 12:01 am, Flesler <[EMAIL PROTECTED]> wrote:
> > > Congratz, the example works fine now, in IE.
>
> > > On Oct 3, 3:02 pm, Josh Bush <[EMAIL PROTECTED]> wrote:
>
> > > > I managed to get this fixed last night and put a new version up.  I'll
> > > > be updating the jquery plugins page tonight.
>
> > > > Josh
>
> > > > On Oct 2, 6:40 pm, Josh Bush <[EMAIL PROTECTED]> wrote:
>
> > > > > It appears something I've done had totally borked this plugin for
> > IE.
> > > > > I'll figure it out real quick and get a new version out.
>
> > > > > On Oct 2, 2:26 pm, Flesler <[EMAIL PROTECTED]> wrote:
>
> > > > > > Your plugin is great, I checked it out some time ago... you know,
> > the
> > > > > > example fails in IE (6, windows). When I focus an input or type in
> > it,
> > > > > > an error pops saying "'res' is not defined".
>
> > > > > > On 2 oct, 15:06, Josh Bush <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I just released version 1.1 of my Masked Input Plugin for
> > jQuery. I
> > > > > > > have more features in the pipeline to add to 1.2, but I wanted
> > to get
> > > > > > > a few fixes out the door before doing so. The only thing new
> > this time
> > > > > > > is an unmask method.
>
> > > > > > > In addition to code changes, I've made a few more enhancements.
> > I've
> > > > > > > added a packed version for those who want the smallest possible
> > > > > > > footprint. I've also given the project page a face lift to make
> > things
> > > > > > > easier to find.
>
> > > > > > > Below is a list of changes this time:
>
> > > > > > > * NEW FEATURE: unmask() method to remove masking for a
> > previously
> > > > > > > masked input.
> > > > > > > * Safari cursor position fix.
> > > > > > > * Cursor position behavior change: Cursor goes to the end of
> > the
> > > > > > > input on a completed input. Cursor goes to the first placeholder
> > > > > > > position on a blank input.
> > > > > > > * Fixed improper escaping of certain mask characters.
> > > > > > > * Code refactoring to reduce size and complexity.
>
> > > > > > > Please check it out at:
> >http://digitalbush.com/projects/masked-input-plugin
>
> > > > > > > Thank You
> > > > > > > Josh
> > > > > > > digitalbush.com- Hide quoted text -
>
> > > > - Show quoted text -



[jQuery] Re: jQuery and Mootools again...

2007-10-05 Thread Brandon Aaron
It looks like the first javascript file (javascript.js) has a syntax error
that is causing your problems.

--
Brandon Aaron

On 10/5/07, caruso_g <[EMAIL PROTECTED]> wrote:
>
>
> [Preface: I am tring to post this for the third time, since I didn't
> see it in the thread. Please, pardon me if the reason is that the post
> must be moderated. (please, don't smile if so... :P )] - I am sorry to
> repost again about jQuery and Mootools conflict, but I am still having
> the conflict beetween this two frameworks. I would like to say that I
> LARGELY prefer jQuery, which makes me able (just a graphic with NO
> coding skills...) to add utilities and effects to my site in a breeze
> (thanks, really)! But I have to make sites where other devs use
> Mootools, so I am still encountering the issue. I update the jQuery
> package to the latest, since I red that it was solved, but the
> conflict is still there. Thanks to everyone which will have the time
> to help me. The following is the link where I get the issue:
>
> http://www.bonsai-studio.net/clients/clickadvisor-02/plugins-pages/accordion/index.html
>
>


[jQuery] Re: jQuery and Mootools again...

2007-10-05 Thread Rey Bango


Hi Caruso,

What we need is an explanation of the issue. Could you provide more 
detail into what's not working?


Thanks,

Rey

caruso_g wrote:

I am sorry to repost again about this conflict, but I am still having
the conflict beetween this two frameworks. I would like to say that I
LARGELY prefer jQuery, which makes me able (just a graphic with NO
coding skills...) to add utilities and effects to my site in a breeze
(thanks, really)! But I have to make sites where other devs use
Mootools, so I am still encountering the issue. I update the jQuery
package to the latest, since I red that it was solved, but the
conflict is still there. Thanks to everyone which will have the time
to help me. The following is the link where I get the issue:
http://www.bonsai-studio.net/clients/clickadvisor-02/plugins-pages/accordion/index.html




[jQuery] Thanks to all the jQuery developers out here

2007-10-05 Thread vulgarisoverip

1.2 has been a dream come true, fixing a lot of the little animation
bugs I found in the past. With it, I was able to convince my boss to
create a Word of the Day page (https://www.appelrouthtutoring.com/
wod.php) in HTML/Javascript instead of Flash. It's more accessible now
and A LOT easier to maintain. I would never have been able to do it
without jQuery.

Thanks!
Peter



[jQuery] [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread Karl Swedberg

Hey folks,

Looks like John Resig was interviewed for an article on InfoWorld.  
Some big news about possible attempt to establish a foundation:


"Code library aims to fuel easier JavaScript handling
The caretaker of jQuery, which compiles and simplifies tested  
JavaScript code for developers' use, hopes to establish a foundation  
to expand the project's reach"


http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel- 
easier-JavaScript-handling_1.html?source=searchresult


Cheers,

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





[jQuery] Safari crash and burn on Accordion form

2007-10-05 Thread MichaelEvangelista


using Joern's accordion script (and his very slick form validation plugin)
to create a 3-step form on this page:

http://comparemyagent.com/fa/fa_buy-sell.cfm

works great in IE and FF... but in safari (v2) it crashes the browser 
completely


other pages on this site, using just 2-part forms,
have issues in safari, but they don't kill it altogether!

any ideas?

I'm debating whether to write a workaround version for safari,
or just strip it out altogether for some other behavior...


--

--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com
Newsgroups: news://forums.mredesign.com
Blog : www.miuaiga.com





[jQuery] Re: Thanks to all the jQuery developers out here

2007-10-05 Thread Rey Bango


Very cool Peter!

Rey

vulgarisoverip wrote:

1.2 has been a dream come true, fixing a lot of the little animation
bugs I found in the past. With it, I was able to convince my boss to
create a Word of the Day page (https://www.appelrouthtutoring.com/
wod.php) in HTML/Javascript instead of Flash. It's more accessible now
and A LOT easier to maintain. I would never have been able to do it
without jQuery.

Thanks!
Peter




[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread Glen Lipka
Great mag.  Great article.  Wow, John is everywhere these days.  He is
challenging Rey for the "most active" award. :)

Glen

On 10/5/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> Hey folks,
> Looks like John Resig was interviewed for an article on InfoWorld. Some
> big news about possible attempt to establish a foundation:
>
> "Code library aims to fuel easier JavaScript handling
> The caretaker of jQuery, which compiles and simplifies tested JavaScript
> code for developers' use, hopes to establish a foundation to expand the
> project's reach"
>
>
> http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult
>
> Cheers,
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>


[jQuery] Re: Thanks to all the jQuery developers out here

2007-10-05 Thread Glen Lipka
Nice action.  I like it!
Maybe try the easing plugin to give the transition a little flair.
Great job!

Glen

On 10/5/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
>
> Very cool Peter!
>
> Rey
>
> vulgarisoverip wrote:
> > 1.2 has been a dream come true, fixing a lot of the little animation
> > bugs I found in the past. With it, I was able to convince my boss to
> > create a Word of the Day page (https://www.appelrouthtutoring.com/
> > wod.php) in HTML/Javascript instead of Flash. It's more accessible now
> > and A LOT easier to maintain. I would never have been able to do it
> > without jQuery.
> >
> > Thanks!
> > Peter
> >
> >
>


[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread Rey Bango


Hahahahaha! Not sure if anyone can top me in that dept. ;)

Rey

Glen Lipka wrote:
Great mag.  Great article.  Wow, John is everywhere these days.  He is 
challenging Rey for the "most active" award. :)


Glen

On 10/5/07, *Karl Swedberg * <[EMAIL PROTECTED] 
> wrote:


Hey folks,

Looks like John Resig was interviewed for an article on InfoWorld.
Some big news about possible attempt to establish a foundation:

"Code library aims to fuel easier JavaScript handling
The caretaker of jQuery, which compiles and simplifies tested
JavaScript code for developers' use, hopes to establish a foundation
to expand the project's reach"


http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult

Cheers,

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






[jQuery] Re: Cool sitemap code

2007-10-05 Thread cfdvlpr

This looks interesting as I am trying to make a sitemap for a new site
right now...
I'm not sure that I fully understand how this is supposed to work.
Has anyone implemented this in a cool way and can provide a link to it?



[jQuery] Please TEST? Re: Safari crash and burn on Accordion form

2007-10-05 Thread MichaelEvangelista


update - it was actually super easy to
sniff for Safari and to replace the calls to the accordion function with 
plain ol' jQuery .slideUp() and .slideDown()


My only safari version is via Browsercam - and I really can't tell how the 
animation looks.

http://comparemyagent.com/fa/testsafari.cfm

If anybody with a safari browser would care to check...  should I use 
another method besides slideUp/down?

Is it fairly smooth?

Also, this thing was crashing safari before I made my changes.

Now it should
1) pop up an alert
2) require some fields on each tab by clicking 'next' but not by clicking 
'back'

3) be able to go back and forth from the 3rd panel no problem

Any feedback greatly appreciated.
And thanks to Joern for help with getting the 3-step part working via his 
accordion plugin.


I am continually amazed how easy and intuitive jQuery is.
I can see why so many CF programmers like jQuery over other libraries... 
things are what they 'say' they are... browser, slide up, slide down... no 
brainer!


--

--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com
Newsgroups: news://forums.mredesign.com
Blog : www.miuaiga.com


"MichaelEvangelista" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]


using Joern's accordion script (and his very slick form validation plugin)
to create a 3-step form on this page:

http://comparemyagent.com/fa/fa_buy-sell.cfm

works great in IE and FF... but in safari (v2) it crashes the browser 
completely


other pages on this site, using just 2-part forms,
have issues in safari, but they don't kill it altogether!

any ideas?

I'm debating whether to write a workaround version for safari,
or just strip it out altogether for some other behavior...


--

--
Michael Evangelista, Evangelista Design
Web : www.mredesign.com
Newsgroups: news://forums.mredesign.com
Blog : www.miuaiga.com









[jQuery] Re: thumbnails in jCarousel inquiry

2007-10-05 Thread Steve Finkelstein

Thank you Jan!

I'll take a peak.

Cheers!

- sf

On 10/5/07, Jan Sorgalla <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Steve Finkelstein schrieb:
> > Hi all,
> >
> > My thumbnails in jCarousel are distorting the aspect ratio of my
> > photos. Here's an example:
> >
> > http://www.f1autoimports.com/inventory/single/11
> >
> > Would anyone be kind enough to tell me how I can re-adjust the default
> > size to make this look more 'proper' per se?
> >
> > Thanks. :-)
> >
> > - sf
>
> you can adjust the item width in skin.css:
>
> .jcarousel-skin-ie7 .jcarousel-item {
> width: 75px;
> height: 75px;
> border: 1px solid #fff;
> }
>
> After you changed the width, you should also adjust the width of the
> clip and container of the the carousel:
>
> .jcarousel-skin-ie7.jcarousel-container-horizontal {
> width: 245px;
> padding: 20px 40px;
> margin-left: 5px;
> margin-right: 5px;
> }
>
> .jcarousel-skin-ie7 .jcarousel-clip-horizontal {
> width:  245px;
> height: 77px;
> }
>
> Jan
>
>


[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread Rey Bango


Not Klaus. Paul Bakaus.

Rey

David wrote:


Klaus only got a laptop ??? He should have got a server farm to fill it 
with all his ideas, projects and good advice.



-- David Duymelinck


Karl Swedberg schreef:

Hey folks,

Looks like John Resig was interviewed for an article on InfoWorld. 
Some big news about possible attempt to establish a foundation:


"Code library aims to fuel easier JavaScript handling
The caretaker of jQuery, which compiles and simplifies tested 
JavaScript code for developers' use, hopes to establish a foundation 
to expand the project's reach"


http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult 



Cheers,

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








[jQuery] Re: Validation madness

2007-10-05 Thread Steve Blades
Ok, I've kind of hacked around it. Maybe adding prePost and onFailure
options that can map to functions(form), so that you could run a script
prior to the actual submit event, or something in the event of the form
being invalid.

I had a select with values that were a pipe delimited string. The select had
an onChange event handler that would pass the first token to an ajax call to
populate a second drop down. When the form was submitted I would have to
strip out the first (id) token of the value so that only the second token
(value) would be submitted. If the validation failed then I would need to
repopulate the first select with the correct data (remember I had stripped
out that id token), and zero out the second select (since it wouldn't be
related anymore). It's all working now, but kinda clunky.

-- 
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
---
The Past is a Memory
The Future a Dream
But Today is a Gift
That's why they call it
The Present


[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread David


Oh yes of course, anyway Paul should get a server farm all the same :) 
they can split it between them :)


-- David Duymelinck

Rey Bango schreef:


Not Klaus. Paul Bakaus.

Rey

David wrote:


Klaus only got a laptop ??? He should have got a server farm to fill 
it with all his ideas, projects and good advice.



-- David Duymelinck


Karl Swedberg schreef:

Hey folks,

Looks like John Resig was interviewed for an article on InfoWorld. 
Some big news about possible attempt to establish a foundation:


"Code library aims to fuel easier JavaScript handling
The caretaker of jQuery, which compiles and simplifies tested 
JavaScript code for developers' use, hopes to establish a foundation 
to expand the project's reach"


http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult 



Cheers,

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












[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread David


Klaus only got a laptop ??? He should have got a server farm to fill it 
with all his ideas, projects and good advice.



-- David Duymelinck


Karl Swedberg schreef:

Hey folks,

Looks like John Resig was interviewed for an article on InfoWorld. 
Some big news about possible attempt to establish a foundation:


"Code library aims to fuel easier JavaScript handling
The caretaker of jQuery, which compiles and simplifies tested 
JavaScript code for developers' use, hopes to establish a foundation 
to expand the project's reach"


http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult

Cheers,

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







[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread Rey Bango


LOL! I'm down for that. Do this:

1) Go here http://jquery.com/
2) Scroll down and look for the donate option at the lower left
3) Donate several thousands of dollars

hehe!

Rey...

David wrote:


Oh yes of course, anyway Paul should get a server farm all the same :) 
they can split it between them :)


-- David Duymelinck

Rey Bango schreef:


Not Klaus. Paul Bakaus.

Rey

David wrote:


Klaus only got a laptop ??? He should have got a server farm to fill 
it with all his ideas, projects and good advice.



-- David Duymelinck


Karl Swedberg schreef:

Hey folks,

Looks like John Resig was interviewed for an article on InfoWorld. 
Some big news about possible attempt to establish a foundation:


"Code library aims to fuel easier JavaScript handling
The caretaker of jQuery, which compiles and simplifies tested 
JavaScript code for developers' use, hopes to establish a foundation 
to expand the project's reach"


http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult 



Cheers,

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













[jQuery] Re: Release: jQuery treeview plugin 1.3

2007-10-05 Thread Jörn Zaefferer


Guy Fraser schrieb:

Jörn Zaefferer wrote:
  
If you need keyboard navigation, async loading and d&d and similar 
stuff you need to either wait for the UI tree component or take a look 
at Ext's tree components. I don't plan to extend this plugin in them 
mentioned direction: I want to keep it leightweight, providing 
unobtrusive navigation enhancements.




Keyboard control would be the main one I guess, just for accessibility 
compliance and usability.
  
The trouble here: How do I know that the tree has focus, and should 
receive keyboard events? I'd need to implement some sort of "selectable" 
first, before I could add keyboard navigation. On the other hand, I'll 
think about using UI's selectables to write another plugin on top of the 
current treeview. That way the treeview plugin can stay as leightweight 
as it is.
Another thing that would be useful is if root nodes didn't have the bit 
of "connector line" showing above their +/- box...
  

That shouldn't be too hard :-)

-- Jörn


[jQuery] Re: jQuery and Mootools again...

2007-10-05 Thread Wizzud


As Brandon has pointed out in your other post, you don't have a conflict at
all, you have bad code. And it's nothing to do with jQuery!
It looks like someone has run some sort of compressor on the code in
javascript.js, and the scripting isn't up to scratch and won't stand
compressing (at least, not using whatever tool was used). Obviously it
wasn't tested in compressed form either.
Its easy enough to prove by simply editing out your dozen or so lines that
bring in and use jQuery, and see if you still get the error.
BTW if you are at all concerned about running jQuery alongside other
libraries you really should read 
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
http://docs.jquery.com/Using_jQuery_with_Other_Libraries  . And probably
apply its techniques!


caruso_g wrote:
> 
> 
> I am sorry to repost again about this conflict, but I am still having
> the conflict beetween this two frameworks. I would like to say that I
> LARGELY prefer jQuery, which makes me able (just a graphic with NO
> coding skills...) to add utilities and effects to my site in a breeze
> (thanks, really)! But I have to make sites where other devs use
> Mootools, so I am still encountering the issue. I update the jQuery
> package to the latest, since I red that it was solved, but the
> conflict is still there. Thanks to everyone which will have the time
> to help me. The following is the link where I get the issue:
> http://www.bonsai-studio.net/clients/clickadvisor-02/plugins-pages/accordion/index.html
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-and-Mootools-again...-tf4576676s27240.html#a13068445
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: [jquery-ui] sortable problem ...

2007-10-05 Thread Jörn Zaefferer


Michael Stuhr schrieb:
in addition to this, i'm getting constantly errors while trying out 
the demo under:

http://docs.jquery.com/UI/Sortables/sortable#options

firebug keeps tracing errors after dropping one of the items ... i had 
to reload the whole page to stop this.
I can second that. Though you should rather post this to the UI mailing 
list: http://groups.google.com/group/jquery-ui


-- Jörn


[jQuery] Re: Delete photo on confirm

2007-10-05 Thread Wizzud


function delete_photo (photo_id) {
if(confirm('Are you sure you want to delete this photo?')){
$.post("http://www.domain.com/delphoto/"+ photo_id);
$("#"+ photo_id).fadeOut(500);
}
return false;
};



Codex wrote:
> 
> 
> Maybe I'm going about thewrong way, but this is what I'm trying to
> achieve:
> 
> I have a page with thumbnails. Underneath each thumbnail there's a
> 'delete' link:
> 
>  # photo_id.')">Delete 
> 
> On click I would like to fire a confirmation message. Upon
> confirmation the image should be deleted for which I have made a
> function that's in 'main.js':
> 
> function delete_photo (photo_id) {
>   confirm('Are you sure you want to delete this photo?');
>   $.post("http://www.domain.com/delphoto/"+ photo_id);
>   $("#"+ photo_id).fadeOut(500);
>   return false;
> };
> 
> The post works, the photo gets deleted, but on cancel the deletion is
> also executed. I can see that how I've done it now is incorrect
> because yes, the $post is right behind the confirmation so it's
> logical it's being executed. But how do you do this the right way??
> 
> Thanks in advance!!
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Delete-photo-on-confirm-tf4576687s27240.html#a13068479
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: [PREVIEW] another future grid: jquery.KIKEgrid alpha...

2007-10-05 Thread Jörn Zaefferer


Enrique Meléndez Estrada schrieb:


http://www.ita.es/jquery/kikegrid.htm

This is a preview of something I'm working on. You can see a first 
integration of plugins 
"jquery.grid.columnSizing"+"jquery.grid.columnSizing"+ a plugin for 
navigating via mouse & keys + an edition on line, etc...
That looks really promising. After playing around with it a bit I 
couldn't find something that wasn't obviously caused by its alpha 
status, eg. editing the first column displays an image element. In other 
words: I'm impressed, no technical stuff to nag about :-)
Well, apart from one point: Have you considered switchting to the UI 
equivalents of draggables and selectables?


*Why another grid? OK, easy answer:* [...]
I think it would be enough to highlight the advantages of your plugins, 
without telling is what others do wrong.


I didn't get what the calendar demo is good for on that page. Its 
irritating, while I don't see any need for a datepicker with resizeable 
columns.
...and next week I'll take holidays for a month, so my work will be 
delayed to next November...;-)

A whole month? Have fun!

-- Jörn



[jQuery] Re: Validation madness

2007-10-05 Thread Jörn Zaefferer


Steve Blades schrieb:
Ok, I've kind of hacked around it. Maybe adding prePost and onFailure 
options that can map to functions(form), so that you could run a 
script prior to the actual submit event, or something in the event of 
the form being invalid.

How about these?
- beforeSubmit: called before the validation starts
- success: called when the form is valid
- submitHandler: replaces the default submit, handler must do an 
ajaxSubmit or whatever


-- Jörn


[jQuery] Re: clarfication

2007-10-05 Thread Wizzud


You're talking about a radio button with a class of 'switch' so I will assume
that you have something like...



Break your code down...
1. $('.switch :radio', this).each(function(){
2.  $(this).click(
function(){
3.  alert($(this)
4.  .parent(".switch")
5.  .get(0).className);
});
});

1. select any element of class switch that is a radio button, and for each
one you find 
2. assign a click function (BTW you don't need the each() step; you could
just do $().click(function(){});)
3. alert : select this element (which is the clicked radio button)
4. get the immediate parent of this radio button IF that parent has a class
of 'switch'
5. return the actual element (of the parent, IF it had a class of 'switch')
and show it's className (which can only ever be 'switch' or null)

So unless whatever element your radio button is directly under also has a
class of 'switch' you're not going to get a sensible alert!

This would work...


These won't...





dan-192 wrote:
> 
> 
> I just posted about 1 hour ago and my post didn't show up so here goes
> again.
> 
> new to jquery and there's something I'm missing.
> 
> $('.switch :radio', this).each(function(){
>   $(this).click(
>   function(){
>   
> alert($(this).parent(".switch").get(0).className);
>   });
>   });
> //when the .switch radio button is clicked go up to the parent and
> alert the className.
> 
> I always get undefined. Don't dom methods or properties work on jquery
> objects?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/clarfication-tf4576688s27240.html#a13068654
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Delete photo on confirm

2007-10-05 Thread Codex

Ok, I've found a way to do it. But is there a 'jQuery way' to do it?



On 5 okt, 18:17, Codex <[EMAIL PROTECTED]> wrote:
> Maybe I'm going about thewrong way, but this is what I'm trying to
> achieve:
>
> I have a page with thumbnails. Underneath each thumbnail there's a
> 'delete' link:
>
> Delete
>
> On click I would like to fire a confirmation message. Upon
> confirmation the image should be deleted for which I have made a
> function that's in 'main.js':
>
> function delete_photo (photo_id) {
> confirm('Are you sure you want to delete this photo?');
> $.post("http://www.domain.com/delphoto/"+ photo_id);
> $("#"+ photo_id).fadeOut(500);
> return false;
>
> };
>
> The post works, the photo gets deleted, but on cancel the deletion is
> also executed. I can see that how I've done it now is incorrect
> because yes, the $post is right behind the confirmation so it's
> logical it's being executed. But how do you do this the right way??
>
> Thanks in advance!!



[jQuery] More Superfish Questions

2007-10-05 Thread Ryura

Hello again,

We've decided we wish to do a collapsible menu (on click) with
Superfish instead of the general drop down onmouseover. Is this
possible with Superfish or should I look into getting another plugin?
If it is possible, how would I go about doing it?

Thanks,
Ryura



[jQuery] Re: Selector with Pipe (|) character not working

2007-10-05 Thread Abubakar Saddique
thanks ..really appreciate your help

On 10/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>  Sure thing. The HTML spec found here:
> http://www.w3.org/TR/html401/types.html#type-name
>
> Says this:
> ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed
> by any number
> of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons
> (":"), and periods (".").
>
>  --
> *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Abubakar Saddique
> *Sent:* Friday, October 05, 2007 11:40 AM
> *To:* jquery-en@googlegroups.com
> *Subject:* [jQuery] Re: Selector with Pipe (|) character not working
>
>
>  may i ask why not pipes?
>
> On 10/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
> >
> >  I'd suggest not using the pipe as part of your ID or class names. Try
> > using a dash - or underscore, then split on those.
> >
> >  --
> > *From:* jquery-en@googlegroups.com [mailto: [EMAIL PROTECTED]
> > *On Behalf Of *Richard D. Worth
> > *Sent:* Friday, October 05, 2007 9:07 AM
> > *To:* jquery-en@googlegroups.com
> > *Subject:* [jQuery] Re: Selector with Pipe (|) character not working
> >
> >
> >  You need to escape the pipe since it is a special character. Use \\|
> > instead of | inside the selector. For more info, see:
> >
> > http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
> >
> >
> > - Richard
> >
> > On 10/3/07, ab < [EMAIL PROTECTED] > wrote:
> > >
> > >
> > > I am trying to select an element with with ID  which have pipe
> > > character (|)
> > > i  found that its not working
> > >
> > >
> > > CODE--HTML
> > > 
> > >
> > > CODE-SCRIPT
> > >alert($("#firstname|1").val() );
> > >
> > > and output is "undefined"..
> > >
> > > Works well if i remove pipe
> > >
> > > Please help me..is it a bug or "feature"
> > >
> > >
> >
> >
> >
>


[jQuery] Re: the jquery logo

2007-10-05 Thread Guy Fraser
Joel Birch wrote:
> I'm not sure about the permission to use that logo, but my complete
> guess would be that it's okay to use it. Otherwise, feel free to use
> the one I created, or not as you so choose:
> http://users.tpg.com.au/j_birch/plugins/superfish/img/jQuery-logo.gif
>
> Joel Birch.
>   
That's much nicer than the official jQuery logo IMHO. Looks a lot 
cleaner and more modern and, dare I say, professional!

Guy


[jQuery] Re: superfish entire page 'fades' on mouseover (firefox mac os x)

2007-10-05 Thread gdw

Thanks.  It worked perfectly.

On Oct 3, 10:09 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hi Greg,
>
> It is 99.9% certain that it is what Karl said. Here is what has become
> my set spiel on the subject:
>
> MacFirefoxhas two text rendering anti-aliasing modes, one of which
> makes the text look much lighter or less bold in weight. The usual
> mode is used when everything on the page has an opacity of 1, or fully
> opaque. The moment anything drops to 0. opacity, as it does on
> fadeOut (although this is not a jQuery issue - it's any form of
> opacity) all the text on the page shifts to the lighter text rendering
> mode. The reverse also occurs on fadeIn and also between .0001 and 0,
> that is, just as something becomes completely transparent. It's
> annoying and the only two workarounds are (1) to set opacity: .999 on
> the body element which forces all the text on the page to use the
> light rendering mode 100% of the time and never switch to the bolder
> mode. This sometimes looks quite good when the design has dark text on
> a light background. It wouldn't do for light text on dark though, as
> the text just becomes far too thin and begins to lose readability. The
> other (2) workaround is to avoid using opacity in the animation
> completely and using a simple slideDown instead.
>
> Joel Birch.



[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-05 Thread Wizzud


With...
bar1
bar2

try...
var selects = $('select[name=foo]');

See the Attribute Filters, under Selectors in the API Reference.

(If you have non-unique ids for elements on your page, do not rely on
selecting them by $('#id')!)



syg6-2 wrote:
> 
> 
> For reasons I won't go into here I have a page which has a table with
> a variable amount of rows. Each row has a hidden, text, and select.
> They all have the same name. I also have other selects on the page
> with different names.
> 
> What I need to do is access only the selects, to be able to add and
> remove options. So I need to know how many selects with the name "foo"
> are on the page
> 
> I have tried this:
> 
> jQuery("select#foo")
> 
> which simply returns [Object object]. If I do this:
> 
> jQuery("select#foo").length
> 
> it returns 0 which is not true. When I load the page I have 2 selects
> already. So if I do this:
> 
> jQuery("select#foo").text()
> 
> it returns white space. And
> 
> jQuery("select#foo").val()
> 
> returns undefined.
> 
> I have also tried stuff like
> 
> jQuery("select#foo[0]").val()
> 
> but nothing seems to work. Since uses can dynamically add rows to the
> table (and with each one a hidden, text input and select) I need to 1)
> know how many selects with a given id/name there are and 2) be able to
> manipulate the values in each one.
> 
> How can I do this?
> 
> Thanks!
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/multiple-selects%2C-hiddens-and-text-inputs-with-same-name-tf4576679s27240.html#a13068738
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: why is jquery-1.2.1.min.js 45.3KB and not 14KB

2007-10-05 Thread Stosh

Glen,
Be careful ob_gzhandler() doesn't always work the way you would want/
expect it to.  Reference the notes in the php.net docs to see what I'm
talking about.  Bottom line, if you want to have gzip handling you're
best doing it at the apache level.

Pax,
- Stan

On Oct 2, 5:28 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Personally, I never understood where to put that script.
> I ended up doing it another way.
>
>1. Rename the JavaScript files from .js to .php.  All of them. (And
>reference them in my html with php, not js.)
>2. At the top of each JS, I put 
>3. At the bottom of each JS, I put 
>
> This is a little intrusive (alot) in that I have to rename the files. (Works
> for CSS too)
> There is supposedly a way to do this in .htaccess files, but my host wasn't
> doing the right thing.
>
> Glen
>
> On 10/2/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>
>
> > There's a link to gzip instructions right next to the download link for
> > that
> > file.
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of [EMAIL PROTECTED]
> > Sent: Tuesday, October 02, 2007 12:47 PM
> > To: jQuery (English)
> > Subject: [jQuery] Re: why is jquery-1.2.1.min.js 45.3KB and not 14KB
>
> > Mike, you can tell me please how can i verify if gzip is enabled?
> > Thanks!
>
> > On Oct 2, 3:49 pm, "Mike Chabot" <[EMAIL PROTECTED]> wrote:
> > > You are probably missing the gzip portion of it. You have to enable
> > > that feature on your Web server to gain the benefits.
>
> > > -Mike Chabot
>
> > > On 10/1/07, ghettoboy <[EMAIL PROTECTED]> wrote:
>
> > > > Why is the Minified and Gzipped version of 1.2.1 show up as 45.3 and
> > > > not 14KB. Am I missing something here???



[jQuery] Re: RED: [jQuery] Re: Packed version of BlockUI?

2007-10-05 Thread Stosh

Running it through lint also usually does the trick.  This is what I
do with my js files, lint them, and then compress them with Dean's
work.

Pax,
- Stan



On Oct 3, 10:19 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> The main things are the missing semicolons at the end of each command.
>
> var x = 0;
> do_something();
> container.fn = function() { do_something(); };
>
> You don't need semicolons at the end of conditional blocks:
>
> if (condition) { do_something(); }
> while(condition) { do_something(); }
>
> Or at the end of try/catch:
>
> try { do_something(); }
> catch(e) { do_somethingelse(); }
>
> What I've done is, pack the files with Dean.Edwards packer, and then test
> the script on a page with Firebug.  The console is extremely helpful for
> identifying the offending code and it will say exacly what is wrong (e.g.
> "missing ;") and show you exactly where the problem is in the code, even if
> your code is only 1 line long (no linefeeds).
>
> JK
>
> - Original Message -
> From: "Brook Davies" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, October 03, 2007 10:06 AM
> Subject: [jQuery] RED: [jQuery] Re: Packed version of BlockUI?
>
> > On this topic, what are the rules to write JS that will pack without
> > error?
> > I know you need a ";" at the end of every line, but what else?
>
> > BrookD
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Rey Bango
> > Sent: October 3, 2007 8:15 AM
> > To: jquery-en@googlegroups.com
> > Subject: [jQuery] Re: Packed version of BlockUI?
>
> > Andy,
>
> > Just take the code and drop it into Dean Edward's Packer or YUI
> > compressor.
>
> > Rey
>
> > Andy Matthews wrote:
> >> I'm in need of a simple page overlay, which I'll be using to display
> >> help messages. I found BlockUI, but it's 15k. Is there a packed version
> >> of it, or a simpler version that just allows for a page overlay?
>
> >> *
> >> 
>
> >> Andy Matthews
> >> *Senior ColdFusion Developer
>
> >> Office:  877.707.5467 x747
> >> Direct:  615.627.9747
> >> Fax:  615.467.6249
> >> [EMAIL PROTECTED]
> >>www.dealerskins.com



[jQuery] Re: [Announce]: jQuery and John Resig featured on InfoWorld

2007-10-05 Thread John Resig

Oh, neat - glad to see that got up quickly. I had a chat with Jeremy
the other day, when I was presenting at the Future of Web Apps
conference. It looks pretty good, I just need to clarify one thing: I
don't think I made the timeframe of the jQuery foundation clear - it's
definitely something that I'd like to strive for, but it's unclear as
to when it will actually come to fruition. (As it would require
additional time, effort, people, and resources - all of which are
quite scare.)

--John

On 10/5/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hey folks,
>
> Looks like John Resig was interviewed for an article on InfoWorld. Some big
> news about possible attempt to establish a foundation:
>
> "Code library aims to fuel easier JavaScript handling
> The caretaker of jQuery, which compiles and simplifies tested JavaScript
> code for developers' use, hopes to establish a foundation to expand the
> project's reach"
>
> http://www.infoworld.com/article/07/10/04/Code-library-aims-to-fuel-easier-JavaScript-handling_1.html?source=searchresult
>
> Cheers,
>
> --Karl
> _
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
>


[jQuery] Re: why is jquery-1.2.1.min.js 45.3KB and not 14KB

2007-10-05 Thread Glen Lipka
I cant figure out how to do that. :(
I just switched hosts.  Maybe they can help me.

Glen

On 10/5/07, Stosh <[EMAIL PROTECTED]> wrote:
>
>
> Glen,
> Be careful ob_gzhandler() doesn't always work the way you would want/
> expect it to.  Reference the notes in the php.net docs to see what I'm
> talking about.  Bottom line, if you want to have gzip handling you're
> best doing it at the apache level.
>
> Pax,
> - Stan
>
> On Oct 2, 5:28 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> > Personally, I never understood where to put that script.
> > I ended up doing it another way.
> >
> >1. Rename the JavaScript files from .js to .php.  All of them. (And
> >reference them in my html with php, not js.)
> >2. At the top of each JS, I put 
> >3. At the bottom of each JS, I put 
> >
> > This is a little intrusive (alot) in that I have to rename the files.
> (Works
> > for CSS too)
> > There is supposedly a way to do this in .htaccess files, but my host
> wasn't
> > doing the right thing.
> >
> > Glen
> >
> > On 10/2/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > There's a link to gzip instructions right next to the download link
> for
> > > that
> > > file.
> >
> > > -Original Message-
> > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED]
> On
> > > Behalf Of [EMAIL PROTECTED]
> > > Sent: Tuesday, October 02, 2007 12:47 PM
> > > To: jQuery (English)
> > > Subject: [jQuery] Re: why is jquery-1.2.1.min.js 45.3KB and not 14KB
> >
> > > Mike, you can tell me please how can i verify if gzip is enabled?
> > > Thanks!
> >
> > > On Oct 2, 3:49 pm, "Mike Chabot" <[EMAIL PROTECTED]> wrote:
> > > > You are probably missing the gzip portion of it. You have to enable
> > > > that feature on your Web server to gain the benefits.
> >
> > > > -Mike Chabot
> >
> > > > On 10/1/07, ghettoboy <[EMAIL PROTECTED]> wrote:
> >
> > > > > Why is the Minified and Gzipped version of 1.2.1 show up as 45.3and
> > > > > not 14KB. Am I missing something here???
>
>


[jQuery] check json field

2007-10-05 Thread bingo

hi,

this is first I am starting to use json and wondering how I can check
whether a field is defined or not
I am using form plugin to submit my form though ajax. On the server,
depending on result, I set either success or failed field and pass the
json data to client..now I want to which field is set and
appropriately update the UI.

thanks

Ritesh