[jQuery] Re: OT: Firefox 3 RC1 for Mac

2008-05-20 Thread Klaus Hartl

To starting the profile manager, open terminal and enter:

/Applications/Firefox.app/Contents/MacOS/firefox -P

Or start with a profile immediately:

/Applications/Firefox.app/Contents/MacOS/firefox -P firefox2

Replace Firefox.app with what you called the bundle for FF2.

--Klaus


On May 19, 11:39 pm, Collin Allen [EMAIL PROTECTED] wrote:
 Firefox 2 and 3 can co-exist so long as their app bundles are in
 separate places (or even just named differently in the same place).
 For example, I have FF 2.0 in /Applications, and FF 3.0rc1 in ~/
 Applications/, my user's apps folder.  They share the same profile, so
 you'll be doing a lot of extension-update-checking between launches,
 but you might even be able to make a new profile for one or the other,
 then use the -P command line switch to force each to use separate
 profiles.  I'm not sure how to do that last bit on the Mac, though --
 should be in Mozilla documentation somewhere...

 HTH

 ~ Collin

 On May 19, 2:18 pm, Shelane [EMAIL PROTECTED] wrote:

  Is there a way to install Firefox 3 RC1 without affecting FF2 on a
  Mac.

  The release notes have this message: Please note that installing
  Firefox 3 will overwrite your existing installation of Firefox on Mac
  OS X and Linux.

  I'm guessing that's if you simply install it into the Applications
  folder.  If I install it in another folder within the Applications
  folder, will it be ok?  If it's using this same directory for it's
  support files (~/Library/Application Support/Firefox) can it still
  affect FF2?

  I have to keep FF2 because it's the officially supported browser at
  work.  But I would love to install FF3 to start testing on my apps.


[jQuery] Re: Multiple Load Callback

2008-05-20 Thread Michael Geary

You can bundle up that logic in a clean way with code like this:

function multiLoad( arglist, callback ) {
var results = [], n = arglist.length;
$.each( arglist, function( i, arg ) {
$( arg[0] ).load( arg[1], arg[2], function() {
results[i] = arguments;
if( ! --n ) callback( results );
});
});
}

Call it like this (I assume your { VAR: var } objects are placeholders for
actual argument objects):

multiLoad(
[
[ '#div1', 'scripts/generateA.php', { VAR: var } ],
[ '#div2', 'scripts/generateB.php', { VAR: var } ],
[ '#div3', 'scripts/generateC.php', { VAR: var } ],
[ '#div4', 'scripts/generateD.php', { VAR: var } ]
],
function( results ) {
// all done - results is an array of the argument arrays
// from the original callbacks, in the same order as they
// are listed in this multiLoad call
}
);

That does a little more than you need, since you don't care about the
callback function arguments, but it only adds one line of code in
multiLoad() to support those arguments anyway.

This is untested code, but it's almost identical to working code I've used
for the same purpose in other situations - so barring typos it has a fair
chance of working.

