Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Mika Tuupola

On Mar 29, 2007, at 7:47 PM, Abel Tamayo wrote:

> Thanks very much, Mikka, will be trying it this evening.

Youre welcome :) Also make sure that you are running latest version  
of plugin. Support for callbacks was added in previous version.

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




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


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Mika Tuupola

On Mar 29, 2007, at 4:08 PM, Mika Tuupola wrote:

>
> On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote:
>
>> Update: I've found that, when you apply $().editable on an object,  
>> it gets a new property-function called editable (that points at  
>> reset() in the plugin, but that doesn't matter now). I've tried  
>> removing this attribute like this $(myEditable).editable = null,  
>> and although I don't get any error, it doesn't work either and the  
>> property stays just there (silently laughing at me). Any ideas how  
>> to remove this property? I don't see what I might be doing wrong.
>
> Sorry for late answer. Use callback function to unbind the event  
> form element. For example:
>
> -cut-
> $(document).ready(function() {
> $(".editable").editable("http://www.example.com/save.php";, {
> indicator : '',
> type : "textarea",
> submit : "OK",
> }, function(value, settings) {
> $(this).unbind(settings.event);
> });
> });
> -cut-

Ooops. One extra comma causes Safari to bail. This should have been:

$(document).ready(function() {
 $(".editable").editable("http://www.example.com/save.php";, {
 indicator : '',
 type : "textarea",
 submit : "OK"
 }, function(value, settings) {
 $(this).unbind(settings.event);
 });
});


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




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


Re: [jQuery] jEditable: how to remove behaviour

2007-03-29 Thread Mika Tuupola

On Mar 29, 2007, at 3:45 PM, Abel Tamayo wrote:

> Update: I've found that, when you apply $().editable on an object,  
> it gets a new property-function called editable (that points at  
> reset() in the plugin, but that doesn't matter now). I've tried  
> removing this attribute like this $(myEditable).editable = null,  
> and although I don't get any error, it doesn't work either and the  
> property stays just there (silently laughing at me). Any ideas how  
> to remove this property? I don't see what I might be doing wrong.

Sorry for late answer. Use callback function to unbind the event form  
element. For example:

-cut-
$(document).ready(function() {
 $(".editable").editable("http://www.example.com/save.php";, {
 indicator : '',
 type : "textarea",
 submit : "OK",
 }, function(value, settings) {
 $(this).unbind(settings.event);
 });
});
-cut-

Working example in url below:

http://www.appelsiini.net/~tuupola/jquery/jeditable/tamayo.php


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




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


[jQuery] DED|Chain - jQuery mentioned shortly

2007-03-26 Thread Mika Tuupola
"DED|Chain is free open source software (BSD License) that will allow  
you to build first class, high-quality websites without the cruft.  
You get the reliability of Yahoo! UI, and the developer friendliess  
of jQuery. "

http://dedchain.dustindiaz.com/

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




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


[jQuery] ThickBox for Mephisto - jQuery and Rails

2007-03-26 Thread Mika Tuupola
I just wrote a small macro for the Rails based blogging system  
Mephisto. Macro utilizes Cody Linley's excellent ThickBox. Those who  
are interested check url below:

http://www.appelsiini.net/~tuupola/434/thickbox-macro-for-mephisto

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




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


Re: [jQuery] NOTICE: Moving to Google Groups

2007-03-21 Thread Mika Tuupola

On Mar 21, 2007, at 6:06 PM, bruce wrote:

> in looking over the googl groups page, i couldn't find how to still  
> be able
> to get the emails from the topics.. can someone point me to where the
> information is that illustrates how to add/view postings to the  
> group, if
> you're using outlook (msoft).

Google Groups is just MLM with web interface. So you can just send  
emails as you used to before. Only To: address will change. What it  
will be we should know soon.

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




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


Re: [jQuery] looking for sortable plugin that serialized on mouse release

2007-03-15 Thread Mika Tuupola

On Mar 15, 2007, at 12:42 PM, amircx wrote:

> i saw many sortables around including protoype, its seems that the  
> interface
> plugin is the most simple , but i dont have a clue how can i  
> serialize the
> data after the user release the dragged content, and also, how can  
> i send it
> to the server for proccessing the data

Do something like:

 $("#someid").Sortable({
 accept : 'sortableitem',
 onchange : function (sorted) {
 serial = $.SortSerialize('projectlist');
 $.ajax({
 url: "http://www.example.com/save.php";,
 type: "POST",
 data: serial.hash
 // complete: function(){},
 // success: function(){},
     // error: function(){}
 });
 }
 });


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




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


Re: [jQuery] Edit in place -- update two div

2007-03-14 Thread Mika Tuupola

On Mar 14, 2007, at 9:12 PM, Agrawal, Ritesh wrote:

> I am using Mika Tuupola's edit in place script
> (http://www.appelsiini.net/~tuupola/javascript/jEditable/) . It workes
> fine..but I have some trouble in extending it. Actually I want to  
> update two
> divs when user is done with editing. But I am not sure how I can do  
> that
> with jeditable..

I clearly need do the "callback" or "onsuccess" option that has been  
in my TODO list for a while. In the meanwhile you can try the  
possibility of passing an function name instead of uri to jEditable.  
This function can do submitting and updating of the other div.

There is small example in the end of this page (search for "Passing  
data to function instead of URL"):

http://www.appelsiini.net/~tuupola/382/in-place-editing-with-selects

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




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


Re: [jQuery] editInPlace link trigger

2007-03-14 Thread Mika Tuupola

On Mar 14, 2007, at 5:21 PM, strzelecki wrote:

> Doesn't seem to want to work the same with Daves version. I have:
>  class="trigger">Edit
> 

Re: [jQuery] editInPlace link trigger

2007-03-14 Thread Mika Tuupola

On Mar 14, 2007, at 5:08 PM, strzelecki wrote:

> Ah many thanks. I will give that a try.
> Just a note: The Editable demos on your site are erroring if  
> Firefox 2.0.0.2
> XP:
> Error: console is not defined
> Source File:
> http://www.appelsiini.net/~tuupola/jquery/jeditable/lib/ 
> jquery.jeditable.js
> Line: 159

You probably checked the demos at the same time I was doing some  
debugging with console.log(). So if you did not have FireBug  
installed you saw some errors because of that.

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




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


Re: [jQuery] editInPlace link trigger

2007-03-14 Thread Mika Tuupola

On Mar 14, 2007, at 4:10 PM, Mika Tuupola wrote:

> http://www.appelsiini.net/~tuupola/jquery/jeditable/strzelecki.php
>
> Check the source. Although this is done with jEditable plugin not
> Dave's version. Hope it helps.

Tsk tsk. Hey Dave, you have forgotten to remove my name from the CVS  
tag ;)

/* $Id: jquery.inplace.js,v 0.9.9 2007/03/06 18:00:00 tuupola Exp $ */

http://davehauenstein.com/code/scripts/jquery.inplace.source.js

versus

http://www.appelsiini.net/~tuupola/download/jquery.jeditable-0.9.2.js


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




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


Re: [jQuery] editInPlace link trigger

2007-03-14 Thread Mika Tuupola

On Mar 14, 2007, at 11:51 AM, strzelecki wrote:

> Not cracked this yet. Anyone? I tried contacting Dave directly but  
> got no
> response.

http://www.appelsiini.net/~tuupola/jquery/jeditable/strzelecki.php

Check the source. Although this is done with jEditable plugin not  
Dave's version. Hope it helps.

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




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


Re: [jQuery] Edit in place feedback needed

2007-03-13 Thread Mika Tuupola

On Mar 13, 2007, at 7:54 PM, Rey Bango wrote:

> Much better!!! Should people re-download the plugin or was that only a
> change on the demo page?

Should redownload.  I also updated version number from 1.2.0 to 1.2.1  
for the bugfix. I am now running Parallels so I have no excuses of  
NOT testing properly with windows...

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




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


Re: [jQuery] Edit in place feedback needed

2007-03-13 Thread Mika Tuupola

On Mar 13, 2007, at 3:46 PM, Rey Bango wrote:

> The demos on this page didn't work for me in IE7:
>
> http://www.appelsiini.net/~tuupola/jquery/jeditable/

IE did not having parameter named "class". Renamed it to "cssclass"  
to keep IE happy.



>> I just put up a new release of jEditable. Main new things are support
>> for selects and possibility to style input element via style or css
>> class. You can check example usage from my blog:
>>
>> http://www.appelsiini.net/~tuupola/382/in-place-editing-with-selects


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




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


Re: [jQuery] Edit in place feedback needed

2007-03-13 Thread Mika Tuupola

On Mar 13, 2007, at 3:46 PM, Rey Bango wrote:

> The demos on this page didn't work for me in IE7:

Ahem. Seems to be with IE6 too. Will investigate.

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




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


[jQuery] Edit in place feedback needed

2007-03-13 Thread Mika Tuupola
I just put up a new release of jEditable. Main new things are support  
for selects and possibility to style input element via style or css  
class. You can check example usage from my blog:

http://www.appelsiini.net/~tuupola/382/in-place-editing-with-selects

I would like to get some feedback on experimental feature. In  
addition to url address it is also possible to give function as the  
target where edited content is sent to. This function can do  
additional processing of data. Validating, transforming it to  
something else, updating some extra divs etc.

Currently function has to return string. This string will then be  
innerHTML of the edited element. I would not like to force this. One  
idea would  be that if function returns false, plugin will then  
assume function already made the necessary updates to innerHTML. Does  
this sound sane to you.

I am also trying to find out what would be optimal way to make  
plugins configuration options also available to the function.

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




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


Re: [jQuery] How do I hook up the "Editable" plug-in to a MySQL DB?

2007-03-09 Thread Mika Tuupola

On 9 Mar 2007, at 02:44, Rick Faircloth wrote:

> I don’t see how to hook the “Editable” plug-in to *any* datasource  
> right now.
>
You mean you want to save the text you edit to the database? For  
jEditable first and only mandatory parameter is the URL where edited  
content is POST:ed to. For example:

$(document).ready(function() {
 $(".editable").editable("http://www.example.com/save.php";, {
 type   : 'textarea',
 submit : 'OK'
 });
});

With whis example when you edit stuff and click ok stuff gets POST:ed  
to http://www.example.com/save.php. This script should then save  
content to database. You can check examples at:

http://www.appelsiini.net/~tuupola/javascript/jEditable/

or browse example source code at:

http://svn.appelsiini.net/viewvc/jQuery_jEditable/trunk/examples/

JavaScript itself does not connect to database. You need to use some  
serverside language such as PHP, Ruby or Perl for that.


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




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


Re: [jQuery] Feedback needed on when to use Edit In Place

2007-03-08 Thread Mika Tuupola

On 8 Mar 2007, at 16:56, Rey Bango wrote:

> I've been thinking about the best time to use an Edit in Place like  
> this
> one (http://www.dyve.net/jquery/?editable). Its a very cool technique
> but I'm not quite sure when I would use it or how I would let a user
> know that a field is editable simply by clicking on it.

You might also want to check jEditable which is based on Dylan's plugin.

http://www.appelsiini.net/~tuupola/javascript/jEditable/

Some ideas about notifying user field is editable might be for  
example yellow background or fade to yellow on mouseover, tooltips etc.

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




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


Re: [jQuery] In place editor for jQuery 1.1

2007-03-07 Thread Mika Tuupola

On 7 Mar 2007, at 17:28, chali wrote:

> jEditable is a great piece of work :)
> It works great in FF 2.0.0.2 and IE 6 on XP SP2.

Thanks!

> I have a question, it's posible to add a class to the input box at  
> editing
> tme?

Soon. Thats a promise :) I have actually patch sent by Mathias Henze  
which includes class support. I will make a new release during this  
week.

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




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


Re: [jQuery] problem with "edit in place" on HTML coding.

2007-03-01 Thread Mika Tuupola

On 1 Mar 2007, at 02:15, Mark wrote:

> yea.. i was just thinking about the same.. i think i`m gonna give  
> that a try..
>
> 2007/2/28, Karl Rudd <[EMAIL PROTECTED]>: Unfortunately you can't  
> just "assign" a function that runs on the
> server to JavaScript (running on the client). The best you could do
> would be to POST the content back via AJAX.

Check the parameters:

   * @param String  options[postload]  POST URL to fetch content  
before editing
   * @param String  options[getload]   GET URL to fetch content  
before editing

which fetch contents of the input via GET or POST. So this script  
which returns the content can do html_entity_decode() for you.

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




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


Re: [jQuery] problem with "edit in place" on HTML coding.

2007-02-27 Thread Mika Tuupola

On 27 Feb 2007, at 01:47, Mark wrote:

> > i have a edit in place thing now and i have this text:
> > #INCLUDE#
> >
> > when you click on the the text field pops in BUT the content is
> > suddently different.. the content now is:
> > <div class="admin_link">#INCLUDE#</div>

> sorry, i forgot to mention that..
> i`m using the jEditable plugin.

Ok. To be clear. Is the text you are trying to edit "#INCLUDE#" or  
are you trying to edit the whole html tag "#INCLUDE#" ?

Maybe you can post some example code online?

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




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


Re: [jQuery] problem with "edit in place" on HTML coding.

2007-02-26 Thread Mika Tuupola

On 26 Feb 2007, at 21:55, Mark wrote:

> i have a edit in place thing now and i have this text:
> #INCLUDE#
>
> when you click on the the text field pops in BUT the content is  
> suddently different.. the content now is:
> <div class="admin_link">#INCLUDE#</div>

Which edit in place plugin are you using? jEditable ( http:// 
www.appelsiini.net/~tuupola/javascript/jEditable/ ) or something else?

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




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


Re: [jQuery] Help needed: Images not loading properly in FF

2007-02-26 Thread Mika Tuupola

On 26 Feb 2007, at 00:35, Kristinn Sigmundsson wrote:

> packed with dean edwards jspacker, gzip and
> finally saved for cache

Why are you using both jspacker and gzip? Wouldn't just gzip be  
sufficient?

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




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


Re: [jQuery] Plugin naming

2007-02-14 Thread Mika Tuupola

On 13 Feb 2007, at 21:33, Jörn Zaefferer wrote:

> I think this works particuarily well because "writing plugins" is  
> nicely
> documented (http://docs.jquery.com/Plugins/Authoring), in addition to

There is one point which only few plugin authors seem to follow:

"Name your file jquery.[insert name of plugin].js, eg. jquery.debug.js"

Not that is is a huge issue but it still would be nice to have  
constant naming in the plugin files.

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




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


[jQuery] OT: Debugging PHP With Firebug

2007-02-08 Thread Mika Tuupola
Warning! Someone might consider the following blatant self promotion...

Anyway people developing with PHP and jQuery might find this useful.  
I wrote a Firebug handler / driver for PEAR::Log package. It enables  
logging PHP errors into Firebug console. I wrote it while debugging  
last project we did with jQuery and PHP. Got fed up checking PHP  
debug log and JavaScript debug log in different windows.

http://www.appelsiini.net/~tuupola/312/debugging-php-with-firebug

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




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


Re: [jQuery] Inline editing-double entry in database

2007-02-05 Thread Mika Tuupola

On 5 Feb 2007, at 09:01, Vikrant Azad wrote:

>
> I am not a pro with programming so I would be able to grasp only  
> little form
> what you say till you write in very explicit words. So the best  
> option is to
> provide a url.
>
> Here is the url
> http://www.joomlaprodigy.com/test/modules/mod_editinplacejp.php

Tested with FireBug and it POST:s the data only once. Test with  
normal form which submits data to same URL. If entries still show up  
twice in database try to debug the database code (the code which  
makes actual INSERT into database).

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




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


[jQuery] Safari nightly builds for testing

2007-01-31 Thread Mika Tuupola

For those who want to test jQuery against development versions of  
WebKit:

http://nightly.webkit.org/
http://developer.apple.com/opensource/internet/nightlywebkit.html

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




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


Re: [jQuery] [Slightly OT] Nabble Blocked

2007-01-20 Thread Mika Tuupola

On Jan 19, 2007, at 5:47 PM, Jason Levine wrote:

> I usually start every day using Nabble to browse through the latest  
> posts to the JQuery discussion list.  A couple of days ago, though,  
> I was surprised to find that my work's WebSense filter had blocked  
> it as a "malicious web site."  I talked with the administrators and  
> they initially claimed that I shouldn't be blocked from anything (a  
> perk of being the Webmaster), but then claimed that there might not  
> be a way for them to bypass the block.  What could possibly be on  
> Nabble that got it blocked?  Anyone else using WebSense out there  
> encountering a block?  This is very annoying to me.  (Might take a  
> walk and see if the administrators have any ideas on how to unblock  
> it.)

Well these filtering techniques are generally crap. Websense thinks  
(or atleast used to think, havent tested lately) that I am pr0n.

http://www.appelsiini.net/~tuupola/images/upload/websense-big.gif

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




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


Re: [jQuery] jEditable dont work with IE7

2007-01-19 Thread Mika Tuupola

On Jan 18, 2007, at 6:09 PM, David Gironella wrote:

> Some of my user say me that jEditable(http://www.appelsiini.net/ 
> ~tuupola/javascript/jEditable/) dont work with IE 7.
>
> They say that textarea is not restored with value returned by url  
> parameter.
Is it possible to see some example code so I can test with IE7. Also  
does him get some error message in JavaScript console?

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




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


Re: [jQuery] 1.1 Load

2007-01-18 Thread Mika Tuupola

On Jan 18, 2007, at 1:05 PM, Mungbeans wrote:

> I updated to 1.1 a couple of days ago and now all my load statements
> ( eg: $("#selector").load(url, {"stuff":"stuff"}, function() {alert 
> ("more
> stuff")}); )
> have stopped working.

http://jquery.com/dev/bugs/bug/814/

This has been fixed in SVN. Meanwhile you can use post() instead of  
load(). Instead of doing something like:

$('#selector').load(url, {'foo':'bar'}, function(str) {
 console.log(str);
}

do something similar to:

$('#selector').post(url, {'foo':'bar'}, function(str) {
 this.innerHTML = str;
 console.log(str);
}

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




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


Re: [jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Mika Tuupola

On Jan 17, 2007, at 9:40 PM, Ⓙⓐⓚⓔ wrote:

> I did notice a few thing though,
>in the case of a degenerate this.length == 0, you break the chain.
>you can get the nodeName, so you shouldn't have to pass it

This is related bug:

http://jquery.com/dev/bugs/bug/811/

Code is there to prevent "prevent elem has no properties" if you try  
to attach editable to nonexisting element. For example

$('#nosuch').editable();

With 1.1 I cant check it with:

if (jQuery(this).attr('id') == null)

this is why I am using

  if (this.length == 0)


Haven't tried latest from svn though.

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




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


[jQuery] In place editor for jQuery 1.1

2007-01-17 Thread Mika Tuupola
I just released new version of jEditable plugin which works with  
jQuery 1.1. I would appreciate feedback from people using Windows  
browsers. Download [1] and test [2] links below:

[1] http://www.appelsiini.net/~tuupola/javascript/jEditable/
[2] http://www.appelsiini.net/~tuupola/jquery/jeditable/

Thank you in advance!

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




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


Re: [jQuery] Safari Widget Pack

2007-01-14 Thread Mika Tuupola

On Jan 11, 2007, at 12:11 PM, Yehuda Katz wrote:

> I've begun work on a Safari widget pack, that allows you to work  
> with Safari widgets in a way more jQuery way.

This is really interesting stuff. I have been recently looking into  
using jQuery in Dashboard and Konfabulator widgets. I am not sure  
about naming though. Apple Classes are not used only for Safari but  
also Dashboard widgets. Maybe something like jquery.appleclasses.js  
would be more apropriate?

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




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


Re: [jQuery] slideUp/Down flicker with 1.0.4

2007-01-05 Thread Mika Tuupola

On Jan 4, 2007, at 17:22, Brandon Aaron wrote:

> I'm not actually able to reproduce the flicker on Firefox 2 on mac or
> Firefox 1.5 on pc with either link. However, I do believe it is
> possible to have a flicker if the system is bogged down and here is
> why.

The flicker only happens with link using jQuery 1.0.4. Mac FF  
2.0.0.1. Safari seems to be ok with me.

http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown5.html

> What you are seeing is that during a 'show' operation, the element is
> set to display: block, caches the original height and then resets the
> height to 0 to being the animation to its original height.

This sound correct. When calling slideDown it first quickly shows  
full contents. Then hides it again before doing the slideDown.

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



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


[jQuery] slideUp/Down flicker with 1.0.4

2007-01-04 Thread Mika Tuupola

Upon upgrading to jQuery 1.0.4 some of my slideUp/Down elements  
started to flicker. With 1.0.3 this problem did not exist.

http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown5.html
http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown6.html

(Click the blue box in the corner).

Am I missing something obvious or is this just css problem?

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



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


Re: [jQuery] Interface isortable onchange broken?

2006-12-27 Thread Mika Tuupola

On Dec 22, 2006, at 15:04, Mika Tuupola wrote:

> Latest isortables.js downloaded from http://interface.eyecon.ro/ (can
> not tell excact version since source code does not have revision
> tags) seems to have a bug. Callback defined by onchange option never
> gets called. Using older version ($Revision: 1.1 $) onchange
> callbacks work.
>
> Tested with FF 2.0.0.1 and Safari 2.0.4. Test code in url below.
> Sorting the list should trigger alert.
>
> http://www.appelsiini.net/~tuupola/jquery/interface/onchange.html

I guess people are still on their vacations. Can anyone confirm they  
have the same problem?
You can sort the list by dragging items with mouse. Dragging an item  
should trigger alert (but it does not).

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



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


[jQuery] Interface isortable onchange broken?

2006-12-22 Thread Mika Tuupola

Latest isortables.js downloaded from http://interface.eyecon.ro/ (can  
not tell excact version since source code does not have revision  
tags) seems to have a bug. Callback defined by onchange option never  
gets called. Using older version ($Revision: 1.1 $) onchange  
callbacks work.

Tested with FF 2.0.0.1 and Safari 2.0.4. Test code in url below.  
Sorting the list should trigger alert.

http://www.appelsiini.net/~tuupola/jquery/interface/onchange.html

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



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


Re: [jQuery] mirror of dean edwards packer anywhere?

2006-12-13 Thread Mika Tuupola

On Dec 13, 2006, at 18:16, Webunity|Gilles van den Hoven wrote:

> Anybody know a mirror of dean edwards packer?
> The .NET application doesn have thesame compression results.

Not a mirror, but I use this from commandline:

http://homepages.nildram.co.uk/~9jack9/download/packer.perl.zip

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



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


Re: [jQuery] php frameworks

2006-12-04 Thread Mika Tuupola

On Dec 5, 2006, at 6:10, bmsterling wrote:

> A partially non-jquery question, anyone use any php frameworks?  I was
> looking at the zend framework, but not sure if it is any good.

In addition to all suggested there is also eZ Publish.

http://ez.no/

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



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


Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-15 Thread Mika Tuupola

On Nov 14, 2006, at 23:46, [EMAIL PROTECTED] wrote:

> Perhaps a download configuration tool similar to what is offered  
> with the interface plug-in? Allowing the user to choose the modules  
> he/she needs, thus creating their customized "baseline" JQuery file  
> on the fly, would be great!

IMO a bit annoying to use since with those I cant just easily wget  
the source.

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



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


[jQuery] Nokia N73 and jQuery

2006-10-28 Thread Mika Tuupola

Just ran 1) testsuite with Nokia N73 2) browser. Suprisingly it only  
fails 4 tests (although text and end claims 6).

-cut-
12. css(Hash) (2,1,3)
13. css(String, Object) (2,1,3)
38. $.find() (1,52,53)
56. serialize() (1,0,1)

Test completed in 37785 milliseconds.
6 tests of 221 failed.
-cut-

1) http://joern.jquery.com/test/
2) http://www.s60.com/business/productinfo/ 
applicationsandtechnologies/webrowser

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



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


Re: [jQuery] Sortable serialize

2006-10-27 Thread Mika Tuupola

On Oct 27, 2006, at 8:00, Yehuda Katz wrote:

> So I'm working on various Rails solutions using jQuery and Interface.
> The way Rails/Prototype handles sortables is as follows:
> You have a series of id's in a list: item_2, item_4, item_1,  
> item_3, etc.
> Prototype serializes as: item[]=2&item[]=4&item[]=1&item=3 etc.

I also agree that Prototype way is more intuitive. For Interface in  
the receiving PHP script I ended up doing something like below. I  
sortable items have id:s  project_1, project_2 ...

-cut-
foreach ($_POST['projectlist'] as $key => $val) {
 unset($params);
 $params['id'] = str_replace('project_', '', $val);
 ...
-cut-

This is not however elegant solution.

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



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


Re: [jQuery] jEditable question

2006-10-24 Thread Mika Tuupola

On Oct 24, 2006, at 17:54, Robert Wagner wrote:

>> Just my $0.02: I find this odd. Imagine that you want some  
>> processing to be
>> done based on the input (i.e. server side email address checking)  
>> (We all
> that was my attempt too at first. error checking = application logic =
> write my own structures etc.

I always try to write reusable code and not force users to one  
specific implementation (for example hardcoding
  effects into jEditable). I also like to keep things simple.  
Checking for HTTP response codes is universal approach. I do however  
see cases when it is not the best solution and another approach such  
as JSON object is more suitable.

I see two possible solutions here.

1) Add an configuration option what kind of response jEditable  
expects. This requires less coding from end user. Bad thing is it  
adds bloat to jEditable since all different response types need their  
own handlers inside plugin code.

2) Add user defined callback (and/or callbefore) handlers. Requires  
more coding from the end user but everyone can write their own  
implementation for their own needs. Those who don't need special  
implementations can still use the easy defaults.

Any other suggestions?

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



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


Re: [jQuery] jEditable question

2006-10-24 Thread Mika Tuupola

On Oct 24, 2006, at 14:43, Robert Wagner wrote:

> how about that:
> if an error occours, let the server send a 500 header and the error
> message as a content.
>
> header("HTTP/1.1 500 Internal Server Error");
> print("this cannot be done.");

Agreed. I find error headers to be more elegant and universal  
solution than sending "ERROR" string in a reply.  Will implement this  
soon(ish).

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



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


Re: [jQuery] jEditable question

2006-10-24 Thread Mika Tuupola

On Oct 24, 2006, at 12:06, Barry Nauta wrote:

> - Using firefox 1.0.8 jeditable does not return.
> I can edit my text and the changes are saved in the database.  
> However, after
> hitting the enter butting (and thus submitting the changes), the  
> busy icon is
> show forever, it does not return. This is also true for the demos on
> jeditable the site. Does ayone know how to fix this?

1.0.8 is already a bit old. Will downgrade from 1.5.x series and try  
it out.

> - Instead of a string, I would rather have some json structure  
> returned from
> my backend with an optional error message. Anyone already done this?

As you said, returning JSON object is backend job. Currently  
jEditable itself does not have methods for handling JSON responses. I  
have plans to add call user defined callback methods though. This  
would do the job.

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



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


Re: [jQuery] New Plugin: Resizeable

2006-10-22 Thread Mika Tuupola

On Oct 21, 2006, at 15:26, Stefan Petre wrote:

> http://interface.eyecon.ro/demos/resize.html more like a image crop

OSX FF 1.5.0.7

First time when I drag (not resize) the brigh area with mouse  
everything is ok. When I release it and drag second time the bright  
area disappears as soon as I press mouse button. It reappears when I  
release mouse.

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



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


Re: [jQuery] jquery snapshots

2006-10-17 Thread Mika Tuupola

On Oct 17, 2006, at 15:45, Dan Atkinson wrote:

> What's wrong with building it?

Argh... There is nothing wrong with building it. I just had one very  
simple question. Is there a snapshot (not svn checkout) available  
somewhere? So it seems there is not.

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



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


Re: [jQuery] Dynamic call

2006-10-17 Thread Mika Tuupola

On Oct 17, 2006, at 4:00, Blair McKenzie wrote:

> I'm just guessing, but possibly
>
> $("#div")[call]()

I am using something similar to dynamically change which event  
engages plugin 1) :

-cut-
...
var settings = {
 event  : 'click'
 };
 if(options) {
 jQuery.extend(settings, options);
 };
 $(this)[settings.event](function(e) {
...
-cut-

1) http://www.appelsiini.net/~tuupola/download/jquery.jeditable.js

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



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


Re: [jQuery] jquery snapshots

2006-10-17 Thread Mika Tuupola

On Oct 16, 2006, at 23:35, Blair McKenzie wrote:

> Why do you want to use window or document load?

I am trying to make panView plugin 1) work with recent jQuery.  
panView seems to work only when called via $(document).load() or $ 
(windows).load() (not $(xxx).ready()).  I have come to the point  
where everything I need work in FF and Safari but not in IE. The  
problem is that when I try to pan a div (not img), with IE the  
content disappears when dragging content with mouse. See 2) and 3).

