Re: [jQuery] Dom creation

2006-08-17 Thread Sam Collett
On 17/08/06, Michael Geary <[EMAIL PROTECTED]> wrote:
> > From: Aloyzas Rimeika
> >
> > ...But I recommend use $.dom plugin only in XHTML pages with
> > MIME type application/xhtml+xml
> > http://www.quirksmode.org/bugreports/archives/2004/11/innerhtml_in_xh.html
> >
> > Easier and faster solution is innerHTML
> > http://www.quirksmode.org/dom/innerhtml.html
> >
> > For example:
> > var json = [
> >{'name' : "John", 'surname' : "Smith"},
> >{'name' : "Sarra", 'surname' : "Smith"} ];
> >
> > var table = $('#fill-table > tbody');
> > $.each(json, function(){
> >table.append(''
> >   +''+ this.name
> >   +''+ this.surname
> >+'');
> > });
>
> I'm with you there. I have switched most of my code from DOM creation to
> innerHTML.
>
> BTW, you can speed up this kind of code by using Array.join instead of
> string concatenation:
>
>  var table = $('#fill-table > tbody');
>  $.each(json, function(){
> table.append( [
> '',
> '', this.name, '',
> '', this.surname, '',
> ''
> ].join('') );
>  });
>
> It won't make a huge difference in a simple case like this, but if you're
> concatenating very many strings, Array.join really speeds things up in most
> browsers.
>
> -Mike
>

Doesn't this work:

$('#fill-table > tbody').append(json, [
   '',
   '', this.name, '',
   '', this.surname, '',
   ''
   ].join('');
 );

If not, perhaps it should be added to jQuery?

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


Re: [jQuery] Help with the SVN Build Process

2006-08-17 Thread Sam Collett
On 16/08/06, John Resig <[EMAIL PROTECTED]> wrote:
> Step 1:
> Go to this page and download and install "Java Runtime Environment (JRE) 5.0":
> http://java.sun.com/javase/downloads/index.jsp
>
> Step 2:
> Download and install Apache Ant:
> http://ant.apache.org/bindownload.cgi
>
> Step 3:
> Go to the jQuery directory and type 'ant'. You now have a compiled
> version of jQuery, the documentation, and the test suite.
>
> Steps 2 & 3 Change depending if you're using Ant or the Makefile.
> Since jQuery now includes the Ant build file, it's much easier to
> simply use that (and more cross-platform). For UNIX-type people, like
> myself, I'll just see the Makefile, type Make, and be done with it.
>
> I recommend that you check out the new, updated, README file in jQuery
> SVN - as it explains this whole process.
>
> --John
>

Perhaps it may be benefitial if you could also build jQuery using NAnt
or MSBuild - if you don't want / don't have Java or Make?

Is there a way to check out jQuery without using SVN (ISA server
blocks essential HTTP commands (PROPFIND) needed by SVN - error 400:
Bad Request)?

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


Re: [jQuery] Dom creation

2006-08-17 Thread John Resig
> Doesn't this work:
>
> $('#fill-table > tbody').append(json, [
>'',
>'', this.name, '',
>'', this.surname, '',
>''
>].join('');
>  );
>
> If not, perhaps it should be added to jQuery?

Not the json/templating stuff - but you can append s to both
tables and tbodys (jQuery takes care of all the innerHTML details to
make it work cross browser).

--John

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


[jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread Sam Collett
Does jQuery SVN have any functions for getting the dimensions (left,
right, top, bottom, width, height, z-index) of an element? Something
that also works across different browsers. I want to be able to do
something like this:

var me = $("#myelement");
var meD= $("#myelement").dimensions(0); // dimensions() would also get
the first match
var left = meD.left;

Or maybe a better way (having left, right, top etc as methods):

// set left, top and height (chain not broken)
$("#myelement").left("12px").top("-2em").height("6em");
// get width (chain broken)
var width = $("#myelement").width();

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


[jQuery] Tabs plugin feature request

2006-08-17 Thread ashutosh bijoor
Hi KlausI've been playing around with your tabs plugin, and would very much like it if you could add a callback facility. ie, when the tab is changed, i'd like a function to be called in the scope of the active tab.
I can make this change myself, but dont know whether i have the latest version. does the URL quoted below contain the latest version?RegardsAshutoshOn 8/3/06, 
Klaus Hartl <[EMAIL PROTECTED]> wrote:
Tabs:http://stilbuero.de/jquery/tabs/(Note: can now use fade and slide for switching tabs. slide is slightlybroken in latest svn version...)
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Reach1to1 Communicationshttp://www.reach1to1.com[EMAIL PROTECTED]98201-94408
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Improvements in Ajax facilities - error handling?

2006-08-17 Thread Andy Matthews
Speaking of errors...

That's one thing I've really wanted. When using jQuery, I've noticed that
assuming all of the syntax is valid, if you run code that doesn't work,
nothing happens. No error message, nothing.

That makes debugging quite difficult because you have no idea where to
start.

Is there any way that jQuery could generate SOME sort of error, a default
alert box maybe) with error information?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of John Resig
Sent: Wednesday, August 16, 2006 11:28 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Improvements in Ajax facilities


This is an amazing set of fixes/updates. I poured through them, made
some tweaks, changes, and bug fixes and committed it to SVN.

The big change, from your code, is that 'failure' is now 'error' - to
be consistent with the current naming scheme. Keep up the great work!

--John


On 8/16/06, Taku Sano (Mikage Sawatari) <[EMAIL PROTECTED]> wrote:
> With Ajax facilities of jQuery, it is not easy to deal with errors. In
> addition, it is inconvenient to repeat reloading the same URL to
> observe changes. Please confirm my patch handles these issues.
>
> [patch for svn.208]
> http://pepper.sherry.jp/jquery/newajaxpatch-svn208.patch
>
> [test page]
> http://pepper.sherry.jp/jquery/newajaxfunc.html
>
> Problems:
> - $().load() replaces the HTML regardless of whether the request has
>   succeeded or failed. Therefore it is impossible to customize an error
>   message to show.
> - Callback functions can't learn if the request has succeeded or not.
> - It's true that there are methods that are called on error. But even
>   if it failed, DOM elements are always replaced, and callbacks are
>   always called.
> - There are no ways to set timeout. In case of a server doesn't respond,
>   we can't abort the request after a few seconds and display an error.
>
> Improvements:
> - Callbacks for $().load(), $.get, $.post now takes the second argument
>   which represents a state ("success", "failure", "notmodified").
> - $().load() no longer replaces the HTML on error, if a callback is
>   supplied. Without a callback, it replaces the HTML on error as it
>   used to do.
> - $().load(), $.get, $.post now can timeout. When it timed out, the state
>   becomes "failure" and treated as an error.
> $.ajaxTimeout(1000); // ms
> $().load();
> - Added 2 ajax methods:
> $().loadIfModified();
> $.getIfModified();
>   These methods set If-Modified-Since header to Ajax requests. They are
>   useful when we periodically reload the same URL to see changes.
>
>   They work the same way as $().load and $.get if the URL is updated.
>   When it is unchanged, ().load doesn't replace the URL but does callback.
>   In that case, the state will be "notmodified".
>
>   Since IE always returns the same cached content for the same URL, it is
>   normally impossible to check changes. It's true that it is possible to
>   force not to use cache by appending some random characters as query of
>   the URL, but then we waste the traffic needlessly. $().loadIfModified()
>   and $.getIfModified() solve this problem.
>
>
> 
> Taku Sano
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


--
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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


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


Re: [jQuery] New plugin: Autocompleter

2006-08-17 Thread Dan Atkinson

Hey there!

This is a wonderful piece of code you have here!

I'm trying to intergrate it into my current project but I'm having an issue.

My query results contain a link (like Google Suggest results), but when I
click on a result in the autocomplete, it just puts the entire link (HTML
included) in the textbox text.

What do I need to do to make it jump to the given link, instead of putting
the selected item into the textbox?

Thanks very much!

Dan
-- 
View this message in context: 
http://www.nabble.com/New-plugin%3A-Autocompleter-tf1998487.html#a5851684
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Improvements in Ajax facilities

2006-08-17 Thread Mike Alsup
Taku / John,

This is excellent stuff!  Great work.

Mike

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


Re: [jQuery] New Plugin: Spy

2006-08-17 Thread Jason Levine
Very nice plugin!

I've put it to use in a little mini-app here at work.  (Unfortunately,
it's an internal thing, so I can't post an example link.)

One suggestion:  I found timestamp you are using difficult to process
under ASP/MS SQL.  I made some modifications to your script to add a
second timestamp formatted slightly differently.

First I changed:

var timestamp = Math.floor((now - epoch) / 1000);

to:


var timestamp = Math.floor((now - epoch) / 1000);
var timestampstring = (now.getMonth()+1) + '/' +
now.getDate() + '/' + now.getFullYear() + ' ' + now.getHours() + ':' +
now.getMinutes() + ':' + now.getSeconds();

Then I changed:

