[jQuery] Loading JSON Data from PHP

2006-09-13 Thread Clodelio Delfino
Hi All,

Good day, how do I load a JSON output from PHP and display it using
ajax???, i've followed the sample from visualjquery.com on using ajax
but it data thrown was XMLHttpRequest message... I think i'm doing it
all wrong... ;(

expected display:
table
tr
tdres1/td
tdres1/td
/tr
tr
tdres2/td
tdres2/td
/tr
so..on...
/table


Thanks in advance,
cdelfino



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


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-13 Thread Klaus Hartl


Meece, Clifford T schrieb:
 I've just started uising the tabs plugin and like it a lot.  I was
 wondering, though, how would I implement it if I want the current open
 tab to close itself when clicked again?  This means that there may not
 be any tabs open at a given time.

I think that'll be not to difficult and has been requested quite a few 
times... I have it on my list.


-- Klaus

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


[jQuery] interface slider

2006-09-13 Thread Will Jessup
In safari clicking on the scrollbar in the slider will make it shift 
left and do weird z-index stuff. Anyone else having this problem?

Will

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


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-13 Thread Klaus Hartl

 With autoHeight, the slide effect is pretty irritating without a static 
 container. The same applies to fade, a static border would help with a 
 better usability.

I'm also planning to make the whole demo look better and wanted to ask a 
friend of mine who is designer. It's indeed a little raw and does not 
impress at all designwise.


 Btw: Using IDs as href targets is really great. This is a point where 
 the mentioned moofx tabs lack a lot.

Thank you Jörn, it came to my mind as the most natural solution.


-- Klaus

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


[jQuery] subModal (was: ThickBox - closing without using the mouse?)

2006-09-13 Thread gilles
 This had been added in 2.1, which was retracted because it had too many
 issues.

I suggest you don't put your suggestion in the code! Basicly you unbind
all keypress events assigned to the document, even the ones assigned
before loading the thickbox.

*You can take a look at the keypress part from my code to see how i fixxed
this. Maybe we can combine forces to create a super script*

-
my SubModal script:
-
I also made a thickbox implementation for jQuery, however it is almost
finished for over 5 months :) Never released it though. Therefore i am
starting a new thread for this. I don't have an example page and i am
currently at holiday in Turkey, but it has a lot of features allready
(except the iframe part).

Anyway:
Currently, the overlay is at 100% pageheight, or the height of the content
if the content is +100%. When the content dynamicly changes, e.g. grows, i
have to adjust the overlay accordingly.

p.s. this source is build by me, based upon the first lightbox to appear
for prototype. Since i use it for overlaying forms i called it submodal.

Source code is subject to change and it is licensed under thesame license
as jQuery:
http://administratie.webunity.nl/js/wuSubmodal.js
http://administratie.webunity.nl/css/wuSubmodal.css

Regards,

Gilles
(p.s. back on monday 18th)


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


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-13 Thread Klaus Hartl
I (think I) have fixed the height issues*. The containers now remain 
fully flexible, even after an animation. That means you can resize the 
window and/or the font size without ever overflowing content (except you 
do that in the middle of an animation...).

Would be very nice, if you could verify that:
http://stilbuero.de/jquery/tabs/

As a side-effect that also fixes printing in IE (I mentioned that).


* Apart from the autoheight effect. That creates some headache for me...


-- Klaus




Justin Carter schrieb:
 On 9/12/06, Klaus Hartl [EMAIL PROTECTED] wrote:
 I need to know: which version of jQuery do you use? Do you simply go to
 demo page? If so, please make sure that you do not load from cache...
 
 Sorry I should have said that I am just viewing your demo page. I had
 never viewed that page before in IE7 Beta 3 nor Firefox 1.5.0.3,
 however I may have viewed it before in Opera 9.01 BUT I have just
 cleared my cache and it is still happening. So it's definitely not a
 caching issue at my end :)
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 

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


[jQuery] jXs plug-in updated

2006-09-13 Thread kenton.simpson

I recently updated jXs to support rev 249. I also internalize the DOM
creation ,and add bug support for dynamic radio box's in IE. I have noticed
a similar problem with multiple selects, but have not had a chance to fix
that yet.
-- 
View this message in context: 
http://www.nabble.com/jXs-plug-in-updated-tf2264213.html#a6282729
Sent from the JQuery forum at Nabble.com.


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


[jQuery] Bugs in idrag/idrop

2006-09-13 Thread Mark Gibson

Hi Stefan,
I've just downloaded the latest Interface today,
it seems to be throwing up a few errors in idrag.js:


During a drag operation:

newCoords has no properties, line 340:
 if (newCoords.constructor == Object) {


After a drag operation:

elm is not defined, line 287:
 dragged.dragCfg.onStop.apply(elm);


Also, there seems to be a problem with idrop.js too.

Wherever I drop an item on the page,
it calls the ondrop of the palette.

The attached example demonstrates this and the errors
above.

BTW, I'm using:
Firefox 1.5.0.6 (with Firebug)
jQuery r249
idrag.js r1.25
idrop.js r1.6

Cheers
- Mark.
Title: Drag'n'drop Testing




	Drag'n'drop Test
	
		Palette
		Item 1
		Item 2
		Item 3
	
	
	
		Drop items here
	

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


Re: [jQuery] toggleClass hoverClass pressClass...

2006-09-13 Thread Enrique Meléndez
I was wrong, toogleClass has nothing to do with click events, it basically
fires the function inmediatly.


Enrique Meléndez Estrada 




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


Re: [jQuery] jXs plug-in updated

2006-09-13 Thread Sam Collett
On 13/09/06, Dylan Verheul [EMAIL PROTECTED] wrote:
 url?

I assume this is what he is referring to:
http://www.brainknot.com/code/jxs.htm


 On 9/13/06, kenton.simpson [EMAIL PROTECTED] wrote:
 
  I recently updated jXs to support rev 249. I also internalize the DOM
  creation ,and add bug support for dynamic radio box's in IE. I have noticed
  a similar problem with multiple selects, but have not had a chance to fix
  that yet.
  --
  View this message in context: 
  http://www.nabble.com/jXs-plug-in-updated-tf2264213.html#a6282729
  Sent from the JQuery forum at Nabble.com.
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 

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


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


[jQuery] Thickbox: Smoooooth scrolling with fixed positioning

2006-09-13 Thread Klaus Hartl
Hi all,

I worked a bit on the thickbox script to improve it. What bothered me,
was that when scrolling the window the thickbox window is moved to stay
in the center, but that happens not smooth at all.

So I changed it to use fixed positioning.


1. Changed CSS:

#TB_window {
 position: fixed;
 top: 50%;
 left: 50%;
}


2. Removed the scroll event handler:

$(window).scroll(TB_position);


3. Changed the function TB_position:

function TB_position() {
 $(#TB_window).css({marginLeft: '-' + parseInt(TB_WIDTH / 2) +
'px', width: TB_WIDTH + 'px'});
 if ( !(jQuery.browser.msie  typeof XMLHttpRequest == 'function')
) { // take away IE6
 $(#TB_window).css({marginTop: '-' + parseInt(TB_HEIGHT / 2) +
'px'});
 }
 TB_overlaySize();
}