So I am trying to narrow things down if recent changes with .load()  
will fix the problem.

If anyone can tell me why 2 and 3 break with IE let me know.

1) http://motherrussia.polyester.se/jquery/panview/
2) http://www.appelsiini.net/~tuupola/jquery/panview/index4.html
3) http://www.appelsiini.net/~tuupola/jquery/panview/index6.html


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



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


Re: [jQuery] jquery snapshots

2006-10-17 Thread Mika Tuupola

On Oct 16, 2006, at 17:14, Dan Atkinson wrote:

> Use the SVN version if you want to do that sort of thing.
>
> http://jquery.com/src/ - Shows you the SVN access address.

AFAIK this has to be built first before it is usable. I am looking  
for readily built snapshot.

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



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


[jQuery] jquery snapshots

2006-10-16 Thread Mika Tuupola

Is it possible to download a nightly snapshot of jquery somewhere? I  
would like to test recent bugfixes. Especially those affecting $ 
(document).load(). Although using $(window).load() instead works fine  
with FF and Safari, I still have problems with Windows IE.

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



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


Re: [jQuery] Plugin Authoring

2006-10-15 Thread Mika Tuupola

On Oct 15, 2006, at 21:02, John Resig wrote:

>> Authoring guidelines say "Always use jQuery instead of $ inside your
>> plugin code - that allows users to change the alias for jQuery in a
>> single place." Does this mean only the first line jQuery.fn... or
>> should also extend be jQuery.extend()?
>
> That means everywhere inside. So if you did $.extend() you should do
> jQuery.extend() instead.

