Re: [jQuery] Issue with jQuery 1.0.3 + ASP.NET LinkButton

2006-11-09 Thread Jörn Zaefferer
> Great, thanks! Sorry if this sounds incredibly lazy, but is there a
> compressed version available for download somewhere or would I need to
> build
> it? Not a huge deal - I'm in a Windows environment and don't currently
> have
> an SVN client or Ant, but I'll get them if I need to.

Afaik there is no compressed latest build, therefore you have to build it for 
yourself. In a windows enviroment, I can recommenct Eclipse (comes with 
built-in Ant support) + Subclipse plugin for SVN. And you can add a editor for 
JS (the on from WTP, or Aptana, or whatever, they all suck in one way or 
another)...

--
Jörn Zaefferer

http://bassistance.de
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

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


Re: [jQuery] Media plugins

2006-11-09 Thread Dan Atkinson

I really like what you've done there. It's neat and very clean!

malsup wrote:
> 
> I've just posted some convenience plugins for dealing with Quicktime,
> Flash, and mp3 media.
> Source and demos can be found here:  http://malsup.com/jquery/media/
> 
> Mike
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Media-plugins-tf2598874.html#a7254142
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] New jQuery Plugin - Star Rating

2006-11-09 Thread Roberto Ortelli
http://sandbox.wilstuckey.com/jquery-ratings/
Not working on Safari 1.3 (blank page, no error displayed)

2006/11/9, Brandon Aaron <[EMAIL PROTECTED]>:
> On 11/8/06, Wil Stuckey <[EMAIL PROTECTED]> wrote:
> >  Ok, I implemented the IE6 background flicker fix. Source has been updated.
>
> If it is in the plugin source, I wonder if it is a good idea to
> include that hack in the plugin.
>
> --
> Brandon Aaron
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Roberto Ortelli
http://weblogger.ch

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


Re: [jQuery] Tweak to Jorn's ToolTip plugin

2006-11-09 Thread Jörn Zaefferer

 Original-Nachricht 
Datum: Wed, 8 Nov 2006 16:44:09 -0600
Von: "Andy Matthews" <[EMAIL PROTECTED]>
An: "[jQuery]" 
Betreff: [jQuery] Tweak to Jorn\'s ToolTip plugin

> I'm going to use Jorn's plugin for a site I manage, but I didn't think it
> was all that useful to have the link or the img src be displayed. I know I
> can turn it off, but I chose instead to go behind the scenes and make the
> P
> tag display alternately provided content:
> 
> http://www.modernessentials.com/tooltiptest.cfm
> 
> What I did is to split the title attribute like so:
> 
> This is the title:and this is the content.
> 
> Then I tweaked the code to split on the colon and display the first
> portion
> as the H3, with the second portion being displayed in the P tag.
> 
> Thoughts?

I like the idea: It provides more useful stuff for the user, with a simple 
syntax. It's content is still readable without JS, though it may look a little 
weird. Maybe you want to use something like this: "bla title; bla content". Or 
stick to the colon, but put a space behind it. I think about adding this to my 
plugin as an option: content: null // if given, split the title attribute 
according to the given delimiter and display an additional p tag

Eg:
...
$('a').Tooltip({content: "; "});

Or:

...
$('a').Tooltip({content: " - "});

Cool?

--
Jörn Zaefferer

http://bassistance.de
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

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


Re: [jQuery] Media plugins

2006-11-09 Thread Patrick Hall
Oh word, I've been looking for something like this.

I send you karma cookies.

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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Jörn Zaefferer
> I noticed that when text is scaled up in the browser, the containing  
> boxes do not expand to accommodate the larger content. Would this be  
> troublesome to fix? My lame guess is that the height needs to be set  
> to auto at some stage of the animation, or will this cause a flicker  
> problem maybe?
> 
> I have been keeping an eye on accordion implementations for a while  
> and it always seems to be the "one-size-only" thing that turns me off  
> them. If this could be fixed it would make the plugin even more  
> versatile.

Thanks for you comment. I simply didn't test this matter. I hope that it can be 
solved by adding some additional styles. Can't promise anything, but I'll try 
to investigate it.

--
Jörn Zaefferer

http://bassistance.de
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Christian Bach
Erik Beeson wrote:
> Changing with the arrow keys is nice, but it seems like it should select
> when you hit Enter, and revert to the last selection when you hit ESC. 

It's now on the list of stuff to implement.

Perhaps accessibility expert Klaus, could share some light on what keys 
that needs to be supported?

> Also,
> using something like this breaks tabbing between form elements, doesn't it?

No it doesn't break the tabbing, thats the great part!

> 
> It looks very nice though :)
> 
> --Erik
> 
> On 11/8/06, Christian Bach <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> There is a new demo up and running located here:
>> http://cbach.jquery.com/demos/selectbox2/
>>
>> I added support for selecting with arrow keys and the select-box now
>> reposition it self correctly when the browser window is resized.
>>
>> Enjoy
>> /Christian

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


Re: [jQuery] New jQuery Plugin - Star Rating

2006-11-09 Thread Matthew Delmarter








Hi Will,

 

Great plugin! 

 

Just wondered if you could describe your
solution to the IE6 flicker? Is it just a matter of caching images first or
something? I have this issue I something I am building and it is very frustrating.

 

Thanks for your time…

 





Regards,

Matthew 















From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wil Stuckey
Sent: Thursday, 9 November 2006
1:46 p.m.
To: jQuery
 Discussion.
Subject: Re: [jQuery] New jQuery
Plugin - Star Rating



 

On 11/8/06, Andy Matthews
<[EMAIL PROTECTED]> wrote:









Rockin!













On 11/8/06, Andy
Matthews <[EMAIL PROTECTED]>
wrote: 





1) When I mouse over a star, I always get
a brief flicker (andthe hourglass cursor appears briely as well).








Hmmm, that might be related to the IE 6 Background flicker bug. I'll see if i
can't dig up the fix to that.











 Ok, I implemented the IE6
background flicker fix. Source has been updated. 

Enjoy!

-Wil








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


Re: [jQuery] Tweak to Jorn's ToolTip plugin

2006-11-09 Thread Sam Collett
On 08/11/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
> I'm going to use Jorn's plugin for a site I manage, but I didn't think it
> was all that useful to have the link or the img src be displayed. I know I
> can turn it off, but I chose instead to go behind the scenes and make the P
> tag display alternately provided content:
>
> http://www.modernessentials.com/tooltiptest.cfm
>
> What I did is to split the title attribute like so:
>
> This is the title:and this is the content.
>
> Then I tweaked the code to split on the colon and display the first portion
> as the H3, with the second portion being displayed in the P tag.
>
> Thoughts?
>
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->

How about the ability to specify the separator, because you may want
to use a colon in the title? Also, a user may want to use something
other than  and 

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


Re: [jQuery] New jQuery Plugin - Star Rating

2006-11-09 Thread Sam Collett
On 09/11/06, Matthew Delmarter <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi Will,
>
>
>
> Great plugin!
>
>
>
> Just wondered if you could describe your solution to the IE6 flicker? Is it
> just a matter of caching images first or something? I have this issue I
> something I am building and it is very frustrating.
>
>
>
> Thanks for your time…
>
>
>
>
>
> Regards,
>
> Matthew

Just add this in the appropriate place:

if ($.browser.msie == true) {
document.execCommand('BackgroundImageCache', false, true);
}

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


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Sam Collett
On 09/11/06, Christian Bach <[EMAIL PROTECTED]> wrote:
> Erik Beeson wrote:
> > Changing with the arrow keys is nice, but it seems like it should select
> > when you hit Enter, and revert to the last selection when you hit ESC.
>
> It's now on the list of stuff to implement.
>
> Perhaps accessibility expert Klaus, could share some light on what keys
> that needs to be supported?
>
> > Also,
> > using something like this breaks tabbing between form elements, doesn't it?
>
> No it doesn't break the tabbing, thats the great part!

The cursor keys only work when the mouse is over the select box
though. It would be nice if a scrollbar was added if it was longer
than the current viewport.

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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Dan Atkinson

Hi there.

Your JS code link is dead! :)

cjordan wrote:
> 
> Hi folks,
> 
> Today, I was in need of a function to parse strings in the ODBCDateTime 
> format. I needed to convert a string in the ODBCDateTime format to a 
> valid JavaScript Date object, and vise versa. So instead of just writing 
> the functions for me, I decided to make them a plugin for jQuery.
> 
> They're simple, and I'll work on adding a bit more functionality (either 
> as I need it, or as the community responds with the need), but for now, 
> I just threw it together.
> 
> Here's my little demo  
> page. Check it out, and comment if you like. As the page says: it's my 
> first plug-in so be gentle! :o)
> 
> G'night folks.
> Chris
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/New-Plugin%3A-ODBCDate-functions-tf2599770.html#a7255399
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Christian Bach
Sam Collett wrote:
> The cursor keys only work when the mouse is over the select box
> though. It would be nice if a scrollbar was added if it was longer
> than the current viewport.

Yeah, i will implement some kind of viewport check.

All so tabbing to the element in a form makes the selectbox trigger the 
focus event and cursor keys will start working. The mouse wheel will all so 
work, because the focus is actually on the "hidden" select element.

I have to do some more reading on how the original select element responds 
to different event to mimic it perfectly.

/christian




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


Re: [jQuery] Building a Community

2006-11-09 Thread digital spaghetti
On 11/9/06, Dragan Krstic <[EMAIL PROTECTED]> wrote:
> It will be very nice to have list of sites runs on jQuery on
> http://jquery.com, then to have contest for site of month, year, best
> plugins, widgets, etc...
>

Definitely, I think that would be quite achievable (again, using
Drupal!)  with each plugin having it's own page, support forum, bug
tracking and feature requests, plus access to an SVN where  they are
stored.

And for sites running jQuery, it could be something like
cssgallery.com with a picture of the site, link, people can leave
comments and also score the site (using a jQuery-based vote plugin :)

I don't know how far along John and the other web designers are on
this, but it's definitely something to look at.

Tane

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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Louise Dade
Hi,

