Re: [jQuery] Removing Parent Node

2006-12-26 Thread Mohsen Saboorian
David,
Naturally it doesn't work :)

if($(this).is(span.a)) would never be true, since this is refering
to the parent node of span.a.

 $(span.a).parent().each(function() {
  if($(this).is(span.a)){
   var t = $(this).text();
   $(this).html(t);
  }
 });

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


Re: [jQuery] Removing Parent Node

2006-12-26 Thread Ⓙⓐⓚⓔ
try this... it keeps other embedded tags.

$(span.a).each(function() {
$(this).after($(this).html()).remove()
})


On 12/25/06, Mohsen Saboorian [EMAIL PROTECTED] wrote:
 Thanks Jake, but unfortunately it does't fix my problem.
 The parent node might have other children which should not be changed, e.g.

 span
   babc/b span class=aefgh/span iijkl/i
 /span

 should be changed to:

 span
   babc efgh iijkl/i
 /span

 Thanks.

 On 12/26/06, Ⓙⓐⓚⓔ [EMAIL PROTECTED] wrote:
  try:
 
  $(span.a).parent().each(function() {
  var t = $(this).text()
  $(this).html(t)
  })
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Removing Parent Node

2006-12-26 Thread David Duymelinck
Mohsen Saboorian schreef:
 David,
 Naturally it doesn't work :)

 if($(this).is(span.a)) would never be true, since this is refering
 to the parent node of span.a.

   
It was too easy to be true :) I thought because it was in an each loop 
this referred to the elements caught by the parent function because it's 
possible to get the text out the different tags and put it into the 
innerhtml. 

-- 
David Duymelinck

[EMAIL PROTECTED]


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


Re: [jQuery] AJAX problems - ajaxSubmit Form-PlugIn

2006-12-26 Thread Mike Alsup
 1. the script duplicates the formsheet of Eintragen when you open and
 close it again and again..

Olaf,

It looks like you're returning the entire HTML document in both the
IFrame and the return from the form submit?  For the form submit
(save.php) try returning only the document fragment that needs to be
inserted into the existing document.

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


[jQuery] Two tablesorter observations...

2006-12-26 Thread Christopher Vrooman

Hello,

1. Maybe I missed this, but if you don't already, you should state that
empty cells cause a o.childNodes[0] has no properties error (at least in
FF 2.0.0.1). So empty cells should always have at least a nbsp; to keep
tablesorter happy.

2. Is there anyway to make the currency parser more generic? What I mean is
that I was trying to sort a column where I wasn't specifying a specific
currency and the results were not ordered properly. Then I compared the
currency function and found that line 374 had changed from
  return s.match(/^[£$]/);
to:
   return s.match(/^[$]/);

However, I found I had to do something like this:
   return s.match(new RegExp(/^[€$£P$EUR]/));
To handle euros, dollars, pounds, pesos, and euros, respectively. But if I
add another currency, then I'll have to edit the source again. :(

Would it be possible to tag a column as being of type currency to let
tablesorter know it should strip off the beginning, non-numerical
characters? Maybe using a class like ts_currency to avoid possible
collisions with an otherwise common classname of currency? Then it might
be possible to many, some, or none currency symbols.

Thanks in advance,
 Christopher.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] .load() not executing javascript code in IE

2006-12-26 Thread malsup