$.post(o['ajax'], { 'timestamp':
timestamp }, function(r) {

to:


$.post(o['ajax'], { 'timestamp':
timestamp, 'timestampstring': timestampstring  }, function(r) {

This way, I can use the "timestampstring" form post variable in my
database queries.


>>> Remy Sharp <[EMAIL PROTECTED]> 08/14/06 7:06 AM >>>
Hi,

I've written a jQuery plugin that creates similar functionality to  
the Digg spy (http://digg.com/spy).

Examples and documentation:

http://leftlogic.com/info/articles/jquery_spy 

Source:

http://leftlogic.com/jquery_spy/spy.js 

Will be grateful for any feedback.

Thanks,

Remy Sharp


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

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


Re: [jQuery] New plugin: Autocompleter

2006-08-17 Thread Sam Collett
On 17/08/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>
> Hey there!
>
> This is a wonderful piece of code you have here!
>
> I'm trying to intergrate it into my current project but I'm having an issue.
>
> My query results contain a link (like Google Suggest results), but when I
> click on a result in the autocomplete, it just puts the entire link (HTML
> included) in the textbox text.
>
> What do I need to do to make it jump to the given link, instead of putting
> the selected item into the textbox?
>
> Thanks very much!
>
> Dan
> --

What I would do is return the results from the queried page with the
link after a |

jQuery|http://jquery.com
Google|http://www.google.com
Yahoo|http:www.yahoo.com


Then do the following:

$("#mysearch").autocomplete("sites.php",
{
minChars:3,
matchSubset:1,
matchContains:1,
cacheLength:10,
onItemSelect: navigate
}
)
function navigation(li)
{
if (li.extra)
{
location.href = li.extra[0];
}
}

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


[jQuery] Plugin for browser's "Go Back" button and "bookmark"

2006-08-17 Thread Taku Sano (Mikage Sawatari)
I have made a plugin that helps you make your Ajax-driven page
available for "Go Back" button and "bookmark" of browser.

See the sample page: http://www.mikage.to/jquery/jquery_history.html

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


Re: [jQuery] New plugin: Autocompleter

2006-08-17 Thread Dan Atkinson

Sam,

Thanks for that.

Here is an example of my output is from a search query:

DSC-DSCSW70S|index.aspx?s=digitalcamera
DSC-DSCFW7S|index.aspx?s=digitalcamera
DSC-DSCHW7S|index.aspx?s=digitalcamera
DSC-DSLWRA100KB|index.aspx?s=digitalcamera
DSC-DSLQRA100W|index.aspx?s=digitalcamera

And here is my what I'm calling with:


$(document).ready(function() {
$("#ctl00_ContentPlaceHolder1_ac_me").autocomplete("search.aspx",
{
minChars:5,
matchSubset:1,
matchContains:1,
cacheLength:10,
onItemSelect:navigate
}
);
});

function navigation(li)
{
if (li.extra)
{
location.href = li.extra[0];
}
}


In IE6, when I click on a result, I get taken to
"http://example.com/[object]"; sans quotes.
In Firefox, I get the following error in Firebug: "navigate is not defined".
Search does not work at all and does not return any results.

Where is navigation() being called?

Thanks again.


Sam Collett wrote:
> 
> What I would do is return the results from the queried page with the
> link after a |
> 
> jQuery|http://jquery.com
> Google|http://www.google.com
> Yahoo|http:www.yahoo.com
> 
> 
> Then do the following:
> 
> $("#mysearch").autocomplete("sites.php",
>   {
>   minChars:3,
>   matchSubset:1,
>   matchContains:1,
>   cacheLength:10,
>   onItemSelect: navigate
>   }
> )
> function navigation(li)
> {
>   if (li.extra)
>   {
>   location.href = li.extra[0];
>   }
> }
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/New-plugin%3A-Autocompleter-tf1998487.html#a5852491
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] New plugin: Autocompleter

2006-08-17 Thread Dan Atkinson

Scratch that!

I replaced 'onItemSelect: navigate' for 'onItemSelect: navigation'!!!

:)

Thanks again Sam!



Sam Collett wrote:
> 
> On 17/08/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>>
>> Hey there!
>>
>> This is a wonderful piece of code you have here!
>>
>> I'm trying to intergrate it into my current project but I'm having an
>> issue.
>>
>> My query results contain a link (like Google Suggest results), but when I
>> click on a result in the autocomplete, it just puts the entire link (HTML
>> included) in the textbox text.
>>
>> What do I need to do to make it jump to the given link, instead of
>> putting
>> the selected item into the textbox?
>>
>> Thanks very much!
>>
>> Dan
>> --
> 
> What I would do is return the results from the queried page with the
> link after a |
> 
> jQuery|http://jquery.com
> Google|http://www.google.com
> Yahoo|http:www.yahoo.com
> 
> 
> Then do the following:
> 
> $("#mysearch").autocomplete("sites.php",
>   {
>   minChars:3,
>   matchSubset:1,
>   matchContains:1,
>   cacheLength:10,
>   onItemSelect: navigate
>   }
> )
> function navigation(li)
> {
>   if (li.extra)
>   {
>   location.href = li.extra[0];
>   }
> }
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/New-plugin%3A-Autocompleter-tf1998487.html#a5852548
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] New plugin: Autocompleter

2006-08-17 Thread Sam Collett
On 17/08/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>
> Scratch that!
>
> I replaced 'onItemSelect: navigate' for 'onItemSelect: navigation'!!!
>
> :)
>
> Thanks again Sam!
>

That was a typo I made. Good that you spotted it though!

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


[jQuery] Rebind events on dynamic content (modified DOM)

2006-08-17 Thread Tom Holder
Hi Guys,

I'm fairly new to Jquery but love it! My problem:

I'm loading some DIV in to a container DIV using AJAX... all works
like a charm. However, I need to bind some events to the DIVs I'm
dynamically loading in, no joy :(

I guess I need to refresh the DOM somehow?

My code looks like:



$("#daysheader").load("ajax/weekview_headers.aspx?fromdate=" +
calendarDay.Date);

$("#days").load("ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date);

BindTimeSelectors();



function BindTimeSelectors()

{

//Wire up mouse down events to the day selectors.

$("#day1selector").mousedown(function(){mouseDown("day1selector");});

$("#day2selector").mousedown(function(){mouseDown("day2selector");});

$("#day3selector").mousedown(function(){mouseDown("day3selector");});

$("#day4selector").mousedown(function(){mouseDown("day4selector");});

$("#day5selector").mousedown(function(){mouseDown("day5selector");});

}

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


Re: [jQuery] New plugin: Autocompleter

2006-08-17 Thread Dylan Verheul
Return the link as an extra parameter. So format your results like this:

result1|link1
result2|link2
...

onItemSelect allows you to access the complete row of the selected
resut as an array.



On 8/17/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>
> Hey there!
>
> This is a wonderful piece of code you have here!
>
> I'm trying to intergrate it into my current project but I'm having an issue.
>
> My query results contain a link (like Google Suggest results), but when I
> click on a result in the autocomplete, it just puts the entire link (HTML
> included) in the textbox text.
>
> What do I need to do to make it jump to the given link, instead of putting
> the selected item into the textbox?
>
> Thanks very much!
>
> Dan
> --
> View this message in context: 
> http://www.nabble.com/New-plugin%3A-Autocompleter-tf1998487.html#a5851684
> Sent from the JQuery forum at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Rebind events on dynamic content (modified DOM)

2006-08-17 Thread Aloyzas Rimeika
try my plugin: http://www.aloyzas.lt/javascript/jquery-dev/events.js
I didn't wrote any documentation because of my English :) and it
requires more testing I think.

How it works:
$('').events({
  ':': function(e){
... do something...
  },
  ...
});

Example:
$(document).events({
  '[EMAIL PROTECTED]:click': function(e){
alert("go to anchor");
  }
});

On 8/17/06, Tom Holder <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I'm fairly new to Jquery but love it! My problem:
>
> I'm loading some DIV in to a container DIV using AJAX... all works
> like a charm. However, I need to bind some events to the DIVs I'm
> dynamically loading in, no joy :(
>
> I guess I need to refresh the DOM somehow?
>
> My code looks like:
>
>
>
> $("#daysheader").load("ajax/weekview_headers.aspx?fromdate=" +
> calendarDay.Date);
>
> $("#days").load("ajax/weekview_appointments.aspx?fromdate=" + 
> calendarDay.Date);
>
> BindTimeSelectors();
>
>
>
> function BindTimeSelectors()
>
> {
>
> //Wire up mouse down events to the day selectors.
>
> $("#day1selector").mousedown(function(){mouseDown("day1selector");});
>
> $("#day2selector").mousedown(function(){mouseDown("day2selector");});
>
> $("#day3selector").mousedown(function(){mouseDown("day3selector");});
>
> $("#day4selector").mousedown(function(){mouseDown("day4selector");});
>
> $("#day5selector").mousedown(function(){mouseDown("day5selector");});
>
> }
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Rebind events on dynamic content (modified DOM)

2006-08-17 Thread Mark Panay
Hi Tom,

I had this problem a while ago and John pointed out that it "should"
work... Probably worth checking your cache...

Hope this helps

Mark.

On 17/08/06, Tom Holder <[EMAIL PROTECTED]> wrote:
> Hi Guys,
>
> I'm fairly new to Jquery but love it! My problem:
>
> I'm loading some DIV in to a container DIV using AJAX... all works
> like a charm. However, I need to bind some events to the DIVs I'm
> dynamically loading in, no joy :(
>
> I guess I need to refresh the DOM somehow?
>
> My code looks like:
>
>
>
> $("#daysheader").load("ajax/weekview_headers.aspx?fromdate=" +
> calendarDay.Date);
>
> $("#days").load("ajax/weekview_appointments.aspx?fromdate=" + 
> calendarDay.Date);
>
> BindTimeSelectors();
>
>
>
> function BindTimeSelectors()
>
> {
>
> //Wire up mouse down events to the day selectors.
>
> $("#day1selector").mousedown(function(){mouseDown("day1selector");});
>
> $("#day2selector").mousedown(function(){mouseDown("day2selector");});
>
> $("#day3selector").mousedown(function(){mouseDown("day3selector");});
>
> $("#day4selector").mousedown(function(){mouseDown("day4selector");});
>
> $("#day5selector").mousedown(function(){mouseDown("day5selector");});
>
> }
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
www.markpanay.com - Jargon Free Development
www.labellife.com - Music Industry 2.0
www.tunecast.co.uk - Music for your website

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


Re: [jQuery] Rebind events on dynamic content (modified DOM)

2006-08-17 Thread Michael Geary
You are calling BindTimeSelectors before the AJAX load is complete.

Which AJAX load is the one that BindTimeSelectors depends on? Assuming it is
the second one, you could code it like this:

 $("#daysheader").load( "ajax/weekview_headers.aspx?fromdate=" +
calendarDay.Date );
 $("#days").load(
 "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
 BindTimeSelectors()
 );

Also, the code that wires up the events could be simplified considerably.
Are you able to give each of those DOM elements a common class name? If they
all have the class name "dayselector" then you could just code:

 function BindTimeSelectors()
 {
 //Wire up mouse down events to the day selectors.
 $(".dayselector").mousedown( function() { mouseDown( this.id ); } );
 }

If you can't do that, a simple loop would do the trick:

 function BindTimeSelectors()
 {
 //Wire up mouse down events to the day selectors.
 for( var i = 1;  i <= 5;  i++ ) {
 $( "#day" + i + "selector" ).mousedown( function() { mouseDown(
this.id ); } );
 }
 }

> I'm loading some DIV in to a container DIV using AJAX... all 
> works like a charm. However, I need to bind some events to 
> the DIVs I'm dynamically loading in, no joy :(
> 
> I guess I need to refresh the DOM somehow?
> 
> My code looks like:
> 
> $("#daysheader").load("ajax/weekview_headers.aspx?fromdate=" +
calendarDay.Date);
> $("#days").load("ajax/weekview_appointments.aspx?fromdate=" +
calendarDay.Date);
> BindTimeSelectors();
> 
> function BindTimeSelectors()
> {
> //Wire up mouse down events to the day selectors.
> $("#day1selector").mousedown(function(){mouseDown("day1selector");});
> $("#day2selector").mousedown(function(){mouseDown("day2selector");});
> $("#day3selector").mousedown(function(){mouseDown("day3selector");});
> $("#day4selector").mousedown(function(){mouseDown("day4selector");});
> $("#day5selector").mousedown(function(){mouseDown("day5selector");});
> }


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


Re: [jQuery] Rebind events on dynamic content (modified DOM)

2006-08-17 Thread Tom Holder
Hi Mike,

Cheers for that. It turns out it was actually working as I had it, so
perhaps it was the fact the ajax hadn't finished loading so I'll
replace with your method.

The simiplified event binding looks cool too,

Cheers
Tom

On 8/17/06, Michael Geary <[EMAIL PROTECTED]> wrote:
> You are calling BindTimeSelectors before the AJAX load is complete.
>
> Which AJAX load is the one that BindTimeSelectors depends on? Assuming it is
> the second one, you could code it like this:
>
>  $("#daysheader").load( "ajax/weekview_headers.aspx?fromdate=" +
> calendarDay.Date );
>  $("#days").load(
>  "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
>  BindTimeSelectors()
>  );
>
> Also, the code that wires up the events could be simplified considerably.
> Are you able to give each of those DOM elements a common class name? If they
> all have the class name "dayselector" then you could just code:
>
>  function BindTimeSelectors()
>  {
>  //Wire up mouse down events to the day selectors.
>  $(".dayselector").mousedown( function() { mouseDown( this.id ); } );
>  }
>
> If you can't do that, a simple loop would do the trick:
>
>  function BindTimeSelectors()
>  {
>  //Wire up mouse down events to the day selectors.
>  for( var i = 1;  i <= 5;  i++ ) {
>  $( "#day" + i + "selector" ).mousedown( function() { mouseDown(
> this.id ); } );
>  }
>  }
>
> > I'm loading some DIV in to a container DIV using AJAX... all
> > works like a charm. However, I need to bind some events to
> > the DIVs I'm dynamically loading in, no joy :(
> >
> > I guess I need to refresh the DOM somehow?
> >
> > My code looks like:
> >
> > $("#daysheader").load("ajax/weekview_headers.aspx?fromdate=" +
> calendarDay.Date);
> > $("#days").load("ajax/weekview_appointments.aspx?fromdate=" +
> calendarDay.Date);
> > BindTimeSelectors();
> >
> > function BindTimeSelectors()
> > {
> > //Wire up mouse down events to the day selectors.
> > $("#day1selector").mousedown(function(){mouseDown("day1selector");});
> > $("#day2selector").mousedown(function(){mouseDown("day2selector");});
> > $("#day3selector").mousedown(function(){mouseDown("day3selector");});
> > $("#day4selector").mousedown(function(){mouseDown("day4selector");});
> > $("#day5selector").mousedown(function(){mouseDown("day5selector");});
> > }
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Plugin for browser's "Go Back" button and "bookmark"

2006-08-17 Thread Mike Alsup
> I have made a plugin that helps you make your Ajax-driven page
> available for "Go Back" button and "bookmark" of browser.


This is effing sweet.

Thanks, Taku!

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread John Resig
> Or maybe a better way (having left, right, top etc as methods):
>
> // set left, top and height (chain not broken)
> $("#myelement").left("12px").top("-2em").height("6em");
> // get width (chain broken)
> var width = $("#myelement").width();

Have you tried this yet? It works, verbatim. :-)

All those methods are detailed in the new docs (temporary URL):
http://john.jquery.com/jquery/docs/

--John

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


Re: [jQuery] Plugin for browser's "Go Back" button and "bookmark"

2006-08-17 Thread Andy Matthews
You my friend are a GENIUS!!!

I need this sort of thing for a project I'm building using jQuery!
Wonderful!



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Taku Sano (Mikage Sawatari)
Sent: Thursday, August 17, 2006 9:43 AM
To: jQuery Discussion.
Subject: [jQuery] Plugin for browser's "Go Back" button and "bookmark"


I have made a plugin that helps you make your Ajax-driven page
available for "Go Back" button and "bookmark" of browser.

See the sample page: http://www.mikage.to/jquery/jquery_history.html

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


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


Re: [jQuery] jQuery vs Prototype

2006-08-17 Thread Menier, Todd








Thanks to all who responded. I'm already
impressed by the bright and active community rallying around this thing. For
that reason, and because it makes my code look so gosh darned pretty, I'm leaning
toward jQuery at this point.

 

Oh yeah, and also because of the Devo hat
logo. It just does it for me. Hey John, if you ever get tired of the "New
Wave _javascript_" tagline, how about "Whip Your Scripts Into Shape"?

 









From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Stith
Sent: Wednesday, August 16, 2006
4:54 PM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery vs
Prototype



 

Im with Jonathan on this
one. jQuery is the only library ive ever used, and its done everything ive ever
needed.



On 8/16/06, Jonathan
Sharp <
[EMAIL PROTECTED]> wrote:



I would agree with Corey. We've been using jquery in a large scale
application. We evaluated jquery and prototype a while back but were forced to
start prototyping ui's quickly and so we picked jquery and figured we'd
re-evaluate when implementation began. 

We've never re-evaluated since there has never been a need. We went from the
prototype to implementation phase faster than planned and have been able to
develop robust components with amazing speed. (One example of a component is http://jdsharp.us/code/jd_Menu/jd_Menu.html)

I can't speak to prototype since I haven't used it extensively, so let's just
say that jquery has never given me a reason to look anywhere else. 

Great work John!






-js











On 8/16/06, Corey
Jewett <[EMAIL PROTECTED]> wrote: 

You'd be surprised at how much functionality jQuery packs into such a
small package. I used to use prototype, but I've switched to jQuery 
completely.

Maybe the largest piece of functionality you'll give up is access to
some of the other stuff that leverages prototype (e.g.
scriptaculous). However jQuery has a thriving plugin community that's 
rapidly expanding the quite of bolt-on goodness.

My main reason for switching to jQuery is it's terseness and
expressiveness. The chainable method strategy often results in being
50-75% shorter code than equivalent prototype code. There's some 
examples documenting this phenomena on the jQuery blog. For me
terser, more expressive code is not only more productive, but more
readable and easier to debug.

Corey


On Aug 16, 2006, at 12:51 PM, Menier, Todd wrote: 

> Hello,
>
> I'm new to this mailing list and have recently begun the process of
> evaluating jQuery. After looking at a wide variety of _javascript_/
> Ajax
libraries, I've narrowed my choices down to jQuery and 
> Prototype. Though I understand there's nothing stopping me from
> using both, there's lots of overlapping functionality from what I
> can tell and I'd prefer to pick one as my primary solution.
> 
>
>
> I'm having a hard time finding good information that directly
> compares the 2 libraries. I assume the in exchange for the much
> smaller file size, I'd be giving up a good deal of functionality by 
> going with jQuery. I've begun going through what documentation and
> articles do exist in an attempt to put my own comparison together,
> but I was wondering if anyone who has experience with both
> libraries could provide a broad overview of their main differences?
>
>
>
> Thanks!
>
> Todd
>
> ___
> jQuery mailing list 
> discuss@jquery.com
> http://jquery.com/discuss/


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












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





 






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


Re: [jQuery] jQuery vs Prototype

2006-08-17 Thread John Resig
> Oh yeah, and also because of the Devo hat logo. It just does it for me. Hey
> John, if you ever get tired of the "New Wave Javascript" tagline, how about
> "Whip Your Scripts Into Shape"?

Haha! I like that a lot :-) Maybe that'll be the tag line for the
re-launched site. Or maybe something like "Whipping Javascript into
Shape." I like those a lot :-)

--John

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread John Resig
> The problem is if you want the dimensions of an element that is not
> positioned via CSS, i.e. to get the left position:

True - and a request for it is already in the bug tracker. However,
it's just not going to happen before 1.0 proper - it's in a feature
freeze right now.

--John

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread Sam Collett
On 17/08/06, John Resig <[EMAIL PROTECTED]> wrote:
> > Or maybe a better way (having left, right, top etc as methods):
> >
> > // set left, top and height (chain not broken)
> > $("#myelement").left("12px").top("-2em").height("6em");
> > // get width (chain broken)
> > var width = $("#myelement").width();
>
> Have you tried this yet? It works, verbatim. :-)
>
> All those methods are detailed in the new docs (temporary URL):
> http://john.jquery.com/jquery/docs/
>
> --John
>

The problem is if you want the dimensions of an element that is not
positioned via CSS, i.e. to get the left position:

var left = el.offsetLeft;
do
{
  el = el.offsetParent, left+= el.offsetLeft, top+= el.offsetTop;
}
while (el.offsetParent);

I think offsetLeft (and offsetTop, offsetWidth, offsetHeight) are
supported by all those browsers jQuery works with - as el.y and el.x
are for Netscape 4.

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread Sam Collett
On 17/08/06, John Resig <[EMAIL PROTECTED]> wrote:
> > The problem is if you want the dimensions of an element that is not
> > positioned via CSS, i.e. to get the left position:
>
> True - and a request for it is already in the bug tracker. However,
> it's just not going to happen before 1.0 proper - it's in a feature
> freeze right now.
>
> --John
>

I suppose it could be implemented as a plugin (until it makes it into 1.1).

I do make an assumption that looping through the offsetParent's works
across all modern browsers - I can only really test on what is
available on Windows (so no Safari, Konqueror etc).

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


Re: [jQuery] Plugin for browser's "Go Back" button and "bookmark"

2006-08-17 Thread John Resig
This is really nice :-)

As with all back-button plugins, though, they seem to die with Safari.
Here are my results when testing with it:

Safari 2.0.4: A link is clicked and you are taken to a garbled version
of the URL, for example:
jquery_history.html#%232
for link #2. The AJAX content does not load (unfortunately), however
hitting the back button does change the URL back to its previous
state.

Safari Nightlies: Virtually identical behavior, however instead of a
corrupted URL string, it looks as it should (e.g. "#2").

So, in reality, the only major issue is getting the dynamic content to
load in Safari since everything else appears to work. Great job!

--John

On 8/17/06, Taku Sano (Mikage Sawatari) <[EMAIL PROTECTED]> wrote:
> I have made a plugin that helps you make your Ajax-driven page
> available for "Go Back" button and "bookmark" of browser.
>
> See the sample page: http://www.mikage.to/jquery/jquery_history.html
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread John Resig
> I suppose it could be implemented as a plugin (until it makes it into 1.1).
>
> I do make an assumption that looping through the offsetParent's works
> across all modern browsers - I can only really test on what is
> available on Windows (so no Safari, Konqueror etc).

As far as I know, those properties work in all browsers that jQuery
supports. If you wanna work on it, then you're more than welcome to. I
was going to have functions like the following:

.leftFromParent()
.leftFromDocument()
.leftFromWindow()

.topFromParent()
.topFromDocument()
.topFromWindow()

Or maybe that can be shortened to .topParent() .leftDocument() ? This
way .top() and .left() will still return the un-touched CSS property
(if it's needed). Let me know how this sounds to you.

--John

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


[jQuery] $(this).getAttribute("href") Doesn't work

2006-08-17 Thread Nilesh Patel
hey ,

I found a solution that works correctly.

try this..
$.attr($('a').get(0),'href')

100% works
its called by first value is object, then 2nd value is attribute



-- 
Nilesh B. Patel
Contact: 704.723.6427 website: www.n-bp.com


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


Re: [jQuery] date picker plugin update

2006-08-17 Thread Michael Fuerst
Jörn Zaefferer schrieb:
>> $("input.mydate").datePicker({format:'mm/dd/', startdate:'08/15/2006',
>> enddate:'08/31/2006'});
>> 
>
> Yeah! That would be much better! This way you could create several date 
> pickers at once, without having to configure which class is used to mark the 
> date field. And it would be possible to use several date pickers on a page 
> with different settings, something currently not possible, as far as I get 
> it.
>
> Maybe further feature requests should be branched into a new plugin. I guess 
> its nice to have it simple to use and small. On the other hand, its not able 
> to select a birthdate etc.
>
> -- Jörn 
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>   
Great plugin, here are a few suggestions:

Make the textfield read-only. Whats the point in having a date picker,
when the user still can put  unwanted date in the textfield :-)
I would also prefer a way to go faster through the dates, so a 3 month
-next/prev 6 month next/prev would be great.

Michael

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread Sam Collett
On 17/08/06, John Resig <[EMAIL PROTECTED]> wrote:
> > I suppose it could be implemented as a plugin (until it makes it into 1.1).
> >
> > I do make an assumption that looping through the offsetParent's works
> > across all modern browsers - I can only really test on what is
> > available on Windows (so no Safari, Konqueror etc).
>
> As far as I know, those properties work in all browsers that jQuery
> supports. If you wanna work on it, then you're more than welcome to. I
> was going to have functions like the following:
>
> .leftFromParent()
> .leftFromDocument()
> .leftFromWindow()
>
> .topFromParent()
> .topFromDocument()
> .topFromWindow()
>
> Or maybe that can be shortened to .topParent() .leftDocument() ? This
> way .top() and .left() will still return the un-touched CSS property
> (if it's needed). Let me know how this sounds to you.
>
> --John
>

Would leftFromParent simply be 'el.offsetLeft'?
What is the difference between leftFromDocument and leftFromWindow?

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


Re: [jQuery] date picker plugin update

2006-08-17 Thread Dave Methvin
> Make the textfield read-only. Whats the point in having
> a date picker, when the user still can put  unwanted
> date in the textfield :-) 

Picking and validating are separate operations. I know my birthday and can
type it faster than I can pick it. Pickers are useful when you know you want
a Friday in September but don't know the dates.


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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread John Resig
> Would leftFromParent simply be 'el.offsetLeft'?

Yep!

> What is the difference between leftFromDocument and leftFromWindow?

A document is positioned within a window. For example, I'm typing this
in Gmail and the document is 1500px tall (just a guess) while my
browser window is only 1200px tall - causing a scrollbar to appear.

So, this is important for many dynamic applications, because you need
to know exactly where an element is visible to the user.

Oh - I also remembered the result of the features that I was going to do:

$(window).width()/.height()
$(document).width()/.height()

$(document).left()/.top() = The scroll offset of the document
$(window).left()/.top() = The position of the window on the screen

Also, it'd be really nice to have associated convenience methods for
"bottom" and "right". Just some more to chew on.

--John

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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread Dave Methvin
> .leftFromParent()
> .leftFromDocument()
> .leftFromWindow()

These seem to be crying out "Please parameterize my From part!" :)

Maybe something like this:

 $("#mydiv").pxLeft(item)

That would tell you how many pixels to the left #mydiv is from the given
item, which should be an ancestor DOM element or perhaps some special string
values like "window"; no item could be interpreted as "document" or "parent"
or whatever seems most reasonable. If item is an element that is not an
ancestor it would return undefined--unless there's some reasonable way to
figure out the relationship?


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


Re: [jQuery] jQuery vs Prototype

2006-08-17 Thread Patrick Hall
> Haha! I like that a lot :-) Maybe that'll be the tag line for the
> re-launched site. Or maybe something like "Whipping Javascript into
> Shape." I like those a lot :-)