It now pushes itself half of its width/height to the left/top from the
middle so that it is exactly centered.

(It seemed to me that calling TB_overlaySize here is unnecessary, but I
left it in for now.)


4. Fixed our special friend IE6 to emulate a fixed positioning:

* html #TB_window {
 position: absolute;
 margin-top: expression(0 - parseInt(this.offsetHeight / 2) +
(TBWindowMargin = document.documentElement 
document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

Based on http://www.howtocreate.co.uk/fixedPosition.html

I use the Star Selector hack to filter IE7, which supports fixed
positioning. Because this is invalid CSS I would put that in a
Conditional Commented extra style sheet.


5. Smoth.


I hope, this will go into the next Thickbox version. Have fun!


Klaus







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


Re: [jQuery] jXs plug-in updated

2006-09-13 Thread kenton.simpson

Sorry, Sam is correct the link is  http://www.brainknot.com/code/jxs.htm
http://www.brainknot.com/code/jxs.htm . It was a very late when I posted. I
forgot to include the link.

-- 
View this message in context: 
http://www.nabble.com/jXs-plug-in-updated-tf2264213.html#a6284586
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Thickbox: Smoooooth scrolling with fixed positioning

2006-09-13 Thread Klaus Hartl


 2. Removed the scroll event handler:
 
 $(window).scroll(TB_position);


You don't need no resize event handler as well:

$(window).resize(TB_position);


-- Klaus

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


[jQuery] Serialize()

2006-09-13 Thread Matthew Bidwell
The serialize() function is included in the api documentation, however it seems to be in the forms.js plugin. Is that correct? If so, what determines which plug-ins are included in the api documentation and is there an easy way to find the location of functions that are not part of the core within the api?I'm probably missing something simple.Matt
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bug?

2006-09-13 Thread Matthew Bidwell
I am getting the same error using load in IE. The alternative method you proposed corrected the problem. Matt[EMAIL PROTECTED] wrote: -To: "jQuery Discussion." discuss@jquery.comFrom: "John Resig" [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 08/13/2006 11:58AMSubject: Re: [jQuery] Bug? Can anyone help me with this?IE really hates dealing with Tables and innerHTML (which is what.load() uses). An alternative may look something like this (untested):$.get('ajaxClassObjects.act?type=5id=9',function(html){ $("#objects").empty().append( html );});It's worth a shot - let me know if that helps.--John___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Bug?

2006-09-13 Thread Christof Donat
Hi,

 FONT face=Default Sans Serif,Verdana,Arial,Helvetica,sans-serif
 size=2DIVI am getting the same error using load in IE.nbsp; The
 alternative method you proposed corrected the problem.nbsp;
 BRDIVBRMattnbsp;BRDIVBR/DIVFONT
 color=#990099[EMAIL PROTECTED] wrote:
 -BRBR/FONTBLOCKQUOTE style=PADDING-RIGHT: 0px; PADDING-LEFT:
 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #00 2px solid; MARGIN-RIGHT:
 0pxTo: jQuery Discussion. lt;discuss@jquery.comgt;BRFrom: John
 Resig lt;[EMAIL PROTECTED]gt;BRSent by:
 [EMAIL PROTECTED]BRDate: 08/13/2006 11:58AMBRSubject: Re:
 [jQuery] Bug?BRBRFONT face=Default Monospace,Courier
 New,Courier,monospace size=2gt; Can anyone help me with this?BRBRIE
 really hates dealing with Tables and innerHTML (which is whatBR.load()
 uses). An alternative may look something like this
 (untested):BRBR$.get('ajaxClassObjects.act?type=5amp;id=9',function(ht
ml){BRnbsp; nbsp;$(#objects).empty().append( html
 );BR});BRBRIt's worth a shot - let me know if that
 helps.BRBR--JohnBRBR___
BRjQuery mailing listBRdiscuss@jquery.comBRA
 href=http://jquery.com/discuss/;
 target=blankhttp://jquery.com/discuss//ABR/FONT/BLOCKQUOTEBR/DI
V/DIV/FONT

HTML is great for web-pages but please use plain text for mails. I guess I am 
not the only one who has HTML-display switched off in the mail client for 
security reasons.

Christof

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


[jQuery] IE hate: Replacing background image

2006-09-13 Thread Onno Timmerman
The first background is defined in the CSS layout called #tabs

One click I need the browser to load a new background image.
$(div#tabs).css(background-image, url(\./images/tabs/ + this.id + 
.gif\));


this.id == the name of the background image.

This works in all browsers known to me except IE. Anybody a hint why 
this is?


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


Re: [jQuery] IE hate: Replacing background image

2006-09-13 Thread Klaus Hartl


Onno Timmerman schrieb:
 The first background is defined in the CSS layout called #tabs
 
 One click I need the browser to load a new background image.
 $(div#tabs).css(background-image, url(\./images/tabs/ + this.id + 
 .gif\));
 
 
 this.id == the name of the background image.
 
 This works in all browsers known to me except IE. Anybody a hint why 
 this is?
 


try:

$(div#tabs).css(background-image, url(./images/tabs/ + this.id +
.gif));

if that does not work:

$(div#tabs).css({backgroundImage: url(./images/tabs/ + this.id +
.gif)});


There's a bug in jQuery for resolving CSS properties with a '-' in it, 
as far as I know.


-- Klaus

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


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Yehuda Katz
A cookie handler.On 9/12/06, Rey Bango [EMAIL PROTECTED] wrote:
What would you like to see in a plugin?Rey...Yehuda Katz wrote: Would def. make a nice plugin. On 9/11/06, *Rey Bango* [EMAIL PROTECTED] mailto:
[EMAIL PROTECTED] wrote: Does JQuery have any methods specific to working with cookies (eg: set, get, et al) or should I just one of the many premade functions out in
 the wild? Rey... ___ jQuery mailing list discuss@jquery.com mailto:
discuss@jquery.com http://jquery.com/discuss/ -- Yehuda Katz Web Developer
 (ph)718.877.1325  ___ jQuery mailing list 
discuss@jquery.com http://jquery.com/discuss/___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Sam Collett
On 12/09/06, Rey Bango [EMAIL PROTECTED] wrote:
 Does JQuery have any methods specific to working with cookies (eg: set,
 get, et al) or should I just one of the many premade functions out in
 the wild?

 Rey...