[I'm usually a lurker, this is my first response - been using JQuery
for a couple of months now and loving it!]

On 09/11/06, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>
>  Today, I was in need of a function to parse strings in the ODBCDateTime
> format. I needed to convert a string in the ODBCDateTime format to a valid
> JavaScript Date object, and vise versa. So instead of just writing the
> functions for me, I decided to make them a plugin for jQuery.

I cheked out your plugin, and the conversion from ODBCDateTime to a JS
string worked fine, but the 'JS to ODBCDatetime' function threw up a
problem when I tried it/

My current system time came up as:  106-11-9 10:50:59

That puts me in the Iron Age!  (My system clock appears to be correct elsewhere.

Otherwise, great - and useful - addition.

Regards,
Louise Dade

-- 
www.classical-webdesigns.co.uk ~ Complete Website Design.

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


Re: [jQuery] $.get - Retrieving XML Docs

2006-11-09 Thread Richard Walker

Hi Steve,

I've got the latest source from the SVN and built it but I still have the
same problem. 

Maybe I should illustrate what I'm doing, so here is an example:

I have a template XML document:



   
  PROPERTY_SEARCH
   
   
  
 
 
 
 
  
   


which I want to populate with values from a form to get:



   
  PROPERTY_SEARCH
   
   
  
 abc123
 123
 abc
 ab1234
  
   


I have some code which will do this in Firefox/Opera but not IE:

function test() {
  var data_item = {"ref":"abc123",
 "house_no":"123",
 "house_name":"abc",
 "postcode":"ab1234"
};
 
   $.get("xml/testTemplate.xml", function(xml) {
  $.each(data_item, function(i) {
 $(i,xml).append(data_item[i]);
  });

  alert("Request: "+ $(xml).toXML());
   });
}

I get a 'Type mismatch' error from IE when it tries to use the .append
function. If I comment out this line the alert will only give me:

'Request:  ' 

but will give me the full tree for firefox/opera.

Is this still a bug or am I abusing jquery in some way?

Richard


Stephen Woodbridge wrote:
> 
> Richard,
> 
> This sounds like bug 164, which has been recently fixed in svn.
> 
> -Steve
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%24.get---Retrieving-XML-Docs-tf2598993.html#a7256164
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Blair Mitchelmore
The problem is the plugin uses d.getYear() which returns the current 
year minus 1900. To get the actual year that line should be changed to 
d.getFullYear(). Quick fix until the plugin gets officially updated.

-blair

Louise Dade wrote:
> Hi,
>
> [I'm usually a lurker, this is my first response - been using JQuery
> for a couple of months now and loving it!]
>
> On 09/11/06, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>>  Today, I was in need of a function to parse strings in the ODBCDateTime
>> format. I needed to convert a string in the ODBCDateTime format to a valid
>> JavaScript Date object, and vise versa. So instead of just writing the
>> functions for me, I decided to make them a plugin for jQuery.
>
> I cheked out your plugin, and the conversion from ODBCDateTime to a JS
> string worked fine, but the 'JS to ODBCDatetime' function threw up a
> problem when I tried it/
>
> My current system time came up as:  106-11-9 10:50:59
>
> That puts me in the Iron Age!  (My system clock appears to be correct 
> elsewhere.
>
> Otherwise, great - and useful - addition.
>
> Regards,
> Louise Dade
>


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


[jQuery] Problems loading select options in IE

2006-11-09 Thread Michael Prinsloo
HiI am generating some  tags with php and then loading them into a select box with jQuery's load method as follows:The Select Box:
The _javascript_:$("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});This works well with Firefox but IE simply displays an empty select box.
Loading some html into a div, with the same method and the same php file, works perfectly in IE.What
could I be missing? I have to demo this application for a client in
less than 20 hours, and they only use IE! Have spent the last hour
trying to figure this one out.
Any help, or nudge in the right direction would be much apreciated.Kind RegardsMike
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New jQuery Plugin - Star Rating

2006-11-09 Thread Klaus Hartl
Andy Matthews schrieb:
> Rockin!

Yeah! Did I already say I really like it! Thanks Wil!


-- Klaus

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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Klaus Hartl
Jörn Zaefferer schrieb:
>> I noticed that when text is scaled up in the browser, the containing  
>> boxes do not expand to accommodate the larger content. Would this be  
>> troublesome to fix? My lame guess is that the height needs to be set  
>> to auto at some stage of the animation, or will this cause a flicker  
>> problem maybe?
>>
>> I have been keeping an eye on accordion implementations for a while  
>> and it always seems to be the "one-size-only" thing that turns me off  
>> them. If this could be fixed it would make the plugin even more  
>> versatile.
> 
> Thanks for you comment. I simply didn't test this matter. I hope that it can 
> be solved by adding some additional styles. Can't promise anything, but I'll 
> try to investigate it.


Did that for tabs. You have to reset the height to auto *after* the 
animation is completed (callback!).


-- Klaus

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


Re: [jQuery] Problems loading select options in IE

2006-11-09 Thread Sam Collett
On 09/11/06, Michael Prinsloo <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am generating some  tags with php and then loading them into a
> select box with jQuery's load method as follows:
>
> The Select Box:
>
> 
>
> The Javascript:
>
> $("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});
>
> This works well with Firefox but IE simply displays an empty select box.
>
> Loading some html into a div, with the same method and the same php file,
> works perfectly in IE.
>
> What could I be missing? I have to demo this application for a client in
> less than 20 hours, and they only use IE! Have spent the last hour trying to
> figure this one out.
>
> Any help, or nudge in the right direction would be much apreciated.
>
> Kind Regards
>
> Mike

You may find this useful:
http://www.texotela.co.uk/code/jquery/select/

You can add multiple options by returning the options as a JSON string
in your php script (untested):

$.getJSON("phpfile.php",
  {action: "getoptions", alpha: "A"},
  function(json){
$("#selectbox").addOption(json, false);
  }
)

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


Re: [jQuery] $.get - Retrieving XML Docs

2006-11-09 Thread Klaus Hartl
Richard Walker schrieb:
> Hi Steve,
> 
> I've got the latest source from the SVN and built it but I still have the
> same problem. 
> 
> Maybe I should illustrate what I'm doing, so here is an example:
> 
> I have a template XML document:
> 
> 
> 
>
>   PROPERTY_SEARCH
>
>
>   
>  
>  
>  
>  
>   
>
> 
> 
> which I want to populate with values from a form to get:
> 
> 
> 
>
>   PROPERTY_SEARCH
>
>
>   
>  abc123
>  123
>  abc
>  ab1234
>   
>
> 
> 
> I have some code which will do this in Firefox/Opera but not IE:
> 
> function test() {
>   var data_item = {"ref":"abc123",
>"house_no":"123",
>"house_name":"abc",
>"postcode":"ab1234"
>   };
>  
>$.get("xml/testTemplate.xml", function(xml) {
>   $.each(data_item, function(i) {
>  $(i,xml).append(data_item[i]);
>   });
> 
>   alert("Request: "+ $(xml).toXML());
>});
> }
> 
> I get a 'Type mismatch' error from IE when it tries to use the .append
> function. If I comment out this line the alert will only give me:
> 
> 'Request:  ' 
> 
> but will give me the full tree for firefox/opera.
> 
> Is this still a bug or am I abusing jquery in some way?
> 
> Richard
> 
> 
> Stephen Woodbridge wrote:
>> Richard,
>>
>> This sounds like bug 164, which has been recently fixed in svn.
>>
>> -Steve
>>
>>
> 



Are you sure you have set the proper mime type?


-- Klaus



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


Re: [jQuery] Ajax malformed response problems

2006-11-09 Thread Klaus Hartl
Paul McLanahan schrieb:
> It also does this in IE6 WinXP/sp2. One other caveat is that the cgi
> also attempts to set cookies in the response header. I don't know if
> that makes a difference... but there it is.
> 
> On 11/8/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
>> I can't make it stop spitting out the meta tags before the rest of the
>> html (which I can control).  Fortunately I don't need the response, I
>> just need to submit data to the CGI.  This all works great in FF and
>> Safari.  However, IE7 crashes hard. I have to kill it in the task
>> manager before I can do anything else. As far as I can tell w/ some
>> console logs that it will perform before going Tango Uniform (Tits
>> Up), it is crashing at processing that response.  Have any of you seen
>> this, and can I have jQuery completely ignore the response if I don't
>> need it? I have tried version 1.0.3 packed, and latest SVN not packed.
>> I tried using the latest form plugin, and also doing the form variable
>> collection ans submission manually.  I'm fresh out of ideas. I realize
>> that it may be the XHR object itself that's crashing and nothing to do
>> w/ jQuery. But I'm hoping it's fixable.
>>
>> Thanks,
>>
>> Paul
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 


How do you load the content? Maybe forcing it to text/plain helps... Is 
there an option to force content type in jQuery?


-- Klaus

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


Re: [jQuery] Problems loading select options in IE

2006-11-09 Thread Klaus Hartl
Michael Prinsloo schrieb:
> Hi
> 
> I am generating some  tags with php and then loading them into a 
> select box with jQuery's load method as follows:
> 
> The Select Box:
> 
> 
> 
> The Javascript:
> 
> $("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});
> 
> This works well with Firefox but IE simply displays an empty select box.
> 
> Loading some html into a div, with the same method and the same php 
> file, works perfectly in IE.
> 
> What could I be missing? I have to demo this application for a client in 
> less than 20 hours, and they only use IE! Have spent the last hour 
> trying to figure this one out.
> 
> Any help, or nudge in the right direction would be much apreciated.
> 
> Kind Regards
> 
> Mike


I think you cannot use innerHTML (== load()) for a select box in IE. Sam 
made a nice plugin for that or just use document.createElement or the 
Option constructor (new Option())


-- Klaus

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


[jQuery] jQuery SVN over HTTPS

2006-11-09 Thread Sam Collett
SVN access over HTTPS would be useful. Are there any plans for it
being implemented (the port used by SVN is blocked here and the
required header methods for HTTP access aren't allowed either (and
probably never will be))?

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


Re: [jQuery] Problems loading select options in IE

2006-11-09 Thread Michael Prinsloo
Thanks guys. Think I'll get it sorted now.
On 09/11/06, Klaus Hartl <
[EMAIL PROTECTED]> wrote:
Michael Prinsloo schrieb:> Hi>> I am generating some  tags with php and then loading them into a> select box with jQuery's load method as follows:>> The Select Box:

>> >> The _javascript_:>> $("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});
>> This works well with Firefox but IE simply displays an empty select box.>> Loading some html into a div, with the same method and the same php> file, works perfectly in IE.>

> What could I be missing? I have to demo this application for a client in> less than 20 hours, and they only use IE! Have spent the last hour> trying to figure this one out.>> Any help, or nudge in the right direction would be much apreciated.
>> Kind Regards>> MikeI think you cannot use innerHTML (== load()) for a select box in IE. Sammade a nice plugin for that or just use document.createElement or theOption constructor (new Option())
-- Klaus___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/



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


Re: [jQuery] Media plugins

2006-11-09 Thread Sam Collett
On 09/11/06, Mike Alsup <[EMAIL PROTECTED]> wrote:
> I've just posted some convenience plugins for dealing with Quicktime,
> Flash, and mp3 media.
> Source and demos can be found here:  http://malsup.com/jquery/media/
>
> Mike

Can it be modified to work with FLAM and WIMPY?

Details: 
http://jdfrey.wordpress.com/2006/11/07/podcast-players-%e2%80%93-mp3-files-played-on-your-site/

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


Re: [jQuery] Media plugins

2006-11-09 Thread Mike Alsup
> Excuse me, Kurt, would you please elaborate more on "for content
> that's going to be delivered in RSS feeds"?
> I am not sure that I fully understand your point.

I think he means that since the actual markup is just an anchor tag it
will appear that way in a feed.  Likewise if you have javascript
disabled.

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


[jQuery] Sortables and containment

2006-11-09 Thread Vaska
I have sorting working for the most part, using Interface of course,  
but I'm able to drop my li containers into other lists on the page.  
Need to prevent this from happening...

accept : 'box',
helperclass : 'sorthelper',
activeclass : 'sortableactive',
hoverclass : 'sortablehover',
opacity : 0.8,
revert :true,
tolerance :'intersect',
floats :true,
containment :   'parent'

When I add "containment: 'parent'" to this the particular list  
element will vanish when I try to grab it. When I release the mouse  
it comes back. If I take it out, certainly it works with the above  
problem I mention.

It's only the one group of list elements that have "class='box'"...

Any advice on this?

Thanks, v

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


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Klaus Hartl
Christian Bach schrieb:
> Erik Beeson wrote:
>> Changing with the arrow keys is nice, but it seems like it should select
>> when you hit Enter, and revert to the last selection when you hit ESC. 
> 
> It's now on the list of stuff to implement.
> 
> Perhaps accessibility expert Klaus, could share some light on what keys 
> that needs to be supported?

Hey Christian, I'm happy to share my recent findings - I implemented an
autocomplete keyboard navigation for Plazes just yesterday - funny! In
my opinion the following keys should be supported: return, tab, esc, up,
down.

If you press escape though I think the select should be hidden instead
of going back to a previous result...?

It is based on Dylans autocomplete to give some credit, but I also
encountered a few browser inconsistencies, thus I fixed a few things. It
works like this:

tab: focus the next element of the currently selected one in the
autocomplete list
return: choose value and hide autocomplete
esc: hide autocomplete
down: ... and show list if it is hidden
up: ... and hide list if you navigate out of list at the top

Here is what I ended up with:

var moveSelect = function(step) {
 var as = $(o.AUTOCOMPLETE_OUTPUT + ' a');
 if (as.size()) {
 var selected = as.index($(o.AUTOCOMPLETE_OUTPUT + '
a.selected')[0]);
 selected += step;
 if (selected < 0) {
 selected = -1;
 } else if (selected >= as.size()) {
 selected = as.size() - 1;
 }
 as.removeClass('selected');
 if (selected >= 0) {
 as.eq(selected).addClass('selected');
 } else {
 /[EMAIL PROTECTED]
 o.iframeCover.style.visibility = 'hidden';
 @*/
 $(o.AUTOCOMPLETE_OUTPUT).hide();
 }
 }
};

autocompleter
 .keydown(function(e) {
 switch(e.keyCode) {
 case 9:  // tab
 if ($(o.AUTOCOMPLETE_OUTPUT).is(':visible')) {
 e.preventDefault();
 moveSelect(1);
 }
 break;
 case 13: // return
 // fall through, handled by keypress for browser
consistency
 break;
 case 27:  // esc
 e.preventDefault();
 this.focus(); // Opera
 /[EMAIL PROTECTED]
 o.iframeCover.style.visibility = 'hidden';
 @*/
 $(o.AUTOCOMPLETE_OUTPUT).hide();
 break;
 case 38: // up
 e.preventDefault();
 moveSelect(-1);
 break;
 case 40: // down
 if ($(o.AUTOCOMPLETE_OUTPUT).is(':visible')) {
 e.preventDefault();
 moveSelect(1);
 } else {
 o._autocomplete(e);
 }
 break;
 default:
 o._autocomplete(e);
 break;
 }
 })
 .keypress(function(e) {
 if ($(o.AUTOCOMPLETE_OUTPUT).is(':visible')) {
 switch(e.keyCode) {
 case 9: // tab
 return false;
 break;
 case 13: // return
 $(o.AUTOCOMPLETE_OUTPUT + ' a.selected').click();
 return false;
 }
 }
 })

I hope you get the picture. Replace "o.AUTOCOMPLETE_OUTPUT" with a
reference to your select list.


>> Also,
>> using something like this breaks tabbing between form elements, doesn't it?

I took care of that. If the autocompletion is visible, you tab in that
list, otherwise you tab to the next form elememt. Only Opera doesn't
like that.


-- Klaus


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


Re: [jQuery] $.get - Retrieving XML Docs

2006-11-09 Thread Richard Walker


currently it is using application/xml.

Are you able to get my example to work on your machine?


Klaus Hartl-3 wrote:
> 
> Are you sure you have set the proper mime type?
> 
> -- Klaus
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%24.get---Retrieving-XML-Docs-tf2598993.html#a7257802
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Christian Bach
Klaus Hartl wrote:
> Hey Christian, I'm happy to share my recent findings - I implemented an
> autocomplete keyboard navigation for Plazes just yesterday - funny!

I just had a look at Plazes, but it think i didn't find the right one, 
perhaps it isn't live yet?


> In my opinion the following keys should be supported: return, tab, esc, up,
> down.
> 
> If you press escape though I think the select should be hidden instead
> of going back to a previous result...?

I wonder if you should treat escape as a "reset" hiding the select and 
reseting it to the previous result?

> 
> I took care of that. If the autocompletion is visible, you tab in that
> list, otherwise you tab to the next form elememt. Only Opera doesn't
> like that.

In a standard select box tab would automatically take you to the next 
element, right?


And many thanks for the code Klaus, will be implementing this as soon as i 
get some spare time.


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

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


Re: [jQuery] Media plugins

2006-11-09 Thread Mike Alsup
> Can it be modified to work with FLAM and WIMPY?

Hi Sam,

I've never used either of those but if they just use flash then I
would think the flash plugin would work with them with little or no
modifications.

Mike

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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Christopher Jordan




oops! fixed. :o)

Thanks Dan!

Chris

Dan Atkinson wrote:

  Hi there.

Your JS code link is dead! :)

cjordan wrote:
  
  
Hi folks,

Today, I was in need of a function to parse strings in the ODBCDateTime 
format. I needed to convert a string in the ODBCDateTime format to a 
valid _javascript_ Date object, and vise versa. So instead of just writing 
the functions for me, I decided to make them a plugin for jQuery.

They're simple, and I'll work on adding a bit more functionality (either 
as I need it, or as the community responds with the need), but for now, 
I just threw it together.

Here's my little demo  
page. Check it out, and comment if you like. As the page says: it's my 
first plug-in so be gentle! :o)

G'night folks.
Chris

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



  
  
  



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


Re: [jQuery] Media plugins

2006-11-09 Thread Rafael Santos
I really appreciate it... thx man!2006/11/9, Mike Alsup <[EMAIL PROTECTED]>:
> Can it be modified to work with FLAM and WIMPY?Hi Sam,I've never used either of those but if they just use flash then Iwould think the flash plugin would work with them with little or nomodifications.
Mike___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Joel Birch

> Jörn Zaefferer schrieb:
>>> I noticed that when text is scaled up in the browser, the containing
>>> boxes do not expand to accommodate the larger content. Would this be
>>> troublesome to fix? My lame guess is that the height needs to be set
>>> to auto at some stage of the animation, or will this cause a flicker
>>> problem maybe?
>>>
>>> I have been keeping an eye on accordion implementations for a while
>>> and it always seems to be the "one-size-only" thing that turns me  
>>> off
>>> them. If this could be fixed it would make the plugin even more
>>> versatile.
>>
>> Thanks for you comment. I simply didn't test this matter. I hope  
>> that it can be solved by adding some additional styles. Can't  
>> promise anything, but I'll try to investigate it.
>
> Did that for tabs. You have to reset the height to auto *after* the
> animation is completed (callback!).
>
> -- Klaus

If you haven't already done it, here's the fix:

Change this line of your jquery.accordion.js file:
var finished = function() { --running };

To this:
var finished = function() { --running; this.style.height="auto"; };

Not sure its the best way to do it, but it works a treat.

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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Christopher Jordan




Louise,

Thanks for catching that. I thought I'd checked all the code in both IE
and FF(2.0), but missed that one. I was using getYear() instead of
getFullYear(). I didn't realize the difference between the two. Anyway,
it's fixed now.

Thanks again!
Chris

Louise Dade wrote:

  Hi,

[I'm usually a lurker, this is my first response - been using JQuery
for a couple of months now and loving it!]

On 09/11/06, Christopher Jordan <[EMAIL PROTECTED]> wrote:
  
  
 Today, I was in need of a function to parse strings in the ODBCDateTime
format. I needed to convert a string in the ODBCDateTime format to a valid
_javascript_ Date object, and vise versa. So instead of just writing the
functions for me, I decided to make them a plugin for jQuery.

  
  
I cheked out your plugin, and the conversion from ODBCDateTime to a JS
string worked fine, but the 'JS to ODBCDatetime' function threw up a
problem when I tried it/

My current system time came up as:  106-11-9 10:50:59

That puts me in the Iron Age!  (My system clock appears to be correct elsewhere.

Otherwise, great - and useful - addition.

Regards,
Louise Dade

  



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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Christopher Jordan




Yep. Just did that. Good catch. :o)

Blair Mitchelmore wrote:

  The problem is the plugin uses d.getYear() which returns the current 
year minus 1900. To get the actual year that line should be changed to 
d.getFullYear(). Quick fix until the plugin gets officially updated.

-blair

Louise Dade wrote:
  
  
Hi,

[I'm usually a lurker, this is my first response - been using JQuery
for a couple of months now and loving it!]

On 09/11/06, Christopher Jordan <[EMAIL PROTECTED]> wrote:


   Today, I was in need of a function to parse strings in the ODBCDateTime
format. I needed to convert a string in the ODBCDateTime format to a valid
_javascript_ Date object, and vise versa. So instead of just writing the
functions for me, I decided to make them a plugin for jQuery.
  

I cheked out your plugin, and the conversion from ODBCDateTime to a JS
string worked fine, but the 'JS to ODBCDatetime' function threw up a
problem when I tried it/

My current system time came up as:  106-11-9 10:50:59

That puts me in the Iron Age!  (My system clock appears to be correct elsewhere.

Otherwise, great - and useful - addition.

Regards,
Louise Dade


  
  

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



  



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


Re: [jQuery] $.get - Retrieving XML Docs

2006-11-09 Thread Richard Walker


Hmm

If I change the fuction call to:

   $.ajax({type:"GET", url:"xml/testTemplate.xml", dataType:"xml",
success: function(xml) {
$.each(data_item, function(i) {
 $(i,xml).append(data_item[i]);
});
  alert("Request: "+ $(xml).toXML());
},
error: function(xml) {
alert("Something went wrong");
}
   });

It still works in Firefox/ Mozilla but not in IE in the same way as before.

Curiously though, if I change the GET to a POST in this function IE won't
report any errors on the page but will give me the 'Something went wrong'
alert.

Haven't a clue what's wrong though. :-( Are there any useful error objects I
can tap into with $.ajax?

Richard

Klaus Hartl-3 wrote:
> 
> 
> Are you sure you have set the proper mime type?
> 
> 
> -- Klaus
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%24.get---Retrieving-XML-Docs-tf2598993.html#a7258588
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Media plugins

2006-11-09 Thread Sean O

Mike,


Nice job.  Don't know why I didn't think of putting the source file in the
href to make it unobtrusive, Doh!  I like the clever use of classes for
options, and the regex too (still trying to wrap my brain around that).

___
SEAN O



malsup wrote:
> 
> I've just posted some convenience plugins for dealing with Quicktime,
> Flash, and mp3 media.
> Source and demos can be found here:  http://malsup.com/jquery/media/
> 
> Mike
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Media-plugins-tf2598874.html#a7258481
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Paul Bakaus
Hi jQuerians,I managed to get the core functionality of my new plugin done today. Still, cross-browser support is nowhere perfect, only IE and Firefox seem to perform quite well.For all who don't know what I'm talking about:
This is my new animateClass/animateStyle plugin!Using it you can:1.) Animate to a certain css class (as described in a stylesheet)2.) Animate from a class to a class3.) Animate using pure css as in the style tag ("border:1x solid #000; margin: 5px")
Check out this page for more info, examples and download:  http://paul.jquery.com/plugins/animateClass/ . You can also check the SVN plugin directory for a more current one. What has been improved since I wrote the draft:
1) Rewritten parts of the code for faster execution2) Added color transistions for all(?) browsers (You can now input rgb(0,0,0), #0, #000, black in both IE and Firefox)3) Fixed many IE issues
4) Wrote better examples, bette descriptions and better inline comments5) Finished animateStyle6) Added basic queueing (not really, if a new animation is passed in without the previous one ended, it just stops...maybe someone can explain me how to use jQuery's interal queue.)
Feel free to give me input and comments! Have fun!-- Paul BakausWeb Developer
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Krzysztof FF

I've experienced many problems when converting date from database to usable
format, so your work is great.

But copying date taken after pressing "Current time", from:
Current Time in ODBCDateTime format: {ts '2006-11-9 14:57:5'}

and pasting it into Enter a string to convert box, gives an error:
"invalid odbc date format"

Correcting date string to {ts '2006-11-09 14:57:05'} (leading zeros in day
and seconds) gives proper answer:
Sat Dec 9 14:57:05 UTC+0100 2006

I do not know whether your output procedure is not up to format, or your
input procedure is too rigorous, but it shouldn't be that way...

Regards,

Krzysztof



-- 
View this message in context: 
http://www.nabble.com/New-Plugin%3A-ODBCDate-functions-tf2599770.html#a7258647
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Another media plugin, but that fails in Firefox 2

2006-11-09 Thread BoOz
Hello,

I'm working too on a media player (using Aflax) but I have a problem 
with Firefox 2. The following code doesn't work althought it used to 
work with firefox 1.

//deal with the classes of the play button
$(".play_").toggle(function(){
$(".play_on").removeClass("play_on").addClass("play_");
$(this).removeClass("play_").addClass("play_on");
},function(){
$(this).removeClass("play_on").addClass("play_");
}
);

The line

$(".play_on").removeClass("play_on").addClass("play_");

Generate an error : o.className has no properties :(

This is supposed to toggle a play/stop button in the plugin I'm working 
on, ie, a multimedia player with invisible flash object.

When it works, I will link the css change to the track skipping.

You can see the script here :
http://spip-zone.info/spip.php?page=jplayer

BoOz

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


Re: [jQuery] Problems loading select options in IE

2006-11-09 Thread Brandon Aaron
Oh ... I did not realize that $().load used $().html and totally
ignores the recent fix for this issue with the append type methods.
I'll have to take a look at fixing this. In the mean time you could
just use the $.ajax() with a success callback that $().empty()'s the
select and then $().append()'s the resultant html to the select. This
should work in IE with the latest release.

--
Brandon Aaron


On 11/9/06, Michael Prinsloo <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am generating some  tags with php and then loading them into a
> select box with jQuery's load method as follows:
>
> The Select Box:
>
> 
>
> The Javascript:
>
> $("#selectbox").load("phpfile.php", {action: "getoptions", alpha: "A"});
>
> This works well with Firefox but IE simply displays an empty select box.
>
> Loading some html into a div, with the same method and the same php file,
> works perfectly in IE.
>
> What could I be missing? I have to demo this application for a client in
> less than 20 hours, and they only use IE! Have spent the last hour trying to
> figure this one out.
>
> Any help, or nudge in the right direction would be much apreciated.
>
> Kind Regards
>
> Mike
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Brandon Aaron
On 11/9/06, Joel Birch <[EMAIL PROTECTED]> wrote:> To this:
> var finished = function() { --running; this.style.height="auto"; };

Perhaps it would be best to just allow the style sheet to define
whether or not it is auto by setting the style to a blank string.

var finished = function() { --running; this.style.height = ''; };

--
Brandon Aaron

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


Re: [jQuery] Synchronous XMLHttpRequest option

2006-11-09 Thread Sébastien
Le Wed, 08 Nov 2006 16:54:48 +0100,
"Jörn Zaefferer" <[EMAIL PROTECTED]> a écrit :

> It should pretty easy to add it, especially after the refactoring I
> did after 1.0.3.
> 
> I created a bug report (http://jquery.com/dev/bugs/bug/367/), but
> would delay it for 1.1.

Thanks :)

I could implement the solution for this bug easily, but as I've not
contributed to jQuery so far, I don't really know how to proceed.

 -- Sébastien

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


Re: [jQuery] Tweak to Jorn's ToolTip plugin

2006-11-09 Thread Andy Matthews
I love it! I'm sure you'd do a better job than I at making it work properly.
I'm jsut glad you think it's a good idea.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of "Jörn Zaefferer"
Sent: Thursday, November 09, 2006 2:58 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Tweak to Jorn's ToolTip plugin



 Original-Nachricht 
Datum: Wed, 8 Nov 2006 16:44:09 -0600
Von: "Andy Matthews" <[EMAIL PROTECTED]>
An: "[jQuery]" 
Betreff: [jQuery] Tweak to Jorn\'s ToolTip plugin

> I'm going to use Jorn's plugin for a site I manage, but I didn't think it
> was all that useful to have the link or the img src be displayed. I know I
> can turn it off, but I chose instead to go behind the scenes and make the
> P
> tag display alternately provided content:
>
> http://www.modernessentials.com/tooltiptest.cfm
>
> What I did is to split the title attribute like so:
>
> This is the title:and this is the content.
>
> Then I tweaked the code to split on the colon and display the first
> portion
> as the H3, with the second portion being displayed in the P tag.
>
> Thoughts?

I like the idea: It provides more useful stuff for the user, with a simple
syntax. It's content is still readable without JS, though it may look a
little weird. Maybe you want to use something like this: "bla title; bla
content". Or stick to the colon, but put a space behind it. I think about
adding this to my plugin as an option: content: null // if given, split the
title attribute according to the given delimiter and display an additional p
tag

Eg:
...
$('a').Tooltip({content: "; "});

Or:

...
$('a').Tooltip({content: " - "});

Cool?

--
Jörn Zaefferer

http://bassistance.de
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

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


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


Re: [jQuery] Tweak to Jorn's ToolTip plugin

2006-11-09 Thread Andy Matthews
Also a good idea. I just wanted to get it working with the minimum of fuss.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Sam Collett
Sent: Thursday, November 09, 2006 3:41 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Tweak to Jorn's ToolTip plugin


On 08/11/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
> I'm going to use Jorn's plugin for a site I manage, but I didn't think it
> was all that useful to have the link or the img src be displayed. I know I
> can turn it off, but I chose instead to go behind the scenes and make the
P
> tag display alternately provided content:
>
> http://www.modernessentials.com/tooltiptest.cfm
>
> What I did is to split the title attribute like so:
>
> This is the title:and this is the content.
>
> Then I tweaked the code to split on the colon and display the first
portion
> as the H3, with the second portion being displayed in the P tag.
>
> Thoughts?
>
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->

How about the ability to specify the separator, because you may want
to use a colon in the title? Also, a user may want to use something
other than  and 

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


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


Re: [jQuery] Media plugins

2006-11-09 Thread Kurt Mackey
That's correct, people who post things like Youtube videos on their
blogs generally annoy me.  Most readers won't (and probably shouldn't)
do anything with flash or other rich content.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Thursday, November 09, 2006 6:43 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Media plugins

> Excuse me, Kurt, would you please elaborate more on "for content
> that's going to be delivered in RSS feeds"?
> I am not sure that I fully understand your point.

I think he means that since the actual markup is just an anchor tag it
will appear that way in a feed.  Likewise if you have javascript
disabled.

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

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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Joel Birch

> On 11/9/06, Joel Birch <[EMAIL PROTECTED]> wrote:> To this:
>> var finished = function() { --running; this.style.height="auto"; };
>
> Perhaps it would be best to just allow the style sheet to define
> whether or not it is auto by setting the style to a blank string.
>
> var finished = function() { --running; this.style.height = ''; };
>
> --
> Brandon Aaron

Yes, that works too! I didn't know that was possible. And when I view  
the generated source with the webdeveloper toolbar, the height  
property has been deleted from the style attribute, which is better  
than adding height:'auto' to it.

Thanks Brandon.

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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Christopher Jordan




Krzysztof,

You're right. I am expecting the digits in the time format to have
leading zeros, because I thought that was the "proper" ODBC format. But
I should allow single digits, and prepend the zero. Good suggestion.
I'll implement that in a few minutes.

Thanks,
Chris

Krzysztof FF wrote:

  I've experienced many problems when converting date from database to usable
format, so your work is great.

But copying date taken after pressing "Current time", from:
Current Time in ODBCDateTime format: {ts '2006-11-9 14:57:5'}

and pasting it into Enter a string to convert box, gives an error:
"invalid odbc date format"

Correcting date string to {ts '2006-11-09 14:57:05'} (leading zeros in day
and seconds) gives proper answer:
Sat Dec 9 14:57:05 UTC+0100 2006

I do not know whether your output procedure is not up to format, or your
input procedure is too rigorous, but it shouldn't be that way...

Regards,

Krzysztof



  



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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Wil Stuckey
On 11/8/06, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote:
Hi jQueryians,just improved and commited the jQuery accordion plugin, or rather "Accordion widget". Whatever you like to call it, it's quite neat and very flexible.Very cool 
Jörn, I really like how flexible it is.-Wil
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] conflict between jtip and thickbox