Or "Give the past the slip"

heh.

-p@

-- 
ᗷɭoℊẚᗰսɳᑯѲ⁈⁈⁈
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery vs Prototype

2006-08-17 Thread Dave Methvin
>> Haha! I like that a lot :-) Maybe that'll be the tag line for the 
>> re-launched site. Or maybe something like "Whipping Javascript into 
>> Shape." I like those a lot :-)

> Or "Give the past the slip"

Song before "Whip It" on Devo's Freedom of Choice album describes my code:
"It's Not Right" :)


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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread John Resig
>  $("#mydiv").pxLeft(item)

It'd actually be not that bad. Something like:

$( elementA ).posLeft( elementB );

is equivalent to:

$( elementA ).posLeft( document ) - $( elementB ).posLeft( document );

and .posLeft() could return the positioni relative to the parent, by default.

So, that would mean that there would be .posLeft(), .posTop(),
.postRight(), .posBottom() and each would take any of the following
parameters:
window, document, an element, an expression (matching the first
element, and comparing against it), or nothing (aka: the parent)

I'm liking this more and more :-)

--JOhn

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


[jQuery] Multiple $(document).ready()'s...

2006-08-17 Thread Jason Huck

Let's say I am creating a set of code snippets that end users will have the
ability to place in various locations throughout a site. I'd like to keep
all the code for a specific snippet in a single file. But if several of
those snippets use jquery, that means I'll potentially have several
$(document).ready()'s in a single page. Is that bad? Or does it not
matter...

