[jQuery] Re: Superfish menu extremely slow/clunky in IE6 with wordpress

2007-12-19 Thread Joel Birch

Hi John, long time no talk :)

The dodgy behaviour on that page is very strange. Makes me think it
could be due to HTML errors. I think if you can make the code validate
we can rule out lots of possibilities and if it still doesn't work,
package up that page's HTML, CSS and JS and send that test page to me
in a Zip archive and I'll see if I can debug it for you. I'm going
away for a couple of days but I should be able to fit it in sometime
after that.

Merry Christmas!

Joel Birch.


[jQuery] Re: Looping ajax requests

2007-12-19 Thread Michael Geary
Sorry, Sam, that's a good try but it's not the solution.
 
If you mentally step through Ryura's code, keeping in mind that a $.ajax
success callback is called asynchronously - not at the time the $.ajax call
is made - you'll see what went wrong:
 
First, the loop is executed:
   i = 1
   while i = 5:
  $.ajax(...)
  ++i
Then, sometime later, the success callbacks get called - and they all use
the *current* value of i (now incremented to 6), not the value that i
had when $.ajax() was called.
 
Adding another variable I doesn't help - because the same thing will
happen with that variable. But you're on the right track. You just need a
way for each $.ajax call to have its own i variable. You do that by
putting the code in a function, perhaps like this:
loadPages( 1, 5 );
function loadPages( first, last ) {
for( var i = first;  i = last;  ++i ) {
loadPage( i );
}
}
function loadPage( i ) {
$.ajax({
type: GET,
url: http://example.com/5740/; + i + /page.html,
dataType: text,
success: function( data ) {
alert( i );
}
});
}
Now, each time the loadPage function is called, a brand new variable i is
created that is local to that one function call. And, very conveniently,
that variable is kept in existence until it is needed in the success
callback. (And note that it doesn't matter that we used the same variable
name in both functions - they are separate variables regardless.)
 
You can also do the same thing with an inline anonymous function:
function loadPages( first, last ) {
for( var i = first;  i = last;  ++i ) {
(function( i ) {
$.ajax({
type: GET,
url: http://example.com/5740/; + i + /page.html,
dataType: text,
success: function( data ) {
alert( i );
}
});
})( i );
}
}
This does the same thing as the separate function. I don't think I'd
recommend coding it this way because it's harder to follow, but if you see
code like this you'll know what it is doing.
 
In both cases, note that each function has its own variable i - it's just
by coincidence that we used the same name in both. The anonymous function
version may be a bit more clear if we use a different variable name in the
inner function:

function loadPages( first, last ) {
for( var i = first;  i = last;  ++i ) {
(function( n ) {
$.ajax({
type: GET,
url: http://example.com/5740/; + n + /page.html,
dataType: text,
success: function( data ) {
alert( n );
}
});
})( i );
}
}
Either way, it does exactly the same thing as the first version with the
named functions.
 
BTW, when you hear about closures, this is what they're talking about.
 
-Mike



  _  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sam Sherlock
Sent: Tuesday, December 18, 2007 11:43 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Looping ajax requests


I'd say its a scope issue with the var i

I am not a JS expert so this is not definitive


var I = 0, dt = 5;

for (i=1;i=dt;i++) {
I = i;
$.ajax({
 type: GET,
 url:  http://example.com/5740/+i+/page.html;,
 dataType: text,
 success: function(data){ 
 alert(I);
}
})};

untested; I might either be barking up the wrong tree or I may have
misunderstood the quest

or some other wiser jQuerian may have more to say, all part of the learning
curve :)


On 18/12/2007, Ryura [EMAIL PROTECTED] wrote: 


Got a problem when looping ajax requests. I have probably made a
mistake somewhere but I can't find it.

dt=5;
for (i=1;i=dt;i++) {
$.ajax({
  type: GET,
  url:   http://example.com/5740/
http://example.com/5740/+i+/page.html;,
  dataType: text,
  success: function(data){
  alert(i);
}
})};
This alerts 5 4 times. Interestingly, it correctly gets 4 pages: 
http://example.com/5740/1/page.html
http://example.com/5740/2/page.html
http://example.com/5740/3/page.html
http://example.com/5740/4/page.html

What is the solution?
Thanks,
Ryura





[jQuery] Re: jQueryish for Effect.CashRegister()

2007-12-19 Thread Karl Swedberg


Glen Lipka put together something that was similar (but way cooler) a  
while ago. Glen, do you still have that somewhere on your site?



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



On Dec 19, 2007, at 3:18 AM, R. Rajesh Jeba Anbiah wrote:



Anyone know of any jQuery version for Effect.CashRegister()
http://www.thinkvitamin.com/downloads/cashregister/cashregister.html ?

TIA

--
 ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/




[jQuery] Re: jquery not working in IE

2007-12-19 Thread Eridius


can anyone tell me if they see anything wrong with this code?


Eridius wrote:
 
 This particular code in not work IE 6/7 but works in firefox.  Can't get a
 demo up right now but any suggestions are welcomed.
 
 script type=text/javascript
 function ie_fix()
 {
   //update filters
 $('#select_destination_filter').change(function()
   {
   //select values
   var destination_select = $('#destination_filter').val();
   var hotel_select = $('#hotel_filter').val();
   var travel_week_select = $('#travel_week_filter').val();
 
   $('#select_travel_week_filter').empty();
   $('#select_hotel_filter').empty();
 
   
 $('#select_travel_week_filter').load('/lib/ajax/community/search/filter_update.php',
   {
   'change': 'travel_week',
   'destination': destination_select,
   'hotel': hotel_select,
   'travel_week': travel_week_select,
   'source_change' : 'destination'
   });
   
 $('#select_hotel_filter').load('/lib/ajax/community/search/filter_update.php',
   {
   'change': 'hotel',
   'destination': destination_select,
   'hotel': hotel_select,
   'travel_week': travel_week_select,
   'source_change' : 'destination'
   });
   });
 
 $('#select_travel_week_filter').change(function()
   {
   //select values
   var destination_select = $('#destination_filter').val();
   var hotel_select = $('#hotel_filter').val();
   var travel_week_select = $('#travel_week_filter').val();
 
   $('#select_destination_filter').empty();
   $('#select_hotel_filter').empty();
 
   
 $('#select_destination_filter').load('/lib/ajax/community/search/filter_update.php',
   {
   'change': 'destination',
   'destination': destination_select,
   'hotel': hotel_select,
   'travel_week': travel_week_select,
   'source_change' : 'travel_week'
   });
   
 $('#select_hotel_filter').load('/lib/ajax/community/search/filter_update.php',
   {
   'change': 'hotel',
   'destination': destination_select,
   'hotel': hotel_select,
   'travel_week': travel_week_select,
   'source_change' : 'travel_week'
   });
   });
 
 $('#select_hotel_filter').change(function()
   {
   //select values
   var destination_select = $('#destination_filter').val();
   var hotel_select = $('#hotel_filter').val();
   var travel_week_select = $('#travel_week_filter').val();
 
   $('#select_travel_week_filter').empty();
   $('#select_destination_filter').empty();
 
   
 $('#select_travel_week_filter').load('/lib/ajax/community/search/filter_update.php',
   {
   'change': 'travel_week',
   'destination': destination_select,
   'hotel': hotel_select,
   'travel_week': travel_week_select,
   'source_change' : 'hotel'
   });
   
 $('#select_destination_filter').load('/lib/ajax/community/search/filter_update.php',
   {
   'change': 'destination',
   'destination': destination_select,
   'hotel': hotel_select,
   'travel_week': travel_week_select,
   'source_change' : 'hotel'
   });
   });
 };
 
 $(document).ready(function()
 {
 setTimeout(ie_fix, 5000);
 });
 /script
 

-- 
View this message in context: 
http://www.nabble.com/jquery-not-working-in-IE-tp14407531s27240p14416882.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How to find a table cells value?

2007-12-19 Thread RobG



On Dec 19, 11:49 am, Monica [EMAIL PROTECTED] wrote:
 Newbie here...

 I have a table $(#searchDataTable), each row has an unique id. What
 is the JQuery code to get the value(text) of particular cell in this
 table?

Don't forget that every row has rowIndex and sectionRowIndex
properties and every cell a cellIndex property.  These are very much
faster than CSS-style selectors, e.g.:

$($('#tableID').rows[x].cells[y]).text();

is about 30 times faster than:

$(#rowID td:nth-child(y)).text();


--
Rob


[jQuery] Re: jquery not working in IE

2007-12-19 Thread Karl Swedberg


Hi Eridius,

I don't see anything obviously wrong with the code. Can you specify  
what is (or is not) happening when you attempt this with IE 6/7? In  
other words, how is it not working? Do you get an error, or does it  
fail silently? Also, just for troubleshooting purposes, could you  
replace .change with something else, such as blur? Maybe IE 6/7  
aren't picking up on the change event.



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



On Dec 19, 2007, at 8:25 AM, Eridius wrote:




can anyone tell me if they see anything wrong with this code?


Eridius wrote:


This particular code in not work IE 6/7 but works in firefox.   
Can't get a

demo up right now but any suggestions are welcomed.

script type=text/javascript
function ie_fix()
{
//update filters
   $('#select_destination_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_travel_week_filter').empty();
$('#select_hotel_filter').empty();


$('#select_travel_week_filter').load('/lib/ajax/community/search/ 
filter_update.php',

{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});

$('#select_hotel_filter').load('/lib/ajax/community/search/ 
filter_update.php',

{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});
});

   $('#select_travel_week_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_destination_filter').empty();
$('#select_hotel_filter').empty();


$('#select_destination_filter').load('/lib/ajax/community/search/ 
filter_update.php',

{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});

$('#select_hotel_filter').load('/lib/ajax/community/search/ 
filter_update.php',

{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});
});

   $('#select_hotel_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_travel_week_filter').empty();
$('#select_destination_filter').empty();


$('#select_travel_week_filter').load('/lib/ajax/community/search/ 
filter_update.php',

{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});

$('#select_destination_filter').load('/lib/ajax/community/search/ 
filter_update.php',

{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});
});
};

$(document).ready(function()
{
   setTimeout(ie_fix, 5000);
});
/script



--
View this message in context: 
http://www.nabble.com/jquery-not-working-in-IE-tp14407531s27240p14416882.html
Sent from the jQuery General Discussion mailing list archive at  
Nabble.com.






[jQuery] Re: jquery not working in IE

2007-12-19 Thread Eridius


The empty does not take effect or anything after it which is the first first
that should happen.  I am about to start just commenting code and start
alerting stuff and see what happens.


Karl Swedberg-2 wrote:
 
 
 Hi Eridius,
 
 I don't see anything obviously wrong with the code. Can you specify  
 what is (or is not) happening when you attempt this with IE 6/7? In  
 other words, how is it not working? Do you get an error, or does it  
 fail silently? Also, just for troubleshooting purposes, could you  
 replace .change with something else, such as blur? Maybe IE 6/7  
 aren't picking up on the change event.
 
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 On Dec 19, 2007, at 8:25 AM, Eridius wrote:
 


 can anyone tell me if they see anything wrong with this code?


 Eridius wrote:

 This particular code in not work IE 6/7 but works in firefox.   
 Can't get a
 demo up right now but any suggestions are welcomed.

 script type=text/javascript
 function ie_fix()
 {
 //update filters
$('#select_destination_filter').change(function()
 {
 //select values
 var destination_select = $('#destination_filter').val();
 var hotel_select = $('#hotel_filter').val();
 var travel_week_select = $('#travel_week_filter').val();

 $('#select_travel_week_filter').empty();
 $('#select_hotel_filter').empty();

 
 $('#select_travel_week_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
 {
 'change': 'travel_week',
 'destination': destination_select,
 'hotel': hotel_select,
 'travel_week': travel_week_select,
 'source_change' : 'destination'
 });
 
 $('#select_hotel_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
 {
 'change': 'hotel',
 'destination': destination_select,
 'hotel': hotel_select,
 'travel_week': travel_week_select,
 'source_change' : 'destination'
 });
 });

$('#select_travel_week_filter').change(function()
 {
 //select values
 var destination_select = $('#destination_filter').val();
 var hotel_select = $('#hotel_filter').val();
 var travel_week_select = $('#travel_week_filter').val();

 $('#select_destination_filter').empty();
 $('#select_hotel_filter').empty();

 
 $('#select_destination_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
 {
 'change': 'destination',
 'destination': destination_select,
 'hotel': hotel_select,
 'travel_week': travel_week_select,
 'source_change' : 'travel_week'
 });
 
 $('#select_hotel_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
 {
 'change': 'hotel',
 'destination': destination_select,
 'hotel': hotel_select,
 'travel_week': travel_week_select,
 'source_change' : 'travel_week'
 });
 });

$('#select_hotel_filter').change(function()
 {
 //select values
 var destination_select = $('#destination_filter').val();
 var hotel_select = $('#hotel_filter').val();
 var travel_week_select = $('#travel_week_filter').val();

 $('#select_travel_week_filter').empty();
 $('#select_destination_filter').empty();

 
 $('#select_travel_week_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
 {
 'change': 'travel_week',
 'destination': destination_select,
 'hotel': hotel_select,
 'travel_week': travel_week_select,
 'source_change' : 'hotel'
 });
 
 $('#select_destination_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
 {
 'change': 'destination',
 'destination': destination_select,
 'hotel': hotel_select,
 'travel_week': travel_week_select,
 'source_change' : 'hotel'
 });
 });
 };

 $(document).ready(function()
 {
setTimeout(ie_fix, 5000);
 });
 /script


 -- 
 View this message in context:
 http://www.nabble.com/jquery-not-working-in-IE-tp14407531s27240p14416882.html
 Sent from the jQuery General Discussion mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/jquery-not-working-in-IE-tp14407531s27240p14417570.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jquery not working in IE

2007-12-19 Thread Eridius


I figured it out, the #select_... was the span tag I was emptying which
included the select box.  Even tho I hate IE, it is a way makes you a better
programmer because you have to code correctly where firefox is forgiving a
knows what you meant.  I did have to change the .change to a livequery to
fix it in IE(I swear that is the best plugin ever) but it all works now.


Eridius wrote:
 
 The empty does not take effect or anything after it which is the first
 first that should happen.  I am about to start just commenting code and
 start alerting stuff and see what happens.
 
 
 Karl Swedberg-2 wrote:
 
 
 Hi Eridius,
 
 I don't see anything obviously wrong with the code. Can you specify  
 what is (or is not) happening when you attempt this with IE 6/7? In  
 other words, how is it not working? Do you get an error, or does it  
 fail silently? Also, just for troubleshooting purposes, could you  
 replace .change with something else, such as blur? Maybe IE 6/7  
 aren't picking up on the change event.
 
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 On Dec 19, 2007, at 8:25 AM, Eridius wrote:
 


 can anyone tell me if they see anything wrong with this code?


 Eridius wrote:

 This particular code in not work IE 6/7 but works in firefox.   
 Can't get a
 demo up right now but any suggestions are welcomed.

 script type=text/javascript
 function ie_fix()
 {
//update filters
$('#select_destination_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_travel_week_filter').empty();
$('#select_hotel_filter').empty();


 $('#select_travel_week_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});

 $('#select_hotel_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});
});

$('#select_travel_week_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_destination_filter').empty();
$('#select_hotel_filter').empty();


 $('#select_destination_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});

 $('#select_hotel_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});
});

$('#select_hotel_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_travel_week_filter').empty();
$('#select_destination_filter').empty();


 $('#select_travel_week_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});

 $('#select_destination_filter').load('/lib/ajax/community/search/ 
 filter_update.php',
{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});
});
 };

 $(document).ready(function()
 {
setTimeout(ie_fix, 5000);
 });
 /script


 -- 
 View this message in context:
 