Do cookies really have much to do with jQuery? Unless a plugin is
needed to attach cookies to jQuery objects (for storing view state or
events for example) -
$(#mydiv).eventsFromCookie(cookiename).click(foo).eventsToCookie(cookiename)

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


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Yehuda Katz
It doesn't have to do with DOM Scripting, but then, neither does $.ajax. It's a commonly enough required feature that obviously doesn't belong in the core, but would be nice to tack on to an existing jQuery installation as a plugin without worrying about incompatibilities.
-- YehudaOn 9/13/06, Sam Collett [EMAIL PROTECTED] wrote:
On 12/09/06, Rey Bango [EMAIL PROTECTED] wrote: Does JQuery have any methods specific to working with cookies (eg: set, get, et al) or should I just one of the many premade functions out in
 the wild? Rey...Do cookies really have much to do with jQuery? Unless a plugin isneeded to attach cookies to jQuery objects (for storing view state orevents for example) -
$(#mydiv).eventsFromCookie(cookiename).click(foo).eventsToCookie(cookiename)___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Klaus Hartl

Yehuda Katz schrieb:
 It doesn't have to do with DOM Scripting, but then, neither does $.ajax. 
 It's a commonly enough required feature that obviously doesn't belong in 
 the core, but would be nice to tack on to an existing jQuery 
 installation as a plugin without worrying about incompatibilities.


Here is a class based on scripts at quirksmode.org, just needs to be 
ported to jQuery. If nobody does it, I will make a plugin out of it:

var CookieHandler = new function() {
 /**
  * Reads a cookie.
  *
  * @param name the name of the cookie
  *
  * @return the value of the cookie
  *
  * @author Klaus Hartl (28.06.2006)
  */
 this.get = function(name) {
 var nameEQ = name + '=';
 var ca = document.cookie.split(';');
 for (var i = 0; i  ca.length; i++) {
 var c = ca[i];
 while (c.charAt(0) == ' ') {
 c = c.substring(1, c.length);
 }
 if (c.indexOf(nameEQ) == 0) {
 return c.substring(nameEQ.length, c.length);
 }
 }
 return null;
 };
 /**
  * Sets a cookie with the given name and value and other optional 
parameters.
  *
  * @param namethe name of the cookie
  * @param value   the value of the cookie
  * @param expires an integer specifying the expiration date from 
now on
  *in days. If you set the number of days to 0 the 
cookie
  *is trashed when the user closes the browser.
  * @param pathpath where the cookie is valid (default: path of
  *calling document).
  * @param domain  domain where the cookie is valid (default: domain of
  *calling document).
  * @param secure  boolean value indicating if the cookie transmission
  *requires a secure transmission.
  *
  * @author Klaus Hartl (28.06.2006)
  */
 this.set = function(name, value, expires, path, domain, secure) {
 if (typeof expires == 'number') {
 var date = new Date();
 date.setTime(date.getTime() + (expires * 24 * 60 * 60 * 1000));
 expires = '; expires=' + date.toGMTString();
 } else {
 expires = '';
 }
 path = (path) ? '; path=' + path : '';
 domain = (domain) ? '; domain=' + domain : '';
 secure = (secure) ? '; secure' : '';
 document.cookie = name + '=' + value + expires + path + domain 
+ secure;
 };
 /**
  * Deletes a cookie by setting the expiry date in the past.
  *
  * @param name the name of the cookie
  *
  * @author Klaus Hartl (28.06.2006)
  */
 this.erase = function(name) {
 this.set(name, '', -1);
 };
};

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


[jQuery] jQBrowser 0.2 woes

2006-09-13 Thread aedmonds

I recently noticed that a new version of jQBrowser was available and I like
the new features but it appears to be breaking jQuery all over the place
when I try and use it with jQuery Rev 249. It also conflicts with Interface
as it uses some checks for MS IE. Basically it make Interface think that
every browser is IE (very, very bad).

Has anyone else had this problem? I would imagine it has to do with the
change of object properties ($.browser.msie) to methods ($.browser.msie()).

-Aaron

P.S. - Here's the link to jQBrowser:
http://davecardwell.co.uk/geekery/javascript/jquery/jqbrowser/0.2/
-- 
View this message in context: 
http://www.nabble.com/jQBrowser-0.2-woes-tf222.html#a6290134
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] jQBrowser 0.2 woes

2006-09-13 Thread Dave Cardwell
Hi Aaron.

I've received a few emails from people asking to change back to using 
$.browser.msie, and as such the 1.0 release will do so.  In the meantime 
I'd recommend either switching back to 0.1, or the following change to 
the source *should* work (untested):

Switch the line:
$.browser = public;

to:
$.browser = private;



Best wishes,
Dave Cardwell.



aedmonds wrote:
 I recently noticed that a new version of jQBrowser was available and I like
 the new features but it appears to be breaking jQuery all over the place
 when I try and use it with jQuery Rev 249. It also conflicts with Interface
 as it uses some checks for MS IE. Basically it make Interface think that
 every browser is IE (very, very bad).
 
 Has anyone else had this problem? I would imagine it has to do with the
 change of object properties ($.browser.msie) to methods ($.browser.msie()).
 
 -Aaron
 
 P.S. - Here's the link to jQBrowser:
 http://davecardwell.co.uk/geekery/javascript/jquery/jqbrowser/0.2/

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


Re: [jQuery] jQBrowser 0.2 woes

2006-09-13 Thread Christof Donat
Hi,

 Has anyone else had this problem? I would imagine it has to do with the
 change of object properties ($.browser.msie) to methods ($.browser.msie()).

pretty shure.

@dave: I don't understand why you whant to use functions anyway here.
I suggest you simply use your private object as public and be happy. Maybe I 
simpy don't understand the trick.

Christof

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


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-13 Thread Meece, Clifford T
I took a stab at implementing some of these changes.  Right now I have
just modified the code to suit my case.  It would be better, of course,
to define an option like SelfToggle, or AllowNone, which would allow
both behaviors.  I have a site that is work in progress at :

http://langdata.potowski.org

The tabs are at the top.  Don't bother looking at it with IE.  I still
have lots of specific IE fixes to put in to my css files.  In FF the
tabs are working well with a few caveats:

- haven't implemented 'all closed on load'
- if you click the open tab, it closes, and ONCLASS is removed, but the
button still has altered background.  This is a CSS issue for sure, and
I guess it has to do with the fact that even though the div isn't
displayed, we are still 'at' #section-1 or whatever.

Do you have any hints at the best way to fix the second issue?

The code ( part of it ) that I changed is this:

} else if (options.fxSlide) {
if
(target.css(display) != 'none' ) {
visible.slideUp(options.fxSpeed,
function() {

$(container).find('ulli').removeClass(ON_CLASS);
});
} else {
if (
visible.size()  0){

visible.slideUp(options.fxSpeed, function() {
changeClass();
target.slideDown(options.fxSpeed,
callback);
});
} else {
changeClass();
target.slideDown(options.fxSpeed,
callback);
}
}   


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: Wednesday, September 13, 2006 1:58 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Tabs plugin update: autoheight, effects



Meece, Clifford T schrieb:
 I've just started uising the tabs plugin and like it a lot.  I was 
 wondering, though, how would I implement it if I want the current open

 tab to close itself when clicked again?  This means that there may not

 be any tabs open at a given time.

I think that'll be not to difficult and has been requested quite a few
times... I have it on my list.


-- Klaus

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

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


Re: [jQuery] jQBrowser 0.2 woes

2006-09-13 Thread Dave Cardwell
Actually thinking again, delete from var public = { right down to (and 
including) $.browser = public;, and after the var private = {} 
block, add $.browser = private;.  That should work better.


Best wishes,
Dave Cardwell ~ http://davecardwell.co.uk/


Dave Cardwell wrote:
 Hi Aaron.
 
 I've received a few emails from people asking to change back to using 
 $.browser.msie, and as such the 1.0 release will do so.  In the meantime 
 I'd recommend either switching back to 0.1, or the following change to 
 the source *should* work (untested):
 
 Switch the line:
 $.browser = public;
 
 to:
 $.browser = private;
 
 
 
 Best wishes,
 Dave Cardwell.
 
 
 
 aedmonds wrote:
 I recently noticed that a new version of jQBrowser was available and I like
 the new features but it appears to be breaking jQuery all over the place
 when I try and use it with jQuery Rev 249. It also conflicts with Interface
 as it uses some checks for MS IE. Basically it make Interface think that
 every browser is IE (very, very bad).

 Has anyone else had this problem? I would imagine it has to do with the
 change of object properties ($.browser.msie) to methods ($.browser.msie()).

 -Aaron

 P.S. - Here's the link to jQBrowser:
 http://davecardwell.co.uk/geekery/javascript/jquery/jqbrowser/0.2/
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

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


Re: [jQuery] jQBrowser 0.2 woes

2006-09-13 Thread Dave Cardwell
I use a public interface to prevent direct access to what should be 
private state inside the object.  Upon recent reflection, with 
JavaScript the added complexity probably just isn't worth it, so I will 
be modifying the plugin to suit in the near future.

Best wishes,
Dave Cardwell ~ http://davecardwell.co.uk/


Christof Donat wrote:
 Hi,
 
 Has anyone else had this problem? I would imagine it has to do with the
 change of object properties ($.browser.msie) to methods ($.browser.msie()).
 
 pretty shure.
 
 @dave: I don't understand why you whant to use functions anyway here.
 I suggest you simply use your private object as public and be happy. Maybe I 
 simpy don't understand the trick.
 
 Christof
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

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


[jQuery] Fotonotes into jQuery plugin?

2006-09-13 Thread Stefan Nagtegaal
Did anyone considered converting fotonotes.js (http://fotonotes.net/ 
fnclientlib/js/fnclient.js) for the purpose of adding notes to images  
(like flickr could do) to jQuery?
You can see the porject and it's usage here: http://fotonotes.net/


I hope someone will be enthousiast and convert it into jQuery.. I  
would love to see that.. ;-)



Steef

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


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-13 Thread Meece, Clifford T
Ok, I have fixed it so none are open on initial load, so now the last
think is for the background shading to go away when you close a tab.
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Meece, Clifford T
Sent: Wednesday, September 13, 2006 12:32 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Tabs plugin update: autoheight, effects

I took a stab at implementing some of these changes.  Right now I have
just modified the code to suit my case.  It would be better, of course,
to define an option like SelfToggle, or AllowNone, which would allow
both behaviors.  I have a site that is work in progress at :

http://langdata.potowski.org

The tabs are at the top.  Don't bother looking at it with IE.  I still
have lots of specific IE fixes to put in to my css files.  In FF the
tabs are working well with a few caveats:

- haven't implemented 'all closed on load'
- if you click the open tab, it closes, and ONCLASS is removed, but the
button still has altered background.  This is a CSS issue for sure, and
I guess it has to do with the fact that even though the div isn't
displayed, we are still 'at' #section-1 or whatever.

Do you have any hints at the best way to fix the second issue?

The code ( part of it ) that I changed is this:

} else if (options.fxSlide) {
if
(target.css(display) != 'none' ) {
visible.slideUp(options.fxSpeed,
function() {

$(container).find('ulli').removeClass(ON_CLASS);
});
} else {
if (
visible.size()  0){

visible.slideUp(options.fxSpeed, function() {
changeClass();
target.slideDown(options.fxSpeed,
callback);
});
} else {
changeClass();
target.slideDown(options.fxSpeed,
callback);
}
}   


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: Wednesday, September 13, 2006 1:58 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Tabs plugin update: autoheight, effects



Meece, Clifford T schrieb:
 I've just started uising the tabs plugin and like it a lot.  I was 
 wondering, though, how would I implement it if I want the current open

 tab to close itself when clicked again?  This means that there may not

 be any tabs open at a given time.

I think that'll be not to difficult and has been requested quite a few
times... I have it on my list.


-- Klaus

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

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

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


Re: [jQuery] Thickbox: Making Thickbox a top level project?

2006-09-13 Thread Jörn Zaefferer
Klaus Hartl schrieb:
 I hope, this will go into the next Thickbox version. Have fun!
   
I wonder if it would be a good idea to make Thickbox an official 
plugin, hosting the development on jQuery.com (the demo is there 
already). It seems like Cody is overwhelmed with feedback and questions: 
ThickBox has received more attention than I had initially expected - so 
much so that I am a little overwhelmed with the notoriety and somewhat 
dumbfounded by all the individuals using it. Truthfully, I developed the 
solution as a proof of concept and personal endeavor to showcase the 
jQuery http://www.jquery.com library.
By hosting it on jQuery.com, the jQuery community could work together to 
improve this greate piece of software and to answer all those questions 
about it.
There are now two derivates on the plugin list and there may be more. I 
have no idea which one of those I should use: Use thickbox itself? Use 
tweenbox, that may be improved at one thing but may lack another, that 
is now fixed is the newest thickbox version? Or use Slightly Thickerbox, 
which claims to support Interface, but uses the same auto-deploy feature 
($(document).ready(TB_init);) that I don't like at all.
And then I read your mail with really nice improvments to an essential 
part of Thickbox.
Therefore my request to commit Thickbox to the jQuery subversion, to 
port back improvements from derivates, to improve whatever is possible 
(like the stuff Klaus did) and then to rule them (all those XXXbox 
derivates) all! In other words, make it a top level project, like they 
use to say at the Eclipse foundation :-)