-Mike

 -Original Message-
 From: jquery-en@googlegroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of FreeKill
 Sent: Monday, May 19, 2008 2:07 PM
 To: jQuery (English)
 Subject: [jQuery] Re: Multiple Load Callback
 
 
 That would chain them all together though right, rather than 
 fire them all off at the same time?
 
 I was thinking of doing something maybe like this...
 
 var processesCompleted = 0;
 var processesTotal = 4;
 
 $(#div1).load( scripts/generateA.php, {VAR: var}, function( ) {
  processesCompleted++;
  performFinal( processesCompleted, processesTotal ); });
 
 $(#div2).load( scripts/generateB.php, {VAR: var}, function( ) {
  processesCompleted++;
  performFinal( processesCompleted, processesTotal ); });
 
 etc etc
 
 function performFinal( completed, total ) {
  if( completed == total ) {
  // Do Final Work
  }
 }
 
 I know it's kind of nasty, but I think it might work. It 
 would be nice if there was some kind of queue structure that 
 could be passed 4 calls and have a callback that waits for 
 all 4 to finish...
 
 On May 19, 4:52 pm, Alexandre Plennevaux [EMAIL PROTECTED]
 wrote:
  here is how i would try it, simply using the load() 
 function built-in 
  callback parameter
 
  $(#div1).load( scripts/generateA.php, {VAR: var} ,function(){ 
  $(#div2).load( scripts/generateB.php, {VAR: var}, function(){ 
  $(#div3).load( scripts/generateC.php, {VAR: var}, function(){ 
  $(#div4).load( scripts/generateD.php, {VAR: var} );
 
 
 
  } );
  }
   );
  });
  On Mon, May 19, 2008 at 10:39 PM, FreeKill 
 [EMAIL PROTECTED] wrote:
 
   Hi,
 
   I'm thinking there is something I'm just overlooking, but I hope 
   someone can help...
 
   I have a set of load calls that are each made at document load:
 
   $(#div1).load( scripts/generateA.php, {VAR: var} ); 
   $(#div2).load( scripts/generateB.php, {VAR: var} ); 
   $(#div3).load( scripts/generateC.php, {VAR: var} ); 
   $(#div4).load( scripts/generateD.php, {VAR: var} );
 
   What I want to do is make a 5th load call, but only once the 
   previous
   4 are completed. Is there a way to wrap a block of calls in a way 
   that a Callback function is called when they call complete?
 
   I can think of some other, less optimal ways of getting this 
   accomplished, but I'm hoping someone might know how to do 
 it the way 
   I've got it going now.
 
   Any suggestions? Your help is appreciated...
 
  --
  Alexandre Plennevaux
  LAb[au]
 
  http://www.lab-au.com
 



[jQuery] multiple inits on multiple script includes

2008-05-20 Thread [EMAIL PROTECTED]

Hi folks!

It would be great if jquery would catch multiple script includes and
initialize only once.

for example

html
 head
   script type=text/javascript src=jquery-1.2.4.js/script
   script type=text/javascript src=jquery-1.2.4.js/script
   script type=text/javascript src=jquery-1.2.4.js/script
  /head
/html

will initialize jquery three times...

- simple fix -

if(!jQueryInitialized)
{
  // stuff
  jQueryInitialized = true
}


[jQuery] auto populate

2008-05-20 Thread konda

I am looking for some code to  auto populate (Auto complete )   the
dropdown boxes using the jquery and struts , If you have any idea
please let me know.


[jQuery] .html() behaving differently in IE7

2008-05-20 Thread Jon Reed

Hi,

I'm trying to find out if this behaviour is correct, or if its
something that i should submit as a bug.
Using .html() works perfectly fine in all browsers, providing that the
html your inserting is valid. eg.

$(body).find('#id1').html(divtest content/div).show();
// alert($('#id1').html()) == 'divtest content/div'


However, if i want to insert html which is invalid (just withing the
string), but still might keep the total DOM valid by performing
another insert immediately, then in IE7 only, it refuses to insert the
html. eg.

$(body).find('#id1').html(divtest content/div/div).show();
// alert($('#id1').html()) == ''

Is this something that jQuery is deliberately doing, or is this a bug?
Because, like i say, it works fine in Firefox.

J


[jQuery] sort table by class

2008-05-20 Thread Luciano

hi,
i want create sort table in 3 tables byclass

the code:
$(.box table).tableSorter({
sortColumn: 'name',
sortClassAsc: 'header-asc',
sortClassDesc: 'header-desc',
highlightClass: 'highlight',
headerClass: 'header',
});

but, return ERROR:
$(.caixa table).tableSorter is not a function



[jQuery] Re: [AutoComplete]

2008-05-20 Thread ChrisLongden

Thank you, Jörn.

One other (small) thing I have noticed - if you use .focus() to give
the input textarea focus when the page loads, the auto-complete does
not work until you physically click the mouse in the textarea. Is
there a known fix for this? I'd like to be able to have the page load
with focus on the input textarea.

Many thanks,
Chris.

On May 19, 10:29 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 Rather undocumented: The formatItem-option can be used as a filter. If
 it returns false for a value (instead of the formatted value), the
 value isn't displayed.

 Jörn



 On Sun, May 18, 2008 at 9:36 PM, ChrisLongden [EMAIL PROTECTED] wrote:

  Hi,

  I am using the brilliantautocompletefunctionality available here
  (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/)

  I am using the 'Multiple Birds (remote)' version from the demo. I
  can't see anything in the documentation about removing items that the
  user has already selected from theautocompletelist. Is this
  something I need to do manually, or is there a setting that I can
  tweak?

  Many thanks,
  Chris.- Hide quoted text -

 - Show quoted text -


[jQuery] Re: Fade out the whole page before loading next page

2008-05-20 Thread Sid

Hamish,

Does the window.location wait for the fade animation to complete? I
currently use a setTimeout to load data into a div container after the
fade in animation has completed, else while the div is fading in, the
loaded data shows through.



On May 20, 9:26 am, Hamish Campbell [EMAIL PROTECTED] wrote:
 You have to intercept clicks on links, store the href while the page
 fades then redirect to that address:

 $(document).ready(function(){
     $('a').click(function() {
         var target = $(this).attr('href');
         $('body').fadeOut('slow', function() {
             window.location = target;
         });
     return false
     });

 });

 Tested IE7, seems to work fine :)

 On May 20, 11:57 am, Anabelle [EMAIL PROTECTED] wrote:



  I need to add a simple effect to my website but I've been searching
  all afternoon with no luck, hope someone can help me.

  I need to add a Fade out effect to the entire page whe the user clicks
  a link leaving the current page.

  How can I do it?- Hide quoted text -

 - Show quoted text -


[jQuery] .getJSON (how to pass a value of string instead of a physical file)

2008-05-20 Thread george.hcn

Hi all,

I have a newbie question.
I'm getting a c# string in JSON format and I would like to pass it
to jQuery

$.getJSON(jsondata.js, dataReady);

However, the getJSON's first parameter takes a physical file, is
there anyway I can send string to the function instead of file?

e.g.  $.getJSON(%=jsonString%, dataReady);

thx guys,
George


[jQuery] reflect.js question

2008-05-20 Thread Davis

Hi,

a very simple html with reflection

a href='img src=abc.jpg class=reflect/a

once call reflection JS, it taken effect of the image, but href
feature are disappear, why?

thanks/Davis.


[jQuery] attr difference in Firefox and IE7

2008-05-20 Thread Sid

Hi,

I'm using the .attr() to set attributes of an img tag.

This works in Firefox 2.0.0.14 but not in Internet Explorer 7.

The offending piece of code is

$('#preview').livequery(function() {
$('#preview').attr('src',previewImage);
$('#preview').attr('width','302px');
$('#preview').attr('height','188px');
return false;
});

Works in FF but in IE, only the src is changed. The width and height
remain unaffected.
To see, check http://sid-deswal.110mb.com and click on 'Themes'

And I can't understand the IE error message which says

Line: 5
Char: 1
Error: Object Expected
Code: 0

Regards


[jQuery] tooltip - highlighting when a formfield is reached by a tab

2008-05-20 Thread casavecchio

Hello,

the default behavior of the tooltip to highlight mouseover a formfield
is nice and desired. But the tooltip should appear too, when a
formfield is accessed by a tab.

Is there a way to check which way a field was accessed and change the
behavior?

Regards Boris



[jQuery] Sometimes my dynamic content doesn't load - please help!

2008-05-20 Thread Ry

Hi,

I've got a series of pages with different stylesheets and
different jquery content occurring.  In Fx 2 on my mac things are
fine, I can click all of the links and pages load just fine.  In
Safari, every time I click a link for the first time I get a white
flash and none of the content that is displayed dynamically by jquery
is displayed.  However the second time I click a link the pages load
just fine and on all subsequent loads until the browser is restarted.
In Fx 3 on my mac I have the same problem except without the white
flash and it only occurs consistently on one particular page!
I'm using $(document).ready to load all of my jquery code - is
this wrong?  I use it to setup my page and setup event handlers for
various clicks and mouseovers.  What I basically do is have Joomla
insert all page content into a hidden div element, I then use Jquery
to put that content where I want it and setup neat animations and
such.
I searched the web for a solution to my problems and came up with
one possibility - the white flashes on Safari can be caused by the
stylesheet not having loaded fully, does anyone know if this is the
problem?  If it is does anyone know how it can be fixed?
Please help, I don't know what I'm doing wrong and I don't know
how to craft the perfect search to reveal the answer!

Kind regards,

Ryan.


[jQuery] .css question

2008-05-20 Thread Davis

Hi,

i got a simple html

a href=abc
img id=xxx src={$image_dir}mu_ad_space.png  border=0 alt= /
/a

once i applied $('#xxx').css({position:'absolute',top:'250px'}), it
taken effect, but why href are disappear?

appreciated for any input.

Thanks/Davis.


[jQuery] jQuery.Post behavior for JSON

2008-05-20 Thread Micah Sutton

I've been playing with JSON a while, and noticed something odd.

when you make a $.getJSON call, you get a nice happy object returned.
However, when calling $.post, the returned data is never evaluated.
While it is a simple task to make this into a happy little object, it
seems to me that the behavior of these two functions is confusing. It
isn't explained in the docs that the returned data in a $.getJSON call
is automatically evaluated while that of the $.post is not. Please
note that even if you specify the return type as json it is still
not evaluated. If you specify the type as json it seems like it should
be processed. Or at least some sort of standard across the board
should occur.

assuming that json.php returns a valid JSON object

alert box that shows an object
$.getJSON(http://test.com/json.php;, function(data){ alert(data); })

alert box with a string of the JSON
$.post(http://teset.com/json.php;, function(data){ alert(data); },
json)

The only things that I noted as different was that the request headers
of the $.getJSON had a content-type of text/xml while the $.post had
no content type.


[jQuery] Only Acept Number and . or ,

2008-05-20 Thread Don Quijote de Nicaragua

I need to create a input, but only acept numer or this caracter . or
,

Español.
Necesito crear un input, pero que únicamente acepte números o los
caracteres . ò ,.
Gracias.

Don Quijote de Nicaragua.
Elder Soto.


[jQuery] Re: jqDock can embed flash/video object?

2008-05-20 Thread Davis

i think it will be very useful if can includes video/flash, too bad if
it is an tech issue.
thanks for your reply.

Thanks/Davis.

On May 20, 6:05 am, Wizzud [EMAIL PROTECTED] wrote:
 Not at present ... and to be honest it hasn't been considered.

 On May 19, 4:53 am, Davis [EMAIL PROTECTED] wrote:



  Hi all,

  Beside img object, is it possible to embed a flash/video object? eg
  swf or youtube video ?

  Thanks/Davis.- Hide quoted text -

 - Show quoted text -


[jQuery] Re: [AutoComplete]

2008-05-20 Thread ChrisLongden

Additionally, I have noticed that this seems to be a problem in
FireFox, not in IE7.

Many thanks,
Chris.

On May 20, 8:16 am, ChrisLongden [EMAIL PROTECTED] wrote:
 Thank you, Jörn.

 One other (small) thing I have noticed - if you use .focus() to give
 the input textarea focus when the page loads, the auto-complete does
 not work until you physically click the mouse in the textarea. Is
 there a known fix for this? I'd like to be able to have the page load
 with focus on the input textarea.

 Many thanks,
 Chris.

 On May 19, 10:29 pm, Jörn Zaefferer [EMAIL PROTECTED]
 wrote:

  Rather undocumented: The formatItem-option can be used as a filter. If
  it returns false for a value (instead of the formatted value), the
  value isn't displayed.

  Jörn

  On Sun, May 18, 2008 at 9:36 PM, ChrisLongden [EMAIL PROTECTED] wrote:

   Hi,

   I am using the brilliantautocompletefunctionality available here
   (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/)

   I am using the 'Multiple Birds (remote)' version from the demo. I
   can't see anything in the documentation about removing items that the
   user has already selected from theautocompletelist. Is this
   something I need to do manually, or is there a setting that I can
   tweak?

   Many thanks,
   Chris.- Hide quoted text -

  - Show quoted text -


[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread Jon Reed

I would upgrade to the latest version of jQuery, there's a few
attribute bugfixes that could help

J

On May 20, 6:01 am, Sid [EMAIL PROTECTED] wrote:
 Hi,

 I'm using the .attr() to set attributes of an img tag.

 This works in Firefox 2.0.0.14 but not in Internet Explorer 7.

 The offending piece of code is

 $('#preview').livequery(function() {
         $('#preview').attr('src',previewImage);
         $('#preview').attr('width','302px');
         $('#preview').attr('height','188px');
         return false;

 });

 Works in FF but in IE, only the src is changed. The width and height
 remain unaffected.
 To see, checkhttp://sid-deswal.110mb.comand click on 'Themes'

 And I can't understand the IE error message which says

 Line: 5
 Char: 1
 Error: Object Expected
 Code: 0

 Regards


[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread Karl Swedberg


Hi Sid,

yeah, IE error messages are rarely helpful.

You might want to try using the .css() method for width and height,  
rather than the .attr() method:


$('#preview').livequery(function() {
$('#preview')
.attr('src',previewImage)
.css({width: '302px', height: '188px'});
return false;
});

Hope that helps.

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



On May 20, 2008, at 1:01 AM, Sid wrote:



Hi,

I'm using the .attr() to set attributes of an img tag.

This works in Firefox 2.0.0.14 but not in Internet Explorer 7.

The offending piece of code is

$('#preview').livequery(function() {
$('#preview').attr('src',previewImage);
$('#preview').attr('width','302px');
$('#preview').attr('height','188px');
return false;
});

Works in FF but in IE, only the src is changed. The width and height
remain unaffected.
To see, check http://sid-deswal.110mb.com and click on 'Themes'

And I can't understand the IE error message which says

Line: 5
Char: 1
Error: Object Expected
Code: 0

Regards




[jQuery] Re: reflect.js question

2008-05-20 Thread Davis

OOps...this suitation not work in IE, but FF2 are work fine.
is it a IE limitation? or anything wrong of my html?

On May 20, 6:15 pm, Davis [EMAIL PROTECTED] wrote:
 Hi,

 a very simple html with reflection

 a href='img src=abc.jpg class=reflect/a

 once call reflection JS, it taken effect of the image, but href
 feature are disappear, why?

 thanks/Davis.


[jQuery] Re: sort table by class

2008-05-20 Thread Christian Bach
Hi,
The plugin name changed with the 2.0 release to .tablesorter().

Check out the docs @ http://tablesorter.com

/Christian

2008/5/20 Luciano [EMAIL PROTECTED]:


 hi,
 i want create sort table in 3 tables byclass

 the code:
$(.box table).tableSorter({
sortColumn: 'name',
sortClassAsc: 'header-asc',
sortClassDesc: 'header-desc',
highlightClass: 'highlight',
headerClass: 'header',
});

 but, return ERROR:
 $(.caixa table).tableSorter is not a function




[jQuery] Re: JQuery Tablesorter can't sort number in Coldfusion

2008-05-20 Thread Christian Bach
Bettina, try downloading the latest development version:
http://jqueryjs.googlecode.com/svn/trunk/plugins/tablesorter/2.0/

And see if it fixes the problem, there is a bug in the 2.0.3 version that
doesn't auto detect number if the equal zero.

/Christian


2008/5/20 Hamish Campbell [EMAIL PROTECTED]:

 H... CF might be causing the problem, but you'll still be able to
 see it in the generated code.

 Can you compare the output with and without cfoutput - the
 difference should give you a clue as to why it isn't working.

 On May 19, 11:59 pm, Bettina [EMAIL PROTECTED] wrote:
  Hi
 
  Yeah of course. Here i posted a picture how the table looks like:
 http://www.onebyte.ch/tablesorter.jpg
 
  But it must be a Problem with ColdFusion because wenn i leave the
  cfoutput away, and write the table and content by hand, the problem
  ist gone and its working. Its really weard.
 
  And the code from the site looks like this:
  link rel=stylesheet type=text/css href=http://192.168.88.5/
  OneTool4/site/scripte/tablesorter/themes/blue/style.css
 
  script language=javascript src=http://192.168.88.5/OneTool4/site/
  scripte/tablesorter/jquery.tablesorter.js/script
 
  script language=javascript
  $(document).ready(function() {
  // extend the default setting to always include the zebra
 widget.
  $.tablesorter.defaults.widgets = ['zebra'];
 
  // extend the default setting to always sort on the
 second column
  $.tablesorter.defaults.sortList = [[3,1]];
 
  $(table).tablesorter({
  // pass the headers argument and assing a object
  headers: {
  // assign the fourth column (we start counting zero)
  5: {
  // disable it by setting the property sorter to false
  sorter: false
  }
  }
  });});
 
  /script
 
  table class=tablesorter cellspacing=1
 
  thead
  tr
  th width=25nbsp;/th
 
  th width=70Datum/th
 
  th width=250Titel/th
 
  th width=150Gefahrene Kilometer/th
 
  th nowrap=nowrapKategorie/th
 
  th width=17nbsp;/th
 
  /tr
  /thead
 
  tbody
  tr
  td align=center
  a
 href=act_change_param.cfm?param=statusvalue=0id=78img
  src=../images/status_aktiv.gif alt=aktiv, sichtbar title=aktiv,
  sichtbar border=0 //a
  /td
 
  td
 align=center13.02.2008/td
 
  tda
 href=index.cfm?incl=dsp_reise_auto_editedit=78Superman
  2/a/td
 
  td align=center0/td
 
  tdSchweiz/td
 
  td
  a
 href=act_reise_auto_del.cfm?del=78
  onClick=javascript:return confirm('Wollen Sie diesen Eintrag wirklich
  louml;schen?'); 
  img
 src=../images/del.gif width=17 height=20 border=0
  alt=Eintrag louml;schen title=Eintrag louml;schen
  /a/td
  /tr
 
  tr
 
  td align=center
  a
 href=act_change_param.cfm?param=statusvalue=0id=85img
  src=../images/status_aktiv.gif alt=aktiv, sichtbar title=aktiv,
  sichtbar border=0 //a
  /td
 
  td
 align=center01.01.2008/td
 
  tda href=index.cfm?
  incl=dsp_reise_auto_editedit=85Abschiebsparty/a/td
 
  td align=center0/td
 
  tdSchweiz/td
 
  td
  a
 href=act_reise_auto_del.cfm?del=85
  onClick=javascript:return confirm('Wollen Sie diesen Eintrag wirklich
  louml;schen?'); 
  img
 src=../images/del.gif width=17 height=20 border=0
  alt=Eintrag louml;schen title=Eintrag louml;schen
  /a
  /td
  /tr
 
  tr
  td align=center
  a
 href=act_change_param.cfm?param=statusvalue=0id=87img
  src=../images/status_aktiv.gif alt=aktiv, sichtbar title=aktiv,
  sichtbar border=0 //a
  

[jQuery] Re: [AutoComplete]

2008-05-20 Thread Jörn Zaefferer

Thats a known bug, not solved, yet. It has top priority!

Jörn

On Tue, May 20, 2008 at 12:57 PM, ChrisLongden [EMAIL PROTECTED] wrote:

 Additionally, I have noticed that this seems to be a problem in
 FireFox, not in IE7.

 Many thanks,
 Chris.

 On May 20, 8:16 am, ChrisLongden [EMAIL PROTECTED] wrote:
 Thank you, Jörn.

 One other (small) thing I have noticed - if you use .focus() to give
 the input textarea focus when the page loads, the auto-complete does
 not work until you physically click the mouse in the textarea. Is
 there a known fix for this? I'd like to be able to have the page load
 with focus on the input textarea.

 Many thanks,
 Chris.

 On May 19, 10:29 pm, Jörn Zaefferer [EMAIL PROTECTED]
 wrote:

  Rather undocumented: The formatItem-option can be used as a filter. If
  it returns false for a value (instead of the formatted value), the
  value isn't displayed.

  Jörn

  On Sun, May 18, 2008 at 9:36 PM, ChrisLongden [EMAIL PROTECTED] wrote:

   Hi,

   I am using the brilliantautocompletefunctionality available here
   (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/)

   I am using the 'Multiple Birds (remote)' version from the demo. I
   can't see anything in the documentation about removing items that the
   user has already selected from theautocompletelist. Is this
   something I need to do manually, or is there a setting that I can
   tweak?

   Many thanks,
   Chris.- Hide quoted text -

  - Show quoted text -



[jQuery] MooTools to Query

2008-05-20 Thread Michael

Hi,

I have a coda slider working using mootools, but want to use JQuery as
my main library.

I have this code for my slider:

window.addEvent('domready', function(){
var scroll = new Fx.Scroll('demo-wrapper', {
wait: false,
duration: 1000,//Speed to slide
transition: Fx.Transitions.Quad.easeInOut
});

$('link1').addEvent('click', function(event) {
event = new Event(event).stop();
scroll.toElement('content1');
});

$('link2').addEvent('click', function(event) {
event = new Event(event).stop();
scroll.toElement('content2');
});

$('link3').addEvent('click', function(event) {
event = new Event(event).stop();
scroll.toElement('content3');
});

$('link4').addEvent('click', function(event) {
event = new Event(event).stop();
scroll.toElement('content4');
});

$('link5').addEvent('click', function(event) {
event = new Event(event).stop();
scroll.toElement('content5');
});
});

The slider works fine with mootools.v1.1.js, but want it to work with
jquery (I've tried putting it with jquery.1.2.3.pack.js) but it
doesn't work. What 'mootools' code is in the above javascript and what
would be the jquery equivalent?

And the HTML:

div id=demo-wrapper
div id=demo-inner
div id=content1 class=scrolling-content
div id=user1
Lorem ipsum dolor sit amet, consectetur 
adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud 
exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat
/div
/div

div id=content2 class=scrolling-content
div id=user2
Lorem ipsum dolor sit amet, consectetur 
adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud 
exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat
/div
/div

div id=content3 class=scrolling-content
div id=user3
Lorem ipsum dolor sit amet, consectetur 
adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud 
exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat
  /div
/div

div id=content4 class=scrolling-content
div id=user4
Lorem ipsum dolor sit amet, consectetur 
adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud 
exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat
  /div
/div

div id=content5 class=scrolling-content
div id=user5
Lorem ipsum dolor sit amet, consectetur 
adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud 
exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat
div
/div

  /div
  /div
  /div
/div

!-- Start of Menu Buttons --
div id=header_buttons_wrap
div id=header_buttons
div id=demo-bar
ul id=buttons
li id=but_introa id=link1 
href=javascript:void(0)
name=link1
class=active
onfocus=this.hideFocus=true;Text/a
/li

li id=but_flexiblea id=link2 
href=javascript:void(0)
name=link2
 onfocus=this.hideFocus=true;Media/a
/li

li id=but_supporta id=link3 
href=javascript:void(0)
name=link3
 onfocus=this.hideFocus=true;Table/a
/li

li id=but_proa id=link4 
href=javascript:void(0)
name=link4
 onfocus=this.hideFocus=true;Link/a
/li

li id=but_w3ca id=link5 
href=javascript:void(0)
name=link5
 onfocus=this.hideFocus=true;Link/a
/li
/ul
  /div
/div
/div!-- End of Menu Buttons --

[jQuery] Jquery Autocomplete plugin question = Can I feed it an xml or js file for the completion items?

2008-05-20 Thread mickes

Has anyone used the Autocomplete plugin by feeding it an xml file not
generated from a sql result?

I am writing a Greasemonkey script to autofill an input box from a
list of possible selections that I would like to store in an xml file
or a js file inside the Greasemonkey script.

Anyone have a tutorial, sample etc.?

I guess it would be similar to the php script but I do not want to
query a db. I just want to supply a flat file.

Thanks  regards,
Mike


[jQuery] Re: Sometimes my dynamic content doesn't load - please help!

2008-05-20 Thread Sid

How do you load your different stylesheets?

Basic style elements like background-color etc load pretty fast, its
the images that usually take time.

So I think you should check by trying different background colors,
because I face the same problem while the styles are switching.
Also, try the LiveQuery plugin, if you're introducing new elements
into the DOM (because they aren't recognised immediately), or check
out Karl's 'Events' tutorial on learningjquery.com

Hope this helps.

Regards


[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread Sid

Karl,

Thanks a lot :-)

Works perfectly well. But IE still shows an error notification in the
status bar. I'm just afraid it might come in between as I add more
features. Any ideas?

Regards


[jQuery] Re: tooltip - highlighting when a formfield is reached by a tab

2008-05-20 Thread Sid

Yup, there is and it's pretty simple.

With the mouseover, bind the tooltip to a 'focus()' event (HTML:
onFocus).

And you can remove the tooltip with the 'blur()' event (HTML: onBlur)

I think that'll work.

Regards


[jQuery] Re: JQuery Tablesorter can't sort number in Coldfusion

2008-05-20 Thread Bettina

Hey, you are right, that was the fault. :-)

Thanks a lot for your help.

Have a nice day.
Bettina


[jQuery] Re: [jQuery][ANN] New jQuery group on LinkedIn

2008-05-20 Thread Mika Tuupola



On May 8, 2008, at 5:51 PM, Brandon Aaron wrote:

You can join the LinkedIn group by following this invite link: 
http://www.linkedin.com/e/gis/100943/4C28294034F5


Is larger version of that logo available somewhere?


--
Mika Tuupola
http://www.appelsiini.net/



[jQuery] appendTo does not return an object

2008-05-20 Thread Susanne Klemm

Hello,

I want to use the JavaScript chart component flot which uses jQuery. There is 
a line where Firefox (2.0.0.14) gets an error (IE 6 works fine). I tried to 
step through the jQuery source but I can not find the problem:

canvas = $('canvas width=200 
height=100/canvas').appendTo(target).get(0);

target is a jQuery object which stores a div-node. I debugged the script and 
target is correctly filled. But target is undefined after this call.

Maybe somebody can help me.

TIA

Susanne


[jQuery] Accordian crashes IE6

2008-05-20 Thread Austin S.

Hi,

I can't seem to figure out why IE6 crashes with this accordian script.
Here is a live demo: http://tiny.cc/TIQ11

script type=text/javascript src=http://code.jquery.com/jquery-
latest.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
ui/ui.core.js/script
script type=text/javascript src=http://dev.jquery.com/view/trunk/
ui/ui.accordion.js/script
script type=text/javascript
$(document).ready(function() {
$(#resources div).hide();
$(#resources h3).click(function() {
$(this).next(div).slideToggle('slow')
.siblings(div:visible).slideUp(slow);
});
$(#resources h3).mouseover(function() {
$(this).addClass(over);
});
$(#resources h3).mouseout(function() {
$(this).removeClass(over);
});
});
/script



I followed this article to create something similar:

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


[jQuery] Tablesorter - Disabled Header Options with Pager

2008-05-20 Thread shoo

This week I've been working on implementing Tablesorter. It's a great
Jquery table sorting utility, but I spent quite a bit of time trying
to figure out why I could only sort columns in descending order while
using the pager plugin when I set the header option to disable some
columns. I didn't see anything on here about it so, I thought I would
post my fix / solution.

Below, the incorrect way to do it.

$(document).ready(function() {
$(#SearchResultsTable).tablesorter({
// pass the headers argument and assing a object
headers: {

0: {
// disable it by setting the property sorter to false
sorter: false
},
4: {
// disable it by setting the property sorter to false
sorter: false
}
}
})
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({
   container: $(#ctl00_MainContent_pager),
   positionFixed: false
 }); ;
});

From what I've discovered, you really need to pass all the parameters
in one pass like below:

$(document).ready(function() {
$(#SearchResultsTable)
 .tablesorter({
   headers: {0: {sorter: false},6: {sorter: false}},
   widgets: ['zebra']
 })
.tablesorterPager({
   container: $(#ctl00_MainContent_pager),
   positionFixed: false
 });
});

Above, I am calling table sorter to disable columns 0 and 6, use the
zebra widget, then call the tablesorter Pager plugin.


[jQuery] [validate] disabling onBlur validation on per field basis

2008-05-20 Thread Matti Bäckman

Hello.

Is it possible to disable onBlur validation of a single field?



[jQuery] Re: Traversing AJAX Response?

2008-05-20 Thread Yansky


How exactly does $(response).find('#mylinks') work? How does it traverse the
dom tree if the response is just a text version of the page's html?


Nicolas R wrote:
 
 
 If you convert your response to a jQuery object then yes. So something
 like $(response).find('#mylinks') should work, if used in the success
 callback function. Your response doesnt need to be in XML, HTML is
 just fine.
 
 
 On Apr 19, 5:46 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Is it possible to parse the HTML of an AJAX response and grab only a
 certain piece of the response to be displayed by the caller?

 Specifically, I'm trying to modify a page so that when I hover over a
 certain set of links, a pop-up window is displayed with the link's
 target in the pop-up.  The problem is that the URL is an entire
 webpage, and I only want to display a certain piece of text from this
 webpage.  Is it possible to traverse the AJAX response using selectors
 so that I can grab a certain div class and display its text?
 
 

-- 
View this message in context: 
http://www.nabble.com/Traversing-AJAX-Response--tp16789239s27240p17340513.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: Tablesorter - Disabled Header Options with Pager

2008-05-20 Thread Dan G. Switzer, II

In most cases, you never want to call the same plug-in twice on a set of
jQuery objects that initialize a behavior on the page (you called
tablesorter() twice in your incorrect example.) This is because in most
cases you're applying the behavior twice and may end up with really bizarre
results.

-Dan

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shoo
Sent: Tuesday, May 20, 2008 9:22 AM
To: jQuery (English)
Subject: [jQuery] Tablesorter - Disabled Header Options with Pager


This week I've been working on implementing Tablesorter. It's a great
Jquery table sorting utility, but I spent quite a bit of time trying
to figure out why I could only sort columns in descending order while
using the pager plugin when I set the header option to disable some
columns. I didn't see anything on here about it so, I thought I would
post my fix / solution.

Below, the incorrect way to do it.

$(document).ready(function() {
$(#SearchResultsTable).tablesorter({
// pass the headers argument and assing a object
headers: {

0: {
// disable it by setting the property sorter to false
sorter: false
},
4: {
// disable it by setting the property sorter to false
sorter: false
}
}
})
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({
   container: $(#ctl00_MainContent_pager),
   positionFixed: false
 }); ;
});

From what I've discovered, you really need to pass all the parameters
in one pass like below:

$(document).ready(function() {
$(#SearchResultsTable)
 .tablesorter({
   headers: {0: {sorter: false},6: {sorter: false}},
   widgets: ['zebra']
 })
   .tablesorterPager({
   container: $(#ctl00_MainContent_pager),
   positionFixed: false
 });
});

Above, I am calling table sorter to disable columns 0 and 6, use the
zebra widget, then call the tablesorter Pager plugin.



[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread hans



On May 20, 1:35 pm, Sid [EMAIL PROTECTED] wrote:
 Karl,

 Thanks a lot :-)

 Works perfectly well. But IE still shows an error notification in the
 status bar. I'm just afraid it might come in between as I add more
 features. Any ideas?

 Regards

The original blue anchor has a mouseover event defined where you
call a function that doesn't exist.
- onmouseover=prev('style1')



[jQuery] jsonp in GAE for jQuery xss

2008-05-20 Thread Andiih

Alphabet soup! I think I'm trying to learn too many new things at
once...

Anyone got examples for Google App Engine deliving basic web service
type API's ? A hello world type example would do nicely - I would
like to serialize objects and return them with jsonp so I can fetch
them from jQuery code running on multiple sites.


[jQuery] Re: Very basic animation of an image is jerky (not smooth). Am I doing something wrong?

2008-05-20 Thread Ariel Barreiro

It was failing in IE 7 as well, I fixed this, sorry for that. Any help
on the jerkyness.

On May 19, 4:35 pm, ripple [EMAIL PROTECTED] wrote:
 FYI.

   Fails to execute in IE 6.

 Ariel Barreiro [EMAIL PROTECTED] wrote:

 I am new to jquery but an experience developer.

 Here's the code actually running:

 http://guilespi.dyndns.org/jquery/bounceimage/

 CSS:http://guilespi.dyndns.org/jquery/bounceimage/bounce.css
 JS:http://guilespi.dyndns.org/jquery/bounceimage/bounce.js

 The first vector is generally very jerky. Sometimes it stops and then
 jumps 40px at once. Is there anything I am missing. HTML, CSS and
 javascript is very basic. Javascript has a bunch of math coding to
 calculate the time needed for each vector so it appears to be the same
 speed along each vector.

 Thank you very much, I am new to jquery and I don't think this is a
 problem of jquery, but rather something I am missing.

 Thanks,
 a.=


[jQuery] [autocomplete] Is there an update planned to work with jQ 1.4 ?

2008-05-20 Thread Romain Sauvaire

Hello everybody,

Since Dimensions plugin is fully included into the next jQuery
release, do you plan (Jörn or someone else) to update your
autocomplete plugin ?

More infos : 
http://blog.brandonaaron.net/2008/05/09/dimensions-now-in-jquery-core/

Thanx for your answers !


[jQuery] Re: livequery in navigation

2008-05-20 Thread Brandon Aaron
I'm a little confused about your setup. Could you post a link to the site or
an example of the issue you are having?

Also, I'm sure it was just a typo but your missing the $ on ('#home') and
('#search').

--
Brandon Aaron

On Wed, May 7, 2008 at 10:47 AM, kws452 [EMAIL PROTECTED] wrote:


 I am using jquery and superfish in my horizontal navigation menu.  The
 navigation is loaded via an external file.  The   drop down menus set
 up nicely, and I have js set up so that when a user select a menu
 item, different content is loaded into a div in the middle of the
 page depending on what they click on. I just switched to livequery, so
 my js is:

 $(document).ready(function() {
  ('#home')
 .livequery('click', (function() {
  $('#content').load('index.php')
  return false;
 })

 ('#search')
 .livequery('click', (function() {
  $('#content').load('search.php')
  return false;
 })
 );

 My goal is for the user to always be able to click on the navigation
 menu and start over or load new content.  So if the user chooses
 search, search.php is loaded, which is a form.  They enter the
 users company name and press submit.  Data is shown in the div in
 the middle of the page.  Now I want the user to be able to click on a
 navigation link, or the home link to do whatever they want.  This does
 not work - it seems like once data is displayed in the #content div,
 the navigation menu doesn't work.  I guess I thought this was what
 livequery would do for me.  Does anyone have time to look at this and
 see what I am doing wrong?



[jQuery] hiding a div when another div becomes empty?

2008-05-20 Thread thekman

Hi all,
I am removing links from a div when they are clicked on using the code
below:

$('#hiddenleft a').livequery('click', function() {
var $this = $(this).attr(class);
$('#'+$this).show();
$(this).remove();
 });

when all links are removed, i want hide that div  the div above it -
hiddencontent .
the links are displayed in the following divs:

  div id=hiddencontenthidden items/div
  div id=hiddenitemsdiv id=hiddenleft  ...links.../div/div

any ideas on how i would do it?


[jQuery] Re: jQuery UI

2008-05-20 Thread mdrisser

Thanks for the input, I'll update the existing tutorial to reflect
that new (to me) bit of knowledge, and add a link in the wiki.

I'm currently working on the next tutorial, UI Tabs. Should be ready
this week.

On May 17, 4:58 am, Richard D. Worth [EMAIL PROTECTED] wrote:
 This is a great article. Thank you for sharing, and I'm looking forward to
 more.

 A minor note: 1.5b2 and 1.5b4 require alpha and beta versions of jQuery
 1.2.4. They are included in each zip file (if you download the whole thing),
 or can be grabbed here:

 http://dev.jquery.com/view/tags/ui/1.5b2/jquery-1.2.4a.jshttp://dev.jquery.com/view/tags/ui/1.5b4/jquery-1.2.4b.js

 Also, they include dimensions; it's no longer a separate plugin. Your dialog
 tutorial may not have hit any issues with using 1.2.3, but other plugins
 have some.

 Don't forget - the docs are a wiki, so include links to your tutorials
 there.

 - Richard

 Richard D. Worthhttp://rdworth.org/

 On Fri, May 16, 2008 at 11:20 AM, mdrisser [EMAIL PROTECTED] wrote:

  I've just started playing around with the jQuery UI and while I was at
  it I decided to put together a series of tutorials on implenting the
  UI, I've never written any tutorials before, so it may not be the
  best, but I hope that it will be useful to someone.

  You can find it athttp://mdrisser.r1designs.net/blog

  Let me know what you guys think and how I can improve the series.

  Thanks in advance


[jQuery] Re: append div trouble [SOLVED]

2008-05-20 Thread kws452

ok i am trying to do the same thing you are doing, with no success.
Only difference is I'm using suckerfish for my navigation menus across
the top. The navigation is loaded via an external file, with things
like add, search, etc as my main menus.  The drop down menus set
up nicely, and I have js set up so that when a user selects a menu
item, different content is loaded into a div in the middle of the
page depending on what they click on. I just switched to livequery, so
my js is:

$(document).ready(function() {
  ('#home')
 .livequery('click', (function() {
  $('#content').load('index.php')
  return false;
 })

('#search')
 .livequery('click', (function() {
  $('#content').load('search.php')
  return false;
 })
);

My goal is for the user to always be able to click on the navigation
menu and start over or load new content.  So if the user chooses
search, search.php is loaded, which is a form.  They enter the
users company name and press submit.  Data is shown in the div in
the middle of the page.  Now I want the user to be able to click on
the navigation menu again and search on something different.

This does not work - it seems like once data is displayed in the
#content div, the navigation menu doesn't work.  I guess I thought
this was what livequery would do for me.  Does anyone have time to
look at this and see what I am doing wrong?


[jQuery] Need your help (Newbie) for HHeaings Tags visble and invisible

2008-05-20 Thread superyms

body
  h1Title I /h1
  h2Chapter I /h2
  h5Art. 1./h5
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  h2Chapter II/h2
  h3Section I/h3
  h5Art. 2./h5
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  h5Art. 3./h5
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
h3Section II/h3
h4Mini-Section I/h4
h5Art. 4./h5
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  h1Title II/h1
  h2Chapter I /h2
  h5Art. 6./h5
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
  pUt labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis
aute irure dolor quis nostrud exercitation excepteur sint occaecat./
p
body

As you can see it is simple Headings tags, that compose this text.
My goal is simply to change or add classes tah tlet elements been
revelead or not !

i explain :

At the opening page you will have to see :
 - H1 contents only (all H1- all other have to be hided).
 - onlick on H1 we will see all H2 of the concerning H1 clicked (all
the others will be invisible)
 - onclick on H2 we will have :
   - all H3 listed with them (H4 and H5 and P not visible)
   - all H5 listed with them (in some case H5 is just after H2).
 - onclik on H3 we will have :
   - all H4 visible (but not H5 and P under them)
   - all H5 direct under H3 (in some cas this happened)
  - onclick on H4 we will have all H5 under the appereaing
 -  onclick on H5 we will see all P under them (P have to been
revealed only one clicked on H5)

And in case we click again on a element it will change again his
status to invible

i a not using any div container nor ny css for this, i jus twanan see
how to do ro see it working ???

As i am a newbie with jquery (tried during 10 days without success),
may be i am stupid or not enough concentrate ???

Please could you give me the solution (a code) or any other sample
that inspirates me or even if a plugin exist ???



[jQuery] Using javascript on Ajax loaded content?

2008-05-20 Thread Civ2boss

Hi there

I am having trouble using javascript on contact that was pulled in
using Ajax. I assume this is because the javascript already loaded
when the page loaded that any new content won't be affected by it. Am
I wrong on this? Is there a way to use javascript on the new Ajax
loaded content?

Thanks


[jQuery] selectors question

2008-05-20 Thread nos

hi list
I try to access the innerHTML of  a list to change it's content to
links with wich I wand to insert the text of the list to an input
field.

the code looks like this:
input name=Categories class=listcomplete value=Cat1 Cat2 Cat3
ul
   liCat1/li
   liCat2/li
   liCat3/li
   liCat4/li
   liCat5/li
 /ul

list items should change to:
   a href=javascript:updateInputField('inputname', 'Cat1')Cat1/a


So I need an array of all list items. This so var I could  like this.

function setLinks()
{
  $(input.listcomplete ~ ul  li).each(function(i){
   ...
  }
}

but first I need the name of the text input (Categories) cause I need
it to pass to the function in the link. So I split the each above into
two arrays. First to get the name of the input and the secound each to
go true the li elements. Now I cant figure out how to define the
secound selector properly:
.this.$(~ ul  li).each(function(i){;

in the function below:
function setLinks()
{
  $(input.listcomplete).each(function(i){

.this.$(~ ul  li).each(function(i){;
  .this.html(li with link)
  });
});
  }


could anyone give me a hint how to do it
tanks nos







[jQuery] Re: Accordian crashes IE6

2008-05-20 Thread Jörn Zaefferer

You include the UI accordion plugin, but don't use it at all. Take a
look at the accordion documentation and use that:
http://docs.jquery.com/UI/Accordion

Jörn

On Tue, May 20, 2008 at 3:21 PM, Austin S. [EMAIL PROTECTED] wrote:

 Hi,

 I can't seem to figure out why IE6 crashes with this accordian script.
 Here is a live demo: http://tiny.cc/TIQ11

 script type=text/javascript src=http://code.jquery.com/jquery-
 latest.js/script
 script type=text/javascript src=http://dev.jquery.com/view/trunk/
 ui/ui.core.js/script
 script type=text/javascript src=http://dev.jquery.com/view/trunk/
 ui/ui.accordion.js/script
 script type=text/javascript
$(document).ready(function() {
$(#resources div).hide();
$(#resources h3).click(function() {
$(this).next(div).slideToggle('slow')
.siblings(div:visible).slideUp(slow);
});
$(#resources h3).mouseover(function() {
$(this).addClass(over);
});
$(#resources h3).mouseout(function() {
$(this).removeClass(over);
});
});
 /script



 I followed this article to create something similar:

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



[jQuery] Re: [validate] disabling onBlur validation on per field basis

2008-05-20 Thread Jörn Zaefferer

You can customize the onfocusout-option for that. Something like this:

$(...).validate({
onfocusout: function(element) {
if (element.name != someElementNameToExclude)
this.element(element);
}
});

Jörn

On Tue, May 20, 2008 at 3:32 PM, Matti Bäckman [EMAIL PROTECTED] wrote:

 Hello.

 Is it possible to disable onBlur validation of a single field?




[jQuery] Finder like navigational widget

2008-05-20 Thread roryf

Hi,

Does anyone know of and OS X Finder style widget/plugin? As in,
several lists of items, click one a list of child items appear in the
list to the right etc.

Cheers
Rory


[jQuery] Show element onclick

2008-05-20 Thread hubbs

I have a list of divs that I would like to display one at a time when
a link is clicked.  How would I do this with jQuery?

a href=#Show another/a
divContent 1/div
div style=display:none;Content 2/div
div style=display:none;Content 3/div
div style=display:none;Content 4/div
div style=display:none;Content 5/div
div style=display:none;Content 6/div

What I would like to do is reveal the next div in the list when the
Show another link is clicked, allowing the user to reveal all of the
divs, or just a few.


[jQuery] [tooltip] explorer 6 conditional statement?

2008-05-20 Thread olestaats

I've using the tooltip script from bassistance.de and I have some
issues with IE6.

The jquery code has a line that defines the position of the tooltip
(top: 15;)

I'm not 100% sure why, but for all other browsers, the value for top
should be -60 and just for IE6, it should be 100

Is there any way I can add a line to the jquery.tooltip.js file that
will target the change for IE6?

The link is: http://www.projects.redpointdesign.ca/rp/index.php

I am using a conditional css for IE6.

I'm not a javascript programmer at all.

Thanks!

Brian


[jQuery] HotChili (Greasemonkey/userscript) breaks easing

2008-05-20 Thread Pyrolupus

I have (well, had) HotChili[1] enabled for all sites for its
convenient go-anywhere syntax highlighting ability.  Today, I tracked
a problem with one of my sites to having HotChili enabled (as a
Greasemonkey userscript) on my installation of Firefox.  I assume that
since HotChili pulls in its own copy of jQuery that it's blowing away
plugin extensions.  I presume the same could be true of other
userscripts (Firefox or Opera--can Safari/IE do userscripts?) that
pull in their own jQuery.

Text of error:

jQuery.easing[jQuery.easing.def] is not a function
http://[mydomain].com/js/lib/jquery/jquery.easing.1.3.js
Line 20

Disabling HotChili made the problem go away.
Has anyone else experienced this?  Can anyone verify or debunk me?

I don't yet know whether a userscript can check for the existence of
jQuery already in a page before trying to pull in a separate copy--
thus blowing away extensions--but that would be cool.

Cheers,
Pyro

[1] http://noteslog.com/category/hotchili/


[jQuery] jQuery Error with auto-tabbing and browser autocomplete options

2008-05-20 Thread Mathachew

I'm working on an auto tabbing plugin and keep getting an odd error
from Firebug. In my example I have three text fields that serve the
purpose of typing a phone number. If what I begin typing matches
previously entered numbers, Firefox will display autocomplete matches.
After three numbers, my script automatically tabs to the next field,
but I get the following error:

[Exception... 'Permission denied to set property
XULElement.selectedIndex' when calling method:
[nsIAutoCompletePopup::selectedIndex]  nsresult: 0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)  location: JS frame :: jquery.js ::
anonymous :: line 2039  data: no]
jquery.js
Line 2039

I am able to prevent the error from appearing by alerting prior to
setting the focus to the next field. If I type a set of numbers not
previously entered, the error does not occur as well. Because of this,
I believe the issue is in jQuery and not with my plugin. I can
replicate this error and provide a sample page if necessary. Thanks.


[jQuery] Re: Traversing AJAX Response?

2008-05-20 Thread Pyrolupus

On May 20, 9:40 am, Yansky [EMAIL PROTECTED] wrote:
 How exactly does $(response).find('#mylinks') work? How does it traverse the
 dom tree if the response is just a text version of the page's html?

If response is HTML, then $(response) creates a DOM.  That's what $
(string) does with HTML (instead of a CSS selector).  E.g., $('pA
new paragraph!/p') generates a brand new paragraph element.
Reference:

http://docs.jquery.com/Core/jQuery#html

jQuery( html )
Create DOM elements on-the-fly from the provided String of raw HTML.

Cheers,
Pyro


[jQuery] Re: jsonp in GAE for jQuery xss

2008-05-20 Thread Michael Geary

Hi Andiih, I know the feeling! Don't worry, you will get it all sorted out.

Take a look at the Google App Engine samples project:

http://code.google.com/p/google-app-engine-samples/

It has a couple of samples that may be close to what you're looking for: The
geochat and myhangouts apps both use simplejson (the standard Python JSON
module) to generate JSON output. I didn't look to see if they generate JSONP
- there's a jsonfilter.py in the simplejson folder that generates JSONP, but
I wasn't sure from a quick glance at the code if they are actually using
that. In any case, converting from JSON to JSONP is trivial:

jsonp = prefix + '(' + json + ')'

jQuery isn't involved in the server code, so you'll probably want to ask
followup questions in the GAE discussion group. But come on back here when
you start on the client code!

Hope that helps,

-Mike

 From: Andiih
 
 Alphabet soup! I think I'm trying to learn too many new 
 things at once...
 
 Anyone got examples for Google App Engine deliving basic web 
 service type API's ? A hello world type example would do 
 nicely - I would like to serialize objects and return them 
 with jsonp so I can fetch them from jQuery code running on 
 multiple sites.



[jQuery] Best RSS/XML/News feeder for jTabs?

2008-05-20 Thread lukas

Does anybody have experiences with setting up a news feeder for jTabs/
Tab browsing? (like Yahoo is doing it?) I am confused with all the
info on the web. Thank you!


[jQuery] Re: Accordian crashes IE6

2008-05-20 Thread Austin S.

Thanks for pointing that out!  I have removed both UI scripts as I
didnt need them.  IE6 is still crashing... does it not like the
selectors?

On May 20, 1:25 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 You include the UI accordion plugin, but don't use it at all. Take a
 look at the accordion documentation and use 
 that:http://docs.jquery.com/UI/Accordion

 Jörn

 On Tue, May 20, 2008 at 3:21 PM, Austin S. [EMAIL PROTECTED] wrote:

  Hi,

  I can't seem to figure out why IE6 crashes with this accordian script.
  Here is a live demo:http://tiny.cc/TIQ11

  script type=text/javascript src=http://code.jquery.com/jquery-
  latest.js/script
  script type=text/javascript src=http://dev.jquery.com/view/trunk/
  ui/ui.core.js/script
  script type=text/javascript src=http://dev.jquery.com/view/trunk/
  ui/ui.accordion.js/script
  script type=text/javascript
 $(document).ready(function() {
 $(#resources div).hide();
 $(#resources h3).click(function() {
 $(this).next(div).slideToggle('slow')
 .siblings(div:visible).slideUp(slow);
 });
 $(#resources h3).mouseover(function() {
 $(this).addClass(over);
 });
 $(#resources h3).mouseout(function() {
 $(this).removeClass(over);
 });
 });
  /script

  I followed this article to create something similar:

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


[jQuery] Weather forecast recommendation?

2008-05-20 Thread lukas

Hi! I am looking for a nice looking 2 or other multiple-day weather
forecast. Does anybody have good recommendations (also for commercial
use)? Thanks for your help!


[jQuery] Re: Weather forecast recommendation?

2008-05-20 Thread Rey Bango


Hi Lukas,

If it's a general question not related to jQuery, your best bet is to 
look at forums such as SitePoint.com for assistance.


Thanks,

Rey...

lukas wrote:

Hi! I am looking for a nice looking 2 or other multiple-day weather
forecast. Does anybody have good recommendations (also for commercial
use)? Thanks for your help!



[jQuery] Re: jscrollPane scroll to can't find first element

2008-05-20 Thread pedalpete

I got this to work, but not in the nicest way.

It appears the script is adamant that I do not call .scrollTo within
the following function
[code]
function getList(event, page){
  $('#holdList')[0].scrollTo(0);
 var distance = $('#distance').val();
 var addressQ = $('#address').val();
  $('#map').jmap(searchAddress, {
address: $('#address').val()
  }
}
[/code]

but it happily runs (but a bit slowly) within this function
[code]
$('.next').livequery('click', function(event){
 $('#holdList')[0].scrollTo(0);
var page=this.id;
getList(event, page);
});
[/code]

Don't know why, but it works.
The '[0]' is needed in front of the .scrollTo function as well.
Thanks Ariel


[jQuery] Re: [tooltip] explorer 6 conditional statement?

2008-05-20 Thread Jörn Zaefferer

There is are options for the positioning, top and left. Something like
this should work:

$(...).tooltip({
top: $.browser.ie ? 100 : -60
});

More details at http://docs.jquery.com/Plugins/Tooltip/tooltip

Jörn

On Tue, May 20, 2008 at 7:17 PM, olestaats [EMAIL PROTECTED] wrote:

 I've using the tooltip script from bassistance.de and I have some
 issues with IE6.

 The jquery code has a line that defines the position of the tooltip
 (top: 15;)

 I'm not 100% sure why, but for all other browsers, the value for top
 should be -60 and just for IE6, it should be 100

 Is there any way I can add a line to the jquery.tooltip.js file that
 will target the change for IE6?

 The link is: http://www.projects.redpointdesign.ca/rp/index.php

 I am using a conditional css for IE6.

 I'm not a javascript programmer at all.

 Thanks!

 Brian



[jQuery] Re: livequery in navigation

2008-05-20 Thread kws452

No site yet - just hosting it on my client's sandbox machine.  Here
are the pertinent parts - I can always email them to you also.

For my index.php - just sets up the navivgation and content div:

[code]
? include (includes/nav.inc);?
? include (includes/companyx.inc);?
...
body
div id=wrapper
div id=content
/div
/div
/body
? include (includes/footer.inc) ?
/html
[/code]

Now my nav.inc file which sets up the horizontal navbar according to
the superfish instructions:

[code]
script type=text/javascript src=js/superfish.js/script
div id=headerh1Company X/h1
div id=navigation
ul id=nav
 li id=firsta href=index.phpHome/a/li
   liSearch
   ul
   lia id=by-lastname href=#Last Name/a/li
   lia id=by-firstname href=#First Name/a/li
   lia id=by-division href=#Company/a/li
   lia id=by-job href=#Job/a/li
   /ul
 /li
  /ul
   .
/div
[/code]

So now I have my index file with navigation.  Let's say a user selects
Search-Last Name. This is my companyx.js script:
[code]
 $('#home').livequery('click', function() {
$('#content').load('index.php');
$(#content).show();
return false;
});

$('#by-lastname').livequery('click', function() {
$('#content').load('by-lastname.html');
$(#content).show();
return false;
});
.
[/code]

And this is my by-lastname.html, which appears in the content div:
[code]
div id=byLastName
h4Search by Last Name/h4
form name=searchlast action=searchlast.php 
input type=text name=lastname id=lastname /

input type=submit value=Search
/form
/div
[/code]

So the user types in a last name and presses Search.  searchlast.php
goes to a mysql db and loads the results in the content div:

[code]
?php
include (includes/nav.inc);
include (includes/header-table.inc);
include (connection.php);
?

script language=javascript
$(document).ready(function() {
$(#datatable)
.tablesorter({widthFixed: true, widgets: ['zebra']})
.tablesorterPager({container: $(#pager)});
});

/script
/head

body

?php
@mysql_connect($host, $user, $password) or die(Error - Can't connect
to server);
@mysql_select_db($database) or die(Error - Can't connect to db);
$query = SELECT..;
include (table.php);
[/code]

So the data is now displayed via table.php
[code]
?
# now display data itself

echo(tbody);
while  ($row = mysql_fetch_array($query))
{
echo(tr\ntd);
echo($row[lastname]);

}
[/code]

This all works well.  It just doesn't work after the user has view
some results of some sort, then clicks on another navigation option.
(Like Search-FirstName).  The user must click Home first, then
Search-FirstName, which is a pain.  I would like the user to be able
to view results, and click immediately on another navigation pane.

Does this make sense?  Thanks for anyhelp you can give me - I've been
struggling with this for a while and it seems like it should be pretty
simple!








[jQuery] Thumbnail Cycle Plugin ala YouTube?

2008-05-20 Thread Mike Francisco
I've been trying to google if such jquery plugin is available, but I am not
quite sure how to search for it (or what to call it). I am referring to the
cycle effect that shows the 'What is being  watched right now.' thumbnails
in YouTube. If you know of a jquery implemented plugin, please let me know.
Thanks!



[jQuery] AJAX ui.tabs and $(document).ready()

2008-05-20 Thread Scott

It appears that when you use the AJAX implementation of ui.tabs the $
(document).ready() function is never executed. Should I be doing
something else to get some JS to run when the page loads?


[jQuery] Re: Only Acept Number and . or ,

2008-05-20 Thread Ariel Flesler

This is exactly what you need:
  http://itgroup.com.ph/alphanumeric/

This could be useful too:
   http://digitalbush.com/projects/masked-input-plugin

--
Ariel Flesler
http://flesler.blogspot.com

On 20 mayo, 01:48, Don Quijote de Nicaragua [EMAIL PROTECTED]
wrote:
 I need to create a input, but only acept numer or this caracter . or
 ,

 Español.
 Necesito crear un input, pero que únicamente acepte números o los
 caracteres . ò ,.
 Gracias.

 Don Quijote de Nicaragua.
 Elder Soto.


[jQuery] Re: .css question

2008-05-20 Thread Ariel Flesler

Maybe you're moving the image but not the link. So the link stays
where it was, try putting that id to the link instead.

--
Ariel Flesler
http://flesler.blogspot.com

On 20 mayo, 07:34, Davis [EMAIL PROTECTED] wrote:
 Hi,

 i got a simple html

 a href=abc
 img id=xxx src={$image_dir}mu_ad_space.png  border=0 alt= /
 /a

 once i applied $('#xxx').css({position:'absolute',top:'250px'}), it
 taken effect, but why href are disappear?

 appreciated for any input.

 Thanks/Davis.


[jQuery] [SITE] Site

2008-05-20 Thread Dragan Krstic
http://www.eurovision.tv/ on pages dedicated to each contestant. At least,
they use lyte(light)box and sifr.


-- 
Dragan Krstić krdr
http://krdr.ebloggy.com/


[jQuery] Re: MooTools to Query

2008-05-20 Thread Ariel Flesler

jQuery.LocalScroll:
   http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html

--
Ariel Flesler
http://flesler.blogspot.com

On 20 mayo, 08:27, Michael [EMAIL PROTECTED] wrote:
 Hi,

 I have a coda slider working using mootools, but want to use JQuery as
 my main library.

 I have this code for my slider:

 window.addEvent('domready', function(){
         var scroll = new Fx.Scroll('demo-wrapper', {
                 wait: false,
                 duration: 1000,//Speed to slide
                 transition: Fx.Transitions.Quad.easeInOut
         });

         $('link1').addEvent('click', function(event) {
                 event = new Event(event).stop();
                 scroll.toElement('content1');
         });

         $('link2').addEvent('click', function(event) {
                 event = new Event(event).stop();
                 scroll.toElement('content2');
         });

         $('link3').addEvent('click', function(event) {
                 event = new Event(event).stop();
                 scroll.toElement('content3');
         });

         $('link4').addEvent('click', function(event) {
                 event = new Event(event).stop();
                 scroll.toElement('content4');
         });

         $('link5').addEvent('click', function(event) {
                 event = new Event(event).stop();
                 scroll.toElement('content5');
         });

 });

 The slider works fine with mootools.v1.1.js, but want it to work with
 jquery (I've tried putting it with jquery.1.2.3.pack.js) but it
 doesn't work. What 'mootools' code is in the above javascript and what
 would be the jquery equivalent?

 And the HTML:

 div id=demo-wrapper
         div id=demo-inner
                 div id=content1 class=scrolling-content
                         div id=user1
                                 Lorem ipsum dolor sit amet, consectetur 
 adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                 Ut enim ad minim veniam, quis nostrud 
 exercitation ullamco laboris
 nisi ut aliquip ex ea commodo consequat
                         /div
                 /div

                 div id=content2 class=scrolling-content
                         div id=user2
                                 Lorem ipsum dolor sit amet, consectetur 
 adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                 Ut enim ad minim veniam, quis nostrud 
 exercitation ullamco laboris
 nisi ut aliquip ex ea commodo consequat
                         /div
                 /div

                 div id=content3 class=scrolling-content
                         div id=user3
                                 Lorem ipsum dolor sit amet, consectetur 
 adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                 Ut enim ad minim veniam, quis nostrud 
 exercitation ullamco laboris
 nisi ut aliquip ex ea commodo consequat
                   /div
                 /div

                 div id=content4 class=scrolling-content
                         div id=user4
                                 Lorem ipsum dolor sit amet, consectetur 
 adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                 Ut enim ad minim veniam, quis nostrud 
 exercitation ullamco laboris
 nisi ut aliquip ex ea commodo consequat
                   /div
                 /div

                 div id=content5 class=scrolling-content
                         div id=user5
                                 Lorem ipsum dolor sit amet, consectetur 
 adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                 Ut enim ad minim veniam, quis nostrud 
 exercitation ullamco laboris
 nisi ut aliquip ex ea commodo consequat
                         div
                 /div

                   /div
           /div
   /div
 /div

         !-- Start of Menu Buttons --
         div id=header_buttons_wrap
                 div id=header_buttons
                         div id=demo-bar
                                 ul id=buttons
                                         li id=but_introa id=link1 
 href=javascript:void(0)
 name=link1
                         class=active
 onfocus=this.hideFocus=true;Text/a
                     /li

                                         li id=but_flexiblea id=link2 
 href=javascript:void(0)
 name=link2
                          onfocus=this.hideFocus=true;Media/a
                     /li

                                         li id=but_supporta id=link3 
 href=javascript:void(0)
 name=link3
                          onfocus=this.hideFocus=true;Table/a
                     /li

                                         li id=but_proa id=link4 
 href=javascript:void(0)
 name=link4
                          onfocus=this.hideFocus=true;Link/a
                     /li


[jQuery] Re: Checking a radio button

2008-05-20 Thread [EMAIL PROTECTED]

Thanks for this feedback but that is what I'm trying and the radio
button is empty. My script is

script type=text/javascript
$(document).ready(function() {
 $('#Demo[value=EasyOrder Basic]').attr('checked', true);
});
/script

and the URL is

http://www.remanresource.com/signup.php?SubscrIDP=5

Thanks, - Dave

On May 19, 8:34 pm, Karl Rudd [EMAIL PROTECTED] wrote:
 Remember to be careful how you mix the various quotes ' and . The
 following should work.

 $('#Demo[value=hello there]').attr('checked', true);

 Karl Rudd

 On Tue, May 20, 2008 at 11:33 AM, [EMAIL PROTECTED]



 [EMAIL PROTECTED] wrote:

  I may have spoken a little too soon.  Karl, that was a great solution,
  but what if the part of the value clause has a space in it?  This
  isn't working for me ...

  $('#Demo[value=hello there]').attr('checked', true);

  nor is this ...

  $('#Demo[value=hello there]').attr('checked', true);

  Any suggestions are greatly appreciated, - Dave

  On May 19, 7:56 pm, Karl Rudd [EMAIL PROTECTED] wrote:
  Assuming the following:

    input type=radio name=someName id=Demo value=hello

  The following will check the radio button:

    $('#Demo').attr('checked', true);

  If you _really_ need to ONLY check the radio button if it's got an
  id=Demo AND value=hello:

    $('#Demo[value=hello]')

  Karl Rudd

  On Tue, May 20, 2008 at 8:47 AM, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:

   Hi,

   When my page loads, I'd like to check a radio button whose ids are
   Demo and whose value is hello.  How do I do this with JQuery?

   Thanks, - Dave- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -


[jQuery] Bug Fix: Multiple File Upload Plugin

2008-05-20 Thread Diego A.

Hi All,

All users of this plugin should download the latest version to fix a
fatal bug in IE7.

SEE: http://www.fyneworks.com/jquery/multiple-file-upload/

Cheers,
Diego A.


[jQuery] How to extract an object from a jQuery reference?

2008-05-20 Thread Jerome

I'm not quite sure how to describe, or search for, my question in
existing discussions.  I apologize in advance for my lack of search
savvy.

I understand that you can take an ordinary DOM object and create a
jQuery reference out of it:

var myDOMObject = document.myform.mytextfield;
var myJQueryRef = $(myDOMObject);
var myHtml = myJQueryRef.html();

I know, I can chain.  But for the sake of this example, I won't.

Is there a way to do the opposite?  An imaginary method could be:

var extractedDOMObject = myJQueryRef.extractObject();
var myHtml2 = extractedDOMObject.innerHTML;

What might be used to replace the imaginary extractObject() method?

Thanks,
Jerome.




[jQuery] Re: [tooltip] explorer 6 conditional statement?

2008-05-20 Thread olestaats

Thanks for this. I played around and can't find any docs to explain it
specifically...

This is the code I'm working with:

$.tooltip = {
blocked: false,
defaults: {
delay: 200,
showURL: true,
extraClass: ,
top: -60,
left: 15,
id: tooltip
},

Would this become:

$.tooltip = {
blocked: false,
defaults: {
delay: 200,
showURL: true,
extraClass: ,
top: $.browser.ie ? 100 : -60
left: 15,
id: tooltip
},

Sorry for the confusion... I've looked at the syntax of javascript
before today...

Brian


[jQuery] [OT] twitter

2008-05-20 Thread Alexandre Plennevaux
hi friends,

now that jquery uses twitter, i might give twitter a chance. Can you
recommend a good way to use it? A twitter client? Which?
i'm a bit afraid of the distraction it brings. but using it in my Greader
is not very satisfactory. Any clue, welcomed !


Thanks,

-- 
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread Ariel Flesler

So.. Have you tried using jQuery 1.2.4 ?
jQuery.attr works completely different now.

--
Ariel Flesler
http://flesler.blogspot.com

On 20 mayo, 08:35, Sid [EMAIL PROTECTED] wrote:
 Karl,

 Thanks a lot :-)

 Works perfectly well. But IE still shows an error notification in the
 status bar. I'm just afraid it might come in between as I add more
 features. Any ideas?

 Regards


[jQuery] Re: Show element onclick

2008-05-20 Thread Scott Sauyet


hubbs wrote:

I have a list of divs that I would like to display one at a time when
a link is clicked.  How would I do this with jQuery?

a href=#Show another/a
divContent 1/div
div style=display:none;Content 2/div
div style=display:none;Content 3/div
div style=display:none;Content 4/div
div style=display:none;Content 5/div
div style=display:none;Content 6/div

What I would like to do is reveal the next div in the list when the
Show another link is clicked, allowing the user to reveal all of the
divs, or just a few.


How about something like the following?:

var $divs = $(div:not(:first)), currentIdx = 0;
$(a).click(function() {
if (currentIdx = $divs.length - 1) {
$($divs.get(currentIdx++)).show();
}
return false;
});

And you might want to add this before the return:

if (currentIdx == $divs.length) {
$(this).hide();
}

Obviously the selectors would really need to change for anything more 
like a real page, but I think that logic would do it.


  -- Scott


[jQuery] Re: How to extract an object from a jQuery reference?

2008-05-20 Thread Mike

 I'm not quite sure how to describe, or search for, my question in
 existing discussions.  I apologize in advance for my lack of search
 savvy.

 I understand that you can take an ordinary DOM object and create a
 jQuery reference out of it:

 var myDOMObject = document.myform.mytextfield;
 var myJQueryRef = $(myDOMObject);
 var myHtml = myJQueryRef.html();

 I know, I can chain.  But for the sake of this example, I won't.

 Is there a way to do the opposite?  An imaginary method could be:

 var extractedDOMObject = myJQueryRef.extractObject();
 var myHtml2 = extractedDOMObject.innerHTML;

 What might be used to replace the imaginary extractObject() method?


Think of the jQuery object as an array.  In your case the array has a
length of 1.

var extractedDOMObject = myJQueryRef[0];


[jQuery] Re: [OT] twitter

2008-05-20 Thread Rey Bango


I chose Snitter since it was built using jQuery and has all of the 
features that I want.


http://getsnitter.com/

Other options include the open source Spaz http://funkatron.com/spaz 
(also built using jQuery) and TWhirl.


Rey

Alexandre Plennevaux wrote:

hi friends,

now that jquery uses twitter, i might give twitter a chance. Can you 
recommend a good way to use it? A twitter client? Which?
i'm a bit afraid of the distraction it brings. but using it in my 
Greader is not very satisfactory. Any clue, welcomed !



Thanks,

--
Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


[jQuery] Re: explorer 6 conditional statement?

2008-05-20 Thread Mike

 Thanks for this. I played around and can't find any docs to explain it
 specifically...

 This is the code I'm working with:

 $.tooltip = {
 blocked: false,
 defaults: {
 delay: 200,
 showURL: true,
 extraClass: ,
 top: -60,
 left: 15,
 id: tooltip
 },

 Would this become:

 $.tooltip = {
 blocked: false,
 defaults: {
 delay: 200,
 showURL: true,
 extraClass: ,
 top: $.browser.ie ? 100 : -60
 left: 15,
 id: tooltip
 },

 Sorry for the confusion... I've looked at the syntax of javascript
 before today...

 Brian


Jörn meant to write this:

top: $.browser.msie ? 100 : -60



[jQuery] Re: How to extract an object from a jQuery reference?

2008-05-20 Thread Pyrolupus

On May 20, 3:37 pm, Jerome [EMAIL PROTECTED] wrote:
 I'm not quite sure how to describe, or search for, my question in
 existing discussions.  I apologize in advance for my lack of search
 savvy.

 I understand that you can take an ordinary DOM object and create a
 jQuery reference out of it:

 var myDOMObject = document.myform.mytextfield;
 var myJQueryRef = $(myDOMObject);
 var myHtml = myJQueryRef.html();

 I know, I can chain.  But for the sake of this example, I won't.

 Is there a way to do the opposite?  An imaginary method could be:

 var extractedDOMObject = myJQueryRef.extractObject();
 var myHtml2 = extractedDOMObject.innerHTML;

 What might be used to replace the imaginary extractObject() method?

You want $.get(), which returns an array of DOM elements, or
$.get(index) which returns a single element.  If you want a single
item, then $('#objectOfMyDesire').get(0) is your method of choice.

Reference:  http://docs.jquery.com/Core/get

Cheers,
Pyro


[jQuery] Re: twitter

2008-05-20 Thread Pyrolupus

On May 20, 3:48 pm, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:
 now that jquery uses twitter, i might give twitter a chance. Can you
 recommend a good way to use it? A twitter client? Which?
 i'm a bit afraid of the distraction it brings. but using it in my Greader
 is not very satisfactory. Any clue, welcomed !

I have my Twitter set up to send IMs to my Google Talk account.  Works
great.


[jQuery] Re: [OT] twitter

2008-05-20 Thread Morgan Allen
Twitterfox works ok, I have not tried anything else

On Tue, May 20, 2008 at 12:48 PM, Alexandre Plennevaux [EMAIL PROTECTED]
wrote:

 hi friends,

 now that jquery uses twitter, i might give twitter a chance. Can you
 recommend a good way to use it? A twitter client? Which?
 i'm a bit afraid of the distraction it brings. but using it in my Greader
 is not very satisfactory. Any clue, welcomed !


 Thanks,

 --
 Alexandre Plennevaux
 LAb[au]

 http://www.lab-au.com




-- 
http://morglog.alleycatracing.com
Lets make up more accronyms!

http://www.alleycatracing.com
LTABOTIIOFR! ROFL! ROFL! ROFL!
Upcoming alley cats, reviews, touring logs, and a general congregation of
bike nerdity.


[jQuery] Re: explorer 6 conditional statement?

2008-05-20 Thread olestaats

Justed tested in IE6 and IE7 and FF... works in all three!

Thanks so much! here is the link should you be interested:
http://www.projects.redpointdesign.ca/rp

Brian

On May 20, 2:04 pm, Mike [EMAIL PROTECTED] wrote:
  Thanks for this. I played around and can't find any docs to explain it
  specifically...

  This is the code I'm working with:

  $.tooltip = {
  blocked: false,
  defaults: {
  delay: 200,
  showURL: true,
  extraClass: ,
  top: -60,
  left: 15,
  id: tooltip
  },

  Would this become:

  $.tooltip = {
  blocked: false,
  defaults: {
  delay: 200,
  showURL: true,
  extraClass: ,
  top: $.browser.ie ? 100 : -60
  left: 15,
  id: tooltip
  },

  Sorry for the confusion... I've looked at the syntax of javascript
  before today...

  Brian

 Jörn meant to write this:

 top: $.browser.msie ? 100 : -60


[jQuery] Re: explorer 6 conditional statement?

2008-05-20 Thread olestaats

Ah, Brilliant!

That works in IE6 and FF2

I need to make sure it works in IE7 as well. Can I take the same
statment: top: $.browser.msie ? 100 : -60 ,

and make it specific to IE6? so is: top: $.browser.msie6 ? 100 : -60,
going to work?

Thanks!

On May 20, 2:04 pm, Mike [EMAIL PROTECTED] wrote:
  Thanks for this. I played around and can't find any docs to explain it
  specifically...

  This is the code I'm working with:

  $.tooltip = {
  blocked: false,
  defaults: {
  delay: 200,
  showURL: true,
  extraClass: ,
  top: -60,
  left: 15,
  id: tooltip
  },

  Would this become:

  $.tooltip = {
  blocked: false,
  defaults: {
  delay: 200,
  showURL: true,
  extraClass: ,
  top: $.browser.ie ? 100 : -60
  left: 15,
  id: tooltip
  },

  Sorry for the confusion... I've looked at the syntax of javascript
  before today...

  Brian

 Jörn meant to write this:

 top: $.browser.msie ? 100 : -60


[jQuery] jQuery tooltip doesn't work after UpdatePanel update?

2008-05-20 Thread vladv

Does jQuery supposed to work with asp.net ajax update panel?
I used jQuery tooltip  : 
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

but after the update panel update every tooltip is reset to default
tooltip.

how can this be fixed?

Thank you


[jQuery] Re: How to extract an object from a jQuery reference?

2008-05-20 Thread Jerome

And that seems to be what I'm looking for.  Thanks for pointing this
out.

Jerome.


On May 20, 2:56 pm, Pyrolupus [EMAIL PROTECTED] wrote:
 On May 20, 3:37 pm, Jerome [EMAIL PROTECTED] wrote:



  I'm not quite sure how to describe, or search for, my question in
  existing discussions.  I apologize in advance for my lack of search
  savvy.

  I understand that you can take an ordinary DOM object and create a
 jQueryreference out of it:

  var myDOMObject = document.myform.mytextfield;
  var myJQueryRef = $(myDOMObject);
  var myHtml = myJQueryRef.html();

  I know, I can chain.  But for the sake of this example, I won't.

  Is there a way to do the opposite?  An imaginary method could be:

  var extractedDOMObject = myJQueryRef.extractObject();
  var myHtml2 = extractedDOMObject.innerHTML;

  What might be used to replace the imaginary extractObject() method?

 You want $.get(), which returns an array of DOM elements, or
 $.get(index) which returns a single element.  If you want a single
 item, then $('#objectOfMyDesire').get(0) is your method of choice.

 Reference:  http://docs.jquery.com/Core/get

 Cheers,
 Pyro


[jQuery] Re: selectors question

2008-05-20 Thread Scott Sauyet


nos wrote:

input name=Categories class=listcomplete value=Cat1 Cat2 Cat3
ul
   liCat1/li
   liCat2/li
   liCat3/li
   liCat4/li
   liCat5/li
 /ul


I'm not quite sure what you're looking to do, and this markup is part of 
the issue.  There is no type attribute on your input tag.  Is this 
just a text field?  Also, the tag is also not closed.  Is the ul 
element supposed to somehow be embedded in the input element?


  -- Scott




[jQuery] Re: How to extract an object from a jQuery reference?

2008-05-20 Thread Michael Geary

  I understand that you can take an ordinary DOM object and create a 
  jQuery reference out of it:
 
  var myDOMObject = document.myform.mytextfield; var myJQueryRef = 
  $(myDOMObject); var myHtml = myJQueryRef.html();
 
  I know, I can chain.  But for the sake of this example, I won't.
 
  Is there a way to do the opposite?  An imaginary method could be:
 
  var extractedDOMObject = myJQueryRef.extractObject(); var myHtml2 = 
  extractedDOMObject.innerHTML;
 
  What might be used to replace the imaginary extractObject() method?

 You want $.get(), which returns an array of DOM elements, or
 $.get(index) which returns a single element.  If you want a 
 single item, then $('#objectOfMyDesire').get(0) is your 
 method of choice.
 
 Reference:  http://docs.jquery.com/Core/get

.get(n) will certainly work, but there's a faster and shorter way to do it.
The jQuery object returned by $() is an array of DOM elements. It's not an
actual Array object - it doesn't have all the Array methods - but for
purposes of reading it, you can treat it just like an Array: It has a
.length property and [0], [1], ... elements.

So, instead of writing:

$('#objectOfMyDesire').get(0)

You can use:

$('#objectOfMyDesire')[0]

In fact, .get(n) simply uses the [n] indexing to return a value.

.get() with no arguments does a bit more. It makes a copy of the jQuery
object as an actual Array, with all of the methods that any other JavaScript
Array has (and doesn't have any jQuery methods, being an Array object, not a
jQuery object).

Here's the source code for .get():

// Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array
get: function( num ) {
return num == undefined ?

// Return a 'clean' array
jQuery.makeArray( this ) :

// Return just the object
this[ num ];
},

-Mike



[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread David McFarland



On May 20, 2008, at 12:47 PM, Ariel Flesler wrote:



So.. Have you tried using jQuery 1.2.4 ?
jQuery.attr works completely different now.


It does? Do you mean there are API changes?

thanks

--dave



[jQuery] Re: [autocomplete] Is there an update planned to work with jQ 1.4 ?

2008-05-20 Thread Romain Sauvaire

Thanks for your answer !
We are all waiting :)
Continue the good job Jörn

On 20 mai, 19:29, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
 Yes, absolutely! I'm just waiting for the release. That applies to
 other plugins using dimensions, too, eg. tooltip.

 Jörn

 On Tue, May 20, 2008 at 4:38 PM, Romain Sauvaire

 [EMAIL PROTECTED] wrote:

  Hello everybody,

  Since Dimensions plugin is fully included into the next jQuery
  release, do you plan (Jörn or someone else) to update your
  autocomplete plugin ?

  More infos 
  :http://blog.brandonaaron.net/2008/05/09/dimensions-now-in-jquery-core/

  Thanx for your answers !


[jQuery] Re: attr difference in Firefox and IE7

2008-05-20 Thread Ariel Flesler

No, no API changes, .attr() is still .attr().
But it has been modified and a lot of existing issues were fixed.

--
Ariel Flesler
http://flesler.blogspot.com

On 20 mayo, 18:10, David McFarland [EMAIL PROTECTED] wrote:
 On May 20, 2008, at 12:47 PM, Ariel Flesler wrote:



  So.. Have you tried using jQuery 1.2.4 ?
  jQuery.attr works completely different now.

 It does? Do you mean there are API changes?

 thanks

 --dave


[jQuery] alert shows value, but can't get it passed to a function??

2008-05-20 Thread pedalpete

Hey, I'm kinda stumped on this one, but I'm sure it's not that
complicated.

I'm using jmaps to load a google map, and i can set the zoom with
mapZoom by manually entering 'mapZoom: 12', etc.

However I have a form, and I am trying to adjust the maps zoom based
on the range selected in the form.
 I have an alert, and it shows the right value, and the other value
from the .split (range) works perfectly, and is below the 'zoom2', but
zoom2 just doesn't work.

Can you see my mistake? I can't find it.
[code]
function getList(event, page){
  var distance = $('#distance').val();
var split_distance=distance.split(-);
var zoom2 = split_distance[1];
var range = split_distance[0];
 var genre = $('#genre').val();
 var addressQ = $('#address').val();
$('#filterList').hide();
$('.searchHolder').html('searching '+ genre + ' playing within 
'+
range + ' miles of '+ addressQ ).show();

  $('#map').jmap(searchAddress, {
address: $('#address').val()
  },
  function(options, point) {
alert(zoom2);
$('#map').jmap({pointLatLng:[point.y, point.x], pointHTML:
'Address' + options.address });
$('#map').jmap('init', {mapCenter: [point.y, point.x], mapZoom:
zoom2});
$('#holdBands').html('div class=\over\ style=\margin-top: 1px
\centerimg src=\images/ajax-loader.gif\/center/div');
$.ajax({
type: POST,
url: processes/showList.php,
data: 
lat=+point.y+long=+point.x+genre=+genre+page=+page
+address=+addressQ+distance=+range,
success: function(response){
[/code]

i'd appreciate any help on this,
Thanks
Pete


[jQuery] BlockUI: What's wrong with this code?

2008-05-20 Thread Chris Jordan
Can anyone tell me what's wrong with the following code:

$(function(){
$(.thumb).bind(mouseover, function(){
$(this).blockUI({
message: $(this).attr(alt)
})
}).bind(mouseout,function(){
$(this).unblockUI();
});
});

the thumb class is applied to a bunch of images on my page. when I
mouseover the image I want a layer put up over just that image along with a
message (the alternate text). The error I get is: $(this).blockUI() is not a
function. Likewise I get the same on the mouseout only with the appropriate
function name listed in the error.

Can anyone tell me what I'm doing wrong?

Thanks!
Chris

-- 
http://cjordan.us


[jQuery] Re: Checking a radio button

2008-05-20 Thread Karl Rudd

Right, the problem is that every radio button has the same id, remove
them. You can use:

 $(':radio[value=EasyOrder Basic]').attr('checked', true);

On a side note, why do you need to check the radio button via
JavaScript, why can't you check it on the server side?

Karl Rudd

On Wed, May 21, 2008 at 5:24 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Thanks for this feedback but that is what I'm trying and the radio
 button is empty. My script is

 script type=text/javascript
$(document).ready(function() {
 $('#Demo[value=EasyOrder Basic]').attr('checked', true);
});
 /script

 and the URL is

 http://www.remanresource.com/signup.php?SubscrIDP=5

 Thanks, - Dave

 On May 19, 8:34 pm, Karl Rudd [EMAIL PROTECTED] wrote:
 Remember to be careful how you mix the various quotes ' and . The
 following should work.

 $('#Demo[value=hello there]').attr('checked', true);

 Karl Rudd

 On Tue, May 20, 2008 at 11:33 AM, [EMAIL PROTECTED]



 [EMAIL PROTECTED] wrote:

  I may have spoken a little too soon.  Karl, that was a great solution,
  but what if the part of the value clause has a space in it?  This
  isn't working for me ...

  $('#Demo[value=hello there]').attr('checked', true);

  nor is this ...

  $('#Demo[value=hello there]').attr('checked', true);

  Any suggestions are greatly appreciated, - Dave

  On May 19, 7:56 pm, Karl Rudd [EMAIL PROTECTED] wrote:
  Assuming the following:

input type=radio name=someName id=Demo value=hello

  The following will check the radio button:

$('#Demo').attr('checked', true);

  If you _really_ need to ONLY check the radio button if it's got an
  id=Demo AND value=hello:

$('#Demo[value=hello]')

  Karl Rudd

  On Tue, May 20, 2008 at 8:47 AM, [EMAIL PROTECTED]

  [EMAIL PROTECTED] wrote:

   Hi,

   When my page loads, I'd like to check a radio button whose ids are
   Demo and whose value is hello.  How do I do this with JQuery?

   Thanks, - Dave- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -



[jQuery] Re: [OT] twitter

2008-05-20 Thread Jason Huck

I've tried several, but always come back to Twitterific:

http://iconfactory.com/software/twitterrific

- jason
(http://twitter.com/easykill)



[jQuery] Re: BlockUI: What's wrong with this code?

2008-05-20 Thread Chris Jordan
I figured it out. It should be $(this).block() NOT $(this).blockUI()...
duh...

On Tue, May 20, 2008 at 5:10 PM, Chris Jordan [EMAIL PROTECTED]
wrote:

 Can anyone tell me what's wrong with the following code:

 $(function(){
 $(.thumb).bind(mouseover, function(){
 $(this).blockUI({
 message: $(this).attr(alt)
 })
 }).bind(mouseout,function(){
 $(this).unblockUI();
 });
 });

 the thumb class is applied to a bunch of images on my page. when I
 mouseover the image I want a layer put up over just that image along with a
 message (the alternate text). The error I get is: $(this).blockUI() is not a
 function. Likewise I get the same on the mouseout only with the appropriate
 function name listed in the error.

 Can anyone tell me what I'm doing wrong?

 Thanks!
 Chris

 --
 http://cjordan.us




-- 
http://cjordan.us


[jQuery] Page Over Preview Navigation.

2008-05-20 Thread Ian

Hello All,

First off thanks to the jquery team, they've made a great little
library which has made me get my hand dirty, and understand a little
bit of javascript, thanks.

Im hoping someone can help me out with the following...

Im trying to make a preview window, that lets you scroll over a page
by moving a control. In the page below the page is set to 1,1
pixels. The black box is 100/100. When someone moves the white box
(control) the page is scrolled to the relative position.

See below for an example:
http://www.kith-kin.co.uk/tests/scroller_kinda.asp

It works ok when someone moves the white box to navigate, but when
they scroll using the scrollbars or mousewheel I need to get the
control box to update its location.

I have had attempt at making this work, but am getting strange
results. See below.
http://www.kith-kin.co.uk/tests/scroller.asp

When you load the page the box doesn't update its relative location.
But when you move the white box it jumps to the original location,
then slowly creaps back to the new location. Its a cool thing, but not
what im after!

I think my problem / complication lies with using $(window).scroll
beacuse when someone scrolls using scrollbars this works (as
intended), but the call also works when you move the box, and hence
scroll the page.

Is there anyway to work out that somehas scrolled the page by using a
mouse wheel, or the scrollbars?

Or am I approching this wrong?

Any help much appriciated, hope this wasn't too ramblling.
Cheers
Ian.


[jQuery] Case Insensitive Selector

2008-05-20 Thread Rafael Soares
Hi!

I'm using a [attribute*='value'] selector, and the only problem is that I
need it to be case insensitive.

Is there any way I could do it?

Thanks.


[jQuery] Re: jQuery tooltip doesn't work after UpdatePanel update?

2008-05-20 Thread Gauthier Segay

You may need to reattach the tooltip plugin to the dom being
refreshed.

Does your asp.net component support attaching custom javascript on
content refresh?

If it doesn't support that (not very extensible), you may override the
default behaviour by monkey patching the javascript function being
call when update pannel is trigged.

On May 20, 10:29 pm, vladv [EMAIL PROTECTED] wrote:
 Does jQuery supposed to work with asp.net ajax update panel?
 I used jQuery tooltip  
 :http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

 but after the update panel update every tooltip is reset to default
 tooltip.

 how can this be fixed?

 Thank you


  1   2   >