Thanks,
Jason



-- 
View this message in context: 
http://www.nabble.com/Multiple-%24%28document%29.ready%28%29%27s...-tf2122871.html#a5856114
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Multiple $(document).ready()'s...

2006-08-17 Thread Jason Huck

nm, found the answer in the archives. apologies for the clutter.

- jason



Jason Huck wrote:
> 
> Let's say I am creating a set of code snippets that end users will have
> the ability to place in various locations throughout a site. I'd like to
> keep all the code for a specific snippet in a single file. But if several
> of those snippets use jquery, that means I'll potentially have several
> $(document).ready()'s in a single page. Is that bad? Or does it not
> matter...
> 
> Thanks,
> Jason
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Multiple-%24%28document%29.ready%28%29%27s...-tf2122871.html#a5856191
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Multiple $(document).ready()'s...

2006-08-17 Thread Tom Holder
Hi Jason,

Just simply add an Init function to each file and then call each one
from a single document.ready. Hope this helps.

Tom

On 8/17/06, Jason Huck <[EMAIL PROTECTED]> wrote:
>
> Let's say I am creating a set of code snippets that end users will have the
> ability to place in various locations throughout a site. I'd like to keep
> all the code for a specific snippet in a single file. But if several of
> those snippets use jquery, that means I'll potentially have several
> $(document).ready()'s in a single page. Is that bad? Or does it not
> matter...
>
> Thanks,
> Jason
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/Multiple-%24%28document%29.ready%28%29%27s...-tf2122871.html#a5856114
> Sent from the JQuery forum at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