[jQuery] Re: jquery not working in IE

2007-12-19 Thread Karl Swedberg


Excellent! Glad you got it working.

--Karl

On Dec 19, 2007, at 9:17 AM, Eridius wrote:




I figured it out, the #select_... was the span tag I was emptying  
which
included the select box.  Even tho I hate IE, it is a way makes you  
a better
programmer because you have to code correctly where firefox is  
forgiving a
knows what you meant.  I did have to change the .change to a  
livequery to
fix it in IE(I swear that is the best plugin ever) but it all works  
now.



Eridius wrote:


The empty does not take effect or anything after it which is the  
first
first that should happen.  I am about to start just commenting code  
and

start alerting stuff and see what happens.


Karl Swedberg-2 wrote:



Hi Eridius,

I don't see anything obviously wrong with the code. Can you specify
what is (or is not) happening when you attempt this with IE 6/7? In
other words, how is it not working? Do you get an error, or does  
it

fail silently? Also, just for troubleshooting purposes, could you
replace .change with something else, such as blur? Maybe IE 6/7
aren't picking up on the change event.


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



On Dec 19, 2007, at 8:25 AM, Eridius wrote:




can anyone tell me if they see anything wrong with this code?


Eridius wrote:


This particular code in not work IE 6/7 but works in firefox.
Can't get a
demo up right now but any suggestions are welcomed.

script type=text/javascript
function ie_fix()
{
//update filters
  $('#select_destination_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_travel_week_filter').empty();
$('#select_hotel_filter').empty();


$('#select_travel_week_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});

$('#select_hotel_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'destination'
});
});

  $('#select_travel_week_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_destination_filter').empty();
$('#select_hotel_filter').empty();