-- Jörn


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


[jQuery] jTip

2006-09-13 Thread Yehuda Katz
Is there a version of jTip that works with jQuery 1.0?-- Yehuda KatzWeb Developer(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Thickbox: Making Thickbox a top level project?

2006-09-13 Thread Yehuda Katz
I agree. We need an official plugin repository where we can stick top-level plugins.-- YehudaOn 9/13/06, Jörn Zaefferer 
[EMAIL PROTECTED] wrote:Klaus Hartl schrieb: I hope, this will go into the next Thickbox version. Have fun!
I wonder if it would be a good idea to make Thickbox an officialplugin, hosting the development on jQuery.com (the demo is therealready). It seems like Cody is overwhelmed with feedback and questions:
ThickBox has received more attention than I had initially expected - somuch so that I am a little overwhelmed with the notoriety and somewhatdumbfounded by all the individuals using it. Truthfully, I developed the
solution as a proof of concept and personal endeavor to showcase thejQuery http://www.jquery.com library.By hosting it on jQuery.com, the jQuery community could work together to
improve this greate piece of software and to answer all those questionsabout it.There are now two derivates on the plugin list and there may be more. Ihave no idea which one of those I should use: Use thickbox itself? Use
tweenbox, that may be improved at one thing but may lack another, thatis now fixed is the newest thickbox version? Or use Slightly Thickerbox,which claims to support Interface, but uses the same auto-deploy feature
($(document).ready(TB_init);) that I don't like at all.And then I read your mail with really nice improvments to an essentialpart of Thickbox.Therefore my request to commit Thickbox to the jQuery subversion, to
port back improvements from derivates, to improve whatever is possible(like the stuff Klaus did) and then to rule them (all those XXXboxderivates) all! In other words, make it a top level project, like they
use to say at the Eclipse foundation :-)-- Jörn___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Thickbox: Making Thickbox a top level project?