2006-11-09 Thread Olivier Percebois-Garve
HiI'm trying to implement jtip on a page where I have already implemented the thickbox, both on  elements.Apparently the saveTitle function is not being called.Any thoughts ?In _javascript_ I really miss not to have a print_r() function to debug. Often I use alert() and innerHTML in order to see what I am manipulating,
but here with objects, I don't know how to debug...Olivvv
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Blair Mitchelmore
Beautiful plug-in Paul! I haven't looked at the code yet, but I'm sure 
it's spectacular. You've officially put my highlightFade plug-in out of 
business. ;)

--
blair

Paul Bakaus wrote:
> Hi jQuerians,
>
> I managed to get the core functionality of my new plugin done today. 
> Still, cross-browser support is nowhere perfect, only IE and Firefox 
> seem to perform quite well.
> For all who don't know what I'm talking about:
>
> This is my new animateClass/animateStyle plugin!
> Using it you can:
>
> 1.) Animate to a certain css class (as described in a stylesheet)
> 2.) Animate from a class to a class
> 3.) Animate using pure css as in the style tag ("border:1x solid #000; 
> margin: 5px")
>
> Check out this page for more info, examples and download:  
> http://paul.jquery.com/plugins/animateClass/ . You can also check the 
> SVN plugin directory for a more current one. What has been improved 
> since I wrote the draft:
>
> 1) Rewritten parts of the code for faster execution
> 2) Added color transistions for all(?) browsers (You can now input 
> rgb(0,0,0), #0, #000, black in both IE and Firefox)
> 3) Fixed many IE issues
> 4) Wrote better examples, bette descriptions and better inline comments
> 5) Finished animateStyle
> 6) Added basic queueing (not really, if a new animation is passed in 
> without the previous one ended, it just stops...maybe someone can 
> explain me how to use jQuery's interal queue.)
>
> Feel free to give me input and comments! Have fun!
>
> -- 
> Paul Bakaus
> Web Developer
>
> 
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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


Re: [jQuery] conflict between jtip and thickbox

2006-11-09 Thread Kolman Nándor









Hi

 

>In _javascript_ I really
miss not to have a print_r() function to debug. Often I use alert() and
innerHTML in order to see what I am manipulating, 
>but here with
objects, I don't know how to debug...



If you develop on Firefox, you can use the
firebug extension. It has a console.log() function far better then alerting.

I recommend this article: http://ajax.phpmagazine.net/2006/05/firebug_the_future_of_javascri.html

 

Nandi






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


Re: [jQuery] conflict between jtip and thickbox

2006-11-09 Thread Stephen Woodbridge
Olivier Percebois-Garve wrote:
> Hi
> 
> I'm trying to implement jtip on a page where I have already implemented 
> the thickbox, both on  elements.
> Apparently the saveTitle function is not being called.
> Any thoughts ?
> 
> In javascript I really miss not to have a print_r() function to debug. 
> Often I use alert() and innerHTML in order to see what I am manipulating,
> but here with objects, I don't know how to debug...

Here, just rename this function to print_r()


 // function to dump contents of an object

 var MAX_DUMP_DEPTH = 10;
 function dumpObj(obj, name, indent, depth) {
 if (depth > MAX_DUMP_DEPTH) {
 return indent + name + ": \n";
 }
 if (typeof(obj) == "object") {
 var child = null;
 var output = indent + name + "\n";
 indent += "\t";
 for (var item in obj)
 {
   try {
   child = obj[item];
   } catch (e) {
   child = "";
   }
   if (typeof(child) == "object") {
   output += dumpObj(child, item, indent, depth + 1);
   } else {
   output += indent + item + ": " + child + "\n";
   }
 }
 return output;
 } else {
 return obj;
 }
 }

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


Re: [jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Paul Bakaus
I'm not sure it's spectacular ;-)I think highlightFade is still a great specialized plugin, I have used it before! I haven't looked at your code, maybe you can cross-check mine (the parts with the color functionality), tell me if you see some possible improvements, I'm sure there are many.
2006/11/9, Blair Mitchelmore <[EMAIL PROTECTED]>:
Beautiful plug-in Paul! I haven't looked at the code yet, but I'm sureit's spectacular. You've officially put my highlightFade plug-in out ofbusiness. ;)--blairPaul Bakaus wrote:> Hi jQuerians,
>> I managed to get the core functionality of my new plugin done today.> Still, cross-browser support is nowhere perfect, only IE and Firefox> seem to perform quite well.> For all who don't know what I'm talking about:
>> This is my new animateClass/animateStyle plugin!> Using it you can:>> 1.) Animate to a certain css class (as described in a stylesheet)> 2.) Animate from a class to a class
> 3.) Animate using pure css as in the style tag ("border:1x solid #000;> margin: 5px")>> Check out this page for more info, examples and download:> 
http://paul.jquery.com/plugins/animateClass/ . You can also check the> SVN plugin directory for a more current one. What has been improved> since I wrote the draft:>> 1) Rewritten parts of the code for faster execution
> 2) Added color transistions for all(?) browsers (You can now input> rgb(0,0,0), #0, #000, black in both IE and Firefox)> 3) Fixed many IE issues> 4) Wrote better examples, bette descriptions and better inline comments
> 5) Finished animateStyle> 6) Added basic queueing (not really, if a new animation is passed in> without the previous one ended, it just stops...maybe someone can> explain me how to use jQuery's interal queue.)
>> Feel free to give me input and comments! Have fun!>> --> Paul Bakaus> Web Developer>> 
>> ___> jQuery mailing list> discuss@jquery.com> http://jquery.com/discuss/
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Wil Stuckey
On 11/9/06, Christian Bach <[EMAIL PROTECTED]> wrote:
Erik Beeson wrote:> Changing with the arrow keys is nice, but it seems like it should select> when you hit Enter, and revert to the last selection when you hit ESC.It's now on the list of stuff to implement.
Perhaps accessibility expert Klaus, could share some light on what keysthat needs to be supported?Hey Christian, very cool plugin. A killer feature for me would be able to select the element with tab then type and have the 'select box' select what im typing. Here is an example, when I fill out a form I always use my keyboard to navigate, and when I reach a select element, say it looks like this:
  Apples  Oranges  BananasI would select this with tab then type "o" to select "Oranges", then i would tab out of the element into the next field.
Hope this rambling makes sense :)-Wil
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] conflict between jtip and thickbox