[jQuery] Form Handling

2006-08-17 Thread Menier, Todd








Another
newbie question. I was looking at some cool form handling features of prototype
(about half-way down this article: http://www.sitepoint.com/print/painless-_javascript_-prototype)
and was trying to figure out jQuery has similar features. I'm a little confused
– I see the form plugin referenced from http://proj.jquery.com/plugins does
some of what I'm looking for (such as serialize), but it also looks like some (maybe
all?) of this functionality is already baked into the core jQuery library. Is this
just simply not documented yet? Is there a good current overview of the latest
built-in form handling features?

 

2
specific functions of prototype that I think look particularly useful are
Form.Observer and Form.EventObserver. The former checks all form fields at a specified
periodic interval and calls a specified callback if anything changes. The
latter is similar only it listens for all relevant change events (onchange,
onclick) of all form fields rather than polling at intervals. Does the core
jQuery and/or an existing plugin have a similar feature? Sorry if I completely
missed it - I dug around a bit and didn't find anything.

 

Also,
until the new site is launched, is proj.jquery.com the place to go (rather than
jquery.com) for the most current info and documentation?

 

Thanks!

Todd

 






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


Re: [jQuery] Can jQuery SVN get / set element dimensions?

2006-08-17 Thread Aloyzas Rimeika
John,

$().height(), $().width() and others doesn't work, just because of
small mistype in

jQuery.each( jQuery.macros.css, function(i,n){
jQuery.fn[ i ] = function(h) { // <- must be jQuery.fn[ n ] :)
return h == undefined ?
( this.length ? jQuery.css( this[0], n ) : null ) :
this.css( n, h );
};
});

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


[jQuery] Another Easy Dom creation for JQuery

2006-08-17 Thread Madison Bryan

I'm using Another Easy DOM creation extension...

http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and- 
prototype#comment-176

to dynamically create a section from a JSON request...

$.tpl(pArray, function(){
   return [
'address',{'class':"vcard"},[
'span',{'class':"fn"}, [this.FIRST_NAME+' 
'+this.LAST_NAME],
'span',{'class':"org"}, [this.SEARCH],

'a',{'href':"mailto:"+this.EMAIL,'class':"email"}, [this.EMAIL],
'span',{'class':"tel"}, [this.PHONE_NUMBER],
'span',{'class':"url"}, ['a',{'href':this.URL}, 
[this.URL]]
]];
}).appendTo('#section-'+sec);

For some reason, it's adding an extra attribute called classname...

...

...to all the elements. I can't seem to figure out why it's doing this.

Does anybody have an idea?

Thanks,
Madison

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


[jQuery] Any IE6 related input element changes recently?

2006-08-17 Thread CBWhiz
In Internet Explorer 6, via MS Script Editor [during a debug]:

 > document.getElementsByTagName("input")
{...} length: 20
 > $("input").size()
0

It works normally in firefox, so i don't understand why it doesn't in 
IE5. I thought jquery used getElementsByTagName internally when it 
could. I'll keep digging, I was curious if anybody else got this error.

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


Re: [jQuery] Multiple $(document).ready()'s...

2006-08-17 Thread Klaus Hartl


Tom Holder schrieb:
> Hi Jason,
> 
> Just simply add an Init function to each file and then call each one
> from a single document.ready. Hope this helps.

This is absolutely not necessary. You can have as much $(document).ready 
as you want in different plazes. The event handler functions are queued.


-- Klaus

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


[jQuery] New to jquery - how do I...

2006-08-17 Thread Sam



I wanted to solicit help here to jump-start my first 
jquery development... I've some experience with prototype.js, and would 
like to start a small project using jquery.  
 
 
      
    
    
main 
content  
A re-engineering of your current world view will reaffirm your 
online   presence enabling a more effervescent solution. Upscaling 
voluminous networking   exchange solutions will result in your 
achieving an excellent systemic   electronic data interchange 
synchronization, thereby exploiting technical   environments for 
mission critical broad-based capacity-constrained systems. 
    
   
    
      

 
I'd like to make the 
2nd cell, which is as tall as the first cell, into a mouse-grabbable handle 
which can be used to control the width of the first cell.
 
I should research 
this further, any pointer in the right direction with jQuery is 
appreciated.
 
Sam
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Rebind events on dynamic content (modified DOM)

2006-08-17 Thread Klaus Hartl


Michael Geary schrieb:
> You are calling BindTimeSelectors before the AJAX load is complete.
> 
> Which AJAX load is the one that BindTimeSelectors depends on? Assuming it is
> the second one, you could code it like this:
> 
>  $("#daysheader").load( "ajax/weekview_headers.aspx?fromdate=" +
> calendarDay.Date );
>  $("#days").load(
>  "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
>  BindTimeSelectors()
>  );

I think it should read:

$("#days").load(
 "ajax/weekview_appointments.aspx?fromdate=" + calendarDay.Date,
 BindTimeSelectors
);


-- Klaus

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


Re: [jQuery] Improvements in Ajax facilities - error handling?

2006-08-17 Thread Jason Huck



Andy Matthews wrote:
> 
> Speaking of errors...
> 
> That's one thing I've really wanted. When using jQuery, I've noticed that
> assuming all of the syntax is valid, if you run code that doesn't work,
> nothing happens. No error message, nothing.
> 
> That makes debugging quite difficult because you have no idea where to
> start.
> 
> Is there any way that jQuery could generate SOME sort of error, a default
> alert box maybe) with error information?
> 
> 


That would be stellar. Maybe I'm just too knew to jquery to understand how
to go about debugging, but I keep running into this problem (since my newbie
code is usually wrong, even if syntactically correct).

The only error I ever see in the console is "f has no properties", jquery.js
line 14, which obviously isn't my code. :P

Cheers,
Jason



-- 
View this message in context: 
http://www.nabble.com/Improvements-in-Ajax-facilities-tf2119204.html#a5858298
Sent from the JQuery forum at Nabble.com.


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


[jQuery] Error in current jquery version

2006-08-17 Thread Mathias Bank
Hallo, I have tried to use jquery for a current project. To test it, I have created following code:<
html>JSON-Test
title><script language="_javascript_" type=
"text/_javascript_" src="json.js">script><script
 language="_javascript_" type="text/_javascript_" 
src="jquery.js">script><script language=
"_javascript_" type="text/_javascript_"> function getFormData() { 	var test1 = $("#test1").val(); 	var test2 = $("#test2").val();
 	var obj = new Object(); 	obj.test1 = test1; 	obj.test2 = test2; 	 	var objString = obj.toJSONString(); 	 	$.post("json.php", {data: objString}, handleJsonResponse); 	return false;
 }   function handleJsonResponse(data) { 	var obj = data.parseJSON(); 		$("#test1").val(obj.test1);	$("#test2").val(obj.test2); }   $(document).ready(function(){
  $("#formular").submit(getFormData); }); script>  <