Surge Mitchell wrote:
 
 Here is the call of the .load script:
 $(div#filetreescript).load(/client/secure/filetree.php);
 

What is being returned by filetree.php?  Can you post a sample page
somewhere?
-- 
View this message in context: 
http://www.nabble.com/.load%28%29-not-executing-javascript-code-in-IE-tf2883329.html#a8056552
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Plugin Authoring: Custom Alias

2006-12-26 Thread Jörn Zaefferer
Hi folks,

just added the Custom Alias section to the plugin authoring guide. If 
you don't know about this yet, check it out. Anyway, please correct or 
improve it!

Link:
http://jquery.com/docs/Plugins/Authoring/#CustomAlias

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Plugin Authoring: Custom Alias

2006-12-26 Thread Aaron Heimlich

I made a few minor spelling and grammar changes, but otherwise it's good.

--
Aaron Heimlich
Web Developer
[EMAIL PROTECTED]
http://aheimlich.freepgs.com

On 12/26/06, Jörn Zaefferer [EMAIL PROTECTED] wrote:


Hi folks,

just added the Custom Alias section to the plugin authoring guide. If
you don't know about this yet, check it out. Anyway, please correct or
improve it!

Link:
http://jquery.com/docs/Plugins/Authoring/#CustomAlias

--
Jörn Zaefferer

http://bassistance.de


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

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


Re: [jQuery] Plugin Authoring: Custom Alias

2006-12-26 Thread Mike Alsup
 just added the Custom Alias section to the plugin authoring guide. If
 you don't know about this yet, check it out. Anyway, please correct or
 improve it!

Nice job, Jörn.  That's a handy page.

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


[jQuery] Trigger on-click event in first table cell

2006-12-26 Thread Mungbeans

I have this table:

table id=photographTable
tr
td
span class=small button
onclick=showPhotograph('http://localhost:11000/my.JPG', 1044, 746);return
false;Show/spantd..etc../td
/tr
trtd...etc/td/tr
/table

How do I trigger the on-click event in the first cell, first row?
-- 
View this message in context: 
http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8058842
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-26 Thread Mike Alsup
This is a plugin for anyone who has an occasional need to simulate
synchronous ajax.  Sync ajax locks the entire browser which is never a
good idea.   This plugin can block and unblock user interaction on
demand.  A demo can be found here:

http://www.malsup.com/jquery/block/

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


Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-26 Thread Erik Beeson

Mike,

Nice! I've been doing it manually, but this looks really handy. Thanks!

--Erik

On 12/26/06, Mike Alsup [EMAIL PROTECTED] wrote:


This is a plugin for anyone who has an occasional need to simulate
synchronous ajax.  Sync ajax locks the entire browser which is never a
good idea.   This plugin can block and unblock user interaction on
demand.  A demo can be found here:

http://www.malsup.com/jquery/block/


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


Re: [jQuery] Plugin for UI blocking - an alternative to sync ajax

2006-12-26 Thread Erik Beeson

Mike,

Nice! I've been doing it manually, but this looks really handy. Thanks!

--Erik

On 12/26/06, Mike Alsup [EMAIL PROTECTED] wrote:


This is a plugin for anyone who has an occasional need to simulate
synchronous ajax.  Sync ajax locks the entire browser which is never a
good idea.   This plugin can block and unblock user interaction on
demand.  A demo can be found here:

http://www.malsup.com/jquery/block/


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


Re: [jQuery] Trigger on-click event in first table cell

2006-12-26 Thread Mungbeans

I discovered that this:

$(#photographTable tr:eq(0) td:first-child span).click();

does work.  My problem was that I had to include it into the callback
function
attached to the ajax call that created the table.  

-- 
View this message in context: 
http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8059175
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Trigger on-click event in first table cell

2006-12-26 Thread Yehuda Katz

$(#photographTable td:first span).click() would probably work as well, and
be faster too :)

On 12/26/06, Mungbeans [EMAIL PROTECTED] wrote:



I discovered that this:

$(#photographTable tr:eq(0) td:first-child span).click();

does work.  My problem was that I had to include it into the callback
function
attached to the ajax call that created the table.

--
View this message in context:
http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8059175
Sent from the JQuery mailing list archive at Nabble.com.


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





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Trigger on-click event in first table cell

2006-12-26 Thread Yehuda Katz

That's way more complex than need be.

By definition, the first table cell of the first row is also the first cell
in the table, so $(#photographTable td:first) should be perfectly fine.
And there's no need to run an each, as click will run fine on the jQuery
object returned by the query.

$(#photographTable td:first).click(function() { // code }); should work
great.

-- Yehuda

On 12/27/06, Joan Piedra [EMAIL PROTECTED] wrote:


I think it should be something like this

$('#photographTable tr:first-child td:first-child').each(function() {
  $(this).click(function() {
//your code here
alert('woo ha!');
  });
});


On 12/26/06, Mungbeans [EMAIL PROTECTED]  wrote:


 I have this table:

 table id=photographTable
 tr
 td
 span class=small button
 onclick=showPhotograph(' http://localhost:11000/my.JPG', 1044,
 746);return
 false;Show/spantd..etc../td
 /tr
 trtd...etc/td/tr
 /table

 How do I trigger the on-click event in the first cell, first row?
 --
 View this message in context: 
http://www.nabble.com/Trigger-on-click-event-in-first-table-cell-tf2884409.html#a8058842

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


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




--
Joan Piedra || Frontend webdeveloper
http://joanpiedra.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] msie closures syntax

2006-12-26 Thread moe
hi all :)

i hope someone on this list can help me here, even tho
my question is not directly related to jquery (duck).

i have trouble getting my closures to work in ie:


--snip

//
// A) this doesn't work in ie (ff  opera grok it)
//
setTimeout(  function( a,b,c ) { doStuff( a,b,c ) }, 100, stuff, 1, 2  );


//
// B) this works in IE
//
var fref = iehelper( stuff, 1, 2 );
setTimeout( fref, 100 );

function iehelper( a,b,c ) {
return ( function() {
doStuff( a,b,c );
});
}

--snap


anyone know how to feed that to ie without
the nasty helper function?


best regards,
  moe


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