2006-11-09 Thread Olivier Percebois-Garve
WowU are really fast guys !!! I'll definitely gonna to use this dumpObj function (I have already firebug). thanks a lotI found my mistakes which was as usual quit dumb:I made this: class="thickbox" class="tooltip"
instead of class="thickbox tooltip"olivvvOn 11/9/06, Stephen Woodbridge <[EMAIL PROTECTED]
> wrote:Olivier Percebois-Garve wrote:> Hi>> I'm trying to implement jtip on a page where I have already implemented
> the thickbox, both on  elements.> Apparently the saveTitle function is not being called.> Any thoughts ?>> In _javascript_ I really miss not to have a print_r() function to debug.
> Often I use alert() and innerHTML in order to see what I am manipulating,> but here with objects, I don't know how to debug...Here, just rename this function to print_r() // function to dump contents of an object
 var MAX_DUMP_DEPTH = 10; function dumpObj(obj, name, indent, depth) { if (depth > MAX_DUMP_DEPTH) { return indent + name + ": \n";
 } if (typeof(obj) == "object") { var child = null; var output = indent + name + "\n"; indent += "\t"; for (var item in obj)
 {   try {   child = obj[item];   } catch (e) {   child = "";   }
   if (typeof(child) == "object") {   output += dumpObj(child, item, indent, depth + 1);   } else {   output += indent + item + ": " + child + "\n";
   } } return output; } else { return obj; } }___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] $.get - Retrieving XML Docs