2006-09-13 Thread Yehuda Katz
As a side note, I've been working on a small app for Visual jQuery where developers can add new plugins (with demos), and users could then test and report the results on different platforms.It would go something like this:
1) Developer uploads a JS file and HTML code with a demo in it.2) User browses plugins and selects one he likes.3) Demo appears in the browser4) User tests the demo. If the demo passes, the user checks the checkbox. It gets logged as a success for the user's browser. If it fails, the user enters some comments about the failure into the text area and submits the comments. It gets logged as a failure with the comment.
Comments?-- YehudaOn 9/13/06, Yehuda Katz [EMAIL PROTECTED] wrote:
I agree. We need an official plugin repository where we can stick top-level plugins.-- YehudaOn 9/13/06, 
Jörn Zaefferer 
[EMAIL PROTECTED] wrote:Klaus Hartl schrieb: I hope, this will go into the next Thickbox version. Have fun!
I wonder if it would be a good idea to make Thickbox an officialplugin, hosting the development on jQuery.com (the demo is therealready). It seems like Cody is overwhelmed with feedback and questions:
ThickBox has received more attention than I had initially expected - somuch so that I am a little overwhelmed with the notoriety and somewhatdumbfounded by all the individuals using it. Truthfully, I developed the
solution as a proof of concept and personal endeavor to showcase thejQuery http://www.jquery.com library.
By hosting it on jQuery.com, the jQuery community could work together to
improve this greate piece of software and to answer all those questionsabout it.There are now two derivates on the plugin list and there may be more. Ihave no idea which one of those I should use: Use thickbox itself? Use
tweenbox, that may be improved at one thing but may lack another, thatis now fixed is the newest thickbox version? Or use Slightly Thickerbox,which claims to support Interface, but uses the same auto-deploy feature
($(document).ready(TB_init);) that I don't like at all.And then I read your mail with really nice improvments to an essentialpart of Thickbox.Therefore my request to commit Thickbox to the jQuery subversion, to
port back improvements from derivates, to improve whatever is possible(like the stuff Klaus did) and then to rule them (all those XXXboxderivates) all! In other words, make it a top level project, like they

use to say at the Eclipse foundation :-)-- Jörn___jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325