$('#select_destination_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'destination',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});

$('#select_hotel_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'hotel',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'travel_week'
});
});

  $('#select_hotel_filter').change(function()
{
//select values
var destination_select = $('#destination_filter').val();
var hotel_select = $('#hotel_filter').val();
var travel_week_select = $('#travel_week_filter').val();

$('#select_travel_week_filter').empty();
$('#select_destination_filter').empty();


$('#select_travel_week_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'travel_week',
'destination': destination_select,
'hotel': hotel_select,
'travel_week': travel_week_select,
'source_change' : 'hotel'
});

$('#select_destination_filter').load('/lib/ajax/community/search/
filter_update.php',
{
'change': 'destination',
'destination': destination_select,
 

[jQuery] Re: Cycle plugin and manually generated paging links?

2007-12-19 Thread Andy Matthews

That 3rd demo is exactly what I'm looking for Mike. Thanks!

You ever consider exposing a method by which a specific link can call a
specific slide, regardless of the order of the links?

$('li a.one').click(function(){
cycle.load(3);
});

Something along those lines?

andy 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Tuesday, December 18, 2007 9:27 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Cycle plugin and manually generated paging links?


Andy,

You can generate your own links by using the pagerAnchorBuilder option.

http://www.malsup.com/jquery/cycle/pager2.html
http://www.malsup.com/jquery/cycle/pager3.html

Mike


On Dec 18, 2007 10:15 PM, Andy Matthews [EMAIL PROTECTED] wrote:

 A little clarification. I have a product details page which contains 4 
 images of various states (distance shot, closeup, artwork, etc.). I 
 will only ever have 4 shots, and so I'd like each link to be able to 
 trigger the appropriate slide from Cycle. The images will always be in 
 the same order.

 I'm looking through the code for Cycle, and I don't see a method I can 
 call to specify which image to load. Just advance, reverse, etc.


 On Dec 18, 8:49 pm, Andy Matthews [EMAIL PROTECTED] wrote:
  I'm looking to use the excellent Cycle plugin for a product page I'm 
  building. I tried out the pager demo (http://www.malsup.com/jquery/ 
  cycle/int2.html), but had some issues getting it working. I'd like 
  to generate the links myself as I'd like to put some custom title 
  attributes on each link.
 
  Is this possible? How do I go about it?





[jQuery] Problem with IE6 - a click event doesn't work

2007-12-19 Thread Brandnew

Hello,

I'm having trouble to make IE accept a click event while everythink
works fine with Mozilla. Here's a sample of my code :

$('#add').click(function(){
$('#spinner').show();
$('#dernier_enregistrement').hide(1000);
var type='add';
$('#output1').load('post_form.php', {type:type}, function(){
$('#myForm').ajaxForm(options);
$('#myForm').show();
$('#spinner').hide();
});
return false;
});

Do you have any idea what's wrong or what I should do to repair the
problem ?

Thanks !

Ced


[jQuery] Re: serializeArray problem with IE7

2007-12-19 Thread elias

Hi, found the solution for my problem, surprise, surprise: form html
was invalid meaning that closing tag of form was form :) FF was able
to parse DOM, IE not.

Mike, havent tested but I think that $(#editDiv
form).serializeArray() works also.

Cheers
Olli

On Dec 18, 5:30 pm, Mike Alsup [EMAIL PROTECTED] wrote:
 Just out of curiosity, does this work?

 var data = $(#editDiv form).serializeArray();

 Mike

 On Dec 18, 2007 7:55 AM, elias [EMAIL PROTECTED] wrote:



  Hi, I have a following problem, FF2 works fine, IE not:

  I have a form that is written dynamically on page, by dynamically I
  mean that form html comes from ajax response like this:

  function getForm() {
  $.ajax({
  url: actionurl,
  data: data,
  success: function(html){
  $(#editDiv).empty();
  $(#editDiv).html(html);
  },
  type:POST,
  cache:false
  });
  return false;
  }

  and then another function that serializes the form input fields and
  sends data to server when #editForm is submitted:

  function paSave() {
  var data = $(#editForm).serializeArray();
  $.ajax({
  url: actionurl,
  data: data,
  success: function(resp){
 ..
  },
  error: function(XMLHttpRequest, textStatus, 
  errorThrown) {
  
  },
  type:POST,
  dataType: json,
  cache:false
  });
  return false;
  }

  And it seems that with IE7 $(#editForm).serializeArray() returns
  null, FF returns nicely data object holding form values.

  Have someone else had this problem before, any help would be
  appreciated!


[jQuery] Best technique? .load() and div height...

2007-12-19 Thread Micky Hulse

Hi,

I've got a few questions here...

When I .load() text into a div -- basically swapping one bit of text
for another, -- the div will collapse for a second while the textual
content loads and switches...

...What would be the best way to retain the div size during .load()?

My best guess would be to dynamically grab the div height before
ajaxStart(), and then apply min-height/height to the container div
only during the switching.

Sound like an ok technique/approach? How have you handled such
situations?

off-topic
I have noticed that my posts take a while to show-up on the list... Is
this because of moderation? Are all posts moderated, or only those
made by new members?
/off-topic

Thanks!
Cheers,
Micky


[jQuery] Re: $(document).ready same es Dean Edwards solution

2007-12-19 Thread Daniel Keel

Thanx Jeffrey,
That's how I understand it. But someone sad that with Dean Edwards
solution you don't get FOUC and therefore you don't need the
workaround with the div's set to display: none.

In fact he said the Dean Edwards solution does this (and it's equal to
the $(document).ready ):
- DOM is created in memory
- Execute your JS
- Browser starts rendering the page
 (I don't put the window.onload event, because it's clear when it's
executed)


-daniEL


On Dec 19, 1:29 am, Jeffrey Kretz [EMAIL PROTECTED] wrote:
 You keep saying rendered.  Let's be clear about this.

 The ready statement fires after the DOM has been been created in-memory can
 can be accessed through selectors.

 The browser doesn't pause the rendering of the page once the DOM has been
 loaded to handle events.

 For example, you'll notice on an HTML page where the images have no width
 and height defined, that the page will started rendering immediately, and
 then as the images are downloaded, the page layout keeps being adjusted to
 fit the now available images.

 The document ready function fires after the HTML has been loaded, but before
 all of the images and other binary content have downloaded.

 As a matter of fact, a page can even start rendering BEFORE the HTML is
 fully downloaded.  You can test this on an ASP server by writing to the
 response stream, then flushing the stream, then writing more to the
 stream, then flushing the stream again.  The page will render each bit as
 it comes in, even though the HTML isn't fully downloaded.

 Does this answer your question?

 JK

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of Daniel Keel
 Sent: Tuesday, December 18, 2007 12:03 PM
 To: jQuery (English)
 Subject: [jQuery] Re: $(document).ready same es Dean Edwards solution

 I do all the JavaScript within $(document).ready and not in the
 window.onload.
 As far as I understand, the $(document).ready event is fired before
 the HTML is rendered (DOMContentLoaded in FF). Is this correct or am I
 mistaken?

 -daniEL

 On Dec 18, 8:47 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
  Someone else with more experience should confirm this, but I believe the
  ready function fires after the HTML is loaded but before the images or
 other
  binary content is downloaded.  I don't believe it has anything to do with
  the browser rendering the page or not.

  If you used the window.onload event, EVERYTHING needs to be downloaded
  before it fires.  The document ready fires as soon as the DOM is built.

  This may not be what you are looking for, but you could perhaps do the
  following:

  1. Wrap your main page content in a DIV set for display:none.
  2. Add a floating loading element in the middle of the page.
  3. Modify the DOM.
  4. Then remove the loading element and display the main div.

  JK

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

  Behalf Of Daniel Keel
  Sent: Tuesday, December 18, 2007 9:05 AM
  To: jQuery (English)
  Subject: [jQuery] Re: $(document).ready same es Dean Edwards solution

  To be more precise:

  In Opera(9.3)  and IE6 / 7 this is what's happens

  - The page is loaded with the css rendering
  - The elements in question are rendered with the jQuery plugins (here
  is the problem, because the user sees this rendering life )
  - window.onload gets executed

  As far as I understand, the $(document).ready event means that the DOM
  is ready but that the page is not rendered yet so that you can handle
  your javascript before the user get the page rendered. Am I wrong?

  -daniEL

  On Dec 18, 3:28 am, Karl Rudd [EMAIL PROTECTED] wrote:
   It'd be helpful if you could post a URL with an example page where the
   problem happens. There's a number of things that can come into play,
   though it's usually something to do with a large amount of elements
   being modified via JavaScript.

   Karl Rudd

   On Dec 18, 2007 4:54 AM, Daniel Keel [EMAIL PROTECTED] wrote:

Hello, this is my first post.

I'm working with jQuery since a month and I have one problem. The $
(document).ready event doesn't work properly, manly I get the fouc in
IE and Opera. As far as I have red the Dean Edwards solution (http://
dean.edwards.name/weblog/2006/06/again/) is implemented in jQuery ($
(document).ready ).  For now I'm fixing this issue loading a css
dinamically that contains a class to hide the elements that trigger
fouc.

My main question is, does the $(document).ready include the Dean
Edwards solution?
Second question: Someone else experienced the fouc issue as I do? If
yes, which approach was taken?

Thanks in advance for your help and time.

daniEL


[jQuery] Superfish submenus flowing outside of browser window

2007-12-19 Thread Luke Brookhart

Can anyone help me with the Superfish plugin. I absolutely love the
way it works. I just have one issue with the submenu appearing outside
the browser window. Since my menu is right aligned, and since the
submenu does not match the width of the top level menu (because I
wanted to keep the top menu tight against the width of the text in
each menu link). Here's a screenshot link:


http://dev.pureagent.net/overflow_issue.png


Thanks,

Luke Brookhart


[jQuery] Re: XUL jQuery-1.2.1 html manipulation issue

2007-12-19 Thread Carl Taylor
I'm guessing that XUL does not use the same renderer. But it does use a
fairly standard one: innerHTML. When I use the pleonastically verbose DOM
method:

{{{
document.getElementById('todo-list').innerHTML = 'BAAR';
}}}

Everything works fine. I suppose I would have to hack the jQuery library to
not do anything too special with it's dom manipulation...

W. I would really like a way to have jQuery be compatible for XUL,
as development with it is a snap!

-Carl

On Dec 18, 2007 11:37 AM, Jeffrey Kretz [EMAIL PROTECTED] wrote:


 Although I have minimal familiarity with XUL in FF, my first thought would
 be that the core javascript functions may possibly operate differently
 with
 XUL.

 For example, see Koch's site on cross-platform compatibility with
 different
 javascript functions in different browsers, such as
 http://www.quirksmode.org/dom/w3c_core.html

 I wonder if the FF XUL renderer uses the same exact javascript
 implementation as its HTML renderer?  This could affect the core jQuery
 library, as to how it parses elements and adds them to the DOM.

 JK

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of phocis
 Sent: Tuesday, December 18, 2007 4:58 AM
 To: jQuery (English)
 Subject: [jQuery] XUL jQuery-1.2.1 html manipulation issue


 jQuery seems to have an issue with manipulating html when in a XUL
 document.

 The following code ( yes, the jquery is loaded, hence the
 alert(jQuery)) crashes somewhere (there is no easy way of including
 firebug in XUL) when processing the .html or .append functions and
 blanks out the element.

 It should change from FOO to BAAR when the button is clicked.
 But as it is, it only clears the target out.

 This sucks because I would really like to use jQuery in my XUL app for
 ajax and ui manipulation.

 -Carl


 {{{
 ?xml version=1.0?
 ?xml-stylesheet href=chrome://global/skin/ type=text/css?

 window
id=main
title=ToDo
width=300
height=300
xmlns:html=http://www.w3.org/1999/xhtml;

 xmlns=http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul;
style=margin:0;
html:script src=jquery-1.2.1.min.js/
toolbox flex=1 style=margin:0;

html:div
id=todo-list
style=background:#F0F0F0;
flex=1
FOOO
/html:div

html:script
function replaceText(){
alert(jQuery);
$('#todo-list').html('BR');
}
/html:script

menubar id=sample-menubar
button label=CLICKME
 oncommand=replaceText()/
/menubar
/toolbox
 /window
 }}}


 



[jQuery] Re: fadeTo refiering/flickering when hovering div's element

2007-12-19 Thread don Jao


Hi Wizzud, thank you for youre reply.

Unfortunatelly, it doesn't work. That way i behave exactly the same way.
Probably, this is something impossible.

All the best.

Wizzud wrote:
 
 
 Try using hover() instead.
 Hover() has built-in code for testing whether the element under the
 mouse has the target element as an ancestor.
 
 On Dec 18, 9:23 am, don Jao [EMAIL PROTECTED] wrote:
 Hi Everyone,

 I'm pretty new to jQuery, and my JavaScript sills aren't very good to0,
 but
 they're not too bad either.

 I'm in need to fade a whole div, with couple of input fields, text and
 images inside it from 50% to 100% opacity. I used simple way to get it:
 $(div).mouseover( function() { $(this).fadeTo(slow, 1) } );

 however this way i get annoying re-fade effect when i move mouse inside
 that
 div without leaving it:http://www.adpro.ee/temp/delme.html

 Is there any way around to make it work properly?

 Thanks in advance.
 --
 View this message in
 context:http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%2...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14412489.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Interface droppables versus UI Droppables

2007-12-19 Thread Karl Delandsheere

Hi!

I'm moving a project from Interface to UI.

When it was working with Interface, I used to call .recallDroppable
when the DOM was modified (display new droppables and so on) while
dragging.

The comment of .recallDroppable is to the point :D...

* useful when the positions/dimensions for droppables
 * are changed while dragging a element

So! My question is how can I do the same with UI Droppable?

It seems nothing is planed for that in UI :/.


[jQuery] Re: Looping ajax requests

2007-12-19 Thread haur
may be ...

http://example.com/?one=5740two=4/page.htmlhttp://example.com/5740/4/page.html

2007/12/19, Ryura [EMAIL PROTECTED]:


 Got a problem when looping ajax requests. I have probably made a
 mistake somewhere but I can't find it.

 dt=5;
 for (i=1;i=dt;i++) {
 $.ajax({
   type: GET,
   url: http://example.com/5740/+i+/page.html;,
   dataType: text,
   success: function(data){
   alert(i);
 }
 })};
 This alerts 5 4 times. Interestingly, it correctly gets 4 pages:
 http://example.com/5740/1/page.html
 http://example.com/5740/2/page.html
 http://example.com/5740/3/page.html
 http://example.com/5740/4/page.html

 What is the solution?
 Thanks,
 Ryura



[jQuery] Re: Looping ajax requests

2007-12-19 Thread David Decraene

the alerting is because of the asynchronous callback: it only triggers
success when it receives response from the server, and by that time i
already equals 5 (already looped multiple times), I think.
Why you do not get that last page beats me, try  for (var i=1;i6;i+
+)

David Decraene
http://ontologyonline.org


On Dec 19, 8:42 am, Sam Sherlock [EMAIL PROTECTED] wrote:
 I'd say its a scope issue with the var i

 I am not a JS expert so this is not definitive

 var I = 0, dt = 5;

 for (i=1;i=dt;i++) {
 I = i;
 $.ajax({
  type: GET,
  url: http://example.com/5740/+i+/page.html;,
  dataType: text,
  success: function(data){
  alert(I);

 }
 })};

 untested; I might either be barking up the wrong tree or I may have
 misunderstood the quest

 or some other wiser jQuerian may have more to say, all part of the learning
 curve :)

 On 18/12/2007, Ryura [EMAIL PROTECTED] wrote:



  Got a problem when looping ajax requests. I have probably made a
  mistake somewhere but I can't find it.

  dt=5;
  for (i=1;i=dt;i++) {
  $.ajax({
type: GET,
url: http://example.com/5740/+i+/page.html;,
dataType: text,
success: function(data){
alert(i);
  }
  })};
  This alerts 5 4 times. Interestingly, it correctly gets 4 pages:
 http://example.com/5740/1/page.html
 http://example.com/5740/2/page.html
 http://example.com/5740/3/page.html
 http://example.com/5740/4/page.html

  What is the solution?
  Thanks,
  Ryura


[jQuery] Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


i want to set up a photo gallery for a clients site and would like to use the 
http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox plugin 
or somethign similar.  that par is easy but i would like to be able to use
images from flickr.  that way the client would be able to update the images
in the gallery whenever he needs to.

has anyone done something like this or can suggest how to go about it?
-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] JCarousel prev and next images problem

2007-12-19 Thread Tal

Hi All,

I've mannaged to get it to work perfectly in IE but had to make minor
adjustments for Mozilla Fireforx 2.0.0.11.

The only problem i still encounter is that for some reason the arrow
images for the next and previous do not show.

Does anyone have any idea on what can it be and how can solve it?

Ciao,
Tal.


[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Priest, James (NIH/NIEHS) [C]

 -Original Message-
 From: bdee1 [mailto:[EMAIL PROTECTED] 

 i want to set up a photo gallery for a clients site and would 
 like to use the 
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery 
 LightBox plugin 
 or somethign similar.  that par is easy but i would like to 
 be able to use
 images from flickr.  that way the client would be able to 


I'm digging around looking for the same thing:

http://www.projectatomic.com/en/flickr.htm

Still in alpha though...

Jim


[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


yea i came across that one too but i don't really care for the style of their
lightbox effect.  i greatly prefer the type of the one i posted above.

really if i were to use the jquery lightbox effect then i guess all i would
need is a jquery plugin or script that would allow me to pull a set of image
thumbnails and full size images from a flicker set and output those
thumbnails and links with a class=lightbox on them.

i am looking at the flickr api to see if i can just build something but it
would be much easier if i could find a plugin to do this.


Priest, James (NIH/NIEHS) [C] wrote:
 
 
 -Original Message-
 From: bdee1 [mailto:[EMAIL PROTECTED] 
 
 i want to set up a photo gallery for a clients site and would 
 like to use the 
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery 
 LightBox plugin 
 or somethign similar.  that par is easy but i would like to 
 be able to use
 images from flickr.  that way the client would be able to 
 
 
 I'm digging around looking for the same thing:
 
 http://www.projectatomic.com/en/flickr.htm
 
 Still in alpha though...
 
 Jim
 
 

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419441.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
Check out my jqAlbumParser plugin, it will allow you to parse out a flickr
album and then execute any additional plugin:
http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 i want to set up a photo gallery for a clients site and would like to use
 the
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox plugin
 or somethign similar.  that par is easy but i would like to be able to use
 images from flickr.  that way the client would be able to update the
 images
 in the gallery whenever he needs to.

 has anyone done something like this or can suggest how to go about it?
 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: fadeTo refiering/flickering when hovering div's element

2007-12-19 Thread Karl Swedberg


Hi don,

I just approximated your page's markup and used the .hover() method.  
It's working fine for me. Would you mind testing here and letting us  
know if you still see the problem? ...


http://test.learningjquery.com/fadeto.html

Thanks,

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



On Dec 19, 2007, at 2:36 AM, don Jao wrote:




Hi Wizzud, thank you for youre reply.

Unfortunatelly, it doesn't work. That way i behave exactly the same  
way.

Probably, this is something impossible.

All the best.

Wizzud wrote:



Try using hover() instead.
Hover() has built-in code for testing whether the element under the
mouse has the target element as an ancestor.

On Dec 18, 9:23 am, don Jao [EMAIL PROTECTED] wrote:

Hi Everyone,

I'm pretty new to jQuery, and my JavaScript sills aren't very good  
to0,

but
they're not too bad either.

I'm in need to fade a whole div, with couple of input fields, text  
and
images inside it from 50% to 100% opacity. I used simple way to  
get it:

$(div).mouseover( function() { $(this).fadeTo(slow, 1) } );

however this way i get annoying re-fade effect when i move mouse  
inside

that
div without leaving it:http://www.adpro.ee/temp/delme.html

Is there any way around to make it work properly?

Thanks in advance.
--
View this message in
context:http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div 
%2...

Sent from the jQuery General Discussion mailing list archive at
Nabble.com.





--
View this message in context: 
http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14412489.html
Sent from the jQuery General Discussion mailing list archive at  
Nabble.com.






[jQuery] my plugin not working

2007-12-19 Thread Eridius


I am working on an ajaxified paginator plugin using jquery.  here is my code:

$.paginator = function(options)
{
this.options =
{
'url': null,
'replace_id': null,
'total_items': 0,
'items_per_page': 10,
'total_pages': 0,
'current_page': 1,
'new_page': 1,
'navigator_type': 'numbers'
};

$.extend(this.options, options);

this.options.total_pages = this.options.total_items /
this.options.items_per_page;

this.go_to_page(this.options.current_page);
};

$.paginator.prototype =
{
go_to_page: function(number)
{
this.options.new_page = number;
reload_content();
},

get_page: function(way)
{
if(way === 'next')
{
this.options.new_page = this.options.current_page + 1;
}
else if('previous')
{
this.options.new_page = this.options.current_page - 1;
}
reload_content();
},

next_page: function()
{
get_page('next');
},

previous_page: function()
{
get_page('previous');
},

navigator: function()
{
var x = 0;
var navigation = 'div id=paginator_navigation';

for(x = 1; x = this.options.total_pages; x++)
{
navigation += ' ' + x + ' ';
}

navigation += '/div';

alert(navigation);

$('#' + this.options.replace_id).append(navigation);
},

reload_content: function()
{
$('#' + this.options.replace_id).empty();

//add loading screen code

$('#' + this.options.replace_id).load
(
this.options.url,
{
'total_items': this.options.total_items,
'items_per_page': this.options.items_per_page,
'current_page': this.options.current_page,
'new_page': this.options.new_page
},
function()
{
//remove loading screen code
}
);

//update internal variables
this.options.current_page = this.options.new_page

navigator();
}
};

however when I do:

var paginator = $.paginator(
{
'url': 'page_test.php',
'replace_id': 'paginator_test',
'total_items': 10,
'items_per_page': 2
});

I get this.go_to_page in not a function.  I figured that I could call that
function there even though the function is declared later since don't call
the constructor function until all the code is loaded anyway but I guess
not.  Any help on making this work since I do want to be able load the
paginator once it is declared.
-- 
View this message in context: 
http://www.nabble.com/my-plugin-not-working-tp14419521s27240p14419521.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Prev Next Arrow Images are not showing in Mozilla Firefox 2.0

2007-12-19 Thread TAL ORLIK
Hi All,

I've also posted a topic on the group page, but i figured it wouldn't hurt
to send an email out as well.

I managed to get the jcarousel to work in IE with no problems i did however
needed to make some adjustments when it came to Mozilla Firefox.

The only problem i got left with is that for some odd reason unknown to me
the two arrow images for prev and next are not showing.

Please does someone have an idea why is this happening and how to solve it?

Regards,
Tal.


[jQuery] Re: Problem with IE6 - a click event doesn't work

2007-12-19 Thread Brandnew

I just used Run unit tests on the website where I found the plugin
for Ajax form.

With Mozilla it's working fine but then with IE6, it show some
mistakes (differents each time strangely).

Here the link : http://www.malsup.com/jquery/form/test/

But i don't really understand what that means, it seems that with IE6,
some ajaxSubmit (target div script) don't work. Is there anyway to
make it work ?

Thanks in advance !

Ced

On Dec 19, 1:30 pm, Brandnew [EMAIL PROTECTED] wrote:
 Hello,

 I'm having trouble to make IE accept a click event while everythink
 works fine with Mozilla. Here's a sample of my code :

 $('#add').click(function(){
 $('#spinner').show();
 $('#dernier_enregistrement').hide(1000);
 var type='add';
 $('#output1').load('post_form.php', {type:type}, function(){
 $('#myForm').ajaxForm(options);
 $('#myForm').show();
 $('#spinner').hide();
 });
 return false;

 });

 Do you have any idea what's wrong or what I should do to repair the
 problem ?

 Thanks !

 Ced


[jQuery] .GetJSON, retrieve a list of key/value from JSON object?

2007-12-19 Thread Mathieu Dumais-Savard

Hi,

I have no problem using jSON so far except that I am looking for a way
to browse the items sent from the server to the client in such
fashion:

foreach key (keys myJSONobject) {
 var value = (myJSONobject[keys]) ;
}

Any hint?

Thanks!


[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


that looks promising but i don't think i need to hook the results into a
plugin - i just want to output the results as links for use with lightbox. 
so if i don't hook into another plugin, how do i access the results?


bdee1 wrote:
 
 yea i came across that one too but i don't really care for the style of
 their lightbox effect.  i greatly prefer the type of the one i posted
 above.
 
 really if i were to use the jquery lightbox effect then i guess all i
 would need is a jquery plugin or script that would allow me to pull a set
 of image thumbnails and full size images from a flicker set and output
 those thumbnails and links with a class=lightbox on them.
 
 i am looking at the flickr api to see if i can just build something but it
 would be much easier if i could find a plugin to do this.
 
 
 Priest, James (NIH/NIEHS) [C] wrote:
 
 
 -Original Message-
 From: bdee1 [mailto:[EMAIL PROTECTED] 
 
 i want to set up a photo gallery for a clients site and would 
 like to use the 
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery 
 LightBox plugin 
 or somethign similar.  that par is easy but i would like to 
 be able to use
 images from flickr.  that way the client would be able to 
 
 
 I'm digging around looking for the same thing:
 
 http://www.projectatomic.com/en/flickr.htm
 
 Still in alpha though...
 
 Jim
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419914.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
By default, the output will look something like ullia
href=pathToFullSizeimg src=pathtoimage//a/li.../ul

And you can style it how ever you want.  If you want them to click to open
to lightbox, you would do something like:

$(.jqAlbumParser).jqAlbumParser({
pluginExec : function(){
$('a', this).lightBox();// this refers to the list just created
}
});


If you want to the plugin to execute on page load, do:

$(.jqAlbumParser).jqAlbumParser({
pluginExec : function(){
$('a', this).lightBox();// this refers to the list just created
 }
 }).click();

Of course all that is wrapped in the .ready() method.


On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 that looks promising but i don't think i need to hook the results into a
 plugin - i just want to output the results as links for use with lightbox.
 so if i don't hook into another plugin, how do i access the results?


 bdee1 wrote:
 
  yea i came across that one too but i don't really care for the style of
  their lightbox effect.  i greatly prefer the type of the one i posted
  above.
 
  really if i were to use the jquery lightbox effect then i guess all i
  would need is a jquery plugin or script that would allow me to pull a
 set
  of image thumbnails and full size images from a flicker set and output
  those thumbnails and links with a class=lightbox on them.
 
  i am looking at the flickr api to see if i can just build something but
 it
  would be much easier if i could find a plugin to do this.
 
 
  Priest, James (NIH/NIEHS) [C] wrote:
 
 
  -Original Message-
  From: bdee1 [mailto:[EMAIL PROTECTED] ]
 
  i want to set up a photo gallery for a clients site and would
  like to use the
  http://leandrovieira.com/projects/jquery/lightbox/ Jquery
  LightBox plugin
  or somethign similar.  that par is easy but i would like to
  be able to use
  images from flickr.  that way the client would be able to
 
 
  I'm digging around looking for the same thing:
 
  http://www.projectatomic.com/en/flickr.htm
 
  Still in alpha though...
 
  Jim
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419914.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: .GetJSON, retrieve a list of key/value from JSON object?

2007-12-19 Thread Scott Trudeau
for(key in myJSONobject) {
  var value = myJSONobject[key];
}

should get you started ...

On Dec 19, 2007 11:00 AM, Mathieu Dumais-Savard [EMAIL PROTECTED] wrote:


 Hi,

 I have no problem using jSON so far except that I am looking for a way
 to browse the items sent from the server to the client in such
 fashion:

 foreach key (keys myJSONobject) {
  var value = (myJSONobject[keys]) ;
 }

 Any hint?

 Thanks!




-- 
--
Scott Trudeau
scott.trudeau AT gmail DOT com
http://sstrudeau.com/
AIM: sodthestreets


[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


ok that should work - now one last question... i dont see the download link
for the plugin anywhere.


bmsterling wrote:
 
 Check out my jqAlbumParser plugin, it will allow you to parse out a flickr
 album and then execute any additional plugin:
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 i want to set up a photo gallery for a clients site and would like to use
 the
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox plugin
 or somethign similar.  that par is easy but i would like to be able to
 use
 images from flickr.  that way the client would be able to update the
 images
 in the gallery whenever he needs to.

 has anyone done something like this or can suggest how to go about it?
 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
I guess a download link would have been useful:
http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js

Thanks for catching that.

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 ok that should work - now one last question... i dont see the download
 link
 for the plugin anywhere.


 bmsterling wrote:
 
  Check out my jqAlbumParser plugin, it will allow you to parse out a
 flickr
  album and then execute any additional plugin:
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  i want to set up a photo gallery for a clients site and would like to
 use
  the
  http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox
 plugin
  or somethign similar.  that par is easy but i would like to be able to
  use
  images from flickr.  that way the client would be able to update the
  images
  in the gallery whenever he needs to.
 
  has anyone done something like this or can suggest how to go about it?
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: $(document).ready same es Dean Edwards solution

2007-12-19 Thread Jeffrey Kretz

Ah.

I don't believe that's the case, but that's only because of my experience,
not because I really know how these things work internally.

JK

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Keel
Sent: Wednesday, December 19, 2007 12:17 AM
To: jQuery (English)
Subject: [jQuery] Re: $(document).ready same es Dean Edwards solution


Thanx Jeffrey,
That's how I understand it. But someone sad that with Dean Edwards
solution you don't get FOUC and therefore you don't need the
workaround with the div's set to display: none.

In fact he said the Dean Edwards solution does this (and it's equal to
the $(document).ready ):
- DOM is created in memory
- Execute your JS
- Browser starts rendering the page
 (I don't put the window.onload event, because it's clear when it's
executed)


-daniEL


On Dec 19, 1:29 am, Jeffrey Kretz [EMAIL PROTECTED] wrote:
 You keep saying rendered.  Let's be clear about this.

 The ready statement fires after the DOM has been been created in-memory
can
 can be accessed through selectors.

 The browser doesn't pause the rendering of the page once the DOM has
been
 loaded to handle events.

 For example, you'll notice on an HTML page where the images have no width
 and height defined, that the page will started rendering immediately, and
 then as the images are downloaded, the page layout keeps being adjusted to
 fit the now available images.

 The document ready function fires after the HTML has been loaded, but
before
 all of the images and other binary content have downloaded.

 As a matter of fact, a page can even start rendering BEFORE the HTML is
 fully downloaded.  You can test this on an ASP server by writing to the
 response stream, then flushing the stream, then writing more to the
 stream, then flushing the stream again.  The page will render each bit
as
 it comes in, even though the HTML isn't fully downloaded.

 Does this answer your question?

 JK

 -Original Message-
 From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

 Behalf Of Daniel Keel
 Sent: Tuesday, December 18, 2007 12:03 PM
 To: jQuery (English)
 Subject: [jQuery] Re: $(document).ready same es Dean Edwards solution

 I do all the JavaScript within $(document).ready and not in the
 window.onload.
 As far as I understand, the $(document).ready event is fired before
 the HTML is rendered (DOMContentLoaded in FF). Is this correct or am I
 mistaken?

 -daniEL

 On Dec 18, 8:47 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
  Someone else with more experience should confirm this, but I believe the
  ready function fires after the HTML is loaded but before the images or
 other
  binary content is downloaded.  I don't believe it has anything to do
with
  the browser rendering the page or not.

  If you used the window.onload event, EVERYTHING needs to be downloaded
  before it fires.  The document ready fires as soon as the DOM is built.

  This may not be what you are looking for, but you could perhaps do the
  following:

  1. Wrap your main page content in a DIV set for display:none.
  2. Add a floating loading element in the middle of the page.
  3. Modify the DOM.
  4. Then remove the loading element and display the main div.

  JK

  -Original Message-
  From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On

  Behalf Of Daniel Keel
  Sent: Tuesday, December 18, 2007 9:05 AM
  To: jQuery (English)
  Subject: [jQuery] Re: $(document).ready same es Dean Edwards solution

  To be more precise:

  In Opera(9.3)  and IE6 / 7 this is what's happens

  - The page is loaded with the css rendering
  - The elements in question are rendered with the jQuery plugins (here
  is the problem, because the user sees this rendering life )
  - window.onload gets executed

  As far as I understand, the $(document).ready event means that the DOM
  is ready but that the page is not rendered yet so that you can handle
  your javascript before the user get the page rendered. Am I wrong?

  -daniEL

  On Dec 18, 3:28 am, Karl Rudd [EMAIL PROTECTED] wrote:
   It'd be helpful if you could post a URL with an example page where the
   problem happens. There's a number of things that can come into play,
   though it's usually something to do with a large amount of elements
   being modified via JavaScript.

   Karl Rudd

   On Dec 18, 2007 4:54 AM, Daniel Keel [EMAIL PROTECTED] wrote:

Hello, this is my first post.

I'm working with jQuery since a month and I have one problem. The $
(document).ready event doesn't work properly, manly I get the fouc
in
IE and Opera. As far as I have red the Dean Edwards solution
(http://
dean.edwards.name/weblog/2006/06/again/) is implemented in jQuery ($
(document).ready ).  For now I'm fixing this issue loading a css
dinamically that contains a class to hide the elements that trigger
fouc.

My main question is, does the $(document).ready include the Dean

[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


ok i got the download link and now i am looking at this code:
i am not sure i follow what you are saying here:
$(.jqAlbumParser).jqAlbumParser({
pluginExec : function(){
  $('a', this).lightBox();// this refers to the list just created
}
});

so is this saying that for each a tag it generates, it calls a lightbox
function?  please explain this further.


bmsterling wrote:
 
 By default, the output will look something like ulli pathToFullSize 
 pathtoimage  /li.../ul
 
 And you can style it how ever you want.  If you want them to click to open
 to lightbox, you would do something like:
 
 $(.jqAlbumParser).jqAlbumParser({
 pluginExec : function(){
 $('a', this).lightBox();// this refers to the list just created
 }
 });
 
 
 If you want to the plugin to execute on page load, do:
 
 $(.jqAlbumParser).jqAlbumParser({
 pluginExec : function(){
 $('a', this).lightBox();// this refers to the list just created
  }
  }).click();
 
 Of course all that is wrapped in the .ready() method.
 
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 that looks promising but i don't think i need to hook the results into a
 plugin - i just want to output the results as links for use with
 lightbox.
 so if i don't hook into another plugin, how do i access the results?


 bdee1 wrote:
 
  yea i came across that one too but i don't really care for the style of
  their lightbox effect.  i greatly prefer the type of the one i posted
  above.
 
  really if i were to use the jquery lightbox effect then i guess all i
  would need is a jquery plugin or script that would allow me to pull a
 set
  of image thumbnails and full size images from a flicker set and output
  those thumbnails and links with a class=lightbox on them.
 
  i am looking at the flickr api to see if i can just build something but
 it
  would be much easier if i could find a plugin to do this.
 
 
  Priest, James (NIH/NIEHS) [C] wrote:
 
 
  -Original Message-
  From: bdee1 [mailto:[EMAIL PROTECTED] ]
 
  i want to set up a photo gallery for a clients site and would
  like to use the
  http://leandrovieira.com/projects/jquery/lightbox/ Jquery
  LightBox plugin
  or somethign similar.  that par is easy but i would like to
  be able to use
  images from flickr.  that way the client would be able to
 
 
  I'm digging around looking for the same thing:
 
  http://www.projectatomic.com/en/flickr.htm
 
  Still in alpha though...
 
  Jim
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14419914.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420821.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


nevermind my last post about not understanding yoru code - that was just me
being stupid.  i just looked at the lightbox plugin in more detail and
answered my own questions duh.



bmsterling wrote:
 
 I guess a download link would have been useful:
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
 
 Thanks for catching that.
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 ok that should work - now one last question... i dont see the download
 link
 for the plugin anywhere.


 bmsterling wrote:
 
  Check out my jqAlbumParser plugin, it will allow you to parse out a
 flickr
  album and then execute any additional plugin:
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  i want to set up a photo gallery for a clients site and would like to
 use
  the
  http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox
 plugin
  or somethign similar.  that par is easy but i would like to be able to
  use
  images from flickr.  that way the client would be able to update the
  images
  in the gallery whenever he needs to.
 
  has anyone done something like this or can suggest how to go about it?
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: my plugin not working

2007-12-19 Thread Eridius


I have it working, forget the new keyword


Eridius wrote:
 
 I am working on an ajaxified paginator plugin using jquery.  here is my
 code:
 
 $.paginator = function(options)
 {
 this.options =
   {
   'url': null,
   'replace_id': null,
   'total_items': 0,
   'items_per_page': 10,
   'total_pages': 0,
   'current_page': 1,
   'new_page': 1,
   'navigator_type': 'numbers'
   };
 
   $.extend(this.options, options);
 
   this.options.total_pages = this.options.total_items /
 this.options.items_per_page;
 
   this.go_to_page(this.options.current_page);
 };
 
 $.paginator.prototype =
 {
 go_to_page: function(number)
   {
   this.options.new_page = number;
   reload_content();
   },
 
 get_page: function(way)
   {
   if(way === 'next')
   {
   this.options.new_page = this.options.current_page + 1;
   }
   else if('previous')
   {
   this.options.new_page = this.options.current_page - 1;
   }
   reload_content();
   },
 
 next_page: function()
   {
   get_page('next');
   },
 
   previous_page: function()
   {
   get_page('previous');
   },
 
   navigator: function()
   {
   var x = 0;
   var navigation = 'div id=paginator_navigation';
 
   for(x = 1; x = this.options.total_pages; x++)
   {
   navigation += ' ' + x + ' ';
   }
 
   navigation += '/div';
 
   alert(navigation);
 
   $('#' + this.options.replace_id).append(navigation);
   },
 
   reload_content: function()
   {
   $('#' + this.options.replace_id).empty();
 
   //add loading screen code
 
   $('#' + this.options.replace_id).load
   (
   this.options.url,
   {
   'total_items': this.options.total_items,
   'items_per_page': this.options.items_per_page,
   'current_page': this.options.current_page,
   'new_page': this.options.new_page
   },
   function()
   {
   //remove loading screen code
   }
   );
 
   //update internal variables
   this.options.current_page = this.options.new_page
 
   navigator();
   }
 };
 
 however when I do:
 
 var paginator = $.paginator(
 {
   'url': 'page_test.php',
   'replace_id': 'paginator_test',
   'total_items': 10,
   'items_per_page': 2
 });
 
 I get this.go_to_page in not a function.  I figured that I could call that
 function there even though the function is declared later since don't call
 the constructor function until all the code is loaded anyway but I guess
 not.  Any help on making this work since I do want to be able load the
 paginator once it is declared.
 

-- 
View this message in context: 
http://www.nabble.com/my-plugin-not-working-tp14419521s27240p14421271.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] trouble with jquery lightbox plugin

2007-12-19 Thread bdee1


i am trying to work with the 
http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin  
the overall effect is working well but for some reason is is not showing any
of the images.

at the top of jquery.lightbox.js file there are some lines that let you
configure the path to the images.  i don't know if this path is supposed to
be relative to the html file or to the js file.  i tried both and still the
images don't show.  what am i missing here?
-- 
View this message in context: 
http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14421282.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
Cool; I have not tested it using the lightbox plugin, can you let me know
how it turns out?

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 nevermind my last post about not understanding yoru code - that was just
 me
 being stupid.  i just looked at the lightbox plugin in more detail and
 answered my own questions duh.



 bmsterling wrote:
 
  I guess a download link would have been useful:
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
 
  Thanks for catching that.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  ok that should work - now one last question... i dont see the download
  link
  for the plugin anywhere.
 
 
  bmsterling wrote:
  
   Check out my jqAlbumParser plugin, it will allow you to parse out a
  flickr
   album and then execute any additional plugin:
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   i want to set up a photo gallery for a clients site and would like
 to
  use
   the
   http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox
  plugin
   or somethign similar.  that par is easy but i would like to be able
 to
   use
   images from flickr.  that way the client would be able to update the
   images
   in the gallery whenever he needs to.
  
   has anyone done something like this or can suggest how to go about
 it?
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: Converting XML to a string with jQuery

2007-12-19 Thread Tony

Try this,
//IE
if (window.ActiveXObject)
  {
var string = xmlData.xml;
  }
// code for Mozilla, Firefox, Opera, etc.
else
  {
var string = (new XMLSerializer()).serializeToString(xmlData);
  }



On 19 Дек, 18:02, Stefan [EMAIL PROTECTED] wrote:
 Hello,

 I have some data in XML representation that I will need to convert to
 a string.  I tried using XMLSerializer - works great in Firefox, but
 not in IE:

 var xmlString = (new XMLSerializer()).serializeToString(xmlData);

 Is there any way to convert XML to its string representation with
 jQuery?  Or other ways to accomplish this task?

 Thank you!

 Steffen


[jQuery] Re: Tablesorter dateFormat

2007-12-19 Thread Christian Bach
Hi Jay,

This will solve your problem:

// add parser through the tablesorter addParser method
$.tablesorter.addParser({
   // set a unique id
   id: 'dates',
   is: function(s) {
   // return false so this parser is not auto detected
   return false;
   },
   format: function(s) {
// split
var a = s.split('-');
// get month num
a[1] = this.getMonth(a[1]);
// glue and return a new date
return new Date(a.join(/)).getTime();
   },
   getMonth: function(s) {
var m =
['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
var l = m.length;
for(var i=0; i  l; i++) {
if(m[i] == s.toLowerCase()) {
return (i+1);
}
}
   },
   // set type, either numeric or text
   type: 'numeric'
});

/christian


2007/12/18, Jay Fallon [EMAIL PROTECTED]:


 It's easy to write a parser to convert the months to a sortable value,
 but the days and years are trickier. the current code is as follows:

 // add parser through the tablesorter addParser method
 $.tablesorter.addParser({
 // set a unique id
 id: 'dates',
 is: function(s) {
 // return false so this parser is not auto
 detected
 return false;
 },
 format: function(s) {
 // format your data for normalization
 return s.toLowerCase
 ().replace(/dec/,12).replace(/nov/,
 11).replace(/oct/,10).replace(/sep/,09).replace(/aug/,08).replace(/
 jul/,07).replace(/jun/,06).replace(/may/,05).replace(/apr/,
 04).replace(/mar/,03).replace(/feb/,02).replace(/jan/,01);
 },
 // set type, either numeric or text
 type: 'numeric'
 });

 $(function() {
 $.tablesorter.defaults.widgets = ['zebra'];
 $(#announcements).tablesorter({
 headers: {
 0: {sorter:'dates'},1:
 {sorter:false},2: {sorter:false},3:
 {sorter:false}
 }
 });
 });

 On Dec 18, 2:06 pm, Jay Fallon [EMAIL PROTECTED] wrote:
  I need to sort a table based on the date format: 10-Dec-2007. Does
  anyone know if this is possible with Tablesorter?
 
  I've tried us, uk  iso to no avail.
 
  Thanks, Jay



[jQuery] Need help with birthdate validation

2007-12-19 Thread sothis


Hello,

Awhile ago, I clumsily implemented Jorn's fantastic validation plugin to
validate a birthday field. The implementation wasn't hard, but getting the
page in general to work how I want is tricky. I'm wondering if anyone has an
idea in how I might accomplish these goals:

1. Validate based on DROPDOWNS, not a text input (I tried text input and put
clear MM-DD- tags, but people keep doing DD-MM which passes validation
but often completely mangles the date due to things like 20-01-1981). So for
example, dropdown one would be Jan, Feb, Mar, etc. 

This would be easy for me to build the date using PHP, but am not sure how
I'd do it before passing it immediately to the validator. 

2. Allow partial dates. Again, this would be something I could do in PHP
(just using a default 01-01- if they only input a year, for example),
but am not sure how I'd do this prior to getting it to the validator. I'd
probably only want to deal with partial date meaning only a year (or a year
and a month), not just a day and a month. 

Also, how robust is the birthdate validator? Meaning, is it just checking if
it's a valid date,  or does it check for things like does this day actually
exist in this month (31st, for example), or was there actually this date
in this year (ex: leap year)

Thanks, I know this question is kind of vague and general. :)

-Kim


-- 
View this message in context: 
http://www.nabble.com/Need-help-with-birthdate-validation-tp14422600s27240p14422600.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


this worked out pretty well - i had some trouble gettign the images to load
correctly in the lightbox plugin but that was something in the lightbox
plugin i had to tweak - not yours.

i don't have it posted online yet - i am just playing around locally.  but
in the next few weeks you will see it  at www.asset-guardians.com on the
portfolio page.





bmsterling wrote:
 
 Cool; I have not tested it using the lightbox plugin, can you let me know
 how it turns out?
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 nevermind my last post about not understanding yoru code - that was just
 me
 being stupid.  i just looked at the lightbox plugin in more detail and
 answered my own questions duh.



 bmsterling wrote:
 
  I guess a download link would have been useful:
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
 
  Thanks for catching that.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  ok that should work - now one last question... i dont see the download
  link
  for the plugin anywhere.
 
 
  bmsterling wrote:
  
   Check out my jqAlbumParser plugin, it will allow you to parse out a
  flickr
   album and then execute any additional plugin:
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   i want to set up a photo gallery for a clients site and would like
 to
  use
   the
   http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox
  plugin
   or somethign similar.  that par is easy but i would like to be able
 to
   use
   images from flickr.  that way the client would be able to update
 the
   images
   in the gallery whenever he needs to.
  
   has anyone done something like this or can suggest how to go about
 it?
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422607.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] OT: Nashville, TN Flex User Group presents Flex 3 and AIR pre-release tour with Ben Forta

2007-12-19 Thread Andy Matthews
For any of you that might live in, or around Nashville, TN, the Nashville
Flex User Group is hosting the upcoming Flex 3 and AIR pre-release tour with
Adobe's Ben Forta on January 24th. More details can be found on the UG
website:
( http://www.615flex.com/special-events/
http://www.615flex.com/special-events/).
 

 
Andy Matthews
Senior ColdFusion Developer

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

[jQuery] Re: trouble with jquery lightbox plugin

2007-12-19 Thread bdee1


ok i got it working.  it seems that the path to the images has to be set
relative to the html page.  this seems a bit problematic if youwanted to use
the plugin on different pages within your site.  you would have to have a
seperate .js file for each page you want to access it from and in those js
files specify the appropriate paths to the images.



bdee1 wrote:
 
 i am trying to work with the 
 http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin  
 the overall effect is working well but for some reason is is not showing
 any of the images.
 
 at the top of jquery.lightbox.js file there are some lines that let you
 configure the path to the images.  i don't know if this path is supposed
 to be relative to the html file or to the js file.  i tried both and still
 the images don't show.  what am i missing here?
 

-- 
View this message in context: 
http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14422535.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


any way i can make the thumbnails larger?  or is that just the size they come
in from flickr?



bmsterling wrote:
 
 Cool; I have not tested it using the lightbox plugin, can you let me know
 how it turns out?
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 nevermind my last post about not understanding yoru code - that was just
 me
 being stupid.  i just looked at the lightbox plugin in more detail and
 answered my own questions duh.



 bmsterling wrote:
 
  I guess a download link would have been useful:
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
 
  Thanks for catching that.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  ok that should work - now one last question... i dont see the download
  link
  for the plugin anywhere.
 
 
  bmsterling wrote:
  
   Check out my jqAlbumParser plugin, it will allow you to parse out a
  flickr
   album and then execute any additional plugin:
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   i want to set up a photo gallery for a clients site and would like
 to
  use
   the
   http://leandrovieira.com/projects/jquery/lightbox/ Jquery LightBox
  plugin
   or somethign similar.  that par is easy but i would like to be able
 to
   use
   images from flickr.  that way the client would be able to update
 the
   images
   in the gallery whenever he needs to.
  
   has anyone done something like this or can suggest how to go about
 it?
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: rounded corners on images with jquery?

2007-12-19 Thread bdee1


thanks for the post - i will give that a shot - can i apply a border to that
though?

malsup wrote:
 
 
 Here's an example of how to use the jQuery Corner plugin on an image:
 
 http://www.malsup.com/jquery/corner/image.html
 
 Mike
 
 
 On Dec 17, 2007 7:12 PM, bdee1 [EMAIL PROTECTED] wrote:


 i know there are jquery plugins to round the corners on divs but is there
 one
 that will work on images?  to see what i mean take a look at
 http://beta.asset-guardians.com/.

 it is a sit i am working on that in its very early stages.  towards the
 bottom of the page there are two images (one is a baseball and the other
 is
 a ring.  the baseball has square corners.  the ring image has round
 corners.
 the corners on the ring image were rounded in photoshop and saved that
 way.

 it would be nice however to be able to apply a similar effect to any
 image
 with some simple jquery code like $(#ringImage).roundcorners();

 anybody know if this is possible?
 --
 View this message in context:
 http://www.nabble.com/rounded-corners-on-images-with-jquery--tp14375829s27240p14375829.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/rounded-corners-on-images-with-jquery--tp14375829s27240p14422615.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
Set the tnSize param to 0, 1, 2 for a different size:

 * @param Integer tnSize
 * This param takes in 0, 1,or 2 and will reference one of the
 * thumbnail spots for picasa or flickr
 * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
 * flickr: 0 == 75x75 or 1 == 100 on long side or 2 == 240
on long side

You will have to see which one works best for you.

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 any way i can make the thumbnails larger?  or is that just the size they
 come
 in from flickr?



 bmsterling wrote:
 
  Cool; I have not tested it using the lightbox plugin, can you let me
 know
  how it turns out?
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  nevermind my last post about not understanding yoru code - that was
 just
  me
  being stupid.  i just looked at the lightbox plugin in more detail and
  answered my own questions duh.
 
 
 
  bmsterling wrote:
  
   I guess a download link would have been useful:
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
  
   Thanks for catching that.
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   ok that should work - now one last question... i dont see the
 download
   link
   for the plugin anywhere.
  
  
   bmsterling wrote:
   
Check out my jqAlbumParser plugin, it will allow you to parse out
 a
   flickr
album and then execute any additional plugin:
   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
i want to set up a photo gallery for a clients site and would
 like
  to
   use
the
http://leandrovieira.com/projects/jquery/lightbox/ Jquery
 LightBox
   plugin
or somethign similar.  that par is easy but i would like to be
 able
  to
use
images from flickr.  that way the client would be able to update
  the
images
in the gallery whenever he needs to.
   
has anyone done something like this or can suggest how to go
 about
  it?
--
View this message in context:
   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com
.
   
   
   
   
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: Sliding Panels Attempt

2007-12-19 Thread Glen Lipka
I had a demo that was based on click.
http://www.commadot.com/jquery/faq.php
But I modified it using the hoverIntent plugin to be more like you are
describing. http://www.commadot.com/jquery/faqHover.php

Does this help?

Glen

On Dec 18, 2007 4:04 PM, kache79 [EMAIL PROTECTED] wrote:


 hey peoples,

 i suck at javascript, but i am attempting to create a panel slider,
 similar to what you see at yootheme.com. heres a link to what i have
 so far

 a href=http://http://cyberdesignworks.com.au/labs/panel_slider/
 panel_slider.htmlhttp://cyberdesignworks.com.au/labs/panel_slider/
 panel_slider.html/a

 it needs some serious looking into. i am getting lag in the animation
 when i mouseover the panels, is there a way to optimise this and
 anything else i am doing incorrectly?

 maybe there is a plugin already created for doing this, but i couldn't
 find one. do the accordion plugins allow you to configure to this
 sliding panel effect?

 thanks in advance



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


where do i find that?  i don't see those lines in the js file.


bmsterling wrote:
 
 Set the tnSize param to 0, 1, 2 for a different size:
 
  * @param Integer tnSize
  * This param takes in 0, 1,or 2 and will reference one of the
  * thumbnail spots for picasa or flickr
  * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
  * flickr: 0 == 75x75 or 1 == 100 on long side or 2 == 240
 on long side
 
 You will have to see which one works best for you.
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 any way i can make the thumbnails larger?  or is that just the size they
 come
 in from flickr?



 bmsterling wrote:
 
  Cool; I have not tested it using the lightbox plugin, can you let me
 know
  how it turns out?
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  nevermind my last post about not understanding yoru code - that was
 just
  me
  being stupid.  i just looked at the lightbox plugin in more detail and
  answered my own questions duh.
 
 
 
  bmsterling wrote:
  
   I guess a download link would have been useful:
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
  
   Thanks for catching that.
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   ok that should work - now one last question... i dont see the
 download
   link
   for the plugin anywhere.
  
  
   bmsterling wrote:
   
Check out my jqAlbumParser plugin, it will allow you to parse out
 a
   flickr
album and then execute any additional plugin:
   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
i want to set up a photo gallery for a clients site and would
 like
  to
   use
the
http://leandrovieira.com/projects/jquery/lightbox/ Jquery
 LightBox
   plugin
or somethign similar.  that par is easy but i would like to be
 able
  to
use
images from flickr.  that way the client would be able to update
  the
images
in the gallery whenever he needs to.
   
has anyone done something like this or can suggest how to go
 about
  it?
--
View this message in context:
   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com
.
   
   
   
   
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14423425.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Autocomplete: matching on only part of the displayed text rather than entire row

2007-12-19 Thread Mark


I'm working with the jQuery autocomplete plug-in and am trying to
implement a search box similar to the Multiple Birds input on the
following example site:

http://dev.jquery.com/view/trunk/plugins/autocomplete/

I haven't been able to figure out how the matching logic is applied
only to the bird's name rather than to the entire text string (which
also includes the id, or taxonomic name of the bird).  For example:

Search for cap returns:  Blackcap (id: Sylvia atricapilla)
Search for syl returns: none

Could someone please point out where this logic resides?

Thanks,

Mark


[jQuery] Re: How to find a table cells value?

2007-12-19 Thread Monica

Thanks for the replies.

So tell me, how did you know the answers. I have the Learning jQuery
book by Chaffer and Swedberg. I poured over the table manipulation
chapter with no clarity!!! So the question is : What'e the best/smart
way to learn JQuery ins and outs? Go through the jquery.js? Thanks!


[jQuery] Re: Converting XML to a string with jQuery

2007-12-19 Thread McLars

I don't know about jQuery, I doubt it, but apparently IE does have an
XMLSerializer. Of course, the syntax would be different. You can try
searching for jscript xmlserializer and see if that yields anything
useful. But then you'd probably be out of luck with Safari, Opera,
etc. You might end up having to write your own plugin to handle all
the browsers.

Or, and this probably isn't very appealing either, you could do it
manually. For example, jQuery has the .html() method that returns the
innerHTML property. You could try creating an empty div element,
inserting the XML, and then reading the innerHTML back out. I haven't
tried it. It's just an idea.

Hopefully, someone will have a more elegant solution.

Larry

On Dec 19, 9:02 am, Stefan [EMAIL PROTECTED] wrote:
 Hello,

 I have some data in XML representation that I will need to convert to
 a string.  I tried using XMLSerializer - works great in Firefox, but
 not in IE:

 var xmlString = (new XMLSerializer()).serializeToString(xmlData);

 Is there any way to convert XML to its string representation with
 jQuery?  Or other ways to accomplish this task?

 Thank you!

 Steffen


[jQuery] Re: .GetJSON, retrieve a list of key/value from JSON object?

2007-12-19 Thread Mathieu Dumais-Savard

Thanks! That's exactly what I was looking for!!!

What data_type really is myJSONobject??? Shouldn't this be included in
the datatype section of the Jquery documentation under JSON object
section??? Where can I find complete reference for this object?

Thanks!

- Mathieu

On Dec 19, 11:31 am, Scott Trudeau [EMAIL PROTECTED] wrote:
 for(key in myJSONobject) {
   var value = myJSONobject[key];

 }

 should get you started ...

 On Dec 19, 2007 11:00 AM, Mathieu Dumais-Savard [EMAIL PROTECTED] wrote:



  Hi,

  I have no problem using jSON so far except that I am looking for a way
  to browse the items sent from the server to the client in such
  fashion:

  foreach key (keys myJSONobject) {
   var value = (myJSONobject[keys]) ;
  }

  Any hint?

  Thanks!

 --
 --
 Scott Trudeau
 scott.trudeau AT gmail DOT comhttp://sstrudeau.com/
 AIM: sodthestreets


[jQuery] Re: Is JQGrid available

2007-12-19 Thread Blarm

Thanks for the replies.


[jQuery] tablesorter - hidden TD's

2007-12-19 Thread Jay Fallon

Does anyone know if it's possible to sort a table, using tablesorter,
based on the content inside hidden TD's.

I'm trying to write a parser that will make date format dd-mon-
read as dd/mm/ and I'm running out of viable options.

If anyone knows if this can be done, I'd sure appreciate a pointer or
two.

Thanks.


[jQuery] Re: How to find a table cells value?

2007-12-19 Thread David McFarland



 Don't forget that every row has rowIndex and sectionRowIndex
 properties and every cell a cellIndex property.  These are very much
 faster than CSS-style selectors, e.g.:

$($('#tableID').rows[x].cells[y]).text();

Hi Rob,

I've never seen that syntax before, and I can't get it to work. Do you  
have a working example you can show us?

thanks

--dave


[jQuery] Re: How to find a table cells value?

2007-12-19 Thread Penner, Matthew

You can grab each cell by its individual row and column.  This is what
I've used in the past and it worked quite well.

var cell = $('tr:eq(' + row + ') td:eq(' + column + ')');

Where row and column are variables defined above.

Matt Penner

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Monica
Sent: Tuesday, December 18, 2007 5:50 PM
To: jQuery (English)
Subject: [jQuery] How to find a table cells value?


Newbie here...

I have a table $(#searchDataTable), each row has an unique id. What
is the JQuery code to get the value(text) of particular cell in this
table?



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


oh ok i see what you mean now.  seems to work.  now of course if i use one of
the other sizes, the pic are no longer uniform in width.  so is there a way
that i could style it so that the li's are always 200px in width with the
image centered inside it?

i tried adding:
$('li', this).css(width,140px);

but it didn't seem to work.


bmsterling wrote:
 
 You would do something like:
 
 $('a.jqAlbumParser').jqAlbumParser({
 tnSize:1
 });
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 where do i find that?  i don't see those lines in the js file.


 bmsterling wrote:
 
  Set the tnSize param to 0, 1, 2 for a different size:
 
   * @param Integer tnSize
   * This param takes in 0, 1,or 2 and will reference one of
 the
   * thumbnail spots for picasa or flickr
   * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
   * flickr: 0 == 75x75 or 1 == 100 on long side or 2 ==
 240
  on long side
 
  You will have to see which one works best for you.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  any way i can make the thumbnails larger?  or is that just the size
 they
  come
  in from flickr?
 
 
 
  bmsterling wrote:
  
   Cool; I have not tested it using the lightbox plugin, can you let me
  know
   how it turns out?
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   nevermind my last post about not understanding yoru code - that was
  just
   me
   being stupid.  i just looked at the lightbox plugin in more detail
 and
   answered my own questions duh.
  
  
  
   bmsterling wrote:
   
I guess a download link would have been useful:
   
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
   
Thanks for catching that.
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
ok that should work - now one last question... i dont see the
  download
link
for the plugin anywhere.
   
   
bmsterling wrote:

 Check out my jqAlbumParser plugin, it will allow you to parse
 out
  a
flickr
 album and then execute any additional plugin:

   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/

 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 i want to set up a photo gallery for a clients site and would
  like
   to
use
 the
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery
  LightBox
plugin
 or somethign similar.  that par is easy but i would like to
 be
  able
   to
 use
 images from flickr.  that way the client would be able to
 update
   the
 images
 in the gallery whenever he needs to.

 has anyone done something like this or can suggest how to go
  about
   it?
 --
 View this message in context:

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
 Sent from the jQuery General Discussion mailing list archive
 at
 Nabble.com
 .




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


   
--
View this message in context:
   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com
.
   
   
   
   
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14423425.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com
 .


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

-- 
View this message in context: 
http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14423767.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
You would do something like:

$('a.jqAlbumParser').jqAlbumParser({
tnSize:1
});

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 where do i find that?  i don't see those lines in the js file.


 bmsterling wrote:
 
  Set the tnSize param to 0, 1, 2 for a different size:
 
   * @param Integer tnSize
   * This param takes in 0, 1,or 2 and will reference one of
 the
   * thumbnail spots for picasa or flickr
   * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
   * flickr: 0 == 75x75 or 1 == 100 on long side or 2 ==
 240
  on long side
 
  You will have to see which one works best for you.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  any way i can make the thumbnails larger?  or is that just the size
 they
  come
  in from flickr?
 
 
 
  bmsterling wrote:
  
   Cool; I have not tested it using the lightbox plugin, can you let me
  know
   how it turns out?
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   nevermind my last post about not understanding yoru code - that was
  just
   me
   being stupid.  i just looked at the lightbox plugin in more detail
 and
   answered my own questions duh.
  
  
  
   bmsterling wrote:
   
I guess a download link would have been useful:
   
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
   
Thanks for catching that.
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
ok that should work - now one last question... i dont see the
  download
link
for the plugin anywhere.
   
   
bmsterling wrote:

 Check out my jqAlbumParser plugin, it will allow you to parse
 out
  a
flickr
 album and then execute any additional plugin:

   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/

 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 i want to set up a photo gallery for a clients site and would
  like
   to
use
 the
 http://leandrovieira.com/projects/jquery/lightbox/ Jquery
  LightBox
plugin
 or somethign similar.  that par is easy but i would like to be
  able
   to
 use
 images from flickr.  that way the client would be able to
 update
   the
 images
 in the gallery whenever he needs to.

 has anyone done something like this or can suggest how to go
  about
   it?
 --
 View this message in context:

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
 Sent from the jQuery General Discussion mailing list archive
 at
 Nabble.com
 .




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


   
--
View this message in context:
   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com
.
   
   
   
   
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14423425.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: How to find a table cells value?

2007-12-19 Thread Karl Swedberg

Hi Monica,

We use .text() to get and set a table cell's value a number of times  
in the table manipulation chapter.


Here is a code snippet from that chapter that sets a div's content  
with text() and checks the value of a cell with text():


$.each(keywords, function (index, keyword) {
  $('div class=filter/div').text(keyword).bind('click',  
{'keyword': keyword}, function(event) {

$table.find('tbody tr').each(function() {
  if ($('td', this).filter(':nth-child(' + (column + 1) +  
')').text() == event.data['keyword']) {
$ 
(this).removeClass('filtered').not('.collapsed').show();

  }
  else if ($('th',this).length == 0) {
$(this).addClass('filtered').hide();
  }
});

$ 
(this).addClass('active').siblings().removeClass('active');

$table.trigger('stripe');
  }).addClass('clickable').appendTo($filters);

});

Maybe it was buried under explanations of other things.


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



On Dec 19, 2007, at 1:49 PM, Monica wrote:



Thanks for the replies.

So tell me, how did you know the answers. I have the Learning jQuery
book by Chaffer and Swedberg. I poured over the table manipulation
chapter with no clarity!!! So the question is : What'e the best/smart
way to learn JQuery ins and outs? Go through the jquery.js? Thanks!




[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
No I don't how to center the image in the LI without doing a bunch of math,
but what I normally do in my css is set the width and height of the LI and
set the overflow:hidden.  I am sure there is some other css hackery that can
be done, but I am not an expert.

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 oh ok i see what you mean now.  seems to work.  now of course if i use one
 of
 the other sizes, the pic are no longer uniform in width.  so is there a
 way
 that i could style it so that the li's are always 200px in width with the
 image centered inside it?

 i tried adding:
 $('li', this).css(width,140px);

 but it didn't seem to work.


 bmsterling wrote:
 
  You would do something like:
 
  $('a.jqAlbumParser').jqAlbumParser({
  tnSize:1
  });
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  where do i find that?  i don't see those lines in the js file.
 
 
  bmsterling wrote:
  
   Set the tnSize param to 0, 1, 2 for a different size:
  
* @param Integer tnSize
* This param takes in 0, 1,or 2 and will reference one
 of
  the
* thumbnail spots for picasa or flickr
* picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
* flickr: 0 == 75x75 or 1 == 100 on long side or 2
 ==
  240
   on long side
  
   You will have to see which one works best for you.
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   any way i can make the thumbnails larger?  or is that just the size
  they
   come
   in from flickr?
  
  
  
   bmsterling wrote:
   
Cool; I have not tested it using the lightbox plugin, can you let
 me
   know
how it turns out?
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
nevermind my last post about not understanding yoru code - that
 was
   just
me
being stupid.  i just looked at the lightbox plugin in more
 detail
  and
answered my own questions duh.
   
   
   
bmsterling wrote:

 I guess a download link would have been useful:

   
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js

 Thanks for catching that.

 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 ok that should work - now one last question... i dont see the
   download
 link
 for the plugin anywhere.


 bmsterling wrote:
 
  Check out my jqAlbumParser plugin, it will allow you to
 parse
  out
   a
 flickr
  album and then execute any additional plugin:
 

   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  i want to set up a photo gallery for a clients site and
 would
   like
to
 use
  the
  http://leandrovieira.com/projects/jquery/lightbox/ Jquery
   LightBox
 plugin
  or somethign similar.  that par is easy but i would like to
  be
   able
to
  use
  images from flickr.  that way the client would be able to
  update
the
  images
  in the gallery whenever he needs to.
 
  has anyone done something like this or can suggest how to
 go
   about
it?
  --
  View this message in context:
 

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
  Sent from the jQuery General Discussion mailing list
 archive
  at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
 Sent from the jQuery General Discussion mailing list archive
 at
 Nabble.com
 .




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


   
--
View this message in context:
   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com
.
   
   
   
   
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14423425.html
  Sent from the jQuery General Discussion mailing 

[jQuery] Re: using .load to replace div contents

2007-12-19 Thread Glen Lipka
Put .empty() before the load.  That will clear it out.

Glen

On Dec 18, 2007 6:00 PM, rolfsf [EMAIL PROTECTED] wrote:


 I'm doing some simple ajax using .load --- clicking on a table row
 loads some html from an external file into a div.

 My question - do I need to remove the contents of the div (#myWindow)
 before loading the new html, or does .load do this?

 $('.myTrigger).click(function(){
var wf = $(this).attr('id')
var details = (wf + '.htm')
$(#myWindow).load(details);
 });

 div class=myTrigger id=thisOneClick here/div

 div id=myWindow
divsome placeholder content/div
divsome more placeholder content/div
 /div

 thanks!
 r.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread bdee1


ok thats cool - i can fiddle with that.  one other questions though how
would i go about adding an onmouseover event handler to the images?

by the way - if i didnt say so before -  this is a really slick little
plugin - i just have to work out the styling.

bmsterling wrote:
 
 No I don't how to center the image in the LI without doing a bunch of
 math,
 but what I normally do in my css is set the width and height of the LI and
 set the overflow:hidden.  I am sure there is some other css hackery that
 can
 be done, but I am not an expert.
 
 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 oh ok i see what you mean now.  seems to work.  now of course if i use
 one
 of
 the other sizes, the pic are no longer uniform in width.  so is there a
 way
 that i could style it so that the li's are always 200px in width with the
 image centered inside it?

 i tried adding:
 $('li', this).css(width,140px);

 but it didn't seem to work.


 bmsterling wrote:
 
  You would do something like:
 
  $('a.jqAlbumParser').jqAlbumParser({
  tnSize:1
  });
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  where do i find that?  i don't see those lines in the js file.
 
 
  bmsterling wrote:
  
   Set the tnSize param to 0, 1, 2 for a different size:
  
* @param Integer tnSize
* This param takes in 0, 1,or 2 and will reference one
 of
  the
* thumbnail spots for picasa or flickr
* picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
* flickr: 0 == 75x75 or 1 == 100 on long side or 2
 ==
  240
   on long side
  
   You will have to see which one works best for you.
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   any way i can make the thumbnails larger?  or is that just the size
  they
   come
   in from flickr?
  
  
  
   bmsterling wrote:
   
Cool; I have not tested it using the lightbox plugin, can you let
 me
   know
how it turns out?
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
nevermind my last post about not understanding yoru code - that
 was
   just
me
being stupid.  i just looked at the lightbox plugin in more
 detail
  and
answered my own questions duh.
   
   
   
bmsterling wrote:

 I guess a download link would have been useful:

   
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js

 Thanks for catching that.

 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 ok that should work - now one last question... i dont see the
   download
 link
 for the plugin anywhere.


 bmsterling wrote:
 
  Check out my jqAlbumParser plugin, it will allow you to
 parse
  out
   a
 flickr
  album and then execute any additional plugin:
 

   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  i want to set up a photo gallery for a clients site and
 would
   like
to
 use
  the
  http://leandrovieira.com/projects/jquery/lightbox/ Jquery
   LightBox
 plugin
  or somethign similar.  that par is easy but i would like
 to
  be
   able
to
  use
  images from flickr.  that way the client would be able to
  update
the
  images
  in the gallery whenever he needs to.
 
  has anyone done something like this or can suggest how to
 go
   about
it?
  --
  View this message in context:
 

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
  Sent from the jQuery General Discussion mailing list
 archive
  at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
 Sent from the jQuery General Discussion mailing list archive
 at
 Nabble.com
 .




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


   
--
View this message in context:
   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420823.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com
.
   
   
   
   
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
http://www.benjaminsterling.com
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14422621.html
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin 

[jQuery] Re: Best technique? .load() and div height...

2007-12-19 Thread Glen Lipka
The delay, I think it's a new member thing.
Mine show up right away, I think.

I think your technique sounds good.  The situations that I have done that
were fixed height.

Glen

On Dec 18, 2007 9:33 PM, Micky Hulse [EMAIL PROTECTED] wrote:


 Hi,

 I've got a few questions here...

 When I .load() text into a div -- basically swapping one bit of text
 for another, -- the div will collapse for a second while the textual
 content loads and switches...

 ...What would be the best way to retain the div size during .load()?

 My best guess would be to dynamically grab the div height before
 ajaxStart(), and then apply min-height/height to the container div
 only during the switching.

 Sound like an ok technique/approach? How have you handled such
 situations?

 off-topic
 I have noticed that my posts take a while to show-up on the list... Is
 this because of moderation? Are all posts moderated, or only those
 made by new members?
 /off-topic

 Thanks!
 Cheers,
 Micky



[jQuery] Re: Need help with birthdate validation

2007-12-19 Thread Glen Lipka
I actually like the UX of this plugin:
http://digitalbush.com/projects/masked-input-plugin
It has a date input.  It works well to supplement Jorns plugin.

Glen

On Dec 19, 2007 10:28 AM, sothis [EMAIL PROTECTED] wrote:



 Hello,

 Awhile ago, I clumsily implemented Jorn's fantastic validation plugin to
 validate a birthday field. The implementation wasn't hard, but getting the
 page in general to work how I want is tricky. I'm wondering if anyone has
 an
 idea in how I might accomplish these goals:

 1. Validate based on DROPDOWNS, not a text input (I tried text input and
 put
 clear MM-DD- tags, but people keep doing DD-MM which passes
 validation
 but often completely mangles the date due to things like 20-01-1981). So
 for
 example, dropdown one would be Jan, Feb, Mar, etc.

 This would be easy for me to build the date using PHP, but am not sure how
 I'd do it before passing it immediately to the validator.

 2. Allow partial dates. Again, this would be something I could do in PHP
 (just using a default 01-01- if they only input a year, for example),
 but am not sure how I'd do this prior to getting it to the validator. I'd
 probably only want to deal with partial date meaning only a year (or a
 year
 and a month), not just a day and a month.

 Also, how robust is the birthdate validator? Meaning, is it just checking
 if
 it's a valid date,  or does it check for things like does this day
 actually
 exist in this month (31st, for example), or was there actually this date
 in this year (ex: leap year)

 Thanks, I know this question is kind of vague and general. :)

 -Kim


 --
 View this message in context:
 http://www.nabble.com/Need-help-with-birthdate-validation-tp14422600s27240p14422600.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




[jQuery] Re: Stupid little game :)

2007-12-19 Thread Marshall Salinger


That is freaking sweet!  You rock Stefan.

Stefan Petre wrote:


Hi,

I did a small game (it was a test for a client), about 6kb of code. 
http://www.eyecon.ro/slotmachine/

Stefan





[jQuery] Stupid little game :)

2007-12-19 Thread Stefan Petre


Hi,

I did a small game (it was a test for a client), about 6kb of code. 
http://www.eyecon.ro/slotmachine/ 


Stefan


[jQuery] Re: Stupid little game :)

2007-12-19 Thread Andy Matthews

Dammit Stefan! I'm not going to get anything done the rest of the day.

:) 

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stefan Petre
Sent: Wednesday, December 19, 2007 2:41 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Stupid little game :)


Hi,

I did a small game (it was a test for a client), about 6kb of code. 
http://www.eyecon.ro/slotmachine/ 

Stefan




[jQuery] Re: Stupid little game :)

2007-12-19 Thread Erik Beeson
Fun, thanks for sharing :)

--Erik


On 12/19/07, Stefan Petre [EMAIL PROTECTED] wrote:


 Hi,

 I did a small game (it was a test for a client), about 6kb of code.
 http://www.eyecon.ro/slotmachine/

 Stefan



[jQuery] Re: Release: Validation plugin 1.1.2

2007-12-19 Thread Jörn Zaefferer


shapper schrieb:

Hello,

isn't it possible to use a Regex expression anymore?

I need to validate a few inputs text using a regex expression.
  
There wasn't a regex method ever - by design. I still think its much 
better to encapsulate any (weird and hard to read in a few seconds) 
regex in a custom validation method: 
http://docs.jquery.com/Plugins/Validation/Validator/addMethod


Let me know if that doesn't work for you.

Jörn


[jQuery] Re: trouble with jquery lightbox plugin

2007-12-19 Thread bdee1


anybody know of a way to add captions with lightbox plugin?

bdee1 wrote:
 
 i am trying to work with the 
 http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox plugin  
 the overall effect is working well but for some reason is is not showing
 any of the images.
 
 at the top of jquery.lightbox.js file there are some lines that let you
 configure the path to the images.  i don't know if this path is supposed
 to be relative to the html file or to the js file.  i tried both and still
 the images don't show.  what am i missing here?
 

-- 
View this message in context: 
http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14425364.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Jquery Lightbox or Thickbox and Flickr?

2007-12-19 Thread Benjamin Sterling
You can set up mouseovers in the param I sent you earlier.

$(.jqAlbumParser).jqAlbumParser({
pluginExec : function(){
//Assuming you want the MO on the A tag
$('a', this)
.mouseover(function(){
// mouse over stuff
})
.lightBox();// this refers to the list just created
}
});


On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 ok thats cool - i can fiddle with that.  one other questions though
 how
 would i go about adding an onmouseover event handler to the images?

 by the way - if i didnt say so before -  this is a really slick little
 plugin - i just have to work out the styling.

 bmsterling wrote:
 
  No I don't how to center the image in the LI without doing a bunch of
  math,
  but what I normally do in my css is set the width and height of the LI
 and
  set the overflow:hidden.  I am sure there is some other css hackery that
  can
  be done, but I am not an expert.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  oh ok i see what you mean now.  seems to work.  now of course if i use
  one
  of
  the other sizes, the pic are no longer uniform in width.  so is there a
  way
  that i could style it so that the li's are always 200px in width with
 the
  image centered inside it?
 
  i tried adding:
  $('li', this).css(width,140px);
 
  but it didn't seem to work.
 
 
  bmsterling wrote:
  
   You would do something like:
  
   $('a.jqAlbumParser').jqAlbumParser({
   tnSize:1
   });
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   where do i find that?  i don't see those lines in the js file.
  
  
   bmsterling wrote:
   
Set the tnSize param to 0, 1, 2 for a different size:
   
 * @param Integer tnSize
 * This param takes in 0, 1,or 2 and will reference
 one
  of
   the
 * thumbnail spots for picasa or flickr
 * picasa: 0 == 72x48, 1 == 144x66, 2 == 288x192
 * flickr: 0 == 75x75 or 1 == 100 on long side or
 2
  ==
   240
on long side
   
You will have to see which one works best for you.
   
On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
   
   
   
any way i can make the thumbnails larger?  or is that just the
 size
   they
come
in from flickr?
   
   
   
bmsterling wrote:

 Cool; I have not tested it using the lightbox plugin, can you
 let
  me
know
 how it turns out?

 On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 nevermind my last post about not understanding yoru code -
 that
  was
just
 me
 being stupid.  i just looked at the lightbox plugin in more
  detail
   and
 answered my own questions duh.



 bmsterling wrote:
 
  I guess a download link would have been useful:
 

   
  
 
 http://benjaminsterling.com/articles/jqAlbumParser/common/js/jqAlbumParser.js
 
  Thanks for catching that.
 
  On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
 
 
 
  ok that should work - now one last question... i dont see
 the
download
  link
  for the plugin anywhere.
 
 
  bmsterling wrote:
  
   Check out my jqAlbumParser plugin, it will allow you to
  parse
   out
a
  flickr
   album and then execute any additional plugin:
  
 

   
  
 
 http://benjaminsterling.com/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside/
  
   On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:
  
  
  
   i want to set up a photo gallery for a clients site and
  would
like
 to
  use
   the
   http://leandrovieira.com/projects/jquery/lightbox/Jquery
LightBox
  plugin
   or somethign similar.  that par is easy but i would like
  to
   be
able
 to
   use
   images from flickr.  that way the client would be able
 to
   update
 the
   images
   in the gallery whenever he needs to.
  
   has anyone done something like this or can suggest how
 to
  go
about
 it?
   --
   View this message in context:
  
 

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14418944.html
   Sent from the jQuery General Discussion mailing list
  archive
   at
   Nabble.com
   .
  
  
  
  
   --
   Benjamin Sterling
   http://www.KenzoMedia.com
   http://www.KenzoHosting.com
   http://www.benjaminsterling.com
  
  
 
  --
  View this message in context:
 

   
  
 
 http://www.nabble.com/Jquery-Lightbox-or-Thickbox-and-Flickr--tp14418944s27240p14420329.html
  Sent from the jQuery General Discussion mailing list
 archive
  at
  Nabble.com
  .
 
 
 
 
  --
  Benjamin Sterling
  http://www.KenzoMedia.com
  http://www.KenzoHosting.com
  http://www.benjaminsterling.com
 
 

 --
 View this message in context:

   
  
 
 

[jQuery] Re: Need help with birthdate validation

2007-12-19 Thread Jörn Zaefferer


Hi,

in addtion to using the masked-input plugin you may want to provide a 
preview of the input. That is, I'll just enter something without 
knowing what exact format the application expects and can take a look at 
the preview if my input is right or not.


A library that may help with making sense of some date input is datejs: 
http://www.datejs.com/ The demo there provides a good example of what 
I'm talking about in terms of a preview.
They also provide 150 culture info files which are localizations in 
all kinds of date formats, so you don't have to worry about that either.


I'd be interested in your experiences with datejs if you'd give it a 
try, haven't gotten around to try it myself.


Regards
Jörn


[jQuery] Re: Stupid little game :)

2007-12-19 Thread Benjamin Sterling
I think that game is rigged, I lost all my money. :)

On 12/19/07, Erik Beeson [EMAIL PROTECTED] wrote:

 Fun, thanks for sharing :)

 --Erik


 On 12/19/07, Stefan Petre [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  I did a small game (it was a test for a client), about 6kb of code.
  http://www.eyecon.ro/slotmachine/
 
  Stefan
 




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


[jQuery] Re: trouble with jquery lightbox plugin

2007-12-19 Thread Benjamin Sterling
I looks like you just add a title to the A tag.

On 12/19/07, bdee1 [EMAIL PROTECTED] wrote:



 anybody know of a way to add captions with lightbox plugin?

 bdee1 wrote:
 
  i am trying to work with the
  http://leandrovieira.com/projects/jquery/lightbox/ jquery lightbox
 plugin
  the overall effect is working well but for some reason is is not showing
  any of the images.
 
  at the top of jquery.lightbox.js file there are some lines that let you
  configure the path to the images.  i don't know if this path is supposed
  to be relative to the html file or to the js file.  i tried both and
 still
  the images don't show.  what am i missing here?
 

 --
 View this message in context:
 http://www.nabble.com/trouble-with-jquery-lightbox-plugin-tp14421282s27240p14425364.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com
 .




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


[jQuery] Re: Stupid little game :)

2007-12-19 Thread Jörn Zaefferer


Benjamin Sterling schrieb:

I think that game is rigged, I lost all my money. :)

I stopped at 65 credits! Ha!

I only lacks the typical sounds[1], though.

Jörn

[1] http://dev.jquery.com/view/trunk/plugins/sound/


[jQuery] Re: Stupid little game :)

2007-12-19 Thread Stefan Petre





Benjamin Sterling wrote:
I think that game is rigged, I lost all my money. :)
  
  On 12/19/07, Erik Beeson [EMAIL PROTECTED]
wrote:
  
  Fun,
thanks for sharing :)

--Erik



On 12/19/07, Stefan Petre [EMAIL PROTECTED]
 wrote:


Hi,
  
I did a small game (it was a test for a client), about 6kb of code.
  http://www.eyecon.ro/slotmachine/
  
Stefan




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

I can fix this. Give me your IP :)