2006-11-09 Thread Richard Walker


setting the type to text/xml doesn't seem to help any.
-- 
View this message in context: 
http://www.nabble.com/%24.get---Retrieving-XML-Docs-tf2598993.html#a7260622
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Giuliano Marcangelo
Paul, works beautifully in FF.but in IE6 only Example1 works when clicking button "Press Me"...the other button "Go Back" does not function/has no effect.Examples 2 and 3 do not work at all...
:-(On 09/11/06, Paul Bakaus <[EMAIL PROTECTED]> wrote:
I'm not sure it's spectacular ;-)I think highlightFade is still a great specialized plugin, I have used it before! I haven't looked at your code, maybe you can cross-check mine (the parts with the color functionality), tell me if you see some possible improvements, I'm sure there are many.
2006/11/9, Blair Mitchelmore <[EMAIL PROTECTED]>:

Beautiful plug-in Paul! I haven't looked at the code yet, but I'm sureit's spectacular. You've officially put my highlightFade plug-in out ofbusiness. ;)--blairPaul Bakaus wrote:> Hi jQuerians,
>> I managed to get the core functionality of my new plugin done today.> Still, cross-browser support is nowhere perfect, only IE and Firefox> seem to perform quite well.> For all who don't know what I'm talking about:
>> This is my new animateClass/animateStyle plugin!> Using it you can:>> 1.) Animate to a certain css class (as described in a stylesheet)> 2.) Animate from a class to a class