Does using jQuery instead of $ concern absolutely every case of $.  
For example code such as:

$(this).html() should be jQuery(this).html()

var f = document.createElement("form");
$(f).submit() should be jQuery(f).submit()

This works but to me it is not exactly clear is this what docs mean.

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



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


Re: [jQuery] Plugin Authoring

2006-10-15 Thread Mika Tuupola

On Oct 15, 2006, at 20:38, Jörn Zaefferer wrote:

> I'd like to point to a small change I made recently to the jQuery
> Plugins Authoring article, for all those who take others code as
> reference. The "reference code" to define defaults and parse  
> options now
> looks like this:
>
> jQuery.fn.pluginMethod = function(options) {
>   var settings = $.extend({
> stuff: [5, 3, 6, 1],
> name: "pete",
> speed: 5
>   }, options || {});
>   // other plugin code
> };
>
> So far this is the shortest way to write that particular snippet, and
> I'd like to see it in your plugins :-)

That saves 11 characters (not counting whitespace) compared to  
original (see below), but makes code less readable (IMO). So depends  
what you are after. Clever code or readable code.

Authoring guidelines say "Always use jQuery instead of $ inside your  
plugin code - that allows users to change the alias for jQuery in a  
single place." Does this mean only the first line jQuery.fn... or  
should also extend be jQuery.extend()?