-- Yehuda KatzWeb Developer(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Aaron Heimlich
I never really worked with cookies, therefore I'm not sure if those
methods would have any practical use at all.Cookies are limited to 4KB of data I believe, so they might be useful for short pieces of text like user preferences and such.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tabs plugin update: autoheight, effects

2006-09-13 Thread Meece, Clifford T
Ok, the tab was remaining 'grey' because the CSS selector :focus.  If I
remove the :focus from the css directive, it works fine.  However, that
makes it difficult for tab navigation.  Is there a handy jquery function
to remove focus from an element?  Like a .blur() function?

http://langdata.potowski.org 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Meece, Clifford T
Sent: Wednesday, September 13, 2006 12:48 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Tabs plugin update: autoheight, effects

Ok, I have fixed it so none are open on initial load, so now the last
think is for the background shading to go away when you close a tab.
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Meece, Clifford T
Sent: Wednesday, September 13, 2006 12:32 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Tabs plugin update: autoheight, effects

I took a stab at implementing some of these changes.  Right now I have
just modified the code to suit my case.  It would be better, of course,
to define an option like SelfToggle, or AllowNone, which would allow
both behaviors.  I have a site that is work in progress at :

http://langdata.potowski.org

The tabs are at the top.  Don't bother looking at it with IE.  I still
have lots of specific IE fixes to put in to my css files.  In FF the
tabs are working well with a few caveats:

- haven't implemented 'all closed on load'
- if you click the open tab, it closes, and ONCLASS is removed, but the
button still has altered background.  This is a CSS issue for sure, and
I guess it has to do with the fact that even though the div isn't
displayed, we are still 'at' #section-1 or whatever.

Do you have any hints at the best way to fix the second issue?

The code ( part of it ) that I changed is this:

} else if (options.fxSlide) {
if
(target.css(display) != 'none' ) {
visible.slideUp(options.fxSpeed,
function() {

$(container).find('ulli').removeClass(ON_CLASS);
});
} else {
if (
visible.size()  0){

visible.slideUp(options.fxSpeed, function() {
changeClass();
target.slideDown(options.fxSpeed,
callback);
});
} else {
changeClass();
target.slideDown(options.fxSpeed,
callback);
}
}   


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: Wednesday, September 13, 2006 1:58 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Tabs plugin update: autoheight, effects



Meece, Clifford T schrieb:
 I've just started uising the tabs plugin and like it a lot.  I was 
 wondering, though, how would I implement it if I want the current open

 tab to close itself when clicked again?  This means that there may not

 be any tabs open at a given time.

I think that'll be not to difficult and has been requested quite a few
times... I have it on my list.


-- Klaus

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

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

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

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


Re: [jQuery] Loading JSON Data from PHP

2006-09-13 Thread Matt Stith
Do you have a test page we could see?On 9/13/06, Clodelio Delfino [EMAIL PROTECTED]
 wrote:Hi All,Good day, how do I load a JSON output from PHP and display it using
ajax???, i've followed the sample from visualjquery.com on using ajaxbut it data thrown was XMLHttpRequest message... I think i'm doing itall wrong... ;(
expected display:tabletrtdres1/tdtdres1/td/trtrtdres2/tdtdres2/td/trso..on...
/tableThanks in advance,cdelfino___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Dave Methvin
 
 Under RFC 2695, a user-agent (such as a Web browser)
 should provide at least 4096 bytes per cookie - so the 
 4KB is a minimum for storage - not a maximum. See:
 http://www.faqs.org/rfcs/rfc2965 (section 5.3).

Yes, but SHOULD is not MUST.
http://rfc.net/rfc2119.html 

All modern browsers do respect the 4KB number though, which is a
decent-sized chunk of data for everything but texboxes. I can think of
situations where It would be useful to persist a form's state into a cookie
and restore it later.


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


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Blair Mitchelmore
I think it would be best if we kept this in the typically succinct 
syntax of jQuery. such as .html() setting and getting depending on the 
attributes. This is a simple version that just consolidates your 
functions but...

$.cookie = function(name, value, expires, path, domain, secure) {
if (typeof value == 'undefined') {
var name += =;
var ca = document.cookie.split(';');
for (var i = 0; i  cs.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) == 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
} else if (value === false) {
arguments.callee(name,'',-1);
} else {
if (typeof expires == 'number') {
var date = new Date();
date.setTime(date.getTime() + (expires * 24 * 60 * 60 * 1000));
expires = '; expires=' + date.toGMTString();
} else {
expires = '';
}
path = (path) ? '; path=' + path : '';
domain = (domain) ? '; domain=' + domain : '';
secure = (secure) ? '; secure' : '';
document.cookie = name + '=' + value + expires + path + domain + 
secure;
}
};

Klaus Hartl wrote:
 Yehuda Katz schrieb:
   
 It doesn't have to do with DOM Scripting, but then, neither does $.ajax. 
 It's a commonly enough required feature that obviously doesn't belong in 
 the core, but would be nice to tack on to an existing jQuery 
 installation as a plugin without worrying about incompatibilities.
 


 Here is a class based on scripts at quirksmode.org, just needs to be 
 ported to jQuery. If nobody does it, I will make a plugin out of it:

 var CookieHandler = new function() {
  /**
   * Reads a cookie.
   *
   * @param name the name of the cookie
   *
   * @return the value of the cookie
   *
   * @author Klaus Hartl (28.06.2006)
   */
  this.get = function(name) {
  var nameEQ = name + '=';
  var ca = document.cookie.split(';');
  for (var i = 0; i  ca.length; i++) {
  var c = ca[i];
  while (c.charAt(0) == ' ') {
  c = c.substring(1, c.length);
  }
  if (c.indexOf(nameEQ) == 0) {
  return c.substring(nameEQ.length, c.length);
  }
  }
  return null;
  };
  /**
   * Sets a cookie with the given name and value and other optional 
 parameters.
   *
   * @param namethe name of the cookie
   * @param value   the value of the cookie
   * @param expires an integer specifying the expiration date from 
 now on
   *in days. If you set the number of days to 0 the 
 cookie
   *is trashed when the user closes the browser.
   * @param pathpath where the cookie is valid (default: path of
   *calling document).
   * @param domain  domain where the cookie is valid (default: domain of
   *calling document).
   * @param secure  boolean value indicating if the cookie transmission
   *requires a secure transmission.
   *
   * @author Klaus Hartl (28.06.2006)
   */
  this.set = function(name, value, expires, path, domain, secure) {
  if (typeof expires == 'number') {
  var date = new Date();
  date.setTime(date.getTime() + (expires * 24 * 60 * 60 * 1000));
  expires = '; expires=' + date.toGMTString();
  } else {
  expires = '';
  }
  path = (path) ? '; path=' + path : '';
  domain = (domain) ? '; domain=' + domain : '';
  secure = (secure) ? '; secure' : '';
  document.cookie = name + '=' + value + expires + path + domain 
 + secure;
  };
  /**
   * Deletes a cookie by setting the expiry date in the past.
   *
   * @param name the name of the cookie
   *
   * @author Klaus Hartl (28.06.2006)
   */
  this.erase = function(name) {
  this.set(name, '', -1);
  };
 };

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


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


[jQuery] Autocompleter Safari bug

2006-09-13 Thread Geoff Knutzen
In Safari, pressing return in the autocomplete dropdown will submit the form
that the autocompleter is in. The preventDefault method is not working some
reason. This is working fine (the form is not submitted) in IE and FF.

Wondering if this is a bug in autocomplete or in jquery? 

I am not really sure where to start with this one. If someone can point me
in the right direction, I will continue to troubleshoot.

-Geoff



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


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Aaron Heimlich

Under RFC 2695, a user-agent (such as a Web
browser) should provide "at least 4096 bytes per cookie" – so
the 4KB is a minimum for storage – not a maximum. See: http://www.faqs.org/rfcs/rfc2965
(section 5.3).Well, that's news to me. Thanks for the clarification.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Cookie handling in JQuery

2006-09-13 Thread Geoff Knutzen
But remember that it is very easy for the user to turn off or suppress
cookies. My numbers are showing around 1% without cookies. (~.1% have no
javascript, but I think we are skewed a bit on that).

I would rely on javascript before relying on a cookie.

But that is just me

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Methvin
Sent: Wednesday, September 13, 2006 2:22 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Cookie handling in JQuery

 
 Under RFC 2695, a user-agent (such as a Web browser)
 should provide at least 4096 bytes per cookie - so the 
 4KB is a minimum for storage - not a maximum. See:
 http://www.faqs.org/rfcs/rfc2965 (section 5.3).

Yes, but SHOULD is not MUST.
http://rfc.net/rfc2119.html 

All modern browsers do respect the 4KB number though, which is a
decent-sized chunk of data for everything but texboxes. I can think of
situations where It would be useful to persist a form's state into a cookie
and restore it later.


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




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


Re: [jQuery] Loading JSON Data from PHP

2006-09-13 Thread Clodelio Delfino
Thanks Matt for the reply, anyway...i've replaced the JSON output with
XML and works fine now...

Cheers,
cdelfino

Matt Stith wrote:
 Do you have a test page we could see?

 On 9/13/06, *Clodelio Delfino* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:

 Hi All,

 Good day, how do I load a JSON output from PHP and display it using
 ajax???, i've followed the sample from visualjquery.com
 http://visualjquery.com on using ajax
 but it data thrown was XMLHttpRequest message... I think i'm
 doing it
 all wrong... ;(

 expected display:
 table
 tr
 tdres1/td
 tdres1/td
 /tr
 tr
 tdres2/td
 tdres2/td
 /tr
 so..on...
 /table


 Thanks in advance,
 cdelfino



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


 

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



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


Re: [jQuery] Thickbox: Making Thickbox a top level project?

2006-09-13 Thread limodou
On 9/14/06, Yehuda Katz [EMAIL PROTECTED] wrote:
 I agree. We need an official plugin repository where we can stick
 top-level plugins.

 -- Yehuda

I agree too.

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


Re: [jQuery] Thickbox: Making Thickbox a top level project?

2006-09-13 Thread limodou
On 9/14/06, Yehuda Katz [EMAIL PROTECTED] wrote:
 As a side note, I've been working on a small app for Visual jQuery where
 developers can add new plugins (with demos), and users could then test and
 report the results on different platforms.

 It would go something like this:
 1) Developer uploads a JS file and HTML code with a demo in it.
 2) User browses plugins and selects one he likes.
 3) Demo appears in the browser
 4) User tests the demo. If the demo passes, the user checks the checkbox. It
 gets logged as a success for the user's browser. If it fails, the user
 enters some comments about the failure into the text area and submits the
 comments. It gets logged as a failure with the comment.

 Comments?

 -- Yehuda

That's great. I like it. Visual jQuery is a very handy reference I think.

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


[jQuery] iSortable iSlider help

2006-09-13 Thread Will Jessup
Hello,

I'm doing a script that requires combining iSortable, iSlider and others 
into one over-done interface.

Anyway, There are a few bugs I havn't been able to solve so i'm 
wondering if anyone can point me in the right direction or help me out 
(paid work).

http://www.willjessup.com/groop/hybrid2.html

everything works great in PC firefox.
On PC IE - when you click the thumbnail, the dropdown box is behind the 
other sort items.
On Safari - the isliderbar isn't locked into vertical only (you can 
slide it to the right)

If you can help me out hit me up on AIM at xdionysisx

Thanks,
Will


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


Re: [jQuery] Autocompleter Safari bug