> 3.) Animate using pure css as in the style tag ("border:1x solid #000;> margin: 5px")>> Check out this page for more info, examples and download:> 

http://paul.jquery.com/plugins/animateClass/ . You can also check the> SVN plugin directory for a more current one. What has been improved> since I wrote the draft:>> 1) Rewritten parts of the code for faster execution
> 2) Added color transistions for all(?) browsers (You can now input> rgb(0,0,0), #0, #000, black in both IE and Firefox)> 3) Fixed many IE issues> 4) Wrote better examples, bette descriptions and better inline comments
> 5) Finished animateStyle> 6) Added basic queueing (not really, if a new animation is passed in> without the previous one ended, it just stops...maybe someone can> explain me how to use jQuery's interal queue.)
>> Feel free to give me input and comments! Have fun!>> --> Paul Bakaus> Web Developer>> 

>> ___> jQuery mailing list> discuss@jquery.com
> http://jquery.com/discuss/
___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg

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


[jQuery] $.getJSON ?

2006-11-09 Thread Truppe Steven
Hello,

i try to use the $.getJSON function to get some JSON data from my php
file. The actual code looks like this:

function loadArticle(id) {
$.getJSON("../admin/article.php", { mode:"get", id: id },
function(json){
  if(console) console.log(json);
  else alert(json);
 
  injectIntoForm(json);
}
});


But when i try to run the code i get "$.getJSON is not a function", does
i need a plugin to run this function ?

at the moment i'm just using jQuery 1.0.1.


thanks in advance

best regards,
Truppe Steven

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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Theo Welch
Brilliant, guys! Thanks a lot for sharing these enhancement ideas Joel and
Brandon. Not only can the text in the accordion now be resized with no
penalty, but this also makes it possible to swap out the contents of the
accordion sections at runtime! This was a big help (and enlightening). :)

Thanks,
-THEO-



-Original Message-
From: Joel Birch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 09, 2006 9:38 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Accordion plugin


> On 11/9/06, Joel Birch <[EMAIL PROTECTED]> wrote:> To this:
>> var finished = function() { --running; this.style.height="auto"; };
>
> Perhaps it would be best to just allow the style sheet to define
> whether or not it is auto by setting the style to a blank string.
>
> var finished = function() { --running; this.style.height = ''; };
>
> --
> Brandon Aaron

Yes, that works too! I didn't know that was possible. And when I view  
the generated source with the webdeveloper toolbar, the height  
property has been deleted from the style attribute, which is better  
than adding height:'auto' to it.

Thanks Brandon.




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


Re: [jQuery] $.getJSON ?

2006-11-09 Thread Mike Alsup
> at the moment i'm just using jQuery 1.0.1.

getJSON wasn't added to jQuery until ver 1.0.2.

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


Re: [jQuery] New Plugin: ODBCDate functions

2006-11-09 Thread Christopher Jordan




Hi folks,

Per Krzysztof's suggestion I've added the ability to pass ODBCDateTime
strings that are missing leading zeros in the month, day, hours,
minutes or seconds. In the case of seconds, if you intend "00" you can
leave it off entirely (including the preceding colon). The year must
still be a full four digit year and minutes cannot be left out. If you
intend zero minutes you'll have to include (at least) ":0". Of course,
to indicate midnight use "0:" or "00:" as the hours.

I think that I'll still add on to this plug-in the ability to work with
ODBCDates (without the time) and ODBCTimes (without the date) Their
format is {d '-mm-dd'} or {t 'hh:mm:ss'} respectively. In the case
of the ODBCDate I'll assume midnight on that date (00:00:00), and in
the case of ODBCTime I'll assume the current date. I'll try to get
those added later this afternoon or tonight.

Examples:

{ts '2006-4-1 2:5'}
{ts '2006-4-01 2:5'}
{ts '2006-04-01 02:5:0'}
{ts '2006-04-1 02:5:00'}
{ts '2006-4-10 2:55:00'}

Again, you can get the plug-in here.

Cheers,
Chris


Christopher Jordan wrote:

  
  
  Krzysztof,
  
You're right. I am expecting the digits in the time format to have
leading zeros, because I thought that was the "proper" ODBC format. But
I should allow single digits, and prepend the zero. Good suggestion.
I'll implement that in a few minutes.
  
Thanks,
Chris
  
Krzysztof FF wrote:
  
I've experienced many problems when converting date from database to usable
format, so your work is great.

But copying date taken after pressing "Current time", from:
Current Time in ODBCDateTime format: {ts '2006-11-9 14:57:5'}

and pasting it into Enter a string to convert box, gives an error:
"invalid odbc date format"

Correcting date string to {ts '2006-11-09 14:57:05'} (leading zeros in day
and seconds) gives proper answer:
Sat Dec 9 14:57:05 UTC+0100 2006

I do not know whether your output procedure is not up to format, or your
input procedure is too rigorous, but it shouldn't be that way...

Regards,

Krzysztof



  
  
  

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



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


Re: [jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Karl Swedberg
On Nov 9, 2006, at 10:29 AM, Paul Bakaus wrote:I'm not sure it's spectacular ;-)I think highlightFade is still a great specialized plugin, I have used it before! I haven't looked at your code, maybe you can cross-check mine (the parts with the color functionality), tell me if you see some possible improvements, I'm sure there are many. Well, you already know I'm loving the plugin. I do have one idea, though, that I think would make it even MORE spectacular: Loosely couple it somehow with the Easing plugin (maybe with an optional parameter or something?). Then there would be no end of crazy cool effects. :)http://gsgd.co.uk/sandbox/jquery.easing.php___Karl Swedbergwww.englishrules.comwww.learningjquery.com___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] $.getJSON ?

2006-11-09 Thread Truppe Steven
Hello again,

i've now updated to jQuery 1.0.3 and get a new error (same code):
/
syntax error/
jquery-1.0.3.pack... (line 1)
data =

$.getJSON("file.php", {mode:"get", id:"45"},
function(json) {
   console.log(json);
}
);


Firebug shows me that the GET request is going out but i get no response
and i get the error message from above 2 times after the get request (in
firebuf console).

hope someone here can help me,

best regards,
Truppe Steven

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


Re: [jQuery] Media plugins

2006-11-09 Thread Luke Lutman
Dang! You beat me to the punch, Mike. I've been working on (more or less) the 
same thing, and 
was just finishing up my documentation and examples last night when you posted 
yours... too bad 
we didn't find out sooner.

Here's my version:
http://jquery.lukelutman.com/plugins/flash/

I've re-written the flash detection and embedding for jQuery (so SWFObject 
isn't necessary), and 
tried to build it to be as flexible as possible in terms of how the 
replacements are done.

Like yours, basic replacements look like:

$('#hello').flash({ src: 'hello.swf', width: 320, height: 240 });

For more complicated stuff (like sIFR or your method of reading data from 
classnames), you can 
pass a custom function, like so (off the top of my head):

$('[EMAIL PROTECTED]"swf"]').flash(null, null, function(htmlOptions){
$this = $(this);
htmlOptions.src = $this.attr('href');
htmlOptions.width = this.className.match(/w\:(\d+/))[1];
htmlOptions.height = this.className.match(/h\:(\d+/))[1];
$this.before($.fn.flash.transform(htmlOptions));
});

Or you can change the default:
$.fn.flash.replace = function(htmlOptions) {
// custom code here ...
};

I'm curious to know what you think :-)

Cheers,
Luke

Mike Alsup wrote:
> I've just posted some convenience plugins for dealing with Quicktime,
> Flash, and mp3 media.
> Source and demos can be found here:  http://malsup.com/jquery/media/
> 
> Mike
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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

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


Re: [jQuery] $.getJSON ?

2006-11-09 Thread Mike Alsup
> i've now updated to jQuery 1.0.3 and get a new error (same code):

Can you post a link?

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


Re: [jQuery] $.getJSON ?

2006-11-09 Thread Truppe Steven
Mike Alsup schrieb:
>> at the moment i'm just using jQuery 1.0.1.
>> 
>
> getJSON wasn't added to jQuery until ver 1.0.2.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>   