-cut-
jQuery.fn.pluginMethod = function(options) {
 var settings = {
 stuff: [5, 3, 6, 1],
 name: "pete",
     speed: 5
 };
 if(options) {
 $.extend(settings, options);
 };
};


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



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


[jQuery] $(document).load() and friends

2006-10-13 Thread Mika Tuupola
Am I missing something obvious or why does .load() not seem to  
trigger anything. I am sure $('img').load(function() { something });  
used to work before. This is not the case with 1.0.2.

Check the page below. I get only "ready" at firebug console. So none  
of the load()'s get executed.

http://www.appelsiini.net/~tuupola/jquery/panview/load.html

-cut-
$(document).ready(function() {
 console.log('ready');
});
$('img').load(function() {
 console.log('img load');
});
$('p').load(function() {
 console.log('p load');
});
$(document).load(function() {
 console.log('document load');
});
-cut-

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



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


Re: [jQuery] panView and 1.0.2 was: Plugins using jQuery instead of $ died with latest

2006-10-12 Thread Mika Tuupola

On Oct 12, 2006, at 18:04, Blair Mitchelmore wrote:

> Unfortunately, http://jquery.com/src/latest/ doesn't actually  
> return the
> lastest jQuery release. It returns svn revision 29 which was before  
> the
> days of the jQuery object; jQuery 1.0.2 is based on svn revision  
> 413. To
> download the latest stable version of jQuery go to
> http://jquery.com/src/jquery-1.0.2.js (packed version available at
> http://jquery.com/src/jquery-1.0.2.pack.js). Hope that helps.

