Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-05 Thread amircx

how ok :) but when you think its gonna happen?

Jörn Zaefferer wrote:
 
 amircx schrieb:
 hey, i got the following code (i fixed the ie6 bugs and stuff)


 now i need to figure out how can i assign the div the shows errors in
 each
 input? i saw the demos but the problem is that i want to control on each
 div
 position with my css.. .is that possible ? or anyone can shows me how to
 do
 it in diffrent way that i will able to control the positions on each
 error
 div?
   
 That is the last feature that I'm going to implement in 1.0. I'll 
 release the first beta once that is in, please be patient until then :-)
 
 Regards
 
 -- 
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-Do-i-Assign-error-div-to-JQuery-Validator-Plugin-Alpha-2---tf3342587.html#a9307128
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-05 Thread amircx

oh ok :) but when you think its gonna happen?

by the way, i didnt realise how can i put the list of parameters inside my
code,


like instad of now :
$(document).ready(function() {
   
// bind form using 'ajaxForm'
$(#amir).validate({

 
submitHandler: function(form) { 
$(form).ajaxSubmit(options);

}


i want to put :


$(document).ready(function() {
   
// bind form using 'ajaxForm'
$(#amir).validate({

 
submitHandler: function(form) { 
$(form).ajaxSubmit(options);
   rules: {
firstname: { required: true },
age: { number: true },
password: { min: 5, max: 32 }
  },
  messages {
password: Please enter a password between 5 and 32 characters long.
  }
   
}


i tried hours to figure out what i did worng... i didnt find out how to do
it
is that possible?
ill be glad if you tell me how to do it
thanks
btw: your pluigin rocks!


Jörn Zaefferer wrote:
 
 amircx schrieb:
 hey, i got the following code (i fixed the ie6 bugs and stuff)


 now i need to figure out how can i assign the div the shows errors in
 each
 input? i saw the demos but the problem is that i want to control on each
 div
 position with my css.. .is that possible ? or anyone can shows me how to
 do
 it in diffrent way that i will able to control the positions on each
 error
 div?
   
 That is the last feature that I'm going to implement in 1.0. I'll 
 release the first beta once that is in, please be patient until then :-)
 
 Regards
 
 -- 
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-Do-i-Assign-error-div-to-JQuery-Validator-Plugin-Alpha-2---tf3342587.html#a9307207
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Submit a form (POST) to a Thickbox panel

2007-03-05 Thread Mattias Hising
Hi,

We are doing just that on PokerRoom.com for messages and gift-vouchers
(previewing a message/gift-voucher before sending). What we actually
do is the following (not my code, just a schematic of how it is solved
on PokerRoom.com):

//Serialize the form using the form-plugin and populate an object with
all parameters within the form
var oParams = {};   
for(i = 0; oItem = oForm.serialize().vars[i]; i++) {
oParams[oItem.name] = oItem.value;
}

/*Attach a parameter to the action-attribute saying that the action
the server-side controller needs to accomplish is a preview (we do not
want the controller to send the message) */
$(#previewMessage).load( oForm.attr('action') + ?action=preview, oParams,
//When load is done, fire Thickbox with the inline content.
function() {
TB_show('Message Preview',
'#TB_inline?height=500width=630inlineId=previewMessage');
}
);
}

Best regards,
Mattias Hising (hising.net)
Front-End Architect on PokerRoom.com

On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote:
 I'm working on a CMS application, and want to create a preview button.

 What I want it to do is take the form content, pass it to a preview
 page which will be loaded into a Thickbox (or similar) overlay, but
 not submit the main form.

 The content of the form is likely to be too long to send as GET data,
 so POST will be required.


 Any ideas?


 Seb


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



-- 
Gött mos,
Mattias

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


Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread agent2026

Heya!

Just checked out the demo, but it looks good.  Think clicking the top level
(item 1, item 2) should toggle the menu visibility, rather than having to
click off the menu to make it go away.

Adam
-- 
View this message in context: 
http://www.nabble.com/New-Plugin%3A-clickMenu-tf3342867.html#a9308707
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Charting or plotting coming?

2007-03-05 Thread ashutosh bijoor

Hi

We're working on a charting plugin based on the original by Emil A Eklund
that you can find at
http://webfx.eae.net/dhtml/chart/chart.html

We have significantly modified the code, with all classes being
re-organized, making the code smaller and cleaner. We shd have an early
version ready this week.

Will keep you posted.
Regards
Ashutosh


On 3/5/07, Bernardo Telles [EMAIL PROTECTED] wrote:


 Hello everyone,

First off, great job so far on jQuery! I'm absolutely in love with it!

Second, is there any chance a graphing, charting or plotting plugin is
somewhere on the horizon? Something like PlotKit (
http://www.liquidx.net/plotkit/) or Solutoire (
http://solutoire.com/plotr/barexample/) would be tremendously helpful. I'd
try and port those myself, but I don't have too much time as a doc student;
likewise, I don't have too much money to offer anyone willing to port those
themselves …would $50.00 sway anyone?

Best regards,

Bernie

P.S. I tried submitting this to the plugin list but it seems to be broken.
There's no March thread even a few hours after submitting a message.

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





--
Reach1to1 Technologies
http://www.reach1to1.com
http://on2.biz
[EMAIL PROTECTED]
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] onClickOut?

2007-03-05 Thread Klaus Hartl
Karl Swedberg schrieb:
 Hey Yehuda, 
 
 .one('event',fn) has not been deprecated, as far as I know. Only the 
 individual .oneEvent(fn) methods have.
 
 
 --Karl

Yes, this is what I thought as well... I'm confused.


-- Klaus

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


Re: [jQuery] $(node).hasClass(...) function

2007-03-05 Thread Dominik Hahn

That'd be the best solution!

Thanks for the code, I was using if($(this).attr('class').search('selected')
!= -1) { // code } before. :-)

2007/3/5, John Resig [EMAIL PROTECTED]:


.hasClass() would just use .is() (or jQuery.filter) internally. Right
now we're quickly gaining filesize without even adding new features
(only dealing with bug fixes). For now, .is() will have to suit.

Another option would be to add an entry for .hasClass() in the
documentation, but in its details, point the user towards .is()
instead.

--John

On 3/4/07, Paul Bakaus [EMAIL PROTECTED] wrote:
 Absolutely Karl -
 the is() method is wonderful, I use it quite often. But there are often
more
 ways to achieve the same things, sometimes it's just a matter of taste.
 Anyway - a hasClass method would probably even save a few ms compared to
 is() in my opinion, because you don't need to parse stuff.

 2007/3/4, Karl Swedberg [EMAIL PROTECTED]:
 
 
  Maybe .hasClass() would be helpful, but keep in mind that .is() offers
 /more/ functionalities than .hasClass() would.
 
 
  For example ...
 
 
  $('.class').is('#my-id')
  $('p').is(':visible')
  $('div').is('[a]')
 
 
 
  I'm not necessarily opposed to having .hasClass(), but I really love
the
 flexibility of .is().
 
 
  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com
 
 
 
 
 
 
  On Mar 4, 2007, at 10:07 AM, Sébastien Pierre wrote:
 
 
  Hi,
 
 
  This is not very obvious, and I guess some people won't notice that
  is offers the same functionalities as a potential hasClass...
  from a developer friendly point of view, I think it would be better
  to have addClass/toggleClass/hasClass rather than addClass/
  toggleClass/is.
 
 
  Just my 2c ;)
 
 
-- Sébastien
 
 
  Le 07-03-02 à 13:30, John Resig a écrit :
 
 
 
  give this a try:
 
 
  $(node).is(.class)
 
 
  --John
 
 
  On 3/2/07, Sébastien Pierre  [EMAIL PROTECTED] wrote:
 
  Hi all,
 
 
  I was wondering if somebody would be interested in a hasClass(...)
  function for jQuery. I would definitely find it useful, and am
  willing to contribute it.
 
 
-- Sébastien
 
 
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 



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



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

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


[jQuery] prependTo element's own parent

2007-03-05 Thread Seb Duggan
I want to take an element, and prepend it to its own parent element.

How would I do this?


Seb


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


Re: [jQuery] $(node).hasClass(...) function

2007-03-05 Thread Klaus Hartl
John Resig schrieb:
 .hasClass() would just use .is() (or jQuery.filter) internally. Right
 now we're quickly gaining filesize without even adding new features
 (only dealing with bug fixes). For now, .is() will have to suit.
 
 Another option would be to add an entry for .hasClass() in the
 documentation, but in its details, point the user towards .is()
 instead.
 
 --John

Think about it: Even the HTML spec speaks of the element may be said to 
belong to these classes.

Thus it makes totally sense using is() for that. The element in question 
doesn't have classes, it belongs to certain ones, i.e. it *is* of these 
classes.


-- Klaus

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


[jQuery] onclick functionality

2007-03-05 Thread Stella Power

Hi,

I'm new to jQuery so please bear with me if this is a stupid question.  I
have gone through the tutorials on the site by the way, I just haven't found
a solution to it yet.

I have a page that is created on the fly using php.  On the page there are a
variable number of question-answer pairs.  Each question and answer is in
their own div and have their own unique ids.  Using the ready function I've
set each answer to be hidden - this was simple because each answer div has
the same class.  When a user clicks on the question, I want the answer to
appear underneath this.  I'm using the toggle() function for this.

It all works as expected.  However, in order to toggle the correct answer
div, I've hardcoded the div ids.  I need a way of identifying which question
was clicked on and then toggle the appropriate answer.  Is there anyway to
pass in an argument perhaps?

My generated html code is like:
div class=questions
 div class=question id=question_123.../div
 div class=answer id=answer_123/div
 div class=question id=question_739.../div
 div class=answer id=answer_739/div
/div

My jQuery code is:

 $(document).ready(function () {
   $('div.answer').hide();
   $(#question_123).click(function() {   $(#answer_123).toggle();   });
   $(#question_739).click(function() {   $(#answer_739).toggle();   });
 });

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


Re: [jQuery] Need some guidance...

2007-03-05 Thread Rick Faircloth
Thanks, Daemach...I'll have a look at it!

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: Sunday, March 04, 2007 11:09 PM
To: discuss@jquery.com
Subject: Re: [jQuery] Need some guidance...


http://bassistance.de/jquery-plugins/jquery-plugin-validation/ :)



Rick Faircloth wrote:
 
 Alright... now I've got this working very well.
 
 The only problem I have now is validation.




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


Re: [jQuery] onclick functionality

2007-03-05 Thread Karl Swedberg

Hi Stella,

One of the beautiful things about jQuery is that you don't need to  
put IDs everywhere in your markup just to do simple show/hide effects.


My most recent blog entry, Accordion Madness, shows a couple ways you  
can achieve the showing and hiding effect, and it links to previous  
entries on the same topic, as well as Jörn Zaefferer's Accordion plugin.

http://www.learningjquery.com/2007/03/accordion-madness

For your markup, you could use this code:

$(document).ready(function () {
  $('div.answer').hide();
  $('div.question').click(function() {
$(this).next('div.answer').slideToggle('fast');
  });
});


I used .slideToggle('fast') because I like the way it looks, but you  
could replace that with a regular .toggle()


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



On Mar 5, 2007, at 8:32 AM, Stella Power wrote:


Hi,

I'm new to jQuery so please bear with me if this is a stupid  
question.  I have gone through the tutorials on the site by the  
way, I just haven't found a solution to it yet.


I have a page that is created on the fly using php.  On the page  
there are a variable number of question-answer pairs.  Each  
question and answer is in their own div and have their own unique  
ids.  Using the ready function I've set each answer to be hidden -  
this was simple because each answer div has the same class.  When a  
user clicks on the question, I want the answer to appear underneath  
this.  I'm using the toggle() function for this.


It all works as expected.  However, in order to toggle the correct  
answer div, I've hardcoded the div ids.  I need a way of  
identifying which question was clicked on and then toggle the  
appropriate answer.  Is there anyway to pass in an argument perhaps?


My generated html code is like:
div class=questions
  div class=question id=question_123.../div
  div class=answer id=answer_123/div
  div class=question id=question_739.../div
  div class=answer id=answer_739/div
/div

My jQuery code is:

  $(document).ready(function () {
$('div.answer').hide();
$(#question_123).click(function() {   $(#answer_123).toggle 
();   });
$(#question_739).click(function() {   $(#answer_739).toggle 
();   });

  });

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


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


[jQuery] onclick functionality

2007-03-05 Thread Stella Power

Thanks Karl, that worked perfectly!

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


[jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
How could I get the ID from a parent div of my element?
I think that will be the shortest path to do what i need, as described
bellow:

Example:
div id=1 class=company
div class=nameSome Company/div
div class=moreinfoSomething about the company/div
/div
div id=2 class=company
div class=nameOther Company/div
div class=moreinfoSomething about the other company/div
/div


I'm trying to do a company list of my city.
The .moreinfo will be showed when clicked into Some Company or
Other Company, obviously showing just more info of the clicked company.

Thanks a lot!
Villa, Gustavo.


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


Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Leonardo K

$(div.name).click(function(){
$(this).next().toogle(
function(){ $(this).show(); },
function(){ $(this).hide(); }
);
});

On 3/5/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:


How could I get the ID from a parent div of my element?
I think that will be the shortest path to do what i need, as described
bellow:

Example:
div id=1 class=company
div class=nameSome Company/div
div class=moreinfoSomething about the company/div
/div
div id=2 class=company
div class=nameOther Company/div
div class=moreinfoSomething about the other company/div
/div


I'm trying to do a company list of my city.
The .moreinfo will be showed when clicked into Some Company or
Other Company, obviously showing just more info of the clicked company.

Thanks a lot!
Villa, Gustavo.


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

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


Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Hi Gustavo,

this would be more semantic:

div id=1 class=company
   h2 class=nameSome Company/h2
   div class=moreinfo
pSomething about the company/p
   /div
/div
div id=2 class=company
   h2 class=nameOther Company/h2
   div class=moreinfo
   pSomething about the other company/p
   /div
/div

Also, ids shouldn't start with a number.

I'd use this function, but I'm sure other people could do better - I'm
more of a CSS person!

function toggleMenuItems(theElement, selectedClassName){
$(theElement).click(function() {
theParent = this.parentNode;
toggleClass(this, selectedClassName);
toggleSibling(this);// the elements in this 
container that aren't
this click handler
return false;
});
}

function toggleSibling(theElement){
var theSiblings = $(theElement).siblings().not(theElement);
$(theSiblings).toggle(slow);
}

and this in your document.ready function:

toggleMenuItems(div.company h2, closed);

with .closed { } being any CSS you might want to add.

Thanks,

Dan.

On 3/5/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:
 How could I get the ID from a parent div of my element?
 I think that will be the shortest path to do what i need, as described
 bellow:

 Example:
 div id=1 class=company
 div class=nameSome Company/div
 div class=moreinfoSomething about the company/div
 /div
 div id=2 class=company
 div class=nameOther Company/div
 div class=moreinfoSomething about the other company/div
 /div


 I'm trying to do a company list of my city.
 The .moreinfo will be showed when clicked into Some Company or
 Other Company, obviously showing just more info of the clicked company.

 Thanks a lot!
 Villa, Gustavo.


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



-- 
Daniel Eastwell

Portfolio and articles:
http://www.thoughtballoon.co.uk

Blog:
http://www.thoughtballoon.co.uk/blog

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


Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Oh, I forgot - remove the toggleClass call. I used it to change the
formatting of my 'company names' when they were open or closed. You
could write your own function to do that, of course!

On 3/5/07, Dan Eastwell [EMAIL PROTECTED] wrote:
 Hi Gustavo,

 this would be more semantic:

 div id=1 class=company
h2 class=nameSome Company/h2
div class=moreinfo
 pSomething about the company/p
/div
 /div
 div id=2 class=company
h2 class=nameOther Company/h2
div class=moreinfo
pSomething about the other company/p
/div
 /div

 Also, ids shouldn't start with a number.

 I'd use this function, but I'm sure other people could do better - I'm
 more of a CSS person!

 function toggleMenuItems(theElement, selectedClassName){
 $(theElement).click(function() {
 theParent = this.parentNode;
 toggleClass(this, selectedClassName);
 toggleSibling(this);// the elements in 
 this container that aren't
 this click handler
 return false;
 });
 }

 function toggleSibling(theElement){
 var theSiblings = $(theElement).siblings().not(theElement);
 $(theSiblings).toggle(slow);
 }

 and this in your document.ready function:

 toggleMenuItems(div.company h2, closed);

 with .closed { } being any CSS you might want to add.

 Thanks,

 Dan.

 On 3/5/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:
  How could I get the ID from a parent div of my element?
  I think that will be the shortest path to do what i need, as described
  bellow:
 
  Example:
  div id=1 class=company
  div class=nameSome Company/div
  div class=moreinfoSomething about the company/div
  /div
  div id=2 class=company
  div class=nameOther Company/div
  div class=moreinfoSomething about the other company/div
  /div
 
 
  I'm trying to do a company list of my city.
  The .moreinfo will be showed when clicked into Some Company or
  Other Company, obviously showing just more info of the clicked company.
 
  Thanks a lot!
  Villa, Gustavo.
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 


 --
 Daniel Eastwell

 Portfolio and articles:
 http://www.thoughtballoon.co.uk

 Blog:
 http://www.thoughtballoon.co.uk/blog



-- 
Daniel Eastwell

Portfolio and articles:
http://www.thoughtballoon.co.uk

Blog:
http://www.thoughtballoon.co.uk/blog

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


Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
Thanks for reply Dan and Leonardo!

I will try your suggestions!

Brazilian Huges for you!

Villa, Gustavo.
--
SimDigital
Visite nosso site: www.simdigital.com.br
(15) 3012.7200

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


Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital




Dan, another question:
Why did you typed:
"Also, ids shouldn't start with a number."
What is the right standard?

Gustavo Villa.

Dan Eastwell escreveu:

  Hi Gustavo,

this would be more semantic:

div id="1" class="company"
   h2 class="name"Some Company/h2
   div class="moreinfo"
pSomething about the company/p
   /div
/div
div id="2" class="company"
   h2 class="name"Other Company/h2
   div class="moreinfo"
   pSomething about the other company/p
   /div
/div

Also, ids shouldn't start with a number.

I'd use this function, but I'm sure other people could do better - I'm
more of a CSS person!

function toggleMenuItems(theElement, selectedClassName){
	$(theElement).click(function() {	
		theParent = this.parentNode;	
		toggleClass(this, selectedClassName);
		toggleSibling(this);			// the elements in this container that aren't
this click handler
		return false;
	});
}

function toggleSibling(theElement){
	var theSiblings = $(theElement).siblings().not(theElement);
	$(theSiblings).toggle("slow");
}

and this in your document.ready function:

toggleMenuItems("div.company h2", "closed");

with .closed { } being any CSS you might want to add.

Thanks,

Dan.

On 3/5/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:
  
  
How could I get the ID from a parent div of my element?
I think that will be the shortest path to do what i need, as described
bellow:

Example:
div id="1" class="company"
div class="name"Some Company/div
div class="moreinfo"Something about the company/div
/div
div id="2" class="company"
div class="name"Other Company/div
div class="moreinfo"Something about the other company/div
/div


I'm trying to do a company list of my city.
The ".moreinfo" will be showed when clicked into "Some Company" or
"Other Company", obviously showing just more info of the clicked company.

Thanks a lot!
Villa, Gustavo.


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


  
  

  





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


Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Don't thank us until it works! Let me know how you go, I'd be interested.

IDs should just start with a letter - given that you can only have one
id on any page, it would make sense to name your IDs so they are
useful to you in the future, such as

div id=company-02 class=company

You might not need an id at all, unless it's coming from the back-end,
as you can choose the e.g. 4th div.company with jquery.

Dan.

On 3/5/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:

  Dan, another question:
  Why did you typed:
  Also, ids shouldn't start with a number.
  What is the right standard?

  Gustavo Villa.

  Dan Eastwell escreveu:
  Hi Gustavo,

 this would be more semantic:

 div id=1 class=company
  h2 class=nameSome Company/h2
  div class=moreinfo
  pSomething about the company/p
  /div
 /div
 div id=2 class=company
  h2 class=nameOther Company/h2
  div class=moreinfo
  pSomething about the other company/p
  /div
 /div

 Also, ids shouldn't start with a number.

 I'd use this function, but I'm sure other people could do better - I'm
 more of a CSS person!

 function toggleMenuItems(theElement, selectedClassName){
  $(theElement).click(function() {
  theParent = this.parentNode;
  toggleClass(this, selectedClassName);
  toggleSibling(this); // the elements in this container that aren't
 this click handler
  return false;
  });
 }

 function toggleSibling(theElement){
  var theSiblings =
 $(theElement).siblings().not(theElement);
  $(theSiblings).toggle(slow);
 }

 and this in your document.ready function:

 toggleMenuItems(div.company h2, closed);

 with .closed { } being any CSS you might want to add.

 Thanks,

 Dan.

 On 3/5/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:


  How could I get the ID from a parent div of my element?
 I think that will be the shortest path to do what i need, as described
 bellow:

 Example:
 div id=1 class=company
  div class=nameSome Company/div
  div class=moreinfoSomething about the company/div
 /div
 div id=2 class=company
  div class=nameOther Company/div
  div class=moreinfoSomething about the other company/div
 /div


 I'm trying to do a company list of my city.
 The .moreinfo will be showed when clicked into Some Company or
 Other Company, obviously showing just more info of the clicked company.

 Thanks a lot!
 Villa, Gustavo.


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






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




-- 
Daniel Eastwell

Portfolio and articles:
http://www.thoughtballoon.co.uk

Blog:
http://www.thoughtballoon.co.uk/blog

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


Re: [jQuery] Best practices for reattaching behaviours to dynamically loaded content?

2007-03-05 Thread Nicolas Hoizey
 I keep all my behaviours in separate functions. For instance if I  
 had a fancy table widget I'd have a function called initTable()  
 that contained the behaviour code. I'd call it initially upon page  
 load, then call it again when necessary if content has been updated  
 via ajax.
 [...]
 Then if I need to refresh something in the table via ajax I just  
 call initTable() in the callback of my ajax function.

What would you do if some code you can't modify refreshes parts of  
the page with Ajax calls? Would you use the AjaxSuccess event?

What would you do then if your own code makes Ajax calls? It  
seems .unbind('ajaxSuccess') doesn't work...


-Nicolas

-- 
Nicolas Brush HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002



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


Re: [jQuery] iterating over child elements

2007-03-05 Thread Christof Donat
Hi,

 If I find a DIV, through a call

 var parentDiv = $(this).parents(div:first);

 How do I iterate over the child elements of what I found?  Better yet, is
 there a way to print out the child elements and their ID's in one fell
 swoop?

parentDiv.children().each(function() {
var t = $(this);
if( t.id() ) alert(t.id()+': '+t.html());
});

Christof

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


Re: [jQuery] iterating over child elements

2007-03-05 Thread John Resig
$(this).parents(div:first).children();

If you want to print out the IDs and elements, for debugging purposes,
try using Firebug (http://getfirebug.com/) - then you can do something
like this:

console.log( $(this).parents(div:first).children() );

and it'll print out all the elements matched - very handy.

--John

On 3/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 If I find a DIV, through a call

 var parentDiv = $(this).parents(div:first);

 How do I iterate over the child elements of what I found?  Better yet, is 
 there a way to print out the child elements and their ID's in one fell swoop?

 Thanks, - Dave

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


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


[jQuery] Animated More Info.

2007-03-05 Thread JQuery - SimDigital
Take a look how i solve the problem:

script type=text/javascript src=jquery/jquery.js/script
script
$(.name).click(function(){
theParent = this.parentNode;
$(.moreinfo, theParent).animate({ height:'toggle'}, fast);
$(.moreinfo, theParent).load('moreinfo.html');
});
/script

div id=company-1 class=company
h2 class=nameSome Company/h2
p class=moreinfoSomething about the company/p
/div
div id=company-2 class=company
h2 class=nameOther Company/h2
p class=moreinfoSomething about the other company/p
/div



That is all folks ;-)


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


Re: [jQuery] onClickOut?

2007-03-05 Thread John Resig
.one() is not deprecated. With 1.1 we simply have an alternative to
.one() using the .unbind() function (allowing the event to be
triggered only a specific number of times).

--John

On 3/5/07, Klaus Hartl [EMAIL PROTECTED] wrote:
 Karl Swedberg schrieb:
  Hey Yehuda,
 
  .one('event',fn) has not been deprecated, as far as I know. Only the
  individual .oneEvent(fn) methods have.
 
 
  --Karl

 Yes, this is what I thought as well... I'm confused.


 -- Klaus

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


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


[jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Daemach

I need a way to make a field required based on some other condition. 
Consider the case of a multi-select for Job Type:  

Baker
Janitor
Fisherman
...
Other (please describe)

If someone selects other the description field should be required,
otherwise it's hidden.

{required:function(){return some code that returns true or false}} should
work.

On that note, what happens if you have spaces in the function ( and you must
in most cases ) and this metadata block resides in a class attribute? 
Expandos are your friend...
-- 
View this message in context: 
http://www.nabble.com/Conditional-validation---validator-plugin.-tf3349703.html#a9314278
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach

I, like probably everyone else on this list, is anxiously awaiting the port
of EXT to jQuery.  Is there a timeline for this?  I am about ready to
rebuild one of my clients sites and would very much like to use the ext
components as a base.
-- 
View this message in context: 
http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] onClickOut?

2007-03-05 Thread Karl Swedberg

Thanks for the clarification, John!


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



On Mar 5, 2007, at 10:55 AM, John Resig wrote:


.one() is not deprecated. With 1.1 we simply have an alternative to
.one() using the .unbind() function (allowing the event to be
triggered only a specific number of times).

--John

On 3/5/07, Klaus Hartl [EMAIL PROTECTED] wrote:

Karl Swedberg schrieb:

Hey Yehuda,

.one('event',fn) has not been deprecated, as far as I know. Only the
individual .oneEvent(fn) methods have.


--Karl


Yes, this is what I thought as well... I'm confused.


-- Klaus

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



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


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


Re: [jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Web Specialist

Daemach,

Wait for the next release for Jorn's Form Validation plugin. Could be a
conditional validation to help us, yeahhh Jorn??? ;-)

Cheers

2007/3/5, Daemach [EMAIL PROTECTED]:



I need a way to make a field required based on some other condition.
Consider the case of a multi-select for Job Type:

Baker
Janitor
Fisherman
...
Other (please describe)

If someone selects other the description field should be required,
otherwise it's hidden.

{required:function(){return some code that returns true or false}} should
work.

On that note, what happens if you have spaces in the function ( and you
must
in most cases ) and this metadata block resides in a class attribute?
Expandos are your friend...
--
View this message in context:
http://www.nabble.com/Conditional-validation---validator-plugin.-tf3349703.html#a9314278
Sent from the JQuery mailing list archive at Nabble.com.


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

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


Re: [jQuery] Animated More Info.

2007-03-05 Thread Schnuck
do you have a demonstration site up?

On 05/03/07, JQuery - SimDigital [EMAIL PROTECTED] wrote:
 Take a look how i solve the problem:

 script type=text/javascript src=jquery/jquery.js/script
 script
 $(.name).click(function(){
 theParent = this.parentNode;
 $(.moreinfo, theParent).animate({ height:'toggle'}, fast);
 $(.moreinfo, theParent).load('moreinfo.html');
 });
 /script

 div id=company-1 class=company
 h2 class=nameSome Company/h2
 p class=moreinfoSomething about the company/p
 /div
 div id=company-2 class=company
 h2 class=nameOther Company/h2
 p class=moreinfoSomething about the other company/p
 /div



 That is all folks ;-)


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


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


Re: [jQuery] jquery flash sIFR fla file

2007-03-05 Thread Schnuck
i was about to resave this in flash 7 for you but it gives me a
warning that filters will get lost by doing so - i take that as the
whole thing will be nonfunctional afterwards.

sorry.


On 04/03/07, Sam Sherlock [EMAIL PROTECTED] wrote:
 I am playing around with the flash plugin for jquery trying to get the sIFR
 woking within a site.

 I have downloaded the fla file but it does not open in my flash 7
  http://jquery.lukelutman.com/plugins/flash/jfr.fla

 I was hoping that either Luke or  someone might be able either send me a fla
 (that works with flash mx 2004 off list)
 or provide some instruction on how to customise the sIFR 2 flash files.

 thanks - S

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



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


Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread John Resig
Ext 1.0 Alpha 2 is already running on jQuery:
http://www.yui-ext.com/forum/viewtopic.php?t=3084

We're working to make some improvements to jQuery to better handle the
demanding animations that Ext requires. But yeah, you can begin using
it now! We were waiting for Jack to make an official announcement, but
it doesn't seem to have come out yet - so we may just announce this
officially, anyway.

--John

On 3/5/07, Daemach [EMAIL PROTECTED] wrote:

 I, like probably everyone else on this list, is anxiously awaiting the port
 of EXT to jQuery.  Is there a timeline for this?  I am about ready to
 rebuild one of my clients sites and would very much like to use the ext
 components as a base.
 --
 View this message in context: 
 http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336
 Sent from the JQuery mailing list archive at Nabble.com.


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


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


Re: [jQuery] jquery flash sIFR fla file

2007-03-05 Thread Luke Lutman
I should've replied earlier ... I've sent Sam a Flash 7 version of the fla. The 
filters are just 
to make the text look better (adding an invisible drop shadow gets rid of the 
colour artifacts 
produced by 'anti-alias for readability' in Flash 8). Everything should work 
fine without the 
filters :-)

Luke

Schnuck wrote:
 i was about to resave this in flash 7 for you but it gives me a
 warning that filters will get lost by doing so - i take that as the
 whole thing will be nonfunctional afterwards.
 
 sorry.
 
 
 On 04/03/07, Sam Sherlock [EMAIL PROTECTED] wrote:
 I am playing around with the flash plugin for jquery trying to get the sIFR
 woking within a site.

 I have downloaded the fla file but it does not open in my flash 7
  http://jquery.lukelutman.com/plugins/flash/jfr.fla

 I was hoping that either Luke or  someone might be able either send me a fla
 (that works with flash mx 2004 off list)
 or provide some instruction on how to customise the sIFR 2 flash files.

 thanks - S

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


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


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

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


Re: [jQuery] ISO docs for $.fn ?

2007-03-05 Thread Kynn Jones

Thanks, John.  And thanks for jQuery.  Beautiful piece of work.

kj


On 3/4/07, John Resig [EMAIL PROTECTED] wrote:


Hi Kynn -

Documentation on $.extend can be found here:
http://docs.jquery.com/JavaScript

and information on using $.fn.extend can be found here:
http://docs.jquery.com/Plugins/Authoring

In jQuery $.fn.extend is used in plugin authoring, adding new methods to
jQuery.

The relationship in jQuery is like this:
jQuery and $ are identical.
jQuery.fn and $.fn are identical.
jQuery.fn and jQuery.prototype are identical.
jQuery.extend and jQuery.fn.extend are nearly identical, but when you
pass in a single object of properties, jQuery.extend will extend the
jQuery object with properties whereas jQuery.fn.extend will extend the
jQuery.fn object (and thus add new methods to the jQuery core).

All of that being said, if you're just getting started with jQuery,
you're probably not going to have to worry about any of this.

--John

On 3/4/07, Kynn Jones [EMAIL PROTECTED] wrote:
 Hi.  I'm just learning about jQuery and finding my way around its
 documentation.

 I have not been able to find any documentation on $.fn.

 In fact in some of the rest of the documentation (e.g. the example code
for
 $.extend given at  http://visualjquery.com/1.1.1.html, $.fn
 (or rather jQuery.fn ) without explanation.

 Actually, the examples given there raise many questions in my mind, for
 example: what's the difference between $.fn and jQuery.fn?  And, what's
the
 difference between calling jQuery.fn.extend and jQuery.extend?

 Are the answers to these questions in the documentation?  If so, please
 point me to them.

 Any help would be much appreciated.

 TIA!

 kj



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



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

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


[jQuery] get class name

2007-03-05 Thread dalvarado
Hi,

What is the jQuery syntax to ge the class name of an item with a known id?

Thanks, - Dave

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


Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach

That rules - thanks John ;)

It would be most helpful if there was some location, either in this list or
on the main site, that listed timelines for all of these major releases -
1.1.3, ext, form validation, etc. so we could plan better.  The rewrite I'm
doing is a 6-9 month project and knowing what I will have available would be
immensely helpful.

BTW, you might ask him rename the ext plugin in accordance with the jquery
plugin naming conventions ;)


John Resig wrote:
 
 Ext 1.0 Alpha 2 is already running on jQuery:
 http://www.yui-ext.com/forum/viewtopic.php?t=3084
 
 We're working to make some improvements to jQuery to better handle the
 demanding animations that Ext requires. But yeah, you can begin using
 it now! We were waiting for Jack to make an official announcement, but
 it doesn't seem to have come out yet - so we may just announce this
 officially, anyway.
 
 --John
 
 On 3/5/07, Daemach [EMAIL PROTECTED] wrote:

 I, like probably everyone else on this list, is anxiously awaiting the
 port
 of EXT to jQuery.  Is there a timeline for this?  I am about ready to
 rebuild one of my clients sites and would very much like to use the ext
 components as a base.
 --
 View this message in context:
 http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336
 Sent from the JQuery mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9315753
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] get class name

2007-03-05 Thread Aaron Heimlich

On 3/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


What is the jQuery syntax to ge the class name of an item with a known id?



var myClassAttr = $(#myId).attr(class);

Will store the entire contents of #myId's class attribute in the variable
myClassAttr

If you want to determine whether #myId has a particular class or not use
this:

if( $(#myId).is(.myClass) ) {
   // Do stuff...
}

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


Re: [jQuery] Safari Crashing

2007-03-05 Thread Seb Duggan
I've had similar problems with 1.1.2 on Safari, not just with AJAX  
calls. I've reverted to a recent nightly build of jQuery, and it's  
behaving itself...


Seb


On 5 Mar 2007, at 17:02, Brad Perkins wrote:

 Are there any known issues where jQuery would crash Safari?

 I'm testing using jQuery 1.1.2. With Safari 2.0.4, the browser window
 disappears as soon as I make an AJAX call. I've observed this on two
 different Macs?

 I also note that a recent WebKit build on the same machine doesn't
 crash. Firefox and Camino work fine too.


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


Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord

I have the similar problem, jCarousel loads full list generated by a php
files via DB with same format as TXT file, I try to modify the content of
carousel by some links which sends parameters to PHP file...

any improvement in this?

tHanks..



hxela wrote:
 
 Initially my carousel loads /foo and is fed data from the database in
 order to build the carousel.
 
 I'd like the user to be able to click on a link /foo?search=bar and have
 the carousel update with the new data.
 
 Any ideas? Would I have to destroy the carousel and re-create it passing
 in a new url? If so.. any ideas how?
 
 Any help greatly appreciated!
 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-modifying-the-content-of-the-carousel-tf3253484.html#a9291555
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] Parent and Single Parent Element Selection

2007-03-05 Thread Choan C. Gálvez
On 3/5/07, Kevin Fricovsky [EMAIL PROTECTED] wrote:

 Morning,

Evening ;)

 I have a question for the jquery group.

 My question is - what's the best way to get a single parent element of
 the current object.

 Right now I have an html table with multiple rows. In the first TD of
 each row I have a select list (a dropdown).

 I have a select() event attached to the option list and when the user
 selects an option the background color for that row (TR) is changed.
 (well, actually all TR backgrounds are changing right now that's why I'm
 writing everyone).

 So, the only problem I'm having is getting the single parent TR.

 Right now my update statement is updating every TR in the table versus
 just the parent.

 The code is something like this:

 $(../../../../tr,this).addClass(assigned);

 The this is the select element.

 Even if I do use an indexer on this statement like this $(...)[0] - the
 problem there is the system currently doesn't know the index of the row
 it's on.

 So I can either add the index in a hidden value or I thought maybe
 there's an easier way of doing this via JQuery.

There is.

$(this).parent(tr).addClass(assigned);



-- 
Choan
http://choangalvez.nom.es/

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


Re: [jQuery] Parent and Single Parent Element Selection

2007-03-05 Thread Seb Duggan
Maybe something like:


$('.colorPick').change(function() {
$(this).parent().parent().addClass('assigned');
});


where colorPick is the class assigned to your select menu.

You could also use:


$('.colorPick').change(function() {
$(this).parents('tr').addClass('assigned');
});


but my gut tells me that's not quite as efficient, as it will look  
for 'tr' elements all the way up to the top of the DOM tree.


Seb



On 5 Mar 2007, at 17:09, Kevin Fricovsky wrote:


 Morning,

 I have a question for the jquery group.

 My question is - what's the best way to get a single parent element of
 the current object.

 Right now I have an html table with multiple rows. In the first TD of
 each row I have a select list (a dropdown).

 I have a select() event attached to the option list and when the user
 selects an option the background color for that row (TR) is changed.
 (well, actually all TR backgrounds are changing right now that's  
 why I'm
 writing everyone).

 So, the only problem I'm having is getting the single parent TR.

 Right now my update statement is updating every TR in the table versus
 just the parent.

 The code is something like this:

 $(../../../../tr,this).addClass(assigned);

 The this is the select element.

 Even if I do use an indexer on this statement like this $(...)[0] -  
 the
 problem there is the system currently doesn't know the index of the  
 row
 it's on.

 So I can either add the index in a hidden value or I thought maybe
 there's an easier way of doing this via JQuery.

 Thx for your help.


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



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


Re: [jQuery] Safari Crashing

2007-03-05 Thread John Resig
Just after 1.1.2 was released we discovered that bug in jQuery and
merged its fix back in. Could you try re-downloading the latest 1.1.2
to see if it solves your problem?
http://jquery.com/src/jquery-1.1.2.js

--John

On 3/5/07, Brad Perkins [EMAIL PROTECTED] wrote:
 Are there any known issues where jQuery would crash Safari?

 I'm testing using jQuery 1.1.2. With Safari 2.0.4, the browser window
 disappears as soon as I make an AJAX call. I've observed this on two
 different Macs?

 I also note that a recent WebKit build on the same machine doesn't
 crash. Firefox and Camino work fine too.

 Any suggestions appreciated.

 Thanks,

 Brad Perkins

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


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


Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach

I'm having trouble finding some examples on how this library works - in the
documentation he has function/object references and demos but no
examples/tutorials.  I hate to be the one that asks this, but can you point
us to a few get-started quickly areas?  I learned jQuery in about a week
with all of the excellent tutorials/example code available but I'm not
finding the same level of support over there :/



John Resig wrote:
 
 Ext 1.0 Alpha 2 is already running on jQuery:
 http://www.yui-ext.com/forum/viewtopic.php?t=3084
 
 We're working to make some improvements to jQuery to better handle the
 demanding animations that Ext requires. But yeah, you can begin using
 it now! We were waiting for Jack to make an official announcement, but
 it doesn't seem to have come out yet - so we may just announce this
 officially, anyway.
 
 --John
 
 On 3/5/07, Daemach [EMAIL PROTECTED] wrote:

 I, like probably everyone else on this list, is anxiously awaiting the
 port
 of EXT to jQuery.  Is there a timeline for this?  I am about ready to
 rebuild one of my clients sites and would very much like to use the ext
 components as a base.
 --
 View this message in context:
 http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336
 Sent from the JQuery mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9316221
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord

anyone can have an idea about this, I need this urgently...

phplord wrote:
 
 I have the similar problem, jCarousel loads full list generated by a php
 files via DB with same format as TXT file, I try to modify the content of
 carousel by some links which sends parameters to PHP file...
 
 any improvement in this?
 
 tHanks..
 
 
 
 hxela wrote:
 
 Initially my carousel loads /foo and is fed data from the database in
 order to build the carousel.
 
 I'd like the user to be able to click on a link /foo?search=bar and have
 the carousel update with the new data.
 
 Any ideas? Would I have to destroy the carousel and re-create it passing
 in a new url? If so.. any ideas how?
 
 Any help greatly appreciated!
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-modifying-the-content-of-the-carousel-tf3253484.html#a9316347
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Glen Lipka

Daemach*,* Me too.  The EXT project is very much in Technical Preview
mode.  They made it clear to me, after some squeaky wheeling on my part,
that they *are* in progress building out documentation, tutorials, etc.
They asked that I(We) be patient.

Nothing is there now, but they said alot will live here eventually:
http://www.extjs.com/

However, the level of support HERE is awesome.  I imagine that once the EXT
project is ported, that the best place to ask questions about it will be
right here.  You will notice that a ton of the questions now are related to
plugins, so it shouldn't be any different.

Glen

On 3/5/07, Daemach [EMAIL PROTECTED] wrote:



 I learned jQuery in about a week
with all of the excellent tutorials/example code available but I'm not
finding the same level of support over there :/



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


Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-05 Thread Jörn Zaefferer
Daemach schrieb:
 Thanks for the info on the metadata plugin.

 Make sure to avoid any spaces... is exactly the kind of gotcha that
 makes using classes as a data repository so troublesome.  While it is
 technically possible, mixing data types inside an attribute just feels like
 a bad practice to me.
   
Sure thing. The validation plugin offers metadata as an option, and 
doesn't rely on it at all. So it is up to the user to decide what works 
best for him.

Though since the first release of the validation plugin my opinions 
about metadata changed quite a lot. Currently I'd recommend to put any 
validation rules completely in JavaScript.

-- 
Jörn Zaefferer

http://bassistance.de


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


[jQuery] How to access contents of frames/iframes with jQuery?

2007-03-05 Thread Kynn Jones

Hi again!

(Second question in as many days...  I guess I'm the overeager noob.  :) )

Last night I watched John Resig's screencast Hacking Digg with Firebug and
jQuery ( highly recommended, BTW:
http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/ ) and I
immediately went to one of my favorite webapps and tried to put to use the
ideas he presented, but right out of the gate I crashed against frames.

Or at least I think that's what the problem was.  For example, when I tried
to evaluate jQuery expressions like $(div), the result printed by Firebug
was [ ], even though, according to Firebug's inspector, the page I was
trying to dissect had plenty of divs.  (BTW, this seemed odd to me, since it
seems somehow to go against the find things, do stuff philosophy.)

Anyway, I did get reasonable-looking results when I tried $(frameset) and
$(frame), but I can't figure out how to get past this point.

(BTW, I did try Firefox's Show only this frame command, but the server
basically vetoes the request and sends all the frames anyway.)

So my question is, can jQuery handle frames?  More specifically, what jQuery
functions would one use to find and manipulate the contents of a frame?

And what about iframes?

Thanks in advance!

kj

PS: I scanned the documentation in http://docs.jquery.com/DOM/Traversing ,
but I didn't find an answer.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Safari Crashing

2007-03-05 Thread Brad Perkins
John,

Yes, installing the latest build fixes the problem.

Thanks for the speedy reply and for such an awesome library!

best,

Brad Perkins

On 3/5/07, John Resig [EMAIL PROTECTED] wrote:
 Just after 1.1.2 was released we discovered that bug in jQuery and
 merged its fix back in. Could you try re-downloading the latest 1.1.2
 to see if it solves your problem?
 http://jquery.com/src/jquery-1.1.2.js

 --John

 On 3/5/07, Brad Perkins [EMAIL PROTECTED] wrote:
  Are there any known issues where jQuery would crash Safari?
 
  I'm testing using jQuery 1.1.2. With Safari 2.0.4, the browser window
  disappears as soon as I make an AJAX call. I've observed this on two
  different Macs?
 
  I also note that a recent WebKit build on the same machine doesn't
  crash. Firefox and Camino work fine too.
 
  Any suggestions appreciated.
 
  Thanks,
 
  Brad Perkins

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


Re: [jQuery] get class name

2007-03-05 Thread Glen Lipka

If the ID only has one class you can also say:
$(#myID[class=foo]).fadeOut();
or
var theNode = $(#myID[class=foo])

Also, wouldn't your example work without the IF?
$(#myId).is(myClass).fadeOut();
or
var theNode = $(#myId).is(myClass)

Glen





If you want to determine whether #myId has a particular class or not use
this:

if( $(#myId).is(.myClass) ) {
// Do stuff...
}

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


Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Daemach

Last question - it looks like the ext port is just using jQuery for the
mechanics of ext itself.  Are there plans to port the ext functions to
jQuery syntax?



John Resig wrote:
 
 Ext 1.0 Alpha 2 is already running on jQuery:
 http://www.yui-ext.com/forum/viewtopic.php?t=3084
 
 We're working to make some improvements to jQuery to better handle the
 demanding animations that Ext requires. But yeah, you can begin using
 it now! We were waiting for Jack to make an official announcement, but
 it doesn't seem to have come out yet - so we may just announce this
 officially, anyway.
 
 --John
 
 On 3/5/07, Daemach [EMAIL PROTECTED] wrote:

 I, like probably everyone else on this list, is anxiously awaiting the
 port
 of EXT to jQuery.  Is there a timeline for this?  I am about ready to
 rebuild one of my clients sites and would very much like to use the ext
 components as a base.
 --
 View this message in context:
 http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336
 Sent from the JQuery mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9316661
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] loading animation for imagebox

2007-03-05 Thread Janet Weber
Hi

The loading animation for imagebox doesn't display properly. The 
animation has a white box behind the loading.gif animation and I would 
like to know how to change that white box to black or transparent?

Also if anyone is interested there is a website that will generate 
loading animations for you. the link is http://www.ajaxload.info/ .

Janet


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


Re: [jQuery] get class name

2007-03-05 Thread Sam Collett
On 05/03/07, Glen Lipka [EMAIL PROTECTED] wrote:
 If the ID only has one class you can also say:
 $(#myID[class=foo]).fadeOut();
 or
 var theNode = $(#myID[class=foo])

 Also, wouldn't your example work without the IF?
 $(#myId).is(myClass).fadeOut();
 or
 var theNode = $(#myId).is(myClass)

 Glen

No. 'is' returns true/false, not a jQuery object. You can use filter though:

$(#myId).filter(.myclass).doStuff();




 
 
  If you want to determine whether #myId has a particular class or not use
 this:
 
  if( $(#myId).is(.myClass) ) {
  // Do stuff...
  }
 
  --

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



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


[jQuery] finding closest ancestor matching a pattern

2007-03-05 Thread dalvarado
Hi,

I am trying to find the closest ancestor whose id begins with childrenTOC.   
I am invoking the function within the onclick handler of the element with class 
toggleStrike.  Previously, I was given this code

$(this).parents([EMAIL PROTECTED]); 

but that seems to return an arrray of elements, and I just want the closest 
one.  Here is the HTML in question ...

div id=childrenTOC10 style=display:block
div id=toc11 class=tocItem10-0 style=display:block; 
margin-left:10px
div style=display:blocktable
tbody
tr
tda id=openClose164 
class=openClose href='#' onClick=javascript:toggleTOCItem('childrenTOC11', 
'childrenTOC10', 0);img name=imgchildrenTOC11 src=images/tree_open.gif 
alt= border=0/a/td
td style=text-decoration:none 
id=item164 class=title1Unit 1: Our Land and First People/td
tda class=readMore 
href='#'Read/a/td
tda href='#' 
class=toggleStrikeRemove/a/td
/tr
/tbody
/table/div

Thanks, - Dave

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


[jQuery] Newbie Q: Slow steady loop in one direction only?

2007-03-05 Thread swortis

Hello there 

Can jCarousel be configured to slowly scroll the list in one direction only,
in an endless loop?

Thanks much,
SWW
-- 
View this message in context: 
http://www.nabble.com/Newbie-Q%3A-Slow-steady-loop-in-one-direction-only--tf3334750.html#a9273486
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] get class name

2007-03-05 Thread Aaron Heimlich

On 3/5/07, Glen Lipka [EMAIL PROTECTED] wrote:


Also, wouldn't your example work without the IF?
$(#myId).is(myClass).fadeOut();


or

var theNode = $(#myId).is(myClass)



Neither of those would work because is() returns true/false.


[1] http://docs.jquery.com/DOM/Traversing#is.28_expr_.29

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


Re: [jQuery] Safari Crashing

2007-03-05 Thread Seb Duggan
Yes, fixes my problem too...


Seb



On 5 Mar 2007, at 17:42, Brad Perkins wrote:

 John,

 Yes, installing the latest build fixes the problem.

 Thanks for the speedy reply and for such an awesome library!

 best,

 Brad Perkins


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


Re: [jQuery] finding closest ancestor matching a pattern

2007-03-05 Thread John Resig
One simple addition:
$(this).parents([EMAIL PROTECTED]:first);

That'll give you the closest one.

--John

On 3/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to find the closest ancestor whose id begins with childrenTOC.  
  I am invoking the function within the onclick handler of the element with 
 class toggleStrike.  Previously, I was given this code

 $(this).parents([EMAIL PROTECTED]);

 but that seems to return an arrray of elements, and I just want the closest 
 one.  Here is the HTML in question ...

 div id=childrenTOC10 style=display:block
 div id=toc11 class=tocItem10-0 style=display:block; 
 margin-left:10px
 div style=display:blocktable
 tbody
 tr
 tda id=openClose164 
 class=openClose href='#' onClick=javascript:toggleTOCItem('childrenTOC11', 
 'childrenTOC10', 0);img name=imgchildrenTOC11 src=images/tree_open.gif 
 alt= border=0/a/td
 td style=text-decoration:none 
 id=item164 class=title1Unit 1: Our Land and First People/td
 tda class=readMore 
 href='#'Read/a/td
 tda href='#' 
 class=toggleStrikeRemove/a/td
 /tr
 /tbody
 /table/div

 Thanks, - Dave

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


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


Re: [jQuery] How to access contents of frames/iframes with jQuery?

2007-03-05 Thread Daemach

I'm somewhat noobish, but perhaps you could use a selector with a context?  

$(#some div, #frameID)...



Kynn Jones wrote:
 
 Hi again!
 
 (Second question in as many days...  I guess I'm the overeager noob.  :) )
 
 Last night I watched John Resig's screencast Hacking Digg with Firebug
 and
 jQuery ( highly recommended, BTW:
 http://ejohn.org/blog/hacking-digg-with-firebug-and-jquery/ ) and I
 immediately went to one of my favorite webapps and tried to put to use the
 ideas he presented, but right out of the gate I crashed against frames.
 
 Or at least I think that's what the problem was.  For example, when I
 tried
 to evaluate jQuery expressions like $(div), the result printed by
 Firebug
 was [ ], even though, according to Firebug's inspector, the page I was
 trying to dissect had plenty of divs.  (BTW, this seemed odd to me, since
 it
 seems somehow to go against the find things, do stuff philosophy.)
 
 Anyway, I did get reasonable-looking results when I tried $(frameset)
 and
 $(frame), but I can't figure out how to get past this point.
 
 (BTW, I did try Firefox's Show only this frame command, but the server
 basically vetoes the request and sends all the frames anyway.)
 
 So my question is, can jQuery handle frames?  More specifically, what
 jQuery
 functions would one use to find and manipulate the contents of a frame?
 
 And what about iframes?
 
 Thanks in advance!
 
 kj
 
 PS: I scanned the documentation in http://docs.jquery.com/DOM/Traversing ,
 but I didn't find an answer.
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-access-contents-of-frames-iframes-with-jQuery--tf3350495.html#a9317103
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] What is the status on the Ext port?

2007-03-05 Thread Brian Miller
Given that it would be Jack's call, I'd say no.  Ext has a very Java-like
OO design.  It would be hard work to squeeze what he's doing into jQuery
calling conventions.

That doesn't rule out Jack surprising us and doing all that work anyway. 
But, that's not where I'd put my money if I were a betting man.  :)

That also doesn't rule out a plugin-for-the-plugin that simply gives you a
new interfafce on the calls.  But, someone here would have to do that
after the port is complete.

- Brian


 Last question - it looks like the ext port is just using jQuery for the
 mechanics of ext itself.  Are there plans to port the ext functions to
 jQuery syntax?



 John Resig wrote:

 Ext 1.0 Alpha 2 is already running on jQuery:
 http://www.yui-ext.com/forum/viewtopic.php?t=3084

 We're working to make some improvements to jQuery to better handle the
 demanding animations that Ext requires. But yeah, you can begin using
 it now! We were waiting for Jack to make an official announcement, but
 it doesn't seem to have come out yet - so we may just announce this
 officially, anyway.

 --John

 On 3/5/07, Daemach [EMAIL PROTECTED] wrote:

 I, like probably everyone else on this list, is anxiously awaiting the
 port
 of EXT to jQuery.  Is there a timeline for this?  I am about ready to
 rebuild one of my clients sites and would very much like to use the ext
 components as a base.
 --
 View this message in context:
 http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9314336
 Sent from the JQuery mailing list archive at Nabble.com.


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


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



 --
 View this message in context:
 http://www.nabble.com/What-is-the-status-on-the-Ext-port--tf3349725.html#a9316661
 Sent from the JQuery mailing list archive at Nabble.com.


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




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


Re: [jQuery] jqUploader updated

2007-03-05 Thread Alexandre Plennevaux
HYPERLINK 
http://www.pixeline.be/experiments/jqUploader/http://www.pixeline.be/experiments/jqUploader/

   _  

From: Felix Geisendörfer [mailto:[EMAIL PROTECTED] 
Sent: lundi 5 mars 2007 18:50
To: [EMAIL PROTECTED]; jQuery Discussion.
Subject: Re: [jQuery] jqUploader updated



HYPERLINK 
http://www.pixeline.be/test/jquery/jqUploader/index.htmlhttp://www.pixeline.be/test/jquery/jqUploader/index.html
 

That link gives me a 404. Any new one available?

-- Felix Geisendörfer aka the_undefined

--
HYPERLINK http://www.thinkingphp.orghttp://www.thinkingphp.org
HYPERLINK http://www.fg-webdesign.dehttp://www.fg-webdesign.de 


Alexandre Plennevaux wrote: 

Jason, i've just updated the script. Thank you for your time!



HYPERLINK 
http://www.pixeline.be/test/jquery/jqUploader/index.htmlhttp://www.pixeline.be/test/jquery/jqUploader/index.html
 









-Original Message-

From: HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] [HYPERLINK 
mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED] On Behalf Of Jason Huck

Sent: vendredi 23 février 2007 21:33

To: HYPERLINK mailto:discuss@jquery.comdiscuss@jquery.com

Subject: Re: [jQuery] jqUploader: flash-based file upload





I just went to your demo page, selected a PDF from my desktop and uploaded it, 
and it worked. You'll see the PDF in your file list if you look. I also noticed 
other people had uploaded mp3s and other file types as well.



It was Firefox 2.0.0.1 on Mac OS X 10.4.8. Javascript enabled. I didn't do 
anything special.



- Jason













Alexandre Plennevaux wrote:

  

Jason, can you give me more details? I can't reproduce this, unless i 

turn javascript off, of course



-Original Message-

From: HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] [HYPERLINK 
mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED] 

On Behalf Of Jason Huck

Sent: jeudi 22 février 2007 22:31

To: HYPERLINK mailto:discuss@jquery.comdiscuss@jquery.com

Subject: Re: [jQuery] jqUploader: flash-based file upload





FYI, despite the allowed extensions specified in your code, I was able 

to upload a PDF file without errors.



This was in Firefox 2.x/Mac.



Looks interesting, though!



- jason









Alexandre Plennevaux wrote:



Hello,

 

my Plugin replacing file input fields with a richer Flash based 

upload field (with progress bar) is ready for your delicate use:

HYPERLINK

HYPERLINK 
http://www.pixeline.be/test/jquery/jqUploader/index.htmlhttp://www.pixeline.be/test/jquery/jqUploader/index.htmlHYPERLINK
 
http://www.pixeline.be/test/jquery/jqUploader/index.htmlIhaven'tbeenabletotestitonotherplatformsthanIE7andFF2onWindowsXP.Soshootmeifitdoesnotworkonyourplatform.SpecialthankstoVladaandAlexCookforyourhelpandadvise!AlexandreAlexandrePlennevaux-LAb[au]asbl.vzw/MediaRuimteLakensestraat/RuedeLaeken104B-1000Brussel-Bruxelles-BrusselsBelgie-Belgique-BelgiumTel:+32(0)2.219.65.55Fax:+32(0)2.426.69.86Mobile:+32(0)476.23.21.42HYPERLINKhttp://www.

p ixeline.be/test/jquery/jqUploader/index.html

 

 

I haven't been able to test it on other platforms than IE7 and FF2 on 

Windows XP. So shoot me if it does not work on your platform.

 

 

 

Special thanks to Vlada and Alex Cook for your help and advise!

 

 

Alexandre

 

 



Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte 

Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels 

Belgie-Belgique-Belgium



Tel:+32(0)2.219.65.55

Fax:+32(0)2.426.69.86

Mobile:+32(0)476.23.21.42

HYPERLINK blocked::HYPERLINK 
http://www.lab-au.com/http://www.lab-au.com/HYPERLINK 
http://www.lab-au.comHYPERLINKhttp://www.lab-au.com

HYPERLINK

blocked::HYPERLINK 
http://www.mediaruimte.be/http://www.mediaruimte.be/HYPERLINK 
http://www.mediaruimte.beHYPERLINKhttp://www.mediaruimte.be



HYPERLINK

blocked::HYPERLINK 
http://www.mediaruimte.be/http://www.mediaruimte.be/

_ _



The information in this e-mail is intended only for the addressee 

named above.  If you are not that addressee, please note that any 

disclosure, distribution or copying of this e-mail is prohibited.

Because e-mail can be electronically altered, the integrity of this 

communication cannot be guaranteed.



_

_





 



--

Ce message Envoi est certifié sans virus connu.

Analyse effectuée par AVG.

Version: 7.5.441 / Base de données virus: 268.18.3/694 - Date: 

20/02/2007

13:44

 



___

jQuery mailing list

HYPERLINK mailto:discuss@jquery.comdiscuss@jquery.com

HYPERLINK http://jquery.com/discuss/http://jquery.com/discuss/





  

--

View this message in context:

HYPERLINK 
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.

html#a9108752 Sent from the JQuery mailing list archive at Nabble.com.






Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread Roman Weich
agent2026 schrieb:
 Just checked out the demo, but it looks good.  Think clicking the top level
 (item 1, item 2) should toggle the menu visibility, rather than having to
 click off the menu to make it go away.

You're right of course, haven't even thought of this. ;O
I'll add this. Thanks!

/rw

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


Re: [jQuery] How Do i Assign error div to JQuery Validator Plugin Alpha 2 ?

2007-03-05 Thread Jörn Zaefferer
amircx schrieb:
 i tried hours to figure out what i did worng... i didnt find out how to do
 it
 is that possible?
 ill be glad if you tell me how to do it
   
Take the parameters out of the submitHandler. Just look at the example 
where you copied it from. It should be something like this:

$(...).validate({

submitHandler: function() {
   ...
},

rules: {
   ...
},

messages: {
   ...
}

});

And about your other problem: Just modify your form to look like this:

form name=amir id=amir class=amir  
  label for=passwordpassword/label
  input name=password type=text id=password 
label for=passwordplease enter password/label


  label for=firstnamefirstname/label
  input name=firstname type=text id=firstname 
label for=firstnamePlease fill the name!/label

  input type=submit name=Submit value=Submit
/form

Just use label elements and their for-attributes to assiociate the error 
messages with the input fields.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] jqUploader updated

2007-03-05 Thread Sam Sherlock

guess its been  changed. this works

http://www.pixeline.be/test/jquery/jqUploader/

On 05/03/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote:


 http://www.pixeline.be/experiments/jqUploader/

 --
*From:* Felix Geisendörfer [mailto:[EMAIL PROTECTED]
*Sent:* lundi 5 mars 2007 18:50
*To:* [EMAIL PROTECTED]; jQuery Discussion.
*Subject:* Re: [jQuery] jqUploader updated

 http://www.pixeline.be/test/jquery/jqUploader/index.html

That link gives me a 404. Any new one available?

-- Felix Geisendörfer aka the_undefined
--
http://www.thinkingphp.org
http://www.fg-webdesign.de


Alexandre Plennevaux wrote:

Jason, i've just updated the script. Thank you for your time!

http://www.pixeline.be/test/jquery/jqUploader/index.html




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]] On 
Behalf Of Jason Huck
Sent: vendredi 23 février 2007 21:33
To: discuss@jquery.com
Subject: Re: [jQuery] jqUploader: flash-based file upload


I just went to your demo page, selected a PDF from my desktop and uploaded it, 
and it worked. You'll see the PDF in your file list if you look. I also noticed 
other people had uploaded mp3s and other file types as well.

It was Firefox 2.0.0.1 on Mac OS X 10.4.8. Javascript enabled. I didn't do 
anything special.

- Jason






Alexandre Plennevaux wrote:

Jason, can you give me more details? I can't reproduce this, unless i
turn javascript off, of course

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]]
On Behalf Of Jason Huck
Sent: jeudi 22 février 2007 22:31
To: discuss@jquery.com
Subject: Re: [jQuery] jqUploader: flash-based file upload


FYI, despite the allowed extensions specified in your code, I was able
to upload a PDF file without errors.

This was in Firefox 2.x/Mac.

Looks interesting, though!

- jason




Alexandre Plennevaux wrote:


Hello,

my Plugin replacing file input fields with a richer Flash based
upload field (with progress bar) is ready for your delicate use:
HYPERLINK
http://www.pixeline.be/test/jquery/jqUploader/index.html; 
http://www.pixeline.be/test/jquery/jqUploader/index.htmlhttp://www.
p ixeline.be/test/jquery/jqUploader/index.html


I haven't been able to test it on other platforms than IE7 and FF2 on
Windows XP. So shoot me if it does not work on your platform.



Special thanks to Vlada and Alex Cook for your help and advise!


Alexandre



Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels
Belgie-Belgique-Belgium

Tel:+32(0)2.219.65.55
Fax:+32(0)2.426.69.86
Mobile:+32(0)476.23.21.42
HYPERLINK blocked:: http://www.lab-au.com/http://www.lab-au.com/; 
http://www.lab-au.comHYPERLINKhttp://www.lab-au.com
HYPERLINK
blocked:: http://www.mediaruimte.be/http://www.mediaruimte.be/; 
http://www.mediaruimte.beHYPERLINKhttp://www.mediaruimte.be

HYPERLINK
blocked:: 
http://www.mediaruimte.be/http://www.mediaruimte.be/
_ _

The information in this e-mail is intended only for the addressee
named above.  If you are not that addressee, please note that any
disclosure, distribution or copying of this e-mail is prohibited.
Because e-mail can be electronically altered, the integrity of this
communication cannot be guaranteed.

_
_




--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.441 / Base de données virus: 268.18.3/694 - Date:
20/02/2007
13:44


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


  --
View this message in context:
 
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.
html#a9108752 Sent from the JQuery mailing list archive at Nabble.com.


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

--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date:
23/02/2007
4:39



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


--
View this message in context:  
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9126205http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9126205
Sent from the JQuery mailing list archive at Nabble.com.


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


--
Ce message Envoi est 

Re: [jQuery] Safari Crashing

2007-03-05 Thread Seb Duggan
Is there any way you could re-release this as 1.1.3?

The people who use jQuery are very likely to update their websites  
with any new point release, but maybe not with a re-release of the  
same version.

I've already come across a number of sites (mostly demos of plugins)  
that crash Safari because they're using the initial 1.1.2 release.  
And for most of them, it won't be an issue they'll know about because  
they're not using Safari...


Seb


On 5 Mar 2007, at 18:01, Seb Duggan wrote:

 Yes, fixes my problem too...


 Seb



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


Re: [jQuery] confirm link

2007-03-05 Thread James Thomas

You need to return false if you don't want something to happen. so if
(confirm('whatever')) { do_whatever(); } else return false;

smeranda wrote:
 
 When a user clicks a link and a form field currently has data, a
 confirmation box appears. This is close to working, but if a user clicks
 'cancel' the browser still redirects to the a href URL. What am I doing
 wrong?
 
 $(a).click(function(){alertSave($(this).attr(href));});
 
 function alertSave(url) {
   var dataControl = $('#changedAppointments').attr(value);
   if (dataControl.length  0) {
   if (confirm(You have made changes to this date which have not 
 been
 saved.\n\nAre you sure you want to navigate from this page?)) {
   document.location = url;
   }
   }
 }
 

-- 
View this message in context: 
http://www.nabble.com/confirm-link-tf3350646.html#a9318730
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Safari Crashing

2007-03-05 Thread John Resig
We (the dev team) talked it over and since we released the fix (and
replaced 1.1.2 so quickly) we opted to leave it as 1.1.2 instead of
bumping it up to 1.1.3. We had the fix in place within hours of the
original blog post.

It's a tricky line to balance. We either get to replace 1.1.2 and
cause some possible confusion with Safari issues (for users who
upgraded very quickly) or push out 1.1.3 and cause more confusion
having two releases occur in just a couple hours.

That's the reasoning behind why we didn't push a 1.1.3 release out the
door immediately, that being said, it's still possible that we could
get a 1.1.3 release out quickly (maybe sometime this week) - which
would, of course, include this fix.

--John

On 3/5/07, Seb Duggan [EMAIL PROTECTED] wrote:
 Is there any way you could re-release this as 1.1.3?

 The people who use jQuery are very likely to update their websites
 with any new point release, but maybe not with a re-release of the
 same version.

 I've already come across a number of sites (mostly demos of plugins)
 that crash Safari because they're using the initial 1.1.2 release.
 And for most of them, it won't be an issue they'll know about because
 they're not using Safari...


 Seb


 On 5 Mar 2007, at 18:01, Seb Duggan wrote:

  Yes, fixes my problem too...
 
 
  Seb



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


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


Re: [jQuery] confirm link

2007-03-05 Thread smeranda

Still no luck, this is what I have:

$(a).click(function(){alertSave($(this).attr(href));});

function alertSave(url) {
var dataControl = $('#changedAppointments').attr(value);
if (dataControl.length  0) {
if (confirm(You have made changes to this date which have not 
been
saved.\n\nAre you sure you want to navigate from this page?)) {
document.location = url;
} else return false;
}
}



James Thomas wrote:
 
 You need to return false if you don't want something to happen. so if
 (confirm('whatever')) { do_whatever(); } else return false;
 
 smeranda wrote:
 
 When a user clicks a link and a form field currently has data, a
 confirmation box appears. This is close to working, but if a user clicks
 'cancel' the browser still redirects to the a href URL. What am I doing
 wrong?
 
 $(a).click(function(){alertSave($(this).attr(href));});
 
 function alertSave(url) {
  var dataControl = $('#changedAppointments').attr(value);
  if (dataControl.length  0) {
  if (confirm(You have made changes to this date which have not 
 been
 saved.\n\nAre you sure you want to navigate from this page?)) {
  document.location = url;
  }
  }
 }
 
 
 

-- 
View this message in context: 
http://www.nabble.com/confirm-link-tf3350646.html#a9319161
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Help with .each

2007-03-05 Thread Yansky

I'm trying to insert a div after all  a  elements that don't link to my
site. My script is currently working like this:

var getLinks = $(a).not($([EMAIL PROTECTED]));
for(i=0;igetLinks.length;i++){$(divpLorem
Ipsum/p/div).insertAfter(getLinks[i]);}

but I'm having trouble converting it all to jQuery using .each:

$(a).not($([EMAIL PROTECTED])).each(function()
{$(this).html(divpLorem Ipsum/p/div).insertAfter();}); 

The function only gives the raw DOM right? Not the jQuery object. So I have
to use $(this) to access the jQuery objects again right?

At the moment, the .each version inserts the div as a child node, rather
than as a sibling (which is what I'm after).
-- 
View this message in context: 
http://www.nabble.com/Help-with-%22.each%22-tf3351407.html#a9319633
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] confirm link

2007-03-05 Thread Indigo
On Monday 05 March 2007 13:56, smeranda wrote:
 Still no luck, this is what I have:

 $(a).click(function(){alertSave($(this).attr(href));});

 function alertSave(url) {
  var dataControl = $('#changedAppointments').attr(value);
  if (dataControl.length  0) {
   if (confirm(You have made changes to this date which have not been
 saved.\n\nAre you sure you want to navigate from this page?)) {
document.location = url;
   } else return false;
  }
 }

 James Thomas wrote:
  You need to return false if you don't want something to happen. so if
  (confirm('whatever')) { do_whatever(); } else return false;
 
  smeranda wrote:
  When a user clicks a link and a form field currently has data, a
  confirmation box appears. This is close to working, but if a user clicks
  'cancel' the browser still redirects to the a href URL. What am I doing
  wrong?
 
  $(a).click(function(){alertSave($(this).attr(href));});
 
  function alertSave(url) {
 var dataControl = $('#changedAppointments').attr(value);
 if (dataControl.length  0) {
 if (confirm(You have made changes to this date which have not 
  been
  saved.\n\nAre you sure you want to navigate from this page?)) {
 document.location = url;
 }
 }
  }

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


[jQuery] jcarousel issue

2007-03-05 Thread Indigo
 
I am trying to implement a jcarousel element on a page that is not yet public. 
The example I'm using is the one with dynamic content loading via ajax -  
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

My example_dynamic_ajax.txt file looks like this:

http://www.liniverse.com/see.jpg;see|
http://www.liniverse.com/me.jpg;me|
http://www.liniverse.com/now.jpg;now|
 
The issue is when the page loads, the alt text is displayed in the carousel 
rather than the images. Is this an issue familiar to anyone? The lightbox 
effect still works, but without the images.

TIA

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


Re: [jQuery] Help with .each

2007-03-05 Thread Daemach

You might try:

$(a).not($([EMAIL PROTECTED])).each(function()
{$(this).after(divpLorem Ipsum/p/div);});




Yansky wrote:
 
 I'm trying to insert a div after all  a  elements that don't link to my
 site. My script is currently working like this:
 
 var getLinks = $(a).not($([EMAIL PROTECTED]));
 for(i=0;igetLinks.length;i++){$(divpLorem
 Ipsum/p/div).insertAfter(getLinks[i]);}
 
 but I'm having trouble converting it all to jQuery using .each:
 
 $(a).not($([EMAIL PROTECTED])).each(function()
 {$(this).html(divpLorem Ipsum/p/div).insertAfter();}); 
 
 The function only gives the raw DOM right? Not the jQuery object. So I
 have to use $(this) to access the jQuery objects again right?
 
 At the moment, the .each version inserts the div as a child node, rather
 than as a sibling (which is what I'm after).
 

-- 
View this message in context: 
http://www.nabble.com/Help-with-%22.each%22-tf3351407.html#a9319828
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Help with .each

2007-03-05 Thread John Resig
I think something like this will get you your desired result:
$(a:not([EMAIL PROTECTED])).after(divpLorem Ipsum/p/div);

.after() inserts the HTML after each link, whereas .insertAfter()
inserts the link after each block of HTML. (An important distinction.)

More information can be found here:
http://docs.jquery.com/DOM/Manipulation

--John

On 3/5/07, Yansky [EMAIL PROTECTED] wrote:

 I'm trying to insert a div after all  a  elements that don't link to my
 site. My script is currently working like this:

 var getLinks = $(a).not($([EMAIL PROTECTED]));
 for(i=0;igetLinks.length;i++){$(divpLorem
 Ipsum/p/div).insertAfter(getLinks[i]);}

 but I'm having trouble converting it all to jQuery using .each:

 $(a).not($([EMAIL PROTECTED])).each(function()
 {$(this).html(divpLorem Ipsum/p/div).insertAfter();});

 The function only gives the raw DOM right? Not the jQuery object. So I have
 to use $(this) to access the jQuery objects again right?

 At the moment, the .each version inserts the div as a child node, rather
 than as a sibling (which is what I'm after).
 --
 View this message in context: 
 http://www.nabble.com/Help-with-%22.each%22-tf3351407.html#a9319633
 Sent from the JQuery mailing list archive at Nabble.com.


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


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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Marshall Salinger
Can you post some sample code? It sounds like the paths to your images
is wrong.

-Marshall

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Indigo
Sent: Monday, March 05, 2007 12:23 PM
To: discuss@jquery.com
Subject: [jQuery] jcarousel issue

 
I am trying to implement a jcarousel element on a page that is not yet
public. 
The example I'm using is the one with dynamic content loading via ajax -

http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

My example_dynamic_ajax.txt file looks like this:

http://www.liniverse.com/see.jpg;see|
http://www.liniverse.com/me.jpg;me|
http://www.liniverse.com/now.jpg;now|
 
The issue is when the page loads, the alt text is displayed in the
carousel 
rather than the images. Is this an issue familiar to anyone? The
lightbox 
effect still works, but without the images.

TIA

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


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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Abel Tamayo

So your problem comes from using jCarousel or another plugin to get the
lightbox effect? If it's jCarousel maybe the routes to each image is not
included correctly. If the problem comes from using thickbox, for example,
maybe the path to the images isn't being processed correctly for some
incompatibilities with other plugins. I had this last problem in the past,
so let me know and I will reply with the solution (too lazy to search for it
right now).

On 3/5/07, Indigo [EMAIL PROTECTED] wrote:



I am trying to implement a jcarousel element on a page that is not yet
public.
The example I'm using is the one with dynamic content loading via ajax -
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

My example_dynamic_ajax.txt file looks like this:

http://www.liniverse.com/see.jpg;see|
http://www.liniverse.com/me.jpg;me|
http://www.liniverse.com/now.jpg;now|

The issue is when the page loads, the alt text is displayed in the
carousel
rather than the images. Is this an issue familiar to anyone? The
lightbox
effect still works, but without the images.

TIA

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

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


Re: [jQuery] New Plugin: clickMenu

2007-03-05 Thread Abel Tamayo

Looks good!

On 3/5/07, Roman Weich [EMAIL PROTECTED] wrote:


agent2026 schrieb:
 Just checked out the demo, but it looks good.  Think clicking the top
level
 (item 1, item 2) should toggle the menu visibility, rather than having
to
 click off the menu to make it go away.

You're right of course, haven't even thought of this. ;O
I'll add this. Thanks!

/rw

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

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


Re: [jQuery] confirm link

2007-03-05 Thread smeranda

That's perfect! Thanks James.



James Thomas wrote:
 
 Close ... try this:
 
 $(a).click(function(){return alertSave($(this).attr(href));});
 
 function alertSave(url) {
   var dataControl = $('#changedAppointments').attr(value);
   if (dataControl.length  0) {
   if (confirm(You have made changes to this date which have not 
 been
 saved.\n\nAre you sure you want to navigate from this page?)) {
   document.location = url;
   return true;
   } else return false;
   }
 }
 
 
 smeranda wrote:
 
 Still no luck, this is what I have:
 
 $(a).click(function(){alertSave($(this).attr(href));});
 
 function alertSave(url) {
  var dataControl = $('#changedAppointments').attr(value);
  if (dataControl.length  0) {
  if (confirm(You have made changes to this date which have not 
 been
 saved.\n\nAre you sure you want to navigate from this page?)) {
  document.location = url;
  } else return false;
  }
 }
 
 
 
 James Thomas wrote:
 
 You need to return false if you don't want something to happen. so if
 (confirm('whatever')) { do_whatever(); } else return false;
 
 smeranda wrote:
 
 When a user clicks a link and a form field currently has data, a
 confirmation box appears. This is close to working, but if a user
 clicks 'cancel' the browser still redirects to the a href URL. What am
 I doing wrong?
 
 $(a).click(function(){alertSave($(this).attr(href));});
 
 function alertSave(url) {
var dataControl = $('#changedAppointments').attr(value);
if (dataControl.length  0) {
if (confirm(You have made changes to this date which have not 
 been
 saved.\n\nAre you sure you want to navigate from this page?)) {
document.location = url;
}
}
 }
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/confirm-link-tf3350646.html#a9320082
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Conditional validation - validator plugin.

2007-03-05 Thread Jörn Zaefferer
Web Specialist schrieb:
 Daemach,

 Wait for the next release for Jorn's Form Validation plugin. Could be 
 a conditional validation to help us, yeahhh Jorn??? ;-)
That is already implemented, and will be available as soon as I release 
beta 1. And that should be the case in a few days at most.

About the function-in-metadata-problem: Don't to that, just define that 
function in plain JavaScript. I've got an example that shows how it 
should/could be done.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Bug when overriding links within specific context, using jQuery 1.1.*?

2007-03-05 Thread Søren Haagerup


John Resig wrote:
 
 I think this is due to the fact that no context is passed in to the
 .load() callback, in that manner. I think doing something like this
 would work:
 [...]
 That way, only the links directly within the paragraph will be overridden.
 

Great! Your solution seems to solve all problems I have had with this. Now I
can move forward to v1.1.2. Thank you very much :-).

Best regards,
Søren
-- 
View this message in context: 
http://www.nabble.com/Bug-when-overriding-links-within-specific-context%2C-using-jQuery-1.1.*--tf905.html#a9320362
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Safari Crashing

2007-03-05 Thread Nicolas Hoizey
 It's a tricky line to balance. We either get to replace 1.1.2 and
 cause some possible confusion with Safari issues (for users who
 upgraded very quickly) or push out 1.1.3 and cause more confusion
 having two releases occur in just a couple hours.

Where would be the confusion if the changelog indicates that 1.1.3  
fixes a bug?

Two releases in just a couple hours are not a shame! ;-)

Remember: Release early, release often


-Nicolas

-- 
Nicolas Brush HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002



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


Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord

I have been trying to modify the code of 
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html ajax based
jCarousel 

Your can see my modified version in  http://pastebin.ca/382683 here 

There are some texts within spans like lt;span class=lin cid=Xgt;link
1lt;/spangt;

the aim is to moidfy the content of carousel when these texts are clicked.As
you see these spans have a cid attribute.these are added to  jQuery.get URL
like xyz.php?cid=X

after click carousel content will be modified the carousel re-initiated...

how can I succeed this, waiting your suggestions...

you can modify the any part of code I wrote above...












phplord wrote:
 
 anyone can have an idea about this, I need this urgently...
 
 phplord wrote:
 
 I have the similar problem, jCarousel loads full list generated by a php
 files via DB with same format as TXT file, I try to modify the content of
 carousel by some links which sends parameters to PHP file...
 
 any improvement in this?
 
 tHanks..
 
 
 
 hxela wrote:
 
 Initially my carousel loads /foo and is fed data from the database in
 order to build the carousel.
 
 I'd like the user to be able to click on a link /foo?search=bar and have
 the carousel update with the new data.
 
 Any ideas? Would I have to destroy the carousel and re-create it passing
 in a new url? If so.. any ideas how?
 
 Any help greatly appreciated!
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-modifying-the-content-of-the-carousel-tf3253484.html#a9320519
Sent from the jCarousel mailing list archive at Nabble.com.


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


[jQuery] rewriting generic ajax jQuery style

2007-03-05 Thread Jim Wharton
Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's 
methods. (I figure, if I'm already including the jquery.js file, I may as well 
use the heck out of it.)

My current code sends a request to a php page and gets back an xml result I do 
the standard way of creating a request object(try/catch for MSXML vs XHR)

here is the code to create my request and callback:

var http =  createRequestObject(); //this just references that object I just 
created.

function ajax ( url, callback )
{
http.open ( 'get', url, true );
http.onreadystatechange = callback;
http.send(null);
}

function sendRequest() {
var url = getItems.php?cat_id= + idsource;
ajax( url, handleInfo );
}

my handleInfo function does a nice for loop based on an array(object) and 
generates table html for each record:

function handleInfo() {
if (http.readyState == 1) { 
//document.getElementById(itemtable +idsource).innerHTML = 
'h1Loading.../h1'
}
if (http.readyState == 4) {
if (http.status == 200) {   
var xmlDoc = http.responseXML.documentElement;
var output;
output = 'tabletheadtrthItems 
Available/th/tr/theadtbody';  
// Create table rows for each record
for (var i=0; i  xmlDoc.childNodes.length; i++)
{
var linkId = 
xmlDoc.getElementsByTagName('item_id').item(i).firstChild.data;
output += 'tr';
output += 'td'+linkId;
output += 'tda 
href=itemdetail.php?item_id='+linkId+' 
'+xmlDoc.getElementsByTagName('item_name').item(i).firstChild.data+'/a/td';
output += '/tr';
}
output += '/tbody/table';
document.getElementById(itemtable 
+idsource).innerHTML = output;
}
}   
 }

Ok, fairly generic routine stuff. Only problem is, I can't bend my mind around 
the way to do it in jQuery!!! I have started playing around with the .get 
method:

$(document).ready(function() {
$('#resultcontainer').accordion();
$(dt).click(function(){
idsource = $(this).attr(id);
$.get(getItems.php, {cat_id: 
idsource}, function(xml){
//build a table from xml 
results.
var output = 
'tabletheadtrthItems Available/th/tr/theadtbody';
var xmlDoc = 
xml.documentElement;
//create rows for each result.
for (var i=0; 
ixmlDoc.childNodes.length; i++)
{
var linkId = 
$(item_id, xmlDoc).item(i).firstChild.data;
output += 'tr';
output += 
'td'+linkId+'/td';
output += '/tr';
}
output += '/tbody/table';

$('#itemtable'+idsource).html(output);
});
}) 
});

but this seems to cough up errors about linkId not being a function. Am I 
at least on the right path?

What this code does is everytime one clicks on a dt element, it sends the 
request based on the id (just a number) then it submits the ajax request. 
I'm really not sure at all how to deal with the object it returns... so that's 
why you see me treating it just like I would any other xml object.

I'd be happy to post all my code but I don't want to suck up a ton of 
bandwidth... this being my first post and all that.

(In a future revision of this code, I'll actually let the accordian wait until 
the object is returned before I slide it down.)

Thanks,
-Jim


.-*** Message Scanned by Alachua County McAfee Webshield Appliance ***-.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Help with .each

2007-03-05 Thread Daemach

From the insertAfter docs: 
http://jquery.bassistance.de/api-browser/#insertAfterContent

$(p).insertAfter(#foo);  (Same as $(#foo).after(p))

Instead of inserting content, such as your div tags, after the selected
element, it inserts all of the matched elements after the given element,



Yansky wrote:
 
 Thanks Daemach  John. Both examples work fine. :)
 
 Just one last thing, I'm still a bit fuzzy on the difference between
 .after() and insertAfter(). I've gone through the documentation a number
 of times, but they still seem to do the same thing (albeit the latter in
 reverse). 
 
 
 
 .after() inserts the HTML after each link, whereas .insertAfter()
 inserts the link after each block of HTML. (An important distinction.)
 
 
 Could you (or anyone else) expand on this explanation a bit please?
 
 Danka. :)
 
 
 
 
 
 John Resig wrote:
 
 I think something like this will get you your desired result:
 $(a:not([EMAIL PROTECTED])).after(divpLorem Ipsum/p/div);
 
 .after() inserts the HTML after each link, whereas .insertAfter()
 inserts the link after each block of HTML. (An important distinction.)
 
 More information can be found here:
 http://docs.jquery.com/DOM/Manipulation
 
 --John
 
 On 3/5/07, Yansky [EMAIL PROTECTED] wrote:

 I'm trying to insert a div after all  a  elements that don't link to
 my
 site. My script is currently working like this:

 var getLinks = $(a).not($([EMAIL PROTECTED]));
 for(i=0;igetLinks.length;i++){$(divpLorem
 Ipsum/p/div).insertAfter(getLinks[i]);}

 but I'm having trouble converting it all to jQuery using .each:

 $(a).not($([EMAIL PROTECTED])).each(function()
 {$(this).html(divpLorem Ipsum/p/div).insertAfter();});

 The function only gives the raw DOM right? Not the jQuery object. So I
 have
 to use $(this) to access the jQuery objects again right?

 At the moment, the .each version inserts the div as a child node,
 rather
 than as a sibling (which is what I'm after).
 --
 View this message in context:
 http://www.nabble.com/Help-with-%22.each%22-tf3351407.html#a9319633
 Sent from the JQuery mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 
http://www.nabble.com/Help-with-%22.each%22-tf3351407.html#a9320644
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Need some guidance...

2007-03-05 Thread Christopher Jordan

Rick,

You could use Ajax, but it might be simpler to use JavaScript 
validation. The jQuery validation plugin that Daemach pointed you to 
would be an example of that. I wrote a validation plug-in myself that I 
use for a client, and it works pretty well. I think the other plug-in is 
maybe more feature-full than mine is, but that's neither here nor there.


For your calculator, I'd definitely suggest JavaScript validation. Give 
a holler if you need help with that. I've not used the big jQuery 
validation plugin, but I can show you the one I wrote, and maybe it 
would suit your needs.


Cheers,
Chris

Rick Faircloth wrote:

First question I have is about which type of validation I need:
Ajax or non-Ajax?

Here's my current jQuery code... I believe it would be classified
as Ajax, however, it doesn't mention Ajax anywhere, so I'm unsure...

function CalculateMortgage(){

var Params = {};
// select all inputs of type text
$(input:text).each(function(){
Params[$(this).attr(name)] = $(this).val();
});
  // post the form.  The Param object mimics form fields
$.post(Mortgage_Calculation.cfm, Params,
function(data){
// this is the processing function.
// append what you get back to the element
with ID = Result after clearing its contents
 $(#Result).empty().append(data);
			  } 
			);

}

I have three form fields to validate:

Principal:  Validate for entry / Validate that entry is numerical after $ ,
. are all stripped from entry.
Interest:  Validate for entry / Validate that entry is numerical
Years:  Validate for entry / Validate that entry is numerical

There are so many examples on
http://bassistance.de/jquery-plugins/jquery-plugin-validation
that I'm not sure which one is most appropriate.  I usually use RegEx to
validate the principal entry, too.

So... two questions...

Do I need the Ajax validation plug-in?
Which one of the examples would be best, or is it just a matter of style
preference.  ( I usually put
a general message at the top of the form stating that there are errors.
Then I put specific messages
above each form field.)

Thanks for any assistance and guidance!

Rick




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Monday, March 05, 2007 8:46 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Need some guidance...

Thanks, Daemach...I'll have a look at it!

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: Sunday, March 04, 2007 11:09 PM
To: discuss@jquery.com
Subject: Re: [jQuery] Need some guidance...


http://bassistance.de/jquery-plugins/jquery-plugin-validation/ :)



Rick Faircloth wrote:
  

Alright... now I've got this working very well.

The only problem I have now is validation.






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



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

  


--
http://www.cjordan.us

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


Re: [jQuery] Need some guidance...

2007-03-05 Thread Jörn Zaefferer
Rick Faircloth schrieb:
 Principal:  Validate for entry / Validate that entry is numerical after $ ,
 . are all stripped from entry.
 Interest:  Validate for entry / Validate that entry is numerical
 Years:  Validate for entry / Validate that entry is numerical

 There are so many examples on
 http://bassistance.de/jquery-plugins/jquery-plugin-validation
 that I'm not sure which one is most appropriate.  I usually use RegEx to
 validate the principal entry, too.
   
Princial: Required Add your own validation method, using the mentioned 
regex. Something like this:
$.validator.addMethod(numeric, function(value) {
return /myregex/.test(value);
});

Interest: required + number
Years: required + number

Watch out for the beta 1 release, that improves a lot of things. I see 
if I can get to improve the method examples too.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Iterating over Arrays and $(this)

2007-03-05 Thread Daemach

Use the each function to apply the click handler to each element in the
selector's array.

$(p).each(function(){
click function goes here

});



diddymao wrote:
 
 Hi all.  I'm just starting out on JQuery and I've it hit a minor
 confusion.  I have the following HTML:
 
 p id=one/p
 p id=two/p
 p id=three/p
 p id=four/p
 
 And I'd like to add an event where if you click on one, the clicked
 element gets bigger and the rest turn shrink.  So I run the following
 javascript function
 
 function()
 {
 $(p).click(function()
 {
 var selectedP = $(this);
 $(p).animate({ height: ($(this) != selectedP ? 20 : 5) },
 100);
 }
 );
 }
 
 My problem is when I run the function and click, all the elements grow
 instead of just the one.  I would guess that my usage of the statement:
 $(this) != selectedP is somehow incorrect.  I assumed that when I called
 .animate() on an array of elements, it would call the method on each
 element individually and correctly map $(this) to the current element that
 was being called.  If this is not the case, how can I get similar
 functionality?
 
 Note my current workaround code is as follows:
 function()
 {
 $(p).click(function()
 {
 var selectedP = $(this);
 selectedP.animate({ height: 20 }, 100);
 $(p).not(selectedP).animate({ height: 5 }, 100);
 }
 );
 }
 
 This does indeed work, but it just doesn't seem as nice as the former. 
 Any help appreciated! :)
 
 BTW, I am loving what I have found in JQuery so far.  I've turned a 20
 line mootools piece of code into 7 JQuery lines!  Beautiful :).
 

-- 
View this message in context: 
http://www.nabble.com/Iterating-over-Arrays-and-%24%28this%29-tf3351425.html#a9319975
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] jqModal r7 release!

2007-03-05 Thread Dmitry Rudakov

Brice,

Could you help me?
I regularly get an error in IE when my dialog (JQM) is showing:
Can't move focus to the control because it is invisible, not enabled, or of
a type that does not accept the focus.

In Firefox and Safari everything works without problems. And IE works as
well... but this error is just annoying...

thanks,
Dmitry
-- 
View this message in context: 
http://www.nabble.com/jqModal-r7-release%21-tf3277353.html#a9323848
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] rewriting generic ajax jQuery style

2007-03-05 Thread Jake McGraw

Jim,  could you post a version of the XML data you'd expect?

- jake

On 3/5/07, Jim Wharton [EMAIL PROTECTED] wrote:


Hi, I'm trying to change a bunch of handwritten Ajax stuff to use jQuery's
methods. (I figure, if I'm already including the jquery.js file, I may as
well use the heck out of it.)

My current code sends a request to a php page and gets back an xml result
I do the standard way of creating a request object(try/catch for MSXML vs
XHR)

here is the code to create my request and callback:

var http =  createRequestObject(); //this just references that object I
just created.

function ajax ( url, callback )
{
http.open ( 'get', url, true );
http.onreadystatechange = callback;
http.send(null);
}

function sendRequest() {
var url = getItems.php?cat_id= + idsource;
ajax( url, handleInfo );
}

my handleInfo function does a nice for loop based on an array(object) and
generates table html for each record:

function handleInfo() {
if (http.readyState == 1) {
//document.getElementById(itemtable +idsource).innerHTML
= 'h1Loading.../h1'
}
if (http.readyState == 4) {
if (http.status == 200) {
var xmlDoc =
http.responseXML.documentElement;
var output;
output = 'tabletheadtrthItems
Available/th/tr/theadtbody';
// Create table rows for each record
for (var i=0; i  xmlDoc.childNodes.length;
i++)
{
var linkId =
xmlDoc.getElementsByTagName('item_id').item(i).firstChild.data;
output += 'tr';
output += 'td'+linkId;
output += 'tda href=
itemdetail.php?item_id='+linkId+'
'+xmlDoc.getElementsByTagName('item_name').item(i).firstChild.data+'/a/td';
output += '/tr';
}
output += '/tbody/table';
document.getElementById(itemtable
+idsource).innerHTML = output;
}
}
}

Ok, fairly generic routine stuff. Only problem is, I can't bend my mind
around the way to do it in jQuery!!! I have started playing around with the
.get method:

$(document).ready(function() {
$('#resultcontainer').accordion();
$(dt).click(function(){
idsource = $(this).attr(id);
$.get(getItems.php, {cat_id:
idsource}, function(xml){
//build a table from xml
results.
var output =
'tabletheadtrthItems Available/th/tr/theadtbody';
var xmlDoc =
xml.documentElement;
//create rows for each
result.
for (var i=0; i
xmlDoc.childNodes.length; i++)
{
var linkId =
$(item_id, xmlDoc).item(i).firstChild.data;
output += 'tr';
output +=
'td'+linkId+'/td';
output += '/tr';
}
output +=
'/tbody/table';


$('#itemtable'+idsource).html(output);
});
})
});

but this seems to cough up errors about linkId not being a function.
Am I at least on the right path?

What this code does is everytime one clicks on a dt element, it sends
the request based on the id (just a number) then it submits the ajax
request. I'm really not sure at all how to deal with the object it
returns... so that's why you see me treating it just like I would any other
xml object.

I'd be happy to post all my code but I don't want to suck up a ton of
bandwidth... this being my first post and all that.

(In a future revision of this code, I'll actually let the accordian wait
until the object is returned before I slide it down.)

Thanks,
-Jim


.-*** Message Scanned by Alachua County McAfee Webshield Appliance ***-.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

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


[jQuery] Using datePicker as a calendar

2007-03-05 Thread Bruce McKenzie
Hello,

I'd like to use the excellent datePicker plugin to make a bigger 
calendar that displays summary data from a database for each day in the 
month. I've got it working for the first month that displays, but I 
don't know how to display new data when the user clicks on the previous 
month or next month link.

I think what I need to do is either insert a function into datePicker.js 
that makes an Ajax call, then call that function from the built-in 
changeMonth function. Or extend jQuery.datePicker with a new method that 
includes changeMonth.

I'm not clear on how to do either -- or whether there's a better way.

Thanks,

Bruce

http://www.2MinuteExplainer.com

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


Re: [jQuery] jcarousel issue

2007-03-05 Thread Indigo

The code is exactly what you'll find by viewing the source at  
http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html . I only 
changed the image and ajax.txt file paths.

If you, however, look at the content of example_dynamic_ajax.html, you'll find 
lines like these (pay attention to the names of the files) :

http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg;Flower1|
http://static.flickr.com/75/199481072_b4a0d09597_s.jpg;Flower2|

My file names are simpler and look like these:

 http://www.liniverse.com/see.jpg;see|
 http://www.liniverse.com/me.jpg;me|

I've checked and double-checked the file paths and I find no problems there, 
But looking at the js in the example, I find this section that seems to be 
performing a replacement trick on the file names:

snip
 .

function getItemHTML(data)
{
var split = data.split(;);
var url   = jQuery.trim(split[0]);
var title = jQuery.trim(split[1]);
var url_m = url.replace(/_s.jpg/g, '_m.jpg');
return 'a href=' + url_m + ' title=' + title + ' 
class=thickboximg src=' + url + ' width=' + 75 + ' height=' + 75 + 
' alt=' + title + ' //a';
};


--/snip

I'm not a coder, so I do not know how to customize the above code snippet for 
my specific case.  i think the offending lines are these: 

 var url_m = url.replace(/_s.jpg/g, '_m.jpg');
return 'a href=' + url_m + ' title=' + title + '


'll appreciate any help.

TIA


On Monday 05 March 2007 14:35, Marshall Salinger wrote:
 Can you post some sample code? It sounds like the paths to your images
 is wrong.

 -Marshall

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Indigo
 Sent: Monday, March 05, 2007 12:23 PM
 To: discuss@jquery.com
 Subject: [jQuery] jcarousel issue


 I am trying to implement a jcarousel element on a page that is not yet
 public.
 The example I'm using is the one with dynamic content loading via ajax -

 http://sorgalla.com/projects/jcarousel/example_dynamic_ajax.html .

 My example_dynamic_ajax.txt file looks like this:

 http://www.liniverse.com/see.jpg;see|
 http://www.liniverse.com/me.jpg;me|
 http://www.liniverse.com/now.jpg;now|

 The issue is when the page loads, the alt text is displayed in the
 carousel
 rather than the images. Is this an issue familiar to anyone? The
 lightbox
 effect still works, but without the images.

 TIA

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


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

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


Re: [jQuery] jqModal and AJAX

2007-03-05 Thread Robert Vlaicu
I have a problem with rebinding jqModal when i load main content via ajax
i really run out of ideas jqModal is last version jquery the same
i whant to use the jqModal to load product description and the produtas are 
loaded with ajax.

$(document).ready(
function()
{

var addClickHandlers = function() {

$('#ex1a').jqm({
ajax: '@href',
//ajax: 'web/pagini/prod.php',
trigger: 'a.jqmodalfer',
overlayColor: '#fff',
overlay: 65,
modal:true,
  onShow: open,
  onHide: close});
};

addClickHandlers();

$('#meniucontent a.linc')
.bind(
'click',
function() {
var href, a, afost, campt;
afost=false;
a = this.href.split(=);
href = a[1];
campt=this.firstChild.data;
$('#capmeniuprod').empty();
$('#capmeniuprod').append(campt);
$('#layerprod').empty();
$('#layerprod').append(div 
style=\position:absolute;margin-top:10px;margin-left:10px;\img 
src=\imagini/busy.gif\ alt=\loading\ //div);
  if ($('#contsus').is(':visible')) {

$('#contsus').slideUp(1500,function(){functiebagnor(href,695px);});
afost=true;
  }
if (afost==false)
{
functiebagnor(href,695px);
}

return false;
});

var functiebagnor = function(lincu, marime) {
$('#layerprod').css(min-height,marime);
$('#layerprod').empty();

$(#layerprod).load(web/pagini/produsea.php,{catid:lincu},function(){addClickHandlers();});
}

});

  var open= function(hash) {hash.w.slideDown(fast, function(){
hash.w.fadeTo(680,1);
});
}  

  var close=function(hash) {
hash.w.fadeTo(680,0.15,function(){ 
hash.w.slideUp(normal,function() {
hash.o.remove();
}); 
});
}








 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Need some guidance...

2007-03-05 Thread Rick Faircloth
Thanks for the guidance, Chris.  I'll have a look at
the code and see what I can do!
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Jordan
Sent: Monday, March 05, 2007 4:41 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Need some guidance...
 
Rick,

You could use Ajax, but it might be simpler to use JavaScript validation.
The jQuery validation plugin that Daemach pointed you to would be an example
of that. I wrote a validation plug-in myself that I use for a client, and it
works pretty well. I think the other plug-in is maybe more feature-full than
mine is, but that's neither here nor there.

For your calculator, I'd definitely suggest JavaScript validation. Give a
holler if you need help with that. I've not used the big jQuery validation
plugin, but I can show you the one I wrote, and maybe it would suit your
needs.

Cheers,
Chris

Rick Faircloth wrote: 
First question I have is about which type of validation I need:
Ajax or non-Ajax?
 
Here's my current jQuery code... I believe it would be classified
as Ajax, however, it doesn't mention Ajax anywhere, so I'm unsure...
 
function CalculateMortgage(){
 
var Params = {};
// select all inputs of type text
$(input:text).each(function(){
Params[$(this).attr(name)] = $(this).val();
});
   // post the form.  The Param object mimics form fields
 $.post(Mortgage_Calculation.cfm, Params,
function(data){
 // this is the processing function.
 // append what you get back to the element
with ID = Result after clearing its contents
  $(#Result).empty().append(data);
   } 
 );
}
 
I have three form fields to validate:
 
Principal:  Validate for entry / Validate that entry is numerical after $ ,
. are all stripped from entry.
Interest:  Validate for entry / Validate that entry is numerical
Years:  Validate for entry / Validate that entry is numerical
 
There are so many examples on
http://bassistance.de/jquery-plugins/jquery-plugin-validation
that I'm not sure which one is most appropriate.  I usually use RegEx to
validate the principal entry, too.
 
So... two questions...
 
Do I need the Ajax validation plug-in?
Which one of the examples would be best, or is it just a matter of style
preference.  ( I usually put
a general message at the top of the form stating that there are errors.
Then I put specific messages
above each form field.)
 
Thanks for any assistance and guidance!
 
Rick
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Monday, March 05, 2007 8:46 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Need some guidance...
 
Thanks, Daemach...I'll have a look at it!
 
Rick
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: Sunday, March 04, 2007 11:09 PM
To: discuss@jquery.com
Subject: Re: [jQuery] Need some guidance...
 
 
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ :)
 
 
 
Rick Faircloth wrote:
  
Alright... now I've got this working very well.
 
The only problem I have now is validation.

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



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


[jQuery] Auto Vertical Scroller newsBlock div

2007-03-05 Thread {js}sTyler

Hi All,
   Anyone have any tips for me to do a sort of news scroll vertical
scrolling div?
Mine is here:
http://70.133.226.219/v2/07index.aspx

It's beneath the jquery buttons in the left column.
It is scrolling up or sort of ticking up, if you give it a few seconds you
will see the headlines tick up.
I know the Css styling isn't quite right yet to tell the headlines apart
from each other, but that's a cinch to fix.

I tried implementing JD Sharp's code from here:
http://jdsharp.us/code/jQuery/plugins/jdNewsScroll/
It's sort of working but not really scrolling.

Any ideas to fix this or another setup, I don't really like the headline
reader that scrolls up quickly to the top and pauses, a plain old smooth
scroller would probably be best.

DynamicDrive has quite a few of those, but they haven't been jQuery-ized,
and I don't quite get how to lay the smack down on my own original coding
yet, or anywhere near that skill level of coding :(
I've used this one in the past for example:
http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm
The scripts in this dynamic drive example add around 22k of js code...
The jquery.dimensions.js from jd's example is just over 10k, my page is
getting heavy fast with so many client requests for animation.
Thanks for any suggestions!
-- 
View this message in context: 
http://www.nabble.com/Auto-Vertical-Scroller-newsBlock-div-tf3352363.html#a9322596
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] How to find a div with a class ending with a string?

2007-03-05 Thread Karl Swedberg

Dave,

You can find all of this information in the documentation at
http://docs.jquery.com/Selectors


 Supported, but different

All attribute selectors are written like their XPath counter-parts  
(in that all attributes should begin with an @ symbol).


* [EMAIL PROTECTED] an E element with a foo attribute
* [EMAIL PROTECTED] an E element whose foo attribute value is  
exactly equal to bar
* [EMAIL PROTECTED] an E element whose foo attribute value begins  
exactly with the string bar
* [EMAIL PROTECTED] an E element whose foo attribute value ends  
exactly with the string bar
* [EMAIL PROTECTED] an E element whose foo attribute value  
contains the substring bar


So, in your case, you could do something like this:

$('[EMAIL PROTECTED]', this)

Hope that helps.

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



On Mar 5, 2007, at 5:07 PM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:



Hi,

This mailing list has been great and helped me figure out how to  
find elements starting with a pattern ...


$(this).find([EMAIL PROTECTED]);

My question now is how to find elements ending with a pattern.   
Specifically, I'm trying to find all DIVs that are within $(this)  
whose class ends with -1.


Thanks, - Dave

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


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


Re: [jQuery] Auto Vertical Scroller newsBlock div

2007-03-05 Thread Karl Swedberg

Hi there,

I did something like this a while ago. Not sure if it's exactly what  
you're looking for, but it might get your closer:

http://www.learningjquery.com/2006/10/scroll-up-headline-reader

Glen Lipka used the code for a mockup of the Intuit home page when he  
was working there. His version looks much prettier than mine. :) Look  
at the bottom right box:

http://glenlipka.kokopop.com/jQuery/intuit.com/

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



On Mar 5, 2007, at 5:56 PM, {js}sTyler wrote:



Hi All,
   Anyone have any tips for me to do a sort of news scroll vertical
scrolling div?
Mine is here:
http://70.133.226.219/v2/07index.aspx

It's beneath the jquery buttons in the left column.
It is scrolling up or sort of ticking up, if you give it a few  
seconds you

will see the headlines tick up.
I know the Css styling isn't quite right yet to tell the headlines  
apart

from each other, but that's a cinch to fix.

I tried implementing JD Sharp's code from here:
http://jdsharp.us/code/jQuery/plugins/jdNewsScroll/
It's sort of working but not really scrolling.

Any ideas to fix this or another setup, I don't really like the  
headline
reader that scrolls up quickly to the top and pauses, a plain old  
smooth

scroller would probably be best.

DynamicDrive has quite a few of those, but they haven't been jQuery- 
ized,
and I don't quite get how to lay the smack down on my own original  
coding

yet, or anywhere near that skill level of coding :(
I've used this one in the past for example:
http://www.dynamicdrive.com/dynamicindex2/mikescroll.htm
The scripts in this dynamic drive example add around 22k of js code...
The jquery.dimensions.js from jd's example is just over 10k, my  
page is

getting heavy fast with so many client requests for animation.
Thanks for any suggestions!
--
View this message in context: http://www.nabble.com/Auto-Vertical- 
Scroller-newsBlock-div-tf3352363.html#a9322596

Sent from the JQuery mailing list archive at Nabble.com.


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


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


Re: [jQuery] jqModal r7 release!

2007-03-05 Thread Chris Domigan

Brice,

re $.jqm.hash. I'm getting an error that there is no such property. Doing an
inspection of the object $.jqm in firebug shows only two properties - .open
and .close.

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


[jQuery] Finding an element based on a partial string

2007-03-05 Thread Rey Bango
Hi guys,

Say I have 3 form elements (type input/text) with a DIV called cart:

qty_1
qty_2
qty_3

If I wanted to find all form elements within the div cart that started 
with the string qty_, how would I do that?

Rey...

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


Re: [jQuery] Dynamically modifying the content of the carousel

2007-03-05 Thread phplord

I need guidance for help...



hxela wrote:
 
 Initially my carousel loads /foo and is fed data from the database in
 order to build the carousel.
 
 I'd like the user to be able to click on a link /foo?search=bar and have
 the carousel update with the new data.
 
 Any ideas? Would I have to destroy the carousel and re-create it passing
 in a new url? If so.. any ideas how?
 
 Any help greatly appreciated!
 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-modifying-the-content-of-the-carousel-tf3253484.html#a9322909
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] Finding an element based on a partial string

2007-03-05 Thread Matt Stith

Check out the 'selectors' page in the docs.

http://docs.jquery.com/DOM/Traversing/Selectors


  - [EMAIL PROTECTED] an E element with a foo attribute
  - [EMAIL PROTECTED] an E element whose foo attribute value is exactly
  equal to bar
  - [EMAIL PROTECTED] an E element whose foo attribute value begins
  exactly with the string bar
  - [EMAIL PROTECTED] an E element whose foo attribute value ends exactly
  with the string bar
  - [EMAIL PROTECTED] an E element whose foo attribute value contains the
  substring bar


So in your case, if your searching by name, try [EMAIL PROTECTED]'qty_']
On 3/5/07, Rey Bango [EMAIL PROTECTED] wrote:


Hi guys,

Say I have 3 form elements (type input/text) with a DIV called cart:

qty_1
qty_2
qty_3

If I wanted to find all form elements within the div cart that started
with the string qty_, how would I do that?

Rey...

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

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


[jQuery] Charting or plotting coming?

2007-03-05 Thread Bernardo Telles
Excellent! I'll keep my eyes open! 

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


Re: [jQuery] Finding an element based on a partial string

2007-03-05 Thread Kenneth

I'll give it a newbie try!

$('[EMAIL PROTECTED]').(...);

or maybe:

$('[EMAIL PROTECTED]', '#cart').(...);

Just guessing here though.

On 3/5/07, Rey Bango [EMAIL PROTECTED] wrote:


Hi guys,

Say I have 3 form elements (type input/text) with a DIV called cart:

qty_1
qty_2
qty_3

If I wanted to find all form elements within the div cart that started
with the string qty_, how would I do that?

Rey...

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

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


  1   2   >