[jQuery] Re: How to find a table cells value?

2007-12-19 Thread RobG



On Dec 20, 2:25 am, David McFarland [EMAIL PROTECTED] wrote:
  Don't forget that every row has rowIndex and sectionRowIndex
  properties and every cell a cellIndex property.  These are very much
  faster than CSS-style selectors, e.g.:

 $($('#tableID').rows[x].cells[y]).text();

Sorry, that should have been:

$($('#tableID')[0].rows[x].cells[y]).text();



 Hi Rob,

 I've never seen that syntax before, and I can't get it to work. Do you  
 have a working example you can show us?


table id=fred
  trtdsallytdSam
/table
script type=text/javascript src=jquery.js/script
script
  alert( $($('#fred')[0].rows[0].cells[0]).text() );
/script


But I screwed up my speed test, that is actually no faster than using
a CSS style selector.  The fast way is:

script
  function getText(el){
if (typeof el.textContent == 'string') return el.textContent;
if (typeof el.innerText == 'string') return el.innerText;
  }

  alert( getText(document.getElementById('fred').rows[0].cells[0]) );
/script


--
Rob


[jQuery] Re: Stupid little game :)

2007-12-19 Thread Benjamin Sterling
lol

That is a really nice piece of work, I see myself wasting at least the next
hour on it.