body><form id="formular" action=
"/projekte/test/json.php" method="post"><input type
="text" name="test1" id=
"test1" /><br /><input type
="text" name="test2" id=
"test2" /><br />  <input type
="submit" name="submit" id=
"submit" value="senden"/>form
>body>html>I use jquery Rev: 213 (complete)When I'm loading the page in Firefox or Internet-Explorer (at different pcs) 
I get the error "Too much recursion" on line 71 (many times), line 104, 1597.Any idea, why this error appears? I use WinXP with current updates.Mathias
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00527.html">Re: [jQuery] Can jQuery SVN get / set element dimensions?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Can+jQuery+SVN+get+%5C%2F+set+element+dimensions%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Dave+Methvin%22&o=newest&f=1">Dave Methvin</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> $().height(), $().width() and others doesn't work, 
> just because of small mistype 

Should be fixed now:
http://proj.jquery.com/dev/bugs/bug/121/
 


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00528.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Klaus+Hartl%22&o=newest&f=1">Klaus Hartl</a></span>
</div>
<blockquote><span class="msgFragment"><pre>


ashutosh bijoor schrieb:
> Hi Klaus
> I've been playing around with your tabs plugin, and would very much like 
> it if you could add a callback facility. ie, when the tab is changed, 
> i'd like a function to be called in the scope of the active tab.
> I can make this change myself, but dont know whether i have the latest 
> version. does the URL quoted below contain the latest version?
> Regards
> Ashutosh

This can be very useful... I will add that soon!

-- Klaus

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00529.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Larry+Garfield%22&o=newest&f=1">Larry Garfield</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

-- 
Larry Garfield

On Thu, August 17, 2006 3:19 pm, Klaus Hartl said:
>
>
> ashutosh bijoor schrieb:
>> Hi Klaus
>> I've been playing around with your tabs plugin, and would very much like
>> it if you could add a callback facility. ie, when the tab is changed,
>> i'd like a function to be called in the scope of the active tab.
>> I can make this change myself, but dont know whether i have the latest
>> version. does the URL quoted below contain the latest version?
>> Regards
>> Ashutosh
>
> This can be very useful... I will add that soon!
>
> -- Klaus

Use case here:

You have n tabs.  Each one is not actually loaded.  When you switch to it,
however, a callback fires that Ajax-loads the contents of that tab,
possibly skipping that if it's already been loaded.

Taing it a step further, an on-leaving callback would let you auto-submit
a form in a given tab as soon as you tab away from it.  Instant-save
tabbed forms for the cost of 2 callbacks.

Sorry, I just put 2 and 2 together and got a very cool 10. :-)

--Larry Garfield


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00530.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22J%C3%B6rn+Zaefferer%22&o=newest&f=1">Jörn Zaefferer</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi Larry!

> You have n tabs.  Each one is not actually loaded.  When you switch to it,
> however, a callback fires that Ajax-loads the contents of that tab,
> possibly skipping that if it's already been loaded.
>
> Sorry, I just put 2 and 2 together and got a very cool 10. :-)

Sounds interessting. But if I get it right, those tabs wouldn't be 
unobtrusive any more, right?

-- Jörn 


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00531.html">Re: [jQuery] Dom creation</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Dom+creation%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Jason+Yeckel%22&o=newest&f=1">Jason Yeckel</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hey things seem to be going along nicely just need a push over the edge :)

http://3spn.net/jQuery/dom_creation.html

I have constructed a dummy array i need to figure out how to transverse 
and  access the data i know it should be simple reading around now might 
not need help.



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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00532.html">Re: [jQuery] Any IE6 related input element changes recently?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Any+IE6+related+input+element+changes+recently%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Dave+Methvin%22&o=newest&f=1">Dave Methvin</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> It works normally in firefox, so i don't understand why it doesn't in IE5.

Sounds like you meant IE6, it's working fine in IE6 for me (SVN 169 was what
I had handy). What version of jQuery are you using?

Going to jquery.com I did notice that it's very easy to grab an ancient
version of the code. The "latest" version is from May. Since John's only
days away from the 1.0 release that problem should go away--and be replaced
by calls for updated documentation. :-)



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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00533.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Larry+Garfield%22&o=newest&f=1">Larry Garfield</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
On Thu, August 17, 2006 3:55 pm, Jörn Zaefferer said:
> Hi Larry!
>
>> You have n tabs.  Each one is not actually loaded.  When you switch to
>> it,
>> however, a callback fires that Ajax-loads the contents of that tab,
>> possibly skipping that if it's already been loaded.
>>
>> Sorry, I just put 2 and 2 together and got a very cool 10. :-)
>
> Sounds interessting. But if I get it right, those tabs wouldn't be
> unobtrusive any more, right?
>
> -- Jörn

True, if you go with dynamic loading of tab content then it doesn't
degrade nicely.  That's a trade-off with any dynamic-content-loading
system.  But if you don't do that, then the tab system itself would still
degrade nicely.

--Larry Garfield


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00534.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Klaus+Hartl%22&o=newest&f=1">Klaus Hartl</a></span>
</div>
<blockquote><span class="msgFragment"><pre>


Jörn Zaefferer schrieb:
> Hi Larry!
> 
>> You have n tabs.  Each one is not actually loaded.  When you switch to it,
>> however, a callback fires that Ajax-loads the contents of that tab,
>> possibly skipping that if it's already been loaded.
>>
>> Sorry, I just put 2 and 2 together and got a very cool 10. :-)
> 
> Sounds interessting. But if I get it right, those tabs wouldn't be 
> unobtrusive any more, right?
> 
> -- Jörn 


Yes, such tabs wouldn't be accessible anymore, and not unobtrusive 
either because you would have useless links hanging around, pointing to 
some empty divs if JavaScript is disabled.

Therefore I wouldn't go so far and implement Ajax calls on tab click. I 
cannot see the use here, to me it's like using Ajax for the sake of 
Ajax. The user would even have to wait for the content to be loaded 
(first click), and that is not what I call very usable.

Nonetheless, with the callback mechanism it would be pretty easy to 
implement such a function and pass it as callback. But this should not 
be part of the plugin in my eyes.


-- Klaus

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00535.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Klaus+Hartl%22&o=newest&f=1">Klaus Hartl</a></span>
</div>
<blockquote><span class="msgFragment"><pre>


ashutosh bijoor schrieb:
> Hi Klaus
> I've been playing around with your tabs plugin, and would very much like 
> it if you could add a callback facility. ie, when the tab is changed, 
> i'd like a function to be called in the scope of the active tab.
> I can make this change myself, but dont know whether i have the latest 
> version. does the URL quoted below contain the latest version?
> Regards
> Ashutosh

I assume you would like to have the possibility to have different 
callbacks for each tab or alternatively one function for all or even 
both together?


-- Klaus

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00536.html">[jQuery] Wacked IE with the wrap function</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Wacked+IE+with+the+wrap+function%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Madison+Bryan%22&o=newest&f=1">Madison Bryan</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

I have an odd problem that I am at a loss on.

IE on Windows dies on this page...

http://www2.westga.edu/majors/

...with an informative "Internet Explorer cannot open the Internet  
site..."

I've narrowed it down to a line of js...

$("#wrapper").wrap('');

...and an unordered list that gives an index (" A B C...").

If I remove either, it works.

Now, the odd thing is that IE has no problem on any of the other  
pages, which use the same line of javascript... including a page that  
uses the same a-z index (both pages use the same function to create  
the a-z index)...

http://www2.westga.edu/az/

Arg, one more reason to curse IE.

Any help would be greatly appreciated.

Thanks,
Madison


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00537.html">Re: [jQuery] Wacked IE with the wrap function</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Wacked+IE+with+the+wrap+function%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Andy+Matthews%22&o=newest&f=1">Andy Matthews</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Interestingly enough, I'm fine with the first link, but I get the error
listed on the second link.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Madison Bryan
Sent: Thursday, August 17, 2006 4:48 PM
To: discuss@jquery.com
Subject: [jQuery] Wacked IE with the wrap function



I have an odd problem that I am at a loss on.

IE on Windows dies on this page...

http://www2.westga.edu/majors/

...with an informative "Internet Explorer cannot open the Internet
site..."

I've narrowed it down to a line of js...

$("#wrapper").wrap('');

...and an unordered list that gives an index (" A B C...").

If I remove either, it works.

Now, the odd thing is that IE has no problem on any of the other
pages, which use the same line of javascript... including a page that
uses the same a-z index (both pages use the same function to create
the a-z index)...

http://www2.westga.edu/az/

Arg, one more reason to curse IE.

Any help would be greatly appreciated.

Thanks,
Madison


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


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00538.html">Re: [jQuery] Another Easy Dom creation for JQuery</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Another+Easy+Dom+creation+for+JQuery%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Aloyzas+Rimeika%22&o=newest&f=1">Aloyzas Rimeika</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
It's not plugin but jQuery core function attr duing this.

attr: function(o,a,v){
... 
if ( v != undefined ) {
o[a] = v; // o.className = "myClassName" :: 
if ( o.setAttribute && a != "disabled" )
o.setAttribute(a,v); // 
o.setAttribute('className', "myClass") ::

}
...
},