2006-09-13 Thread j_birch
Is this the old case of Safari needing 'return false' as it doesn't
(didn't?) implement preventDefault correctly? I am not familiar with the
plugin code and am no javascript expert anyway so sorry if I am way off,
but I thought it may be relevant for you to look into.

Joel.

Quoting Geoff Knutzen [EMAIL PROTECTED]:

 In Safari, pressing return in the autocomplete dropdown will submit
 the form
 that the autocompleter is in. The preventDefault method is not
 working some
 reason. This is working fine (the form is not submitted) in IE and
 FF.
 
 Wondering if this is a bug in autocomplete or in jquery? 
 
 I am not really sure where to start with this one. If someone can
 point me
 in the right direction, I will continue to troubleshoot.
 
 -Geoff
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 
 



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


[jQuery] Sending JSON from client to server

2006-09-13 Thread Chris Domigan
Hi thereI'm just getting my head around the whole JSON thing, so please excuse my ignorance. For a while now I've been successfully fetching JSON data from the server via ajax and using it in jquery. My question regards sending data from the client to the server. The $.post and $.get methods are limited to taking in a hash of key:value's, I assume because that's what the http GET and POST expect. 
My question is, is there a way to send more complex data structures - ie fully qualified JSON objects? Is there a way to serialise a JSON object for submission to the server where it can be decoded?This is probably not a strict jquery question, but any help would be appreciated :)
Cheers,Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Snippet: serialize

2006-09-13 Thread limodou
I found that there is a serialize function in API document, but it
doesnot be included in 1.0.1 yet, and the basic function is param. But
param should be used as:

$.param($('input,select,textarea'))

but the result seems not correct, I don't know why. And I made this
snippet to handy serialization, I hope it has some useful.

$.fn.serialize = function(){
var s = [];
$('input, select, textarea', this[0]).each(function (){
if (this.name)
s.push(this.name + '=' + encodeURIComponent(this.value));
});
return s.join('');
}

example:

$('#main').serialize()

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


[jQuery] Jquery code contaiened in external files

2006-09-13 Thread bubulubueno

Hi, well I have been using Jquery for a project but I stick with a problem
specially with IE 6.

Well the problem is this.. 
I have some source code that I got from an ajax call into a main page. 
it contains jquery code and html.

With FF all works fine... but IE6 seems that it Doesn't register the events
for the new elements.

I hope I was clear.

Thanks for u reply.


-- 
View this message in context: 
http://www.nabble.com/Jquery-code-contaiened-in-external-files-tf2255636.html#a6256396
Sent from the JQuery forum at Nabble.com.


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


[jQuery] API Bug - PREV

2006-09-13 Thread Glen Lipka
In the API under PREV() it uses the syntax PREVIOUS in the example.Glen
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] code ideas: if mouseover for 5 seconds then do this else do nothi ng

2006-09-13 Thread Daniel Ruiz








Is there any way in jquery to do something like this?

if mouseover for 2 seconds then do this, else do nothing



Basically the client I have doesnt want to use
onclick to open a hidden navigation but they also dont like the
mouseover because a user may move over it by accident. What they want is something
in between so a user can move over a link to open the nav but have to hold it
there for a couple of seconds for it to trigger the function to show the nav.



Any ideas would help me a lot thank



Daniel






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


[jQuery] Is this a bug in XPath support?

2006-09-13 Thread Nigel
This doesn't work:
$([EMAIL PROTECTED]'bea-portal-layout-placeholder'][3])

I had to do it like this:
$([EMAIL PROTECTED]'bea-portal-layout-placeholder']:eq(3))

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


[jQuery] anyone got Date Picker plugin(downloaded) ?

2006-09-13 Thread Michael Grosser
The original Date-Picker page seems to be down (kelvinluck.com ) and i cant find it via wayback. Can anyone send me the plugin or host the file somewhere ?(maybe put it into jquery svn ?)
thanks in advance mfg MG

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


[jQuery] Adding tabs dynamically with plugin

2006-09-13 Thread bmckenzie

I'm new to jquery -- quite impressed. 

I'm trying to convert a page (built with prototype and scriptaculous)  where
clicking on a link adds a navigation tab with content fetched via Ajax.

I can add a tab ok with (using dom creator plugin) . But the tabs plugin (by
Klaus Hartl) seems to be set up to add behaviors to an existing set of list
items. How would I go about extending/binding? the plugin's behavior(s) to a
new member in the set?

Thanks,

Bruce
-- 
View this message in context: 
http://www.nabble.com/Adding-tabs-dynamically-with-plugin-tf2262729.html#a6278273
Sent from the JQuery forum at Nabble.com.


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


[jQuery] jquery suckerfish drop down

2006-09-13 Thread Kevin Quillen








Im attempting to use the Jquery suckerfish menu,
which works fantastically with text. However, I am trying to use images for
each parent li, and in IE images are not showing up. Is this not yet working in
IE? It seems fishy in Firefox as well. Perhaps I am not looking at the css
correctly, but I used the same from the SF example to make sure I wasnt
going crazy. When I class the li or the a tag and add a width and bg image, the
menu vanishes from IE and isnt so swell in Firefox. Could anyone help me
out, I would really like to use jquery to replace the old drop down menu we
have.






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


Re: [jQuery] Strange slideDown problem with nested lists

2006-09-13 Thread msams


wycats wrote:
 
 The problem I had was replicated in the nested list code used by
 http://be.twixt.us/jquery/treeView.php so it's not a markup-related issue.
 ...
 I'm not 100% sure what's causing the problem, but I'm pretty sure it has
 something to do with the new implementation of css and curCSS, and how it
 stores the state of dimensional information.
 

I am having the same issue. The treeView.php code works fine in jquery Built
May 12. But with any current version of jquery (e.g. 249, 231, or 288) the
height is not correctly restored.  Collapsing an inner element, then
collapsing its parent, then expanding them in reverse does makes the inner
child overlap other elements. The rest of the tree is not pushed down as
required.

-- 
View this message in context: 
http://www.nabble.com/Strange-slideDown-problem-with-nested-lists-tf1982325.html#a6295239
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Sending JSON from client to server

2006-09-13 Thread Will Jessup
Chris ,

Sure - just go here http://www.json.org/ and get the JSON library for 
whatever language you are using. It will take an incoming JSON object 
and translate it to an array in your language of choice. you can then 
act on it with (say php) do some stuff, and take your new array 
(generated w/ PHP) and convert it back to a JSON object and send it back 
to the browser.

Will
 Hi there

 I'm just getting my head around the whole JSON thing, so please excuse 
 my ignorance.

 For a while now I've been successfully fetching JSON data from the 
 server via ajax and using it in jquery. My question regards sending 
 data from the client to the server. The $.post and $.get methods are 
 limited to taking in a hash of key:value's, I assume because that's 
 what the http GET and POST expect.

 My question is, is there a way to send more complex data structures - 
 ie fully qualified JSON objects? Is there a way to serialise a JSON 
 object for submission to the server where it can be decoded?

 This is probably not a strict jquery question, but any help would be 
 appreciated :)


 Cheers,

 Chris
 

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


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


Re: [jQuery] Is this a bug in XPath support?