On 12/19/07, Stefan Petre [EMAIL PROTECTED] wrote:

  Benjamin Sterling wrote:

 I think that game is rigged, I lost all my money. :)

 On 12/19/07, Erik Beeson [EMAIL PROTECTED] wrote:
 
  Fun, thanks for sharing :)
 
  --Erik
 
 
  On 12/19/07, Stefan Petre [EMAIL PROTECTED]  wrote:
  
  
   Hi,
  
   I did a small game (it was a test for a client), about 6kb of code.
   http://www.eyecon.ro/slotmachine/
  
   Stefan
  
 
 


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

 I can fix this. Give me your IP :)




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


[jQuery] Re: Interface

2007-12-19 Thread brassica

Thank you Richard

I wasnt aware that it was no longer supported

Makes sense if it isnt :)

Looking into UI now



[jQuery] Re: Tablesorter dateFormat

2007-12-19 Thread Jay Fallon

Hi Christian, thanks for the follow up,

I implemented the script as you described and it's still not sorting
correctly:

http://jayfallon.net/tablesorter/tablesorter.html

On Dec 19, 1:21 pm, Christian Bach [EMAIL PROTECTED]
wrote:
 Hi Jay,

 This will solve your problem:

 // add parser through the tablesorter addParser method
 $.tablesorter.addParser({
// set a unique id
id: 'dates',
is: function(s) {
// return false so this parser is not auto detected
return false;
},
format: function(s) {
 // split
 var a = s.split('-');
 // get month num
 a[1] = this.getMonth(a[1]);
 // glue and return a new date
 return new Date(a.join(/)).getTime();
},
getMonth: function(s) {
 var m =
 ['jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec']
 var l = m.length;
 for(var i=0; i  l; i++) {
 if(m[i] == s.toLowerCase()) {
 return (i+1);
 }
 }
},
// set type, either numeric or text
type: 'numeric'

 });

 /christian

 2007/12/18, Jay Fallon [EMAIL PROTECTED]:



  It's easy to write a parser to convert the months to a sortable value,
  but the days and years are trickier. the current code is as follows:

  // add parser through the tablesorter addParser method
  $.tablesorter.addParser({
  // set a unique id
  id: 'dates',
  is: function(s) {
  // return false so this parser is not auto
  detected
  return false;
  },
  format: function(s) {
  // format your data for normalization
  return s.toLowerCase
  ().replace(/dec/,12).replace(/nov/,
  11).replace(/oct/,10).replace(/sep/,09).replace(/aug/,08).replace(/
  jul/,07).replace(/jun/,06).replace(/may/,05).replace(/apr/,
  04).replace(/mar/,03).replace(/feb/,02).replace(/jan/,01);
  },
  // set type, either numeric or text
  type: 'numeric'
  });

  $(function() {
  $.tablesorter.defaults.widgets = ['zebra'];
  $(#announcements).tablesorter({
  headers: {
  0: {sorter:'dates'},1:
  {sorter:false},2: {sorter:false},3:
  {sorter:false}
  }
  });
  });

  On Dec 18, 2:06 pm, Jay Fallon [EMAIL PROTECTED] wrote:
   I need to sort a table based on the date format: 10-Dec-2007. Does
   anyone know if this is possible with Tablesorter?

   I've tried us, uk  iso to no avail.

   Thanks, Jay