Ok thanks. Was looking at source of http://motherrussia.polyester.se/ 
jquery/panview/ which used that url.
I also tried http://jquery.com/src/jquery-1.0.2.js but since that  
broke panview I assumed /latest/ had a newer version.

So back to trying to figure out why panView and 1.0.2 do not work  
together :)

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



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


[jQuery] Plugins using jQuery instead of $ died with latest

2006-10-12 Thread Mika Tuupola
Plugins using jQuery instead of $ dont seem to work anymore if using  
jquery.js from: http://jquery.com/src/latest/

FireBug spits out "jQuery is not defined". Found this while trying to  
make tabs and panView work together.

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



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


Re: [jQuery] panView problem

2006-10-12 Thread Mika Tuupola

On Oct 12, 2006, at 15:56, Mika Tuupola wrote:

> When trying to move the image with mouse it disappears. It comes back
> when reloading the page. Disappears again when trying to move. Does
> panview need some additional CSS or am I just blind?

Seemed to be $(document).ready() vs $(document).load() issue.

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



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


[jQuery] panView problem

2006-10-12 Thread Mika Tuupola

http://www.appelsiini.net/~tuupola/jquery/panview/

When trying to move the image with mouse it disappears. It comes back  
when reloading the page. Disappears again when trying to move. Does  
panview need some additional CSS or am I just blind?