It's working now, don't know what the problem was. Thanks anyway.




best regards,
Truppe Steven

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


[jQuery] Alternative tooltip, with shadows...

2006-11-09 Thread Andy Matthews
So I was planning on using Jorn's tooltip plugin, but my client nixed it
saying that he wanted something that looked more like this:

http://www.sleekspaces.com/category/Workspace/Office_Chairs?scope=brand&scop
e_id=188

Scroll down a bit, then hover over the "Lider Conference Chair".

I'm thinking that I might be able to accomplish the same basic thing using
Jorn's plugin, just be changing up the styles. Anyone have an idea of how
difficult this might be?




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


Re: [jQuery] Media plugins

2006-11-09 Thread Mike Alsup
> I'm curious to know what you think :-)

That's excellent, Luke!   Very flexible and very powerful; nice work!

Mike

PS: Love the Beatles!

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


[jQuery] Text Clip Generator for jQuery

2006-11-09 Thread Sam Collett
As a user of jQuery (jquery.com) and Programmer's Notepad 2
(www.pnotepad.org) I find that the text clips feature of PN2 can help
productivity (and also be used as a quick reference of the methods
available), so I have created a command line tool (written in .NET
1.1) that can generate these clips.

Source code (BSD style license) and a binary are available for
download from http://www.texotela.co.uk/code/jquery/textclipgenerator/

Hopefully this will be of use to someone.

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


[jQuery] .clone and form elements

2006-11-09 Thread bmsterling

Hey guys and gals,

I am trying to duplicate a set of form elements using:

$("#claims").clone().appendTo("#ap")

and






Denied
Granted
Remanded







which works fine, but if there is text in the form element that also gets
duplicated.  I tried:

$("#claims").clone().siblings(".contact").val("").appendTo("#ap")

and that give me an error.

Any tips?

thanks

-- 
View this message in context: 
http://www.nabble.com/.clone-and-form-elements-tf2602974.html#a7262320
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Paul Bakaus
Hey Karl and Giuliano!First: Thanks for the IE6 note, I have tested it in IE7 only, but soon IE6 support will come, too (alltought I can't imagine what might be wrong :-) )Karl, that is a great idea...if you promise you'll use it, I'll do it :D Let's see what coolness can be accomplished.
2006/11/9, Karl Swedberg <[EMAIL PROTECTED]>:
On Nov 9, 2006, at 10:29 AM, Paul Bakaus wrote:
I'm not sure it's spectacular ;-)I think highlightFade is still a great specialized plugin, I have used it before! I haven't looked at your code, maybe you can cross-check mine (the parts with the color functionality), tell me if you see some possible improvements, I'm sure there are many.
 Well, you already know I'm loving the plugin. I do have one idea, though, that I think would make it even MORE spectacular: Loosely couple it somehow with the Easing plugin (maybe with an optional parameter or something?). Then there would be no end of crazy cool effects. :)
http://gsgd.co.uk/sandbox/jquery.easing.php
___Karl Swedbergwww.englishrules.com
www.learningjquery.com
___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Paul BakausWeb DeveloperHildastr. 3579102 Freiburg
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Alternative tooltip, with shadows...

2006-11-09 Thread Andy Matthews
Okay...

An update. I've got this working by placing a transparent PNG as a
background image for #tooltip. I'm having trouble getting it to be
transparent in IE though. Does jQuery have a plugin to make ANY png
transparent regardless of where it appears in the code?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Andy Matthews
Sent: Thursday, November 09, 2006 11:04 AM
To: [jQuery]
Subject: [jQuery] Alternative tooltip, with shadows...


So I was planning on using Jorn's tooltip plugin, but my client nixed it
saying that he wanted something that looked more like this:

http://www.sleekspaces.com/category/Workspace/Office_Chairs?scope=brand&scop
e_id=188

Scroll down a bit, then hover over the "Lider Conference Chair".

I'm thinking that I might be able to accomplish the same basic thing using
Jorn's plugin, just be changing up the styles. Anyone have an idea of how
difficult this might be?




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


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


[jQuery] does jQuery has support for parameter handling ?

2006-11-09 Thread Truppe Steven
Hello everyone,

i have the following problem: i want to pass a string that is encoded
with the php urlencode() function via json
to some javascript code. does javascript or jQuery support any way to
decode such a string ?

Another point: Does jQuery support any sort of URL parameter handling ?


best regards,
Truppe Steven

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


[jQuery] Chili syntax highlighter updated

2006-11-09 Thread Andrea Ercolino

Many thanks for adding Chili to the jQuery.com plugins page.

I've just released a new version, 1.2

I'd appreciate very much if you could change the link so that it points to
http://www.mondotondo.com/aercolino/noteslog/?cat=8 which is the page where
I post new releases

Also may interest you that I've wordpressed the text manual, and posted it
here http://www.mondotondo.com/aercolino/noteslog/?page_id=79

-- 
View this message in context: 
http://www.nabble.com/Chili-syntax-highlighter-updated-tf2603201.html#a7263097
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] selectbox plugin - take 2

2006-11-09 Thread Klaus Hartl
Christian Bach schrieb:
> Klaus Hartl wrote:
>> Hey Christian, I'm happy to share my recent findings - I implemented an
>> autocomplete keyboard navigation for Plazes just yesterday - funny!
> 
> I just had a look at Plazes, but it think i didn't find the right one, 
> perhaps it isn't live yet?

It's live now :-)  Just check here for example (the "Where?" field):
http://beta.plazes.com/plazes/


-- Klaus

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


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-09 Thread Mark Gibson
Truppe Steven wrote:
> Hello everyone,
> 
> i have the following problem: i want to pass a string that is encoded
> with the php urlencode() function via json
> to some javascript code. does javascript or jQuery support any way to
> decode such a string ?
> 
> Another point: Does jQuery support any sort of URL parameter handling ?

Javascript has the functions:

decodeURI(s) and decodeURIComponent(s)

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


Re: [jQuery] .clone and form elements

2006-11-09 Thread Karl Swedberg
On Nov 9, 2006, at 12:21 PM, bmsterling wrote:

>
> Hey guys and gals,
>
> I am trying to duplicate a set of form elements using:
>
> $("#claims").clone().appendTo("#ap")
>
> and
>
>   
>   
>name="claim[]"
> value=""/>
>   
>   
>   Denied
>   Granted
>   Remanded
>   
>   
>   
>   
>   
>   
>
> which works fine, but if there is text in the form element that  
> also gets
> duplicated.  I tried:
>
> $("#claims").clone().siblings(".contact").val("").appendTo("#ap")
>
> and that give me an error.
>
> Any tips?

Maybe something like this?

$("#claims").clone().appendTo("#ap");
$('#ap select').val("");


___
Karl Swedberg
www.englishrules.com
www.learningjquery.com



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


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-09 Thread Truppe Steven
Mark Gibson schrieb:

> Javascript has the functions:
>
> decodeURI(s) and decodeURIComponent(s)
>   
I get a string like this:

Stumpf+einer+Palme%2C+ausgeh%F6hlt%2C+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert

If this string is inside the variable "test" and i do:
var newtest = decodeURIComponent(test);

I get the error "malformed URI sequence".

I've looked documentation on 
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
but there i don't see much about that function...

Thanks for the fast reply! What am i doing wrong ?


best regards,
Truppe Steven


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


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-09 Thread Stephen Woodbridge
Does decodeURIComponent() support character encoding character 
sequences? %F6 looks like an accented character, if you remove this does 
it work? That might give you a clue to the problem or what to search for.

-Steve

Truppe Steven wrote:
> Mark Gibson schrieb:
> 
>> Javascript has the functions:
>>
>> decodeURI(s) and decodeURIComponent(s)
>>   
> I get a string like this:
>   
> Stumpf+einer+Palme%2C+ausgeh%F6hlt%2C+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert
> 
> If this string is inside the variable "test" and i do:
>   var newtest = decodeURIComponent(test);
> 
> I get the error "malformed URI sequence".
> 
> I've looked documentation on 
> http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
> but there i don't see much about that function...
> 
> Thanks for the fast reply! What am i doing wrong ?
> 
> 
> best regards,
> Truppe Steven
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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


Re: [jQuery] .clone and form elements

2006-11-09 Thread Klaus Hartl
bmsterling schrieb:
> Hey guys and gals,
> 
> I am trying to duplicate a set of form elements using:
> 
> $("#claims").clone().appendTo("#ap")
> 
> and
> 
>   
>   
>name="claim[]"
> value=""/>
>   
>   
>   Denied
>   Granted
>   Remanded
>   
>   
>   
>   
>   
>   
> 
> which works fine, but if there is text in the form element that also gets
> duplicated.  I tried:
> 
> $("#claims").clone().siblings(".contact").val("").appendTo("#ap")
> 
> and that give me an error.
> 
> Any tips?
> 
> thanks
> 

You have a destructive function in your chain, which alters the original 
jQuery object (siblings()), try another sequence and use find instead of 
siblings to find children:

$("#claims").clone().appendTo("#ap").find("input.contact").val("");

Also note that I changed the selector to "input.contact" for better 
performance.

-- Klaus

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


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-09 Thread Luke Lutman
escape() and unescape() have always worked for me :-)

i.e.

escape('The quick brown fox') -> The%20quick%20brown%20fox

unescape('The%20quick%20brown%20fox') -> The quick brown fox

Luke

Truppe Steven wrote:
> Mark Gibson schrieb:
> 
>> Javascript has the functions:
>>
>> decodeURI(s) and decodeURIComponent(s)
>>   
> I get a string like this:
>   
> Stumpf+einer+Palme%2C+ausgeh%F6hlt%2C+geschliffen+und+mit+Perlmutteinlegearbeiten+verziert
> 
> If this string is inside the variable "test" and i do:
>   var newtest = decodeURIComponent(test);
> 
> I get the error "malformed URI sequence".
> 
> I've looked documentation on 
> http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
> but there i don't see much about that function...
> 
> Thanks for the fast reply! What am i doing wrong ?
> 
> 
> best regards,
> Truppe Steven
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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

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