[jQuery] Create unique class for links inside the tabs?

2007-12-19 Thread Reuben

Hi Bernd:

Thanks for your great work. I'm new to CSS and jQuery, so forgive me
if there is an obvious answer to this. I'm trying to replace the
inside contents of a tab section with individual links. However, as
soon as I throw the a tags on something, the link inherits the class
of the tab section (with the gray BG and all). How can I inhibit this
with link content inside the tabs? Thanks!


[jQuery] Re: Looping ajax requests

2007-12-19 Thread Ryura

Thanks for all the responses everyone! I found an alternate solution
(probably proprietary to the situation I was in) but I'll look to use
Michael's method in the future.


[jQuery] Re: Multiple jCarousel 's on one page

2007-12-19 Thread Josh V

help.

On Nov 30, 4:55 pm, Josh V [EMAIL PROTECTED] wrote:
 anybody?

 On Nov 29, 5:03 pm, Josh V [EMAIL PROTECTED] wrote:

  hi. i have a site where i need two different carousels on the same
  page. each carousel has a different purpose with different items and
  different controls. how can i go about getting this done? it seems to
  me there would be a css conflict issue with the jquery.jcarousel.css
  file. how do i specify 2 different css files for each carousel?


[jQuery] Re: fadeTo refiering/flickering when hovering div's element