Basically what I am doing is this:

-cut-


$(document).ready(function() {
   $('img#imagePan').panView(400,400);
});

-cut-


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



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


Re: [jQuery] creating / removing DIV height problem

2006-10-11 Thread Mika Tuupola

On Oct 11, 2006, at 15:19, Tom Elsner wrote:

> div and I use slideDown() the div has a fixed height of 1px (looking
> at the generated code) which breaks the html in firefox and the
> animation in explorer (it slidesDown twice). It seems that the height
> of the element is retained although I use remove() to delete it. Does
> anyone have any ideas?

I had similar problem with nested divs and slideUp/Down(). I ended up  
removing the height attribute after calling those functions with  
something like:

-cut-
 $(this).slideUp('fast', function() {
 $(this).height('');
 });
-cut-

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



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


Re: [jQuery] change img src

2006-10-10 Thread Mika Tuupola

On Oct 10, 2006, at 12:18, Hannah Gray wrote:

> This is probably a very simple question, and I may be going about  
> the problem entirely the wrong way.  Corrections and ideas are very  
> welcome.

Try something like:

-cut-
 $("#toggle_name").toggle(function(e) {
 $('#container_name:visible').hide('slow');
 $('#toggle_name').src('assets/images/expand.gif')
 }, function(e) {
 $('#container_name:hidden').show('slow');
     $('#toggle_name').src('assets/images/retract.gif');
 });