2006-09-13 Thread limodou
On 9/13/06, Nigel [EMAIL PROTECTED] wrote:
 This doesn't work:
 $([EMAIL PROTECTED]'bea-portal-layout-placeholder'][3])

 I had to do it like this:
 $([EMAIL PROTECTED]'bea-portal-layout-placeholder']:eq(3))

yeah. I think [3] should be used as:

$([EMAIL PROTECTED]'bea-portal-layout-placeholder'])[3]

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


Re: [jQuery] Is this a bug in XPath support?

2006-09-13 Thread limodou
On 9/14/06, John Resig [EMAIL PROTECTED] wrote:
  yeah. I think [3] should be used as:
 
  $([EMAIL PROTECTED]'bea-portal-layout-placeholder'])[3]

 That doesn't give you what you want. That returns a DOM element, not a
 jQuery object - a thus breaks the chain.

you are right. I don't know what' the next he want. But I think if you
want to use [3], the above should be the correct.

-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

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


Re: [jQuery] Sending JSON from client to server

2006-09-13 Thread Chris Domigan
Thanks Will, I followed your lead and eventually discovered John's JSON script with stuff like: Object.toJSON(obj), which was just what I was looking for :)Cheers,Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] code ideas: if mouseover for 5 seconds then do this else do nothi ng

2006-09-13 Thread Paul Bakaus
Hi there,well you have the function hover() and you can use it like this:$(#link).hover(function() {//Will be executed when you mouse over//Set a timer that will wait for 2 secswindow.setTimeout
(function() {$(#navigation).show(); //Show navi), 2000);},function() {//Will be executed when you move out again$(#navigation).hide(); //Hide navi});Hope this helps!
2006/9/13, Daniel Ruiz [EMAIL PROTECTED]:















Is there any way in jquery to do something like this?

if mouseover for 2 seconds then do this, else do nothing



Basically the client I have doesn't want to use
onclick to open a hidden navigation but they also don't like the
mouseover because a user may move over it by accident. What they want is something
in between so a user can move over a link to open the nav but have to hold it
there for a couple of seconds for it to trigger the function to show the nav.



Any ideas would help me a lot thank



Daniel







___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] Autocompleter Safari bug

2006-09-13 Thread Dylan Verheul
Geoff and others,

I have Mac and thus no Safari to debug in, but I could add a return
false for you if youre not sure where to add it yourself.

Geoff, sand me an email at [EMAIL PROTECTED] if you need assistance.
Or, maybe someone with a Mac will test if a return false works?

Dylan

On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Is this the old case of Safari needing 'return false' as it doesn't
 (didn't?) implement preventDefault correctly? I am not familiar with the
 plugin code and am no javascript expert anyway so sorry if I am way off,
 but I thought it may be relevant for you to look into.

 Joel.

 Quoting Geoff Knutzen [EMAIL PROTECTED]:

  In Safari, pressing return in the autocomplete dropdown will submit
  the form
  that the autocompleter is in. The preventDefault method is not
  working some
  reason. This is working fine (the form is not submitted) in IE and
  FF.
 
  Wondering if this is a bug in autocomplete or in jquery?
 
  I am not really sure where to start with this one. If someone can
  point me
  in the right direction, I will continue to troubleshoot.
 
  -Geoff
 
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 



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


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


Re: [jQuery] code ideas: if mouseover for 5 seconds then do this else do nothi ng

2006-09-13 Thread Klaus Hartl


Paul Bakaus schrieb:
 Hi there,
 well you have the function hover() and you can use it like this:
 
 $(#link).hover(function() {
 //Will be executed when you mouse over
 //Set a timer that will wait for 2 secs
 window.setTimeout (function() {
 $(#navigation).show(); //Show navi
 ), 2000);
 },
 function() {
 //Will be executed when you move out again
 $(#navigation).hide(); //Hide navi
 });
 
 Hope this helps!

There's also the incredible pause plugin. With that plugin I think you 
could write (not tested):

$(#link).hover(function() {
//Will be executed when you mouse over
//Set a timer that will wait for 2 secs
$(#navigation).pause(2000, 'fx').show(); //Show navi
},
function() {
//Will be executed when you move out again
$(#navigation).hide().unpause(); //Hide navi
});

-- Klaus

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


Re: [jQuery] code ideas: if mouseover for 5 seconds then do this else do nothi ng

2006-09-13 Thread Yehuda Katz
The code John posted regarding Form.observer is a good step in the right direction. I made some tweaks: $.fn.observe = function( time, callback ){ return this.each(function(){ var form = this, change = false;
  $(form.elements).keyup(function(){ change = true; });  setInterval(function(){ if ( change ) callback.call( form ); change = false;
 }, time * 1000.0); }); };An example: $(#searchform).observe(1, function() {  $(this).ajaxSubmit(#search_results); });This observes the form #searchform, and submits the form via ajaxSubmit when any form elements change. It places the results of the AJAX call in #search_results. Some small modifications could make this more general.
-- YehudaOn 9/13/06, Daniel Ruiz [EMAIL PROTECTED] wrote:















Is there any way in jquery to do something like this?

if mouseover for 2 seconds then do this, else do nothing



Basically the client I have doesn't want to use
onclick to open a hidden navigation but they also don't like the
mouseover because a user may move over it by accident. What they want is something
in between so a user can move over a link to open the nav but have to hold it
there for a couple of seconds for it to trigger the function to show the nav.



Any ideas would help me a lot thank



Daniel







___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer(ph)718.877.1325
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Adding tabs dynamically with plugin

2006-09-13 Thread Klaus Hartl


bmckenzie schrieb:
 I'm new to jquery -- quite impressed. 
 
 I'm trying to convert a page (built with prototype and scriptaculous)  where
 clicking on a link adds a navigation tab with content fetched via Ajax.
 
 I can add a tab ok with (using dom creator plugin) . But the tabs plugin (by
 Klaus Hartl) seems to be set up to add behaviors to an existing set of list
 items. How would I go about extending/binding? the plugin's behavior(s) to a
 new member in the set?
 
 Thanks,
 
 Bruce

The easiest way that came to my mind for now, without the need for 
changing the plugin, would be this:

After the new tab has been added do this (where #container is the div 
holding the tabs html):

$('#container').find('ullia').unclick().end().tabs();

Does that work?


-- Klaus

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


Re: [jQuery] code ideas: if mouseover for 5 seconds then do this else do nothi ng

2006-09-13 Thread Christof Donat
Hi,

I guess he needs something like this:

$(#link).hover(function() {
$(#navigation).each(function(){this.donthide = true;})
this.timeout = window.setTimeout(function() 
{$(#navigation).show();},2000);
},
function() {
// if we move out of the link before the timout has fired,
// we don't whant it to fire at all
if( this.timeout ) window.clearTimeout(this.timeout);
$(#navigation).each(function() {
// don't hide the menu if the mouse ist still over it
this.donthide = false;
if( !this.overme ) $(this).hide();
}
});
$(#navigation).hover(function(){
// while we are over the menu it should not be hidden by a mouseout
// on the link
this.overme=true;
},function(){
// a new mouseout event on the link should hide the navigation
this.overme = false;
// only hide the menu if the mouse has not moved over the link again.
if( !this.donthide ) $(this).hide();
});

Christof

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