On 8/17/06, Madison Bryan <[EMAIL PROTECTED]> wrote:
>
> I'm using Another Easy DOM creation extension...
>
> http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-
> prototype#comment-176
>
> to dynamically create a section from a JSON request...
>
> $.tpl(pArray, function(){
>return [
> 'address',{'class':"vcard"},[
> 'span',{'class':"fn"}, [this.FIRST_NAME+' 
> '+this.LAST_NAME],
> 'span',{'class':"org"}, [this.SEARCH],
> 
> 'a',{'href':"mailto:"+this.EMAIL,'class':"email"}, [this.EMAIL],
> 'span',{'class':"tel"}, [this.PHONE_NUMBER],
> 'span',{'class':"url"}, 
> ['a',{'href':this.URL}, [this.URL]]
> ]];
> }).appendTo('#section-'+sec);
>
> For some reason, it's adding an extra attribute called classname...
>
> ...
>
> ...to all the elements. I can't seem to figure out why it's doing this.
>
> Does anybody have an idea?
>
> Thanks,
> Madison
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00539.html">[jQuery] Setting AJAX headers, and selecting namespaced nodes</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Setting+AJAX+headers%2C+and+selecting+namespaced+nodes%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Mitchell+Lane%22&o=newest&f=1">Mitchell Lane</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi there! I've been impressed with all the work and effort that's gone 
into jQuery, and I've decided to try to use it for a WebDAV AJAX 
application I'm working on.

I've run into two issues off the bat: the first is that an $.xml (or 
$.ajax) call does not seem to support setting your own HTTP headers. To 
get this work may be as simple as adding a 'headers' parameter to the 
function and the following code before the final xml.send call:

if ( headers )
for (var name in headers)
xml.setRequestHeader(name, headers[name]);

It's a simple enough change, but I think it's a worthwhile enhancement, 
and I'd feel better if there was a way to set them using the core 
library and without having to manually overwrite the $.ajax function.

The second issue is that, using the $(path, context) call, I couldn't 
find a way to select XML nodes with a namespace and prefix, such as 
'D:response'. An earlier version of jQuery seemed to be able to select 
it using the path "response", which would've been fine, but more recent 
versions don't seem to be able to (specifically, the $.tag function 
matches them, but the $.filter function doesn't preserve them). Is there 
any way to select namespaced and prefixed nodes without using a direct 
getElementsByTagNameNS call?

Thanks for your help!

— Mitch

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00540.html">Re: [jQuery] Wacked IE with the wrap function</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Wacked+IE+with+the+wrap+function%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Dave+Methvin%22&o=newest&f=1">Dave Methvin</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
 > ...with an informative "Internet Explorer cannot open the Internet
site..."

What is the full error message? A couple of weeks back someone reported a
similar issue that came down to changing certain parts of the body too
quickly for IE. You might try changing any .ready() to .load() to see if
that helps.


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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00541.html">Re: [jQuery] Error in current jquery version</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Error+in+current+jquery+version%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22John+Resig%22&o=newest&f=1">John Resig</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Without actually testing it (heh) I'm going to start by saying that
there's some changes that you need to make to Crockford's JSON script
- because that's what may be causing problems for you.

He attaches a function to every single Object - which just blows my
mind at how dumb that is. For example, I use his JSON script, but a
modified version that behaves more cleanly.

You can find my modified version here:
http://john.jquery.com/jquery/build/js/json.js

To serialize an object you do:
Object.toJSON( obj );

To deserialize you do:
someString.parseJSON();

Let me know if that change helps you at all.

--John

On 8/17/06, Mathias Bank <[EMAIL PROTECTED]> wrote:
> Hallo, I have tried to use jquery for a current project. To test it, I have
> created following code:
>
> <
> html>
> 
> JSON-Test title>
>  "text/javascript" src="json.js">
>   language="JavaScript" type="text/javascript"
> src="jquery.js">
>  "JavaScript" type="text/javascript">
>  function getFormData() {
>  var test1 = $("#test1").val();
>  var test2 = $("#test2").val();
>
>  var obj = new Object();
>  obj.test1 = test1;
>  obj.test2 = test2;
>
>  var objString = obj.toJSONString();
>
>  $.post("json.php", {data: objString}, handleJsonResponse);
>  return false;
>
>  }
>
>
>  function handleJsonResponse(data) {
>  var obj = data.parseJSON();
>
>  $("#test1").val(obj.test1);
>  $("#test2").val(obj.test2);
>  }
>
>
>  $(document).ready(function(){
>
>  $("#formular").submit(getFormData);
>  });
>
> 
>
> <
> body>
>  "/projekte/test/json.php" method="post">
>  ="text" name="test1" id=
> "test1" />
>  ="text" name="test2" id=
> "test2" />
>   ="submit" name="submit" id=
> "submit" value="senden"/>
>
>  >
> 
> 
>
>
> I use jquery Rev: 213 (complete)
>
> When I'm loading the page in Firefox or Internet-Explorer (at different pcs)
>
> I get the error "Too much recursion" on line 71 (many times), line 104,
> 1597.
>
> Any idea, why this error appears? I use WinXP with current updates.
>
> Mathias
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00542.html">Re: [jQuery] New to jquery - how do I...</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+New+to+jquery+%5C-+how+do+I...%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22John+Resig%22&o=newest&f=1">John Resig</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
You can start your search by looking into Interface (for jQuery) which
includes a full Drag-and-Drop set of functionality. This, in addition
to the normal jQuery, should get you to where you need to be:
http://www.eyecon.ro/interface/

Hope this helps!

--John

On 8/17/06, Sam <[EMAIL PROTECTED]> wrote:
>
>
> I wanted to solicit help here to jump-start my first jquery development...
> I've some experience with prototype.js, and would like to start a small
> project using jquery.
>
>
>   
> 
>cellspacing="0" id="maintable">
>   
> main
> content
>   A re-engineering of your current world view will reaffirm
> your online   presence enabling a more effervescent solution. Upscaling
> voluminous networking   exchange solutions will result in your achieving an
> excellent systemic   electronic data interchange synchronization, thereby
> exploiting technical   environments for mission critical broad-based
> capacity-constrained systems. 
>  
>   
> 
> 
>   
>
> I'd like to make the 2nd cell, which is as tall as the first cell, into a
> mouse-grabbable handle which can be used to control the width of the first
> cell.
>
> I should research this further, any pointer in the right direction with
> jQuery is appreciated.
>
> Sam
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


-- 
John Resig
http://ejohn.org/
[EMAIL PROTECTED]

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00543.html">[jQuery] JSON Arrays *tad off topic hehe*</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+JSON+Arrays+%5C%2Atad+off+topic+hehe%5C%2A%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Jason+Yeckel%22&o=newest&f=1">Jason Yeckel</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
I am useing JSON.php to convert my mutli demional array in to json. I am 
just posting it in to a var for now testing the innerhtml creates i need 
some help on figuring out how to access the array once in the js block.

http://3spn.net/jQuery/dom_creation.html

I have constructed a dummy array that is the same as the php ajax 
responce will put out. I did double post this to a point i moved it out 
side of the dom creation topic header! :)

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00544.html">[jQuery] Fwd:  Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Fwd%5C%3A++Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22ashutosh+bijoor%22&o=newest&f=1">ashutosh bijoor</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Oops attachment not accepted... pls find code below-- Forwarded message --From: ashutosh bijoor <[EMAIL PROTECTED]
>Date: Aug 18, 2006 7:30 AMSubject: Re: [jQuery] Tabs plugin feature requestTo: "jQuery Discussion." <discuss@jquery.com>Hi
Pls find attached, jtabs.js with the callback modification. Basically added the following lines at line number 72:                    // apply callback function if defined                    if (typeof options.callback

 != 'undefined' && options.callback.constructor==Function) {                        options.callback.apply(target,[target.attr('id'),visible.attr('id')]);                    }Here, I'm passing two parameters to the callback:
- the id of the new tab's container and- the id of the  new tab's containerAlso, this   will point to the current tabRegardsAshutosh

On 8/18/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:

ashutosh bijoor schrieb:> Hi Klaus> I've been playing around with your tabs plugin, and would very much like> it if you could add a callback facility. ie, when the tab is changed,> i'd like a function to be called in the scope of the active tab.
> I can make this change myself, but dont know whether i have the latest> version. does the URL quoted below contain the latest version?> Regards> AshutoshI assume you would like to have the possibility to have different
callbacks for each tab or alternatively one function for all or evenboth together?-- Klaus___jQuery mailing list

discuss@jquery.comhttp://jquery.com/discuss/
-- Reach1to1 Communicationshttp://www.reach1to1.com
[EMAIL PROTECTED]98201-94408

-- Reach1to1 Communicationshttp://www.reach1to1.com[EMAIL PROTECTED]98201-94408
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00545.html">Re: [jQuery] New to jquery - how do I...</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+New+to+jquery+%5C-+how+do+I...%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Sam%22&o=newest&f=1">Sam</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> You can start your search by looking into Interface (for jQuery) which
> includes a full Drag-and-Drop set of functionality. This, in addition
> to the normal jQuery, should get you to where you need to be:
> http://www.eyecon.ro/interface/

Thanks.  I hope to give it a try tomorrow.

I went ahead and implemented the functionality in prototype.js.  Not
elegant, but a hacked solution to get this one-time job done quickly.

It should be interesting to see which solution looks cleaner.

Sam




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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00546.html">Re: [jQuery] Simple checkbox replacement</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Simple+checkbox+replacement%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22kawika+k%22&o=newest&f=1">kawika k</a></span>
</div>
<blockquote><span class="msgFragment"><pre>