2007-12-19 Thread don Jao


Hi Karl,

Thank you very much for your reply. I don't know how can I say how much I
appreciate you're answer! I rewrote the code from a scratch and it worked,
using .hover(). Weird thing that 1st time I was trying to make it, i used
exactly .hover(). When it didn't work, i switchet to .mouseover and the
result was thr same. Probably that was a small mistake. Today i even tried
to embed onmouseover into div iteslf, the result was the same - not
working.

Thank you once again. I feel sorry for time you spend on that, but it now
works.

Thank you.
All the best.


Karl Swedberg-2 wrote:
 
 
 Hi don,
 
 I just approximated your page's markup and used the .hover() method.  
 It's working fine for me. Would you mind testing here and letting us  
 know if you still see the problem? ...
 
 http://test.learningjquery.com/fadeto.html
 
 Thanks,
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 
 On Dec 19, 2007, at 2:36 AM, don Jao wrote:
 


 Hi Wizzud, thank you for youre reply.

 Unfortunatelly, it doesn't work. That way i behave exactly the same  
 way.
 Probably, this is something impossible.

 All the best.

 Wizzud wrote:


 Try using hover() instead.
 Hover() has built-in code for testing whether the element under the
 mouse has the target element as an ancestor.

 On Dec 18, 9:23 am, don Jao [EMAIL PROTECTED] wrote:
 Hi Everyone,

 I'm pretty new to jQuery, and my JavaScript sills aren't very good  
 to0,
 but
 they're not too bad either.

 I'm in need to fade a whole div, with couple of input fields, text  
 and
 images inside it from 50% to 100% opacity. I used simple way to  
 get it:
 $(div).mouseover( function() { $(this).fadeTo(slow, 1) } );

 however this way i get annoying re-fade effect when i move mouse  
 inside
 that
 div without leaving it:http://www.adpro.ee/temp/delme.html

 Is there any way around to make it work properly?

 Thanks in advance.
 --
 View this message in
 context:http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div
  
 %2...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.



 -- 
 View this message in context:
 http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14412489.html
 Sent from the jQuery General Discussion mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14424769.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-19 Thread Robert-CFL