-cut-

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



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


Re: [jQuery] search for id with '/' character

2006-10-08 Thread Mika Tuupola

On Oct 7, 2006, at 21:32, Michael Geary wrote:

> Good call. For anyone who is wondering what is valid in an ID:
>
> http://www.w3.org/TR/html4/types.html#type-name

Also one older document regarding the same matter:

http://devedge-temp.mozilla.org/viewsource/2001/css-underscores/

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



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


Re: [jQuery] slideUp / slideDown and nested divs

2006-10-04 Thread Mika Tuupola

On Oct 4, 2006, at 11:16, Mika Tuupola wrote:

> ** Example 1:
> http://www.appelsiini.net/~tuupola/jquery/slideupdown/ 
> slideupdown2.html
> ** Example 2:
> http://www.appelsiini.net/~tuupola/jquery/slideupdown/ 
> slideupdown3.html

Answering to myself here. It seems that calling slideDown() also sets  
elements absolute height in pixels. Thus any nested divs will be broken.

-cut-

-cut-

Workaround for this would be using callback after slideUp/Down which  
removes the height. For example:

-cut-
 $("a.folder").toggle(function(e) {
$(this).parent().next().slideDown('fast', function() {
$(this).height('');
});
 }, function(e) {
$(this).parent().next().slideUp('fast', function() {
$(this).height('');
});
 });
-cut-

Working example:
http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown4.html


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



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


Re: [jQuery] slideUp / slideDown and nested divs

2006-10-04 Thread Mika Tuupola
On Sep 30, 2006, at 14:25, Mika Tuupola wrote:

I am still trying to figure out solution for this problem:

** Example 1:
http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown2.html

click: toggle 2nd level -> toggle 2nd level -> toggle 1st level ->  
toggle 1st level -> toggle 2nd level