Just in case anyone tries to implement the code below, this.src returns 
the full url path for the image, and so string manipulation is needed 
for the this.src == opt.checked statement. A better approach I've found 
is to use

var check = $(this).next().attr( "checked" ) == true;

I'm testing against Rev 200 of SVN code. The simple DOM creation stuff 
in it is pretty fun.

Kawika


John Resig wrote:
> This is some great code - I really dig it. It's super simple, which is good.
> 
> Just as a mini-tutorial to the upcoming 1.0b, here are some of the
> changes that are possible:
> 
> jQuery.fn.checkbox = function (opt) {
> $("[EMAIL PROTECTED]'checkbox']", this).hide().each(function(){
> $("")
> .src( this.checked ? opt.checked : opt.unchecked )
> .click( function() {
> var check = this.src == opt.checked;
> 
> $(this)
> .src( check ? opt.unchecked : opt.checked )
> .next().attr( "checked", check ? "" : "checked" );
>  }).insertBefore( this );
> });
> };
> 
> I'm not saying that mine is any better - just using this as a
> demonstration of what's possible.
> 
> --John
> 
>> Example
>> http://kawika.org/jquery/checkbox/
>>
>>
>> Code
>> jQuery.fn.checkbox = function (opt) {
>>
>> $("[EMAIL PROTECTED]'checkbox']", this).each( function () {
>>
>> var img = document.createElement("img");
>> img.src = this.checked ? opt.checked : opt.unchecked;
>>
>> $(img).click( function() {
>>
>> var input = this.nextSibling;
>> if ( input.checked ) {
>> this.src = opt.unchecked;
>> input.checked = "";
>> }
>> else {
>> this.src = opt.checked;
>> input.checked = "checked";
>> }
>> });
>>
>> $(this).parent().prepend(img)
>> $(this).hide();
>> });
>> }
>>
>>
>> Usage
>> $(document).ready( function () {
>> $().checkbox({checked: "accept.png", unchecked: "cancel.png"});
>> });
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00547.html">Re: [jQuery] Can jQuery SVN get / set element dimensions?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Can+jQuery+SVN+get+%5C%2F+set+element+dimensions%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22John+Resig%22&o=newest&f=1">John Resig</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
> > $().height(), $().width() and others doesn't work,
> > just because of small mistype
>
> Should be fixed now:
> http://proj.jquery.com/dev/bugs/bug/121/

Oops, it appears as if the code actually regressed at one  point - it
should be fixed again, in SVN rev 214.

--John

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00548.html">Re: [jQuery] Any IE6 related input element changes recently?</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Any+IE6+related+input+element+changes+recently%5C%3F%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22CBWhiz%22&o=newest&f=1">CBWhiz</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
I was using SVN ~208 or so. I found some 'neat' information while 
debugging in the script editor. Apparently, 
document.getElementsByTagName('input') didn't work properly either. I 
called that, then looped though printing the name attribute. Most came 
up as undefined, even though i /know/ they have (had?) names. I ended up 
using a hack for IE 6 (your right, I meant IE6) involving 
$('#formiwant')[0].elements[nameIwanted], but I still can't figure out 
how such an odd condition could come to exist.

Either way, problem is 'fixed' now. Thanks anyway.

Dave Methvin wrote:
>> It works normally in firefox, so i don't understand why it doesn't in IE5.
> 
> Sounds like you meant IE6, it's working fine in IE6 for me (SVN 169 was what
> I had handy). What version of jQuery are you using?
> 
> Going to jquery.com I did notice that it's very easy to grab an ancient
> version of the code. The "latest" version is from May. Since John's only
> days away from the 1.0 release that problem should go away--and be replaced
> by calls for updated documentation. :-)
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00549.html">[jQuery] Find first element (child)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Find+first+element+%5C%28child%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Julius+Lucks%22&o=newest&f=1">Julius Lucks</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hello,I would like to use .find, but only for the first element of the results.  If I have  link 1   link 2 and I do $("p").find("a").hide();
this hides both links.  I would only like to hide the first.  Can I do this with find, or can I use $("p").children()?Cheers,Julius Lucks-- -
http://openwetware.org/wiki/User:Lucks-
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00550.html">Re: [jQuery] Find first element (child)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Find+first+element+%5C%28child%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22John+Resig%22&o=newest&f=1">John Resig</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
$("p a:first").hide();

enjoy!

--John

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

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00551.html">Re: [jQuery] Find first element (child)</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Find+first+element+%5C%28child%5C%29%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Matt+Stith%22&o=newest&f=1">Matt Stith</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
ahh the simplicity of jQuery :)On 8/18/06, John Resig <[EMAIL PROTECTED]> wrote:
$("p a:first").hide();enjoy!--John___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00552.html">Re: [jQuery] Error in current jquery version</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Error+in+current+jquery+version%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Mathias+Bank%22&o=newest&f=1">Mathias Bank</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
Hi,know, the error doesn't appear any longer. Thanks.But there is a new error: Unfortunatelly, the function getFormData doesn't stop the submit-process as in older jQuery-versions. The page is reloaded.
Any idea, why this happens?Mathias
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

</pre></span>
</blockquote><br>

<h3><span class=subject><a href="/discuss@jquery.com/msg00553.html">Re: [jQuery] Tabs plugin feature request</a></span></h3>
<div class="darkgray font13">
<span class="sender pipe">
<span class=date><a href="/search?l=discuss%40jquery.com&q=date:20060817&o=newest&f=1">2006-08-17</a></span></span>
<span class="sender pipe">
<span class=thead><a href="/search?l=discuss%40jquery.com&q=subject:%22%5C%5BjQuery%5C%5D+Tabs+plugin+feature+request%22&o=newest&f=1">Thread</a></span></span>
<span class=name><a href="/search?l=discuss%40jquery.com&q=from:%22Larry+Garfield%22&o=newest&f=1">Larry Garfield</a></span>
</div>
<blockquote><span class="msgFragment"><pre>
On Thursday 17 August 2006 16:30, Klaus Hartl wrote:

> Yes, such tabs wouldn't be accessible anymore, and not unobtrusive
> either because you would have useless links hanging around, pointing to
> some empty divs if JavaScript is disabled.
>
> Therefore I wouldn't go so far and implement Ajax calls on tab click. I
> cannot see the use here, to me it's like using Ajax for the sake of
> Ajax. The user would even have to wait for the content to be loaded
> (first click), and that is not what I call very usable.
>
> Nonetheless, with the callback mechanism it would be pretty easy to
> implement such a function and pass it as callback. But this should not
> be part of the plugin in my eyes.

Oh I agree completely.  The tab plugin itself shouldn't bother with Ajax.  
However, pre and post callbacks then make it easy for someone to tie the ajax 
functionality in themselves, creating the tabbed-ajax setup I described.

It's all about powerful building blocks. :-)

-- 
Larry Garfield  AIM: LOLG42
[EMAIL PROTECTED]   ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

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

</pre></span>
</blockquote><br>
    <h2></h2>
  </div>
  <div class="aside" role="complementary">
    <div class="logo">
      <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a>
    </div>
    <h2>78 matches</h2>
    <br>
    
<ul><li><a href="/search?l=discuss%40jquery.com&q=date%3A20060817&a=1&o=newest&f=1">Advanced search</a></li></ul>
<form class="overflow" action="/search" method="get">
<input type="hidden" name="l" value="discuss@jquery.com">
<label class="hidden" for="q">Search the list</label>
<input class="submittext" type="text" id="q" name="q" placeholder="Search discuss" value="date:20060817">
<input class="submitbutton" id="submit" type="image" src="/submit.png" alt="Submit">
</form>

    
    <div class="nav margintop" id="nav" role="navigation">
      <h2 class="hidden">
                               Site Navigation
      </h2>
      <ul class="icons font16">
        <li class="icons-home"><a href="/">The Mail Archive home</a></li>
        <li class="icons-list">
          <a href="/discuss@jquery.com" title="c" id="c">discuss - all messages</a></li>
        <li class="icons-about">
          <a href="/discuss@jquery.com/info.html">discuss  - about the list</a></li>
        <li class="icons-expand"><a href="/search?l=discuss%40jquery.com&q=date%3A20060817&o=newest" title="e" id="e">Expand</a></li>
      </ul>
    </div>

    <div class="listlogo margintopdouble">
      <h2 class="hidden">
  				Mail list logo
      </h2>
      
    </div>
  </div>
  <div class="footer" role="contentinfo">
    <h2 class="hidden">
	        	      Footer information
    </h2>
    <ul>
      <li><a href="/">The Mail Archive home</a></li>
      <li><a href="/faq.html#newlist">Add your mailing list</a></li>
      <li><a href="/faq.html">FAQ</a></li>
      <li><a href="/faq.html#support">Support</a></li>
      <li><a href="/faq.html#privacy">Privacy</a></li>
    </ul>
  </div>
<script language="javascript" type="text/javascript">
document.onkeydown = NavigateThrough;
function NavigateThrough (event)
{
  if (!document.getElementById) return;
  if (window.event) event = window.event;
  if (event.target.tagName == 'INPUT') return;
  if (event.ctrlKey || event.metaKey) return;
  var link = null;
  switch (event.keyCode ? event.keyCode : event.which ? event.which : null) {
    case 69:
      link = document.getElementById ('e');
      break;
    }
  if (link && link.href) document.location = link.href;
}
</script>
</body>
</html>