Re: [jQuery] does jQuery has support for parameter handling ?

2006-11-09 Thread Mike Alsup
> var newtest = decodeURIComponent(test);
>
> I get the error "malformed URI sequence".

Try this:

var newtest = decodeURI(encodeURI(test));

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


Re: [jQuery] .clone and form elements

2006-11-09 Thread Dave Methvin
 
> $("#claims").clone().siblings(".contact").val("").appendTo("#ap")
> and that give me an error.

You didn't mention the error message or browser, that could help. I did
notice you are cloning an element that has an id on it and inserting a
duplicate id elsewhere in the tree. I think IE lets you get away with it but
makes you pay later when getElementById unexpectedly returns a NodeList. I
don't recall what FF does, but it's probably not what you want in any case.
Maybe you can add .id("#claims2") into the chain?



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


[jQuery] Satellite for jquery, does it already exist?

2006-11-09 Thread Daniel Ruiz
I would like to do something like Satellite(tm) 1.0 (an online application
for displaying a gallery of images remotely from your flickr.com account)
[http://design.tedforbes.com/] but with jquery rather than prototype. Has
this been done already? If so can someone send me the url.

Thx

Daniel

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


[jQuery] table rows are reluctant to give up their space

2006-11-09 Thread dan conner
nd am seeing something strange, though it is probably more
_javascript_ related. I have a simple table of rows for items in a
shopping cart. in each row is a remove link that should remove the item
from the cart, and the row from the table. here's the basic HTML:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
_javascript_ fun

body { font-family:Arial; }
remove green and the contents of cart_index.js: $(document).ready(function(){ $("a#removeitem1").click(function(){ $("tr#product1").fadeOut("slow", function() { $(this).remove(); }); return false; } );}) which does fade the contents of the row out, and removes the element from the table, but the table row does not "collapse". or the height does not go away. see the example here:http://danmarvelo.us/working/jquery/hiderow_1.htmlI figured out that if I commented out the y.display = "block"; on line 1511 of jquery-latest.js, the row did actually go away. so I thought it might just be setting that property. but if I hid the row just by setting the css properties, the row did go away, so it wasn't exactly the "block" that was causing the problems. $(document).ready(function(){ $("a#removeitem1").click(function(){ $("tr#product1").css("display", "block"); $("tr#product1").css("display", "none"); return false; } );}) or, see http://danmarvelo.us/working/jquery/hiderow_2.htmlbut when I executed the code to set the display property to "none" after a timer, we were back to the original behavior: $(document).ready(function(){ $("a#removeitem1").click(function(){ $("tr#product1").css("display", "block"); setTimeout(function() { $("tr#product1").css("display", "none"); }, 1000); return false; } );}) or, see http://danmarvelo.us/working/jquery/hiderow_3.html what is up with that? anyone have ideas on this? this is all in Firefox 2.0 on Windows. it works fine in IE :) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Transparent PNG IE plugin for jQuery?

2006-11-09 Thread Andy Matthews
Is there a jQuery plugin that causes ANY png to be transparent? There are
scripts that I've seen that force any PNG called from within an IMG tag to
be transparent in IE, but I've got a PNG set as a background image that I'd
also like to have that same behaviour.

I'm sure I could find it somewhere, but I'd love to find a jQuery solution.




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


Re: [jQuery] Transparent PNG IE plugin for jQuery?

2006-11-09 Thread Jörn Zaefferer
Andy Matthews schrieb:
> Is there a jQuery plugin that causes ANY png to be transparent? There are
> scripts that I've seen that force any PNG called from within an IMG tag to
> be transparent in IE, but I've got a PNG set as a background image that I'd
> also like to have that same behaviour.
>
> I'm sure I could find it somewhere, but I'd love to find a jQuery solution.
>   
Steve Wittens uses transparent PNGs in his color picker, his code may be 
helpful: http://www.acko.net/dev/farbtastic

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Synchronous XMLHttpRequest option

2006-11-09 Thread Jörn Zaefferer
Sébastien schrieb:
>> It should pretty easy to add it, especially after the refactoring I
>> did after 1.0.3.
>>
>> I created a bug report (http://jquery.com/dev/bugs/bug/367/), but
>> would delay it for 1.1.
>> 
>
> Thanks :)
>
> I could implement the solution for this bug easily, but as I've not
> contributed to jQuery so far, I don't really know how to proceed.
>   
The simplest input would be code snippets posted here or in the bug 
tracker (encoded with {{{ ... }}} for the wiki).

More helpful, with bigger and well tested modifications, are "patches". 
You check out the source from SVN, modify it, and create a patch with 
your svn client. You can post the content of that patch file or the file 
itself.

Or, if you contributed a lot in the above ways, you could get a SVN 
account that allows you to commit directly to the repository.

In this case, simply reporting the problem is quite fine.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Transparent PNG IE plugin for jQuery?

2006-11-09 Thread kscholl . jq
Andy,

I looked pretty extensively some weeks ago for exactly the same thing, and came 
up empty. There are several solutions available for IMG tags, as you state, but 
all of them seem to use imposition of a background on the image by inserting a 
SPAN tag. Hence, the solutions do not work for background images themselves.

I unfortunately had to ultimately throw in the towel and use GIFs.

Kevin

 -- Original message --
From: "Andy Matthews" <[EMAIL PROTECTED]>
> Is there a jQuery plugin that causes ANY png to be transparent? There are
> scripts that I've seen that force any PNG called from within an IMG tag to
> be transparent in IE, but I've got a PNG set as a background image that I'd
> also like to have that same behaviour.
> 
> I'm sure I could find it somewhere, but I'd love to find a jQuery solution.
> 
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->

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


[jQuery] Click event is not sticking

2006-11-09 Thread Chris W. Parker



Hello,
 
Why am I having 
inconsistent results with a click event being applied? I have to refresh my page 
several times before my click event will work. What could be causing 
this?
 
http://hachiroku.swatgear.com/~cparker/tests/ajax/jquery/3/
 
The "OFF" and 
"ON" links are where the inconsistency is happening.
 
And another thing 
(which could be related) is that I can't reference those anchors with 
$("a.className"). I can only do it with $(".className").
 
 
Thanks,
Chris.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] new plugin: AnimateClass/animateStyle

2006-11-09 Thread Jörn Zaefferer
Paul Bakaus schrieb:
> Feel free to give me input and comments! Have fun!
Great work! I'd love to see some "practical" examples :-) Currently I 
have a hard time to imagine where that plugin could actually be used, 
but I'm sure there is enough room for ideas.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Alternative tooltip, with shadows...

2006-11-09 Thread Jörn Zaefferer
Andy Matthews schrieb:
> Okay...
>
> An update. I've got this working by placing a transparent PNG as a
> background image for #tooltip. I'm having trouble getting it to be
> transparent in IE though. Does jQuery have a plugin to make ANY png
> transparent regardless of where it appears in the code?
>   
You already started another thread on the PNG issue, therefore I use 
this one to stick to the tooltip: Can you please post the modifications 
or additions you make to the tooltip? I'd love to add some examples to 
the demo that look a bit more professional. Thanks.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Accordion plugin

2006-11-09 Thread Jörn Zaefferer
Theo Welch schrieb:
> Brilliant, guys! Thanks a lot for sharing these enhancement ideas Joel and
> Brandon. Not only can the text in the accordion now be resized with no
> penalty, but this also makes it possible to swap out the contents of the
> accordion sections at runtime! This was a big help (and enlightening). :)
>   
I second that! I already made some more modifications to the accordion, 
and I'll add the height = '' solution. I'll check the content-changing, too.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Chili syntax highlighter updated

2006-11-09 Thread Jörn Zaefferer
Hi Andrea!
> Many thanks for adding Chili to the jQuery.com plugins page.
>
> I've just released a new version, 1.2
>
> I'd appreciate very much if you could change the link so that it points to
> http://www.mondotondo.com/aercolino/noteslog/?cat=8 which is the page where
> I post new releases
>
> Also may interest you that I've wordpressed the text manual, and posted it
> here http://www.mondotondo.com/aercolino/noteslog/?page_id=79
>   
It's a wiki page, please modify it to whatever you think it better!

I hope repeating that some times helps :-)

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Click event is not sticking

2006-11-09 Thread Jörn Zaefferer
Chris W. Parker schrieb:
> Hello,
>  
> Why am I having inconsistent results with a click event being applied? 
> I have to refresh my page several times before my click event will 
> work. What could be causing this?
>  
> http://hachiroku.swatgear.com/~cparker/tests/ajax/jquery/3/ 
> 
>  
> The "OFF" and "ON" links are where the inconsistency is happening.
>  
> And another thing (which could be related) is that I can't reference 
> those anchors with $("a.className"). I can only do it with 
> $(".className").
There is quite a lot of stuff on your page. It would be a great help if 
you could reduce the code we have to check to find the problem.

-- 
Jörn Zaefferer

http://bassistance.de


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


Re: [jQuery] Transparent PNG IE plugin for jQuery?

2006-11-09 Thread Andy Matthews
I could swear that I've seen it somewhere. This has to be possible, even if
it's not in jQuery.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 1:59 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Transparent PNG IE plugin for jQuery?


Andy,

I looked pretty extensively some weeks ago for exactly the same thing, and
came up empty. There are several solutions available for IMG tags, as you
state, but all of them seem to use imposition of a background on the image
by inserting a SPAN tag. Hence, the solutions do not work for background
images themselves.

I unfortunately had to ultimately throw in the towel and use GIFs.

Kevin

 -- Original message --
From: "Andy Matthews" <[EMAIL PROTECTED]>
> Is there a jQuery plugin that causes ANY png to be transparent? There are
> scripts that I've seen that force any PNG called from within an IMG tag to
> be transparent in IE, but I've got a PNG set as a background image that
I'd
> also like to have that same behaviour.
>
> I'm sure I could find it somewhere, but I'd love to find a jQuery
solution.
>
>  andy matthews
> web developer
> certified advanced coldfusion programmer
> ICGLink, Inc.
> [EMAIL PROTECTED]
> 615.370.1530 x737
> --//->

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


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


  1   2   >