Bottom part of page does not follow closing second level div anymore.

** Example 2:
http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown3.html
click: toggle root -> toggle 1st level -> toggle 2nd level

Bottom part of page does not get pushed down by opening 2nd level div.


Is this problem with html or jQuery?

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



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


Re: [jQuery] jQuery 1.0.2 RC1

2006-10-02 Thread Mika Tuupola

On Oct 2, 2006, at 20:04, Jörn Zaefferer wrote:

> It would be great if you could give it a try and report if anything
> breaks (it shouldn't): http://joern.jquery.com/dist/jquery.js
> The updated test suite is here: http://joern.jquery.com/test/
> According to my tests, FF1.5 and IE6 should fail in 1, Opera in 2  
> of 242
> tests. Test result for IE5.5 and Safari are appreciated.

With Safari 2.0.4 testsuite dies  away after failing test  11 css  
(String) (1, 0, 1).

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



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


Re: [jQuery] slideUp / slideDown and nested divs

2006-09-30 Thread Mika Tuupola

On Sep 29, 2006, at 18:06, George Adamson wrote:

> You just need to tweak the JQuery syntax a little to refer to  
> 'this' instead
> of e.target:

That made syntax more clear but did not help with the problem:

http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown.html

With this example click  meetings ->march to see the problem. Opening  
second level folder does not push down bottom of parent div.

Then do the following.  RELOAD - click the blue icon on upper right  
corner twice to open and close - meetings. Now div does not grow with  
other layers..

Then do the following.  RELOAD - meetings - click the blue icon on  
upper right corner twice to open and close - meetings. Now background  
div does not shrink with other layers anymore..


Try to do same things with second example too.

http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown2.html


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



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


Re: [jQuery] jEditable in place editor plugin

2006-09-30 Thread Mika Tuupola

On Sep 29, 2006, at 17:50, Mika Tuupola wrote:

>> I have a suggestion for improvement. How about sizing the text inputs
>> so they are the same size as the content you are editing? i.e.
>> basically it would just add a border around the text (to indicate you
>> are editing it)
>
> Good idea. They could be set in options as: 'rows : 'auto',  cols :  
> 'auto'. Both defaulting to auto if nothing is given.
> Some kind of tooltip (via alt tag) would be useful too.

Done. Width and height now default to 'auto'. Rows and cols will  
override widht and height parameter. Also support for optional  
tooltip parameter. Check demo number three:

http://www.appelsiini.net/~tuupola/jquery/jeditable/ 
03_textile_renderer.php

and download:

http://www.appelsiini.net/~tuupola/javascript/jEditable/

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



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


Re: [jQuery] jEditable in place editor plugin

2006-09-29 Thread Mika Tuupola

On Sep 29, 2006, at 17:24, Sam Collett wrote:

> I have a suggestion for improvement. How about sizing the text inputs
> so they are the same size as the content you are editing? i.e.
> basically it would just add a border around the text (to indicate you
> are editing it)

Good idea. They could be set in options as: 'rows : 'auto',  cols :  
'auto'. Both defaulting to auto if nothing is given.
Some kind of tooltip (via alt tag) would be useful too.

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



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


[jQuery] slideUp / slideDown and nested divs

2006-09-29 Thread Mika Tuupola
While converting from prototype + script.aculo.us to jQuery +  
interface I now have a problem with nested divs and slideUp /  
slideDown functions. To me it seems these efects don't transfer the  
heigh to parent div. Check these two examples.

initially display: none;
http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown.html

initially display: block;
http://www.appelsiini.net/~tuupola/jquery/slideupdown/slideupdown2.html

Is this problem more with html or with jQuery?

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



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


Re: [jQuery] Mailing List Explosion

2006-09-29 Thread Mika Tuupola

On Sep 29, 2006, at 15:53, Boonstra, T.H. (Tim) wrote:

> An unsubscribe option is always nice, but how can I do that? :)
> Can't find any unsubscribe information ..

Check mail headers:

* List-Unsubscribe: <http://jquery.com/mailman/listinfo/ 
discuss_jquery.com>, <mailto:[EMAIL PROTECTED] 
subject=unsubscribe>

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



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


[jQuery] jEdible in place editor plugin

2006-09-29 Thread Mika Tuupola

I recently found jQuery. Fell in love with it and started converting  
old prototype + script.aculo.us projects to jQuery + interface. For  
those projects I needed an in place editor with which I could use  
Textile rendering. None of existing plugins supported that so I made  
a rewrite of my favourite one: Dylan Verheul’s editable.

Some features include:

* Editable element does not need to be wrapped with form tag.
* Id of edited element is automatically sent when saving changes.
* Can be used with external xhtml renderers such as Textile,  
Markdown, ReST or any WiKi renderer.

Live demo, javascript source and php demo source at url below. To run  
the demo's in your own server you need to have SQLite support  
compiled into PHP plus working PEAR:DB installation.

http://www.appelsiini.net/~tuupola/javascript/jEditable/

Feedback welcome.

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



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


Re: [jQuery] Mailing List Explosion

2006-09-29 Thread Mika Tuupola

On Sep 29, 2006, at 14:39, John Resig wrote:

> A hosted mailing list solution is sounding more and more tempting,
> although, moving to a high-quality forum would be more productive. Any
> Drupal/PHP people wanna help me get the new jQuery site (or just the
> forum?) out the door?

If making a forum please do not throw away the mailinglist. As a  
coder I personally find mailinglists more convenient than browsing  
forums.

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



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