Actually, I thank you for the criticism.  The reason that I went ahead
and posted it was because it is (in reality) past a beta state in that
it works and at TrimPath it's in version 1.0.14.  It's in beta in my
eyes because I'm porting it over from standard JavaScript and the
additional jQuery functionality.  I'm sure in the future this project
will advance much.  And as far as having a demo, I will have one up
shortly.  I honestly have had very limited time to work on this
project.  Bare with me guys :).

On Dec 18, 5:36 pm, Shawn [EMAIL PROTECTED] wrote:
 Sounds like a good plugin, but may I offer a couple of suggestions?

 1. Post a demo of the plugin.  I don't have time to download and setup
 all the plugins I might potentially want to use.  A quick sample takes
 me seconds to make that evaluation, rather than 30+ minutes to go
 through a setup area.

 2. I don't mean to curb your enthusiasm, but I have a problem with 0.01
 releases getting posted to the plugins page.  As a developer looking for
 a solution, I'm looking for something that is at least mature enough to
 be considered stable.  a 0.01 version is still beta (to me at least).  I
 can't bash you tooo hard on this though - I have my own plugin posted on
 my site at a 0.01 version.  But I wouldn't dream of posting this to
 plugins.jquery.com at this time. :)

 I'm interested to see where your plugin goes.  I can see a lot of
 potential for a spreadsheet like grid.

 Shawn

 Robert-CFL wrote:
  I know there's not to much content, but let me know if you want to
  help out with this plugin.  it has GREAT possibilities.  I know alot
  of people have been looking for something like this.  let me know what
  you guys think.

  I'll work on documentation when i get time.

 http://plugins.jquery.com/project/Sheet


[jQuery] Re: Binding this inside anonymous functions

2007-12-19 Thread Byron

Just to clarify apply is a native javascript function implemented in
1.3
the second parameter isnt actually needed (its for defining arguments)

anyway i decided to jquerify it and ended with this:

(function ($) {
  $.extend($.fn, {
apply :function (fn, args) {
  return this.each(function () {
fn.apply(this, args);
  });
}
  });
})(jQuery);

now it can be called like so:

$('#example').apply(function () {
  alert(this.id);
});

$('#example').apply(function (a, b) {
  alert(a +  :  + b); // foo : bar
}, ['foo', 'bar']);


[jQuery] Re: Can't set CSS left for IE6

2007-12-19 Thread cfdvlpr

Oh, I should mention that ## is there instead of # because the jQuery
is inside a cfoutput tag.

On Dec 19, 2:17 pm, cfdvlpr [EMAIL PROTECTED] wrote:
 if( $.browser.msie  (jQuery.browser.version  7.) ) {
  $('div##rightShoppingCartButton').css(left,582px);

 }

 Can anyone see why this doesn't seem to be recognized at all by IE6?


[jQuery] Can't set CSS left for IE6

2007-12-19 Thread cfdvlpr

if( $.browser.msie  (jQuery.browser.version  7.) ) {
 $('div##rightShoppingCartButton').css(left,582px);
}

Can anyone see why this doesn't seem to be recognized at all by IE6?


[jQuery] Re: Looping ajax requests

2007-12-19 Thread Sam Sherlock
I'd like to say thanks to Michael too, for your informed perspective and
advice

- S


On 19/12/2007, Ryura [EMAIL PROTECTED] wrote:


 Thanks for all the responses everyone! I found an alternate solution
 (probably proprietary to the situation I was in) but I'll look to use
 Michael's method in the future.



[jQuery] Re: fadeTo refiering/flickering when hovering div's element

2007-12-19 Thread Karl Swedberg


On Dec 19, 2007, at 3:38 PM, don Jao wrote:

Thank you very much for your reply. I don't know how can I say how  
much I

appreciate you're answer!


Hi Don,

It's not a problem at all. I'm glad it's working now for you!

Thank you once again. I feel sorry for time you spend on that, but  
it now

works.



I freely and happily give my time, because jQuery was freely and  
happily given to me. :-)



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






Hi Karl,

Thank you very much for your reply. I don't know how can I say how  
much I
appreciate you're answer! I rewrote the code from a scratch and it  
worked,
using .hover(). Weird thing that 1st time I was trying to make it, i  
used
exactly .hover(). When it didn't work, i switchet to .mouseover and  
the
result was thr same. Probably that was a small mistake. Today i even  
tried

to embed onmouseover into div iteslf, the result was the same - not
working.

Thank you once again. I feel sorry for time you spend on that, but  
it now

works.

Thank you.
All the best.


Karl Swedberg-2 wrote:



Hi don,

I just approximated your page's markup and used the .hover() method.
It's working fine for me. Would you mind testing here and letting us
know if you still see the problem? ...

http://test.learningjquery.com/fadeto.html

Thanks,

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



On Dec 19, 2007, at 2:36 AM, don Jao wrote:




Hi Wizzud, thank you for youre reply.

Unfortunatelly, it doesn't work. That way i behave exactly the same
way.
Probably, this is something impossible.

All the best.

Wizzud wrote:



Try using hover() instead.
Hover() has built-in code for testing whether the element under the
mouse has the target element as an ancestor.

On Dec 18, 9:23 am, don Jao [EMAIL PROTECTED] wrote:

Hi Everyone,

I'm pretty new to jQuery, and my JavaScript sills aren't very good
to0,
but
they're not too bad either.

I'm in need to fade a whole div, with couple of input fields, text
and
images inside it from 50% to 100% opacity. I used simple way to
get it:
$(div).mouseover( function() { $(this).fadeTo(slow, 1) } );

however this way i get annoying re-fade effect when i move mouse
inside
that
div without leaving it:http://www.adpro.ee/temp/delme.html

Is there any way around to make it work properly?

Thanks in advance.
--
View this message in
context:http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div
%2...
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.





--
View this message in context:
http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14412489.html
Sent from the jQuery General Discussion mailing list archive at
Nabble.com.







--
View this message in context: 
http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14424769.html
Sent from the jQuery General Discussion mailing list archive at  
Nabble.com.






[jQuery] Re: Create unique class for links inside the tabs?

2007-12-19 Thread Jake McGraw
perhaps you could apply a class to any inserted anchors, something like:

JavaScript:
$(li.tab).append('a href=/index.htm class=resetA Link/a');

CSS:
a.reset {
  background:#FFF !important;
  // So on and so forth
}

- jake

On Dec 19, 2007 2:40 PM, Reuben [EMAIL PROTECTED] wrote:


 Hi Bernd:

 Thanks for your great work. I'm new to CSS and jQuery, so forgive me
 if there is an obvious answer to this. I'm trying to replace the
 inside contents of a tab section with individual links. However, as
 soon as I throw the a tags on something, the link inherits the class
 of the tab section (with the gray BG and all). How can I inhibit this
 with link content inside the tabs? Thanks!



[jQuery] Re: Stupid little game :)

2007-12-19 Thread Flesler

Great game. It doesn't completely work in IE, right ? I don't see the
wheels.
Works perfect in FF.

Ariel Flesler

On Dec 19, 5:41 pm, Stefan Petre [EMAIL PROTECTED] wrote:
 Hi,

 I did a small game (it was a test for a client), about 6kb of 
 code.http://www.eyecon.ro/slotmachine/

 Stefan


[jQuery] Re: fadeTo refiering/flickering when hovering div's element

2007-12-19 Thread abba bryant


I read this thread and then closed the tab and instantly realized that I
needed to say something.
I have been a long time reader - not so often contributor to the list here
and I consistently and often read responses like this thread from various
other contributors.

Thank you guys so much for jquery and for the jquery community.


Karl Swedberg-2 wrote:
 
 
 On Dec 19, 2007, at 3:38 PM, don Jao wrote:
 
 Thank you very much for your reply. I don't know how can I say how  
 much I
 appreciate you're answer!
 
 Hi Don,
 
 It's not a problem at all. I'm glad it's working now for you!
 
 Thank you once again. I feel sorry for time you spend on that, but  
 it now
 works.
 
 
 I freely and happily give my time, because jQuery was freely and  
 happily given to me. :-)
 
 
 --Karl
 _
 Karl Swedberg
 www.englishrules.com
 www.learningjquery.com
 
 
 


 Hi Karl,

 Thank you very much for your reply. I don't know how can I say how  
 much I
 appreciate you're answer! I rewrote the code from a scratch and it  
 worked,
 using .hover(). Weird thing that 1st time I was trying to make it, i  
 used
 exactly .hover(). When it didn't work, i switchet to .mouseover and  
 the
 result was thr same. Probably that was a small mistake. Today i even  
 tried
 to embed onmouseover into div iteslf, the result was the same - not
 working.

 Thank you once again. I feel sorry for time you spend on that, but  
 it now
 works.

 Thank you.
 All the best.


 Karl Swedberg-2 wrote:


 Hi don,

 I just approximated your page's markup and used the .hover() method.
 It's working fine for me. Would you mind testing here and letting us
 know if you still see the problem? ...

 http://test.learningjquery.com/fadeto.html

 Thanks,

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



 On Dec 19, 2007, at 2:36 AM, don Jao wrote:



 Hi Wizzud, thank you for youre reply.

 Unfortunatelly, it doesn't work. That way i behave exactly the same
 way.
 Probably, this is something impossible.

 All the best.

 Wizzud wrote:


 Try using hover() instead.
 Hover() has built-in code for testing whether the element under the
 mouse has the target element as an ancestor.

 On Dec 18, 9:23 am, don Jao [EMAIL PROTECTED] wrote:
 Hi Everyone,

 I'm pretty new to jQuery, and my JavaScript sills aren't very good
 to0,
 but
 they're not too bad either.

 I'm in need to fade a whole div, with couple of input fields, text
 and
 images inside it from 50% to 100% opacity. I used simple way to
 get it:
 $(div).mouseover( function() { $(this).fadeTo(slow, 1) } );

 however this way i get annoying re-fade effect when i move mouse
 inside
 that
 div without leaving it:http://www.adpro.ee/temp/delme.html

 Is there any way around to make it work properly?

 Thanks in advance.
 --
 View this message in
 context:http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div
 %2...
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.



 -- 
 View this message in context:
 http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14412489.html
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.





 -- 
 View this message in context:
 http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14424769.html
 Sent from the jQuery General Discussion mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/fadeTo-refiering-flickering-when-hovering-div%27s-element-tp14375108s27240p14429138.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Help Test jQuery 1.2.2

2007-12-19 Thread John Resig

We'll see - we're finishing up some last minute bugs. We have a big
change about to land, so we might do a quick beta 2 sanity check
before going live.

--John

On Dec 19, 2007 6:31 PM, cfdvlpr [EMAIL PROTECTED] wrote:

 Is the full release expected today or tomorrow?



[jQuery] Re: My First jQuery Plugin..... jQuery.Sheet, a spreadsheet for jQuery

2007-12-19 Thread Robert-CFL

Here is a link to a running version of the plugin:
http://www.weebly.com/uploads/3/1/3/8/313814/jquery.sheet.html

On Dec 19, 3:02 pm, Robert-CFL [EMAIL PROTECTED] wrote:
 Actually, I thank you for the criticism.  The reason that I went ahead
 and posted it was because it is (in reality) past a beta state in that
 it works and at TrimPath it's in version 1.0.14.  It's in beta in my
 eyes because I'm porting it over from standard JavaScript and the
 additional jQuery functionality.  I'm sure in the future this project
 will advance much.  And as far as having a demo, I will have one up
 shortly.  I honestly have had very limited time to work on this
 project.  Bare with me guys :).

 On Dec 18, 5:36 pm, Shawn [EMAIL PROTECTED] wrote:

  Sounds like a good plugin, but may I offer a couple of suggestions?

  1. Post a demo of the plugin.  I don't have time to download and setup
  all the plugins I might potentially want to use.  A quick sample takes
  me seconds to make that evaluation, rather than 30+ minutes to go
  through a setup area.

  2. I don't mean to curb your enthusiasm, but I have a problem with 0.01
  releases getting posted to the plugins page.  As a developer looking for
  a solution, I'm looking for something that is at least mature enough to
  be considered stable.  a 0.01 version is still beta (to me at least).  I
  can't bash you tooo hard on this though - I have my own plugin posted on
  my site at a 0.01 version.  But I wouldn't dream of posting this to
  plugins.jquery.com at this time. :)

  I'm interested to see where your plugin goes.  I can see a lot of
  potential for a spreadsheet like grid.

  Shawn

  Robert-CFL wrote:
   I know there's not to much content, but let me know if you want to
   help out with this plugin.  it has GREAT possibilities.  I know alot
   of people have been looking for something like this.  let me know what
   you guys think.

   I'll work on documentation when i get time.

  http://plugins.jquery.com/project/Sheet


[jQuery] Re: Best technique? .load() and div height...

2007-12-19 Thread Micky Hulse

Hey Glen, thanks for the reply, I really appreciate the advice and
feedback. :)

I will tinker with my script and post-back my findings... I may end-up
using a fixed height, but there may be a situation where the loaded
content grows bigger than the set height... so I would like to
impliment some sort of min-height/height css coding.

Thanks again Glen, much appreciated.

I will bbs. :)

Cheers,
Micky

On Dec 19, 12:34 pm, Glen Lipka [EMAIL PROTECTED] wrote:
 The delay, I think it's a new member thing.
 Mine show up right away, I think.

 I think your technique sounds good.  The situations that I have done that
 were fixed height.

 Glen

 On Dec 18, 2007 9:33 PM, Micky Hulse [EMAIL PROTECTED] wrote:



  Hi,

  I've got a few questions here...

  When I .load() text into a div -- basically swapping one bit of text
  for another, -- the div will collapse for a second while the textual
  content loads and switches...

  ...What would be the best way to retain the div size during .load()?

  My best guess would be to dynamically grab the div height before
  ajaxStart(), and then apply min-height/height to the container div
  only during the switching.

  Sound like an ok technique/approach? How have you handled such
  situations?

  off-topic
  I have noticed that my posts take a while to show-up on the list... Is
  this because of moderation? Are all posts moderated, or only those
  made by new members?
  /off-topic

  Thanks!
  Cheers,
  Micky


  1   2   >