[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread voltron

Thanks Mike, did not see that :-)

okay, the plugin works, but this is the error that I get from Firebug:

exception occured when checking element password1, check the
'password' methodjquery.validate.p... (line 14)
this.optional is not a function
(no name)("q", input#password1.{validate_reg_form:{required:true, q,
true)test.js (line 9)
e(input#password1.{validate_reg_form:{required:true,
q)jquery.validate.p... (line 14)
e(input#password1.{validate_reg_form:{required:true,
q)jquery.validate.p... (line 14)
e(input#password1.{validate_reg_form:{required:true,
q)jquery.validate.p... (line 14)
e()jquery.validate.p... (line 14)
e(Object type=blur)jquery-1.2.1.pack... (line 11)
e()jquery-1.2.1.pack... (line 11)
[Break on this error] return this.optional(element) || value.length >=
6 && /\d/.test(value) &...



On Sep 26, 1:29 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> The test.js file has this line twice:
>
> $(document).ready(function(){
>
> It looks like the second one is there by mistake.
>
> -Mike
>
> > From: voltron
> > Yes I get it too, adding the missing "}" does not help,
> > reformatting the JS causes unterminated string errors. The
> > code is exactly the same as you posted
> > > From: Jörn Zaefferer
> > > I get "missing } after function body" on line 24 of test.js via
> > > Firebug console (www.getfirebug.com).
> > > > From: voltron
> > > > Here is a test page:
> > > >http://www.nhytro.de/apache2-default/test_validation.html



[jQuery] Re: Upgrading to jQuery 1.2 article

2007-09-25 Thread Karl Swedberg



On Sep 25, 2007, at 2:47 PM, Danjojo wrote:



I would just like to say that the following article on upgrading to
1.2 and rewriting for the removed Dom traversal methods and Xpath
electors was very well written.

http://www.learningjquery.com/2007/09/upgrading-to-jquery-12#more-71

I understand quite alot about the jQuery changes by reading it.



Thanks for saying so. Glad you liked it and found it helpful.. :-)


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com





[jQuery] Re: Using "interface" for tooltips: tips appear under form dropdowns?

2007-09-25 Thread Karl Swedberg
is that happening in Internet Explorer only? If so, the bgiframe  
plugin can help.


http://blog.brandonaaron.net/my-jquery-plugins/background-iframe/

--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 25, 2007, at 2:20 PM, jsandppr wrote:




I'm using the latest jQuery and Interface.  When I hover over an area
with a ToolTip function assigned -- which works great -- the tooltip
appears over most of the page, but under any dropdown lists on the
form.

Is there a good way around this?  I've searched the archives, and only
found one mention of a different plug-in that has fixing this problem
on their to-do list.

Thanks!

jsandppr





[jQuery] About jQuery.yav date validation

2007-09-25 Thread weide

I Search the web and found code like down:

 > 2. Can one validate date formats form other countries like Germany?

This is a YAV config setting, by example Spain date format is
dd-MM-, so in the second map param
of the plugin I can set the YAV settings (see YAV reference):
$("#myform").yav({
onError:function(){
   $("#errorContainer").append($(".error"));  //Append all the
error
messages
   $(".error").not($("#errorContainer .error")).remove();  //
Remove
all the old errors but not in the errorContainer
}
},

//Yav preferences in a second map object param
{
DATE_FORMAT: 'dd-MM-'

});


But I have a problem.I set the DATE_FORMAT=-MM-dd
so "2007-09-26" is ok,but 2007-9-26 is not OK.

set -M-d,it seems not work



[jQuery] Re: ajaxcfc - how to write default error handler

2007-09-25 Thread Duncan

Hi Rey

Thanks for your response - after much trial and error I have worked
out the following:

Turn off the default handler:

$.AjaxCFCHelper.setUseDefaultErrorHandler(false);

In the $.AjaxCFC() use error:

$.AjaxCFC({
  url: "/packages/ajax/primaryInvitee.cfc",
  method: "addInvitee",
  data: options,
  error: function(r){
alert('All FUBAR.');
  },
  success: function(r) {
sDumper(r);
  }
});

If for example the server goes down or you get a connection error this
will display an alert.
This error method seems to for if the server goes down (i.e. you get a
connection error), the cfc has errors in it, or it doesn't exist.

This is definitely worth documenting, as when this goes to production
I don't want users getting the default error handler with the popup
window. In fact (and I know you will get to it eventually) any
documentation for the jQuery version would be awesome. I have thus far
done all this work blind by trial and error!

It seems to work in these scenarios I have tested, however this isnt
an exhaustive list of possibilities.

Duncan

On 9/26/07, Rey Bango <[EMAIL PROTECTED]> wrote:
>
> Duncan,
>
> I'll take a look at it. While jQuery is included in AjaxCFC, most people
> on this list don't code in CF so you may not get a quick reply.
>
> Rob Gonda and I will be setting up a support area http://ajaxcfc.com.
>
> Rey Bango...
>
> Duncan wrote:
> > Can anyone help me out with overriding the default error handler in ajaxcfc?
> >
> > On 9/24/07, Duncan <[EMAIL PROTECTED]> wrote:
> >> I am using the new ajaxcfc version in jquery and I want to know how to
> >> override the default and write my own error handler.
> >>
> >> I am trying to catch a timeout.
> >>
> >> can anyone point me in the right direction?
> >>
> >> --
> >> Duncan I Loxton
> >> [EMAIL PROTECTED]
> >>
> >
> >
>


-- 
Duncan I Loxton
[EMAIL PROTECTED]


[jQuery] Re: ajaxcfc - how to write default error handler

2007-09-25 Thread Rey Bango


Duncan,

I'll take a look at it. While jQuery is included in AjaxCFC, most people 
on this list don't code in CF so you may not get a quick reply.


Rob Gonda and I will be setting up a support area http://ajaxcfc.com.

Rey Bango...

Duncan wrote:

Can anyone help me out with overriding the default error handler in ajaxcfc?

On 9/24/07, Duncan <[EMAIL PROTECTED]> wrote:

I am using the new ajaxcfc version in jquery and I want to know how to
override the default and write my own error handler.

I am trying to catch a timeout.

can anyone point me in the right direction?

--
Duncan I Loxton
[EMAIL PROTECTED]






[jQuery] Re: $(function()

2007-09-25 Thread Karl Swedberg

That function is also shorthand for this in jQuery:
$(document).ready(function() {
 // do something when the DOM is ready
});

Some people like the shorthand. I prefer the longer form because it's  
more clear about what it is doing. Ultimate, it's a matter of  
personal taste.


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 25, 2007, at 5:49 PM, Matt Stith wrote:

Using a function like that is called an "anonymous" function, and  
in this case you are passing the anonymous function to the jQuery  
object, which stores it and calls on it when the DOM is finished  
loading.


On 9/25/07, Danjojo <[EMAIL PROTECTED]> wrote:

2 Questions.

1. are there the correct number of parenthesis in this code. Is there
a syntax error? It runs fine..

2. What is this idea of wrapping the code in like a blank function()
with no name? The one the looks like $function() ? I don't understand
it and I want to. Being a noob javascript coder I understand functions
like:

function myCall() {
// etc
}


$(function() {
$("#languages").bind('change', function() {
var country = $(this).val();
if(country) {
$('#countryFlag').attr("src", "images/" +  
country + ".gif");
$.cookie('language', country, {expires:  
7}); // set cookie

}
});
});






[jQuery] Re: ajaxcfc - how to write default error handler

2007-09-25 Thread Duncan

Can anyone help me out with overriding the default error handler in ajaxcfc?

On 9/24/07, Duncan <[EMAIL PROTECTED]> wrote:
> I am using the new ajaxcfc version in jquery and I want to know how to
> override the default and write my own error handler.
>
> I am trying to catch a timeout.
>
> can anyone point me in the right direction?
>
> --
> Duncan I Loxton
> [EMAIL PROTECTED]
>


-- 
Duncan I Loxton
[EMAIL PROTECTED]


[jQuery] Re: ajaxcfc - if ajax call fails - how does it get handled?

2007-09-25 Thread Duncan

>From what you have written it looks like you are just taking a stab in
the dark - do you use ajaxCFC?



On 9/25/07, Alexander Bilbie <[EMAIL PROTECTED]> wrote:
> It's just 'failure' then function etc..
>
> So from your script:
>
>
> $.AjaxCFC({
>  url: "/packages/ajax/primaryInvitee
> .cfc",
>  method: "addInvitee",
>  data: options,
>  success: function(r) {
>thisCheck = "check_" + r.LOGINID;
>thisLoad = "load_" + r.LOGINID;
>if( r.RESULT > 0){
>
> $('#'+thisLoad).attr("src","/pics/icon_tick_grey.gif");
>}else{
>
> $('#'+thisCheck).css("display","");
>
> $('#'+thisLoad).css("display","none");
>}
>//sDumper(r);
>  },
> failure: function(r) {
> $('#'+thisCheck).css("display","");
> $('#'+thisLoad).css("display","none");
> }
> })
>
>
>
>
>  On 24/09/2007, Duncan <[EMAIL PROTECTED]> wrote:
> >
> > I have a page that submits checkboxes as they are checked on the way
> > down a form.
> >
> > The click hides the checkbox for a loading gif, submits the ID via
> > ajax, and on its return changes the loading icon to a tick image.
> >
> > What I want to know is how to handle a failure of the ajax request.
> >
> > currently I have the following:
> >
> > $.AjaxCFC({
> >   url:
> "/packages/ajax/primaryInvitee.cfc",
> >   method: "addInvitee",
> >   data: options,
> >   success: function(r) {
> > thisCheck = "check_" + r.LOGINID;
> > thisLoad = "load_" + r.LOGINID;
> > if(r.RESULT > 0){
> >
> $('#'+thisLoad).attr("src","/pics/icon_tick_grey.gif");
> > }else{
> >
> $('#'+thisCheck).css("display","");
> >
> $('#'+thisLoad).css("display","none");
> > }
> > //sDumper(r);
> >   }
> >
> > I cant find a failure equivalent to "success:".
> >
> > What about a timeout? How would I handle this?
> >
> > Thanks in advance!
> >
> > --
> > Duncan I Loxton
> > [EMAIL PROTECTED]
> >
>
>
>
> --
> Kind Regards,
> Alex Bilbie
>
> Freelance website and graphics design
> Quite Good Media Ltd
>
> m: 07923 272797


-- 
Duncan I Loxton
[EMAIL PROTECTED]


[jQuery] Re: image preload problem (encore)

2007-09-25 Thread Erik Beeson
There are a lot of things that seem very strange about what you're doing.
Basic preloading can be a simple as:

function loadImages() {
$.each(arguments, function(i, url) {
var image = new Image();
image.onload = function() {
// do something with the image now that it's loaded
};
image.src = url;
});
};

$(window).load(function() {
loadImages('foo.jpg', 'bar.jpg', 'far.jpg');
});

If you want something a little more multi-purpose, you could do something
like:

function loadImages(urls, onLoad, onFinished) {
var loaded = 0;
urls = (url.constructor == Array) ? urls : [urls];
$.each(urls, function(i, url) {
var image = new Image();
image.onload = function() {
loaded++;
if($.isFunction(onLoad)) {
onLoad.call(this);
}
if(loadedCount == urls.length &&
$.isFunction(onFinished)) {
onFinished.call(this)
}
};
image.src = url;
});
};

$(window).load(function() {
loadImages(['foo.jpg', 'bar.jpg', 'far.jpg'], function() {
$('#images').append(this);
}, function() {
$('#images').show();
});
});

It kind of depends on your application. But like I said, you're doing a lot
of strange things in your current code. Maybe you should describe how
exactly you want to it work.

--Erik


On 9/25/07, dimitrisX < [EMAIL PROTECTED]> wrote:
>
>
> Hello,
> I am trying to preload some images using either one of the functions
> below. They don't seem to load. I really could use your help here.
>
> /// version 1
> jQuery.preloadImages = function()
> {
> for(var i = 0; i {
> $('').attr('src', arguments[i]);
> }
>
> }
>
> /// version 2 (not quite like the original)
> jQuery.preloadImages2 = function(){
> var args = arguments;
> $(window).bind('load', function(){
>var preload = new Array();
>for(var i = 0; i preload[i] = args[i];
> }
>$(document.createElement('img')).bind('load', function(){
> if(preload[0]){
> this.src = preload.shift();
> alert(this.src);
> }
>}).trigger('load').appendTo('#imagePanel');
> });
>
> }
>
> I then call one of those functions before the document loads, passing
> the desired image pathnames as arguments:
>
> $.preloadImages(
> "img/cedefop.jpg",
> "img/cedefop5.jpg",
> "img/sap.jpg",
> "img/igme5.jpg",
> "img/naxm.jpg",
> "img/olymp.jpg"
> );
>
> ...and then i try to append the preloaded images to a div element:
>
> $(document).ready( function(){
> images = $('img');
> $('#imagePanel').append(images)
>
> });
>
> The images will not load. What is wrong here?
> Thank you,
>
>


[jQuery] image preload problem (encore)

2007-09-25 Thread dimitrisX

Hello,
I am trying to preload some images using either one of the functions
below. They don't seem to load. I really could use your help here.

/// version 1
jQuery.preloadImages = function()
{
for(var i = 0; i').attr('src', arguments[i]);
}

}

/// version 2 (not quite like the original)
jQuery.preloadImages2 = function(){
var args = arguments;
$(window).bind('load', function(){
   var preload = new Array();
   for(var i = 0; i

[jQuery] Re: Why doesn't jQuery complete animations smoothly?

2007-09-25 Thread Olaf Bosch


Chris W. Parker schrieb:

Hello,

Maybe this has everything to do with implementation and is not a fault
of jQuery but I've always wondered why animations (like slideDown) do
not finish smoothly.

Case in point: http://leandrovieira.com/projects/jquery/lightbox/

The animation is smooth until the very end where it jumps to completion,
skipping several "frames" of motion. Why is that? I've noticed it in my
own basic animations too.


This problem is ever when you have set a margin or padding of animated 
objects. What change the height!

I try this CSS on this page in EditCSS in Firefox and animation is smooth:

#lightbox-container-image-data {
padding: 0 10px;
color: #666;
height:7em;
}
#lightbox-container-image-data #lightbox-image-details {
width: 70%;
float: left;
text-align: left;
}   
#lightbox-image-details-caption {
font-weight: bold;
}
#lightbox-image-details-currentNumber {
display: block;
clear: left;
}   
#lightbox-secNav-btnClose {
width: 66px;
float: right;
}


--
Viele Grüße, Olaf

---
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
---


[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread Michael Geary

The test.js file has this line twice:

$(document).ready(function(){

It looks like the second one is there by mistake.

-Mike

> From: voltron
> Yes I get it too, adding the missing "}" does not help, 
> reformatting the JS causes unterminated string errors. The 
> code is exactly the same as you posted

> > From: Jörn Zaefferer
> > I get "missing } after function body" on line 24 of test.js via 
> > Firebug console (www.getfirebug.com).

> > > From: voltron
> > > Here is a test page:
> > > http://www.nhytro.de/apache2-default/test_validation.html



[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread voltron

Yes I get it too, adding the missing "}" does not help, reformatting
the JS causes unterminated string errors. The code is exactly the same
as you posted

On Sep 25, 11:31 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> voltron schrieb:> Here is a test page:
> >http://www.nhytro.de/apache2-default/test_validation.html
>
> I get "missing } after function body" on line 24 of test.js via Firebug
> console (www.getfirebug.com).
>
> -- Jörn



[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
Do you have a live version I can look at?

On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>
>
>
> I very much understood what you said and tried it. but I'm getting null
> value
> from cookie
> var tempRows = new Array();
> tempRows.push({name:"vj",rollNo:10});
> tempRows.push({name:"vj",rollNo:10});
>   var v = objectToQueryString(tempRows,"&");
> alert(v); // which prints
> _name##"vj"**rollNo##10&&each=function%20
> but when I set the cookie to $.cookie('myCookie', v);
> and later when I tried to retrieve cookie like alert($.cookie('myCookie'))
> prints the null value.
> Not sure why this is happening.. Can u tell me why this happening.
> Regards,
> Vijay
>
>
>
> bmsterling wrote:
> >
> > I have a variable $sitedata, an object, that is structured like:
> >
> > {
> > 'fname':null,
> > 'lname':null,
> > moduleLevel: {
> > bPassed: null,
> > bContentComplete: null,
> > iNumAttempts: null,
> > dDateStart: month + "/" + day + "/" + year,//"6/25/2007",
> > dDateEnd: null,
> > sTestTaken: null,
> > sTestPassed: null,
> > sPageViewed: null
> > },
> > lessonLevel:{
> > _0_0:{
> > iLessonRef: 0,
> > iTopicRef: 0,
> > bIsDone: 0,
> > sInlineQuiz: '0',
> > sPageRef: 0
> > }
> > }
> > }
> >
> >
> >
> > Now, to get the object into a cookie we need to convert it to a
> > querysting,
> > like:
> >
> > objectToQueryString($sitedata,"&")
> >
> > which will return something like:
> >
> > fname=benjamin&lname=sterling etc
> >
> > If used like below:
> >
> > $.cookie('myCookie', objectToQueryString(myObject,"&"));
> >
> > Now our cookie is set, now we want to grab it again:
> >
> > var tempSiteData = $.cookie('myCookie');
> >
> > now we turn our querysting (fname=benjamin&lname=sterling)
> >
> > myObject = queryStringToObject(tempSiteData);
> >
> > into:
> >
> > {
> > fname :'benjamin',
> > lname :'sterling',
> > etc...
> > }
> >
> > Let me know if you understand.
> >
> > On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> Thanks for your great help. But I'm finding hard to know the exact
> syntax
> >> of
> >> how to use these functions. Can you tell me exact syntax of  how to use
> >> these functions objectToQueryString and  the function
> queryStringToObject
> >> given the array name "arrObject" which contains array of objects.
> >>
> >> Waiting for your response.
> >> Thanks in advance.
> >> Regards,
> >> Vijay Potluri
> >>
> >>
> >> bmsterling wrote:
> >> >
> >> > You can't store an Object/Array into a cookie, you will get the
> result
> >> you
> >> > are currently seeing.  The code I provided with convert your object
> >> into
> >> a
> >> > querystring, which can be stored, and stores that and when you want
> to
> >> > retrieve it, you pass the returned cookie value to the other function
> >> and
> >> > it
> >> > changes it back to an Object/Array.
> >> >
> >> > On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >>
> >> >> Sorry I didn't understand what you are trying to say. How this
> solves
> >> my
> >> >> problem of storing array of objects into the cookie. Can you try on
> >> your
> >> >> side of storing array of objects into cookie, so that later when I
> try
> >> to
> >> >> to
> >> >> retrive value from cookie I need to get array of objects but not
> >> string
> >> >> which is what happening right now.
> >> >>
> >> >> Thanks in advance.
> >> >>
> >> >> bmsterling wrote:
> >> >> >
> >> >> > Vij,
> >> >> > I am actually using the following functions in an app that uses
> the
> >> >> cookie
> >> >> > plugin:
> >> >> >
> >> >> > /**
> >> >> >  * @name sterilizeQueryString
> >> >> >  * @type function
> >> >> >  * @param {String} input
> >> >> >  * @desc Turns a query string into an object
> >> >> >  * @return Object b
> >> >> >  */
> >> >> > sterilizeQueryString = function(input,splitter,pair){
> >> >> > try{
> >> >> > if(typeof input != 'string') return null;
> >> >> > if(!splitter){
> >> >> > splitter = "&";
> >> >> > }
> >> >> > if(!pair) pair ="=";
> >> >> > var a = input.split(splitter), b = Array();
> >> >> > for(var i=0; i < a.length; i++)a[i] =
> a[i].split(pair);
> >> >> >
> >> >> > for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
> >> >> >
> >> >> > return b;
> >> >> > }
> >> >> > catch(e){
> >> >> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> >> >> > 'sterilizeQueryString();');
> >> >> > };
> >> >> > };
> >> >> >
> >> >> > objectToQueryString = function( a , joiner, pair) {
> >> >> > try{
> >> >> > var s = [];
> >> >> > if(!pair) pair ="=";
> >> >> > if((typeof a == "object")){
> >> >> > for(var j in a){
> >> >> > if(typeof a[j] == "object" && a[j]){
> >> >> > s.push(enco

[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri


I very much understood what you said and tried it. but I'm getting null value
from cookie
var tempRows = new Array();
tempRows.push({name:"vj",rollNo:10});
tempRows.push({name:"vj",rollNo:10});
  var v = objectToQueryString(tempRows,"&");
 alert(v); // which prints 
_name##"vj"**rollNo##10&&each=function%20
but when I set the cookie to $.cookie('myCookie', v);
and later when I tried to retrieve cookie like alert($.cookie('myCookie')) 
prints the null value.
Not sure why this is happening.. Can u tell me why this happening.
Regards,
Vijay



bmsterling wrote:
> 
> I have a variable $sitedata, an object, that is structured like:
> 
> {
> 'fname':null,
> 'lname':null,
> moduleLevel: {
> bPassed: null,
> bContentComplete: null,
> iNumAttempts: null,
> dDateStart: month + "/" + day + "/" + year,//"6/25/2007",
> dDateEnd: null,
> sTestTaken: null,
> sTestPassed: null,
> sPageViewed: null
> },
> lessonLevel:{
> _0_0:{
> iLessonRef: 0,
> iTopicRef: 0,
> bIsDone: 0,
> sInlineQuiz: '0',
> sPageRef: 0
> }
> }
> }
> 
> 
> 
> Now, to get the object into a cookie we need to convert it to a
> querysting,
> like:
> 
> objectToQueryString($sitedata,"&")
> 
> which will return something like:
> 
> fname=benjamin&lname=sterling etc
> 
> If used like below:
> 
> $.cookie('myCookie', objectToQueryString(myObject,"&"));
> 
> Now our cookie is set, now we want to grab it again:
> 
> var tempSiteData = $.cookie('myCookie');
> 
> now we turn our querysting (fname=benjamin&lname=sterling)
> 
> myObject = queryStringToObject(tempSiteData);
> 
> into:
> 
> {
> fname :'benjamin',
> lname :'sterling',
> etc...
> }
> 
> Let me know if you understand.
> 
> On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Thanks for your great help. But I'm finding hard to know the exact syntax
>> of
>> how to use these functions. Can you tell me exact syntax of  how to use
>> these functions objectToQueryString and  the function queryStringToObject
>> given the array name "arrObject" which contains array of objects.
>>
>> Waiting for your response.
>> Thanks in advance.
>> Regards,
>> Vijay Potluri
>>
>>
>> bmsterling wrote:
>> >
>> > You can't store an Object/Array into a cookie, you will get the result
>> you
>> > are currently seeing.  The code I provided with convert your object
>> into
>> a
>> > querystring, which can be stored, and stores that and when you want to
>> > retrieve it, you pass the returned cookie value to the other function
>> and
>> > it
>> > changes it back to an Object/Array.
>> >
>> > On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >> Sorry I didn't understand what you are trying to say. How this solves
>> my
>> >> problem of storing array of objects into the cookie. Can you try on
>> your
>> >> side of storing array of objects into cookie, so that later when I try
>> to
>> >> to
>> >> retrive value from cookie I need to get array of objects but not
>> string
>> >> which is what happening right now.
>> >>
>> >> Thanks in advance.
>> >>
>> >> bmsterling wrote:
>> >> >
>> >> > Vij,
>> >> > I am actually using the following functions in an app that uses the
>> >> cookie
>> >> > plugin:
>> >> >
>> >> > /**
>> >> >  * @name sterilizeQueryString
>> >> >  * @type function
>> >> >  * @param {String} input
>> >> >  * @desc Turns a query string into an object
>> >> >  * @return Object b
>> >> >  */
>> >> > sterilizeQueryString = function(input,splitter,pair){
>> >> > try{
>> >> > if(typeof input != 'string') return null;
>> >> > if(!splitter){
>> >> > splitter = "&";
>> >> > }
>> >> > if(!pair) pair ="=";
>> >> > var a = input.split(splitter), b = Array();
>> >> > for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
>> >> >
>> >> > for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
>> >> >
>> >> > return b;
>> >> > }
>> >> > catch(e){
>> >> > $.iLogger.log(e.name + ': ' + e.message, 'error',
>> >> > 'sterilizeQueryString();');
>> >> > };
>> >> > };
>> >> >
>> >> > objectToQueryString = function( a , joiner, pair) {
>> >> > try{
>> >> > var s = [];
>> >> > if(!pair) pair ="=";
>> >> > if((typeof a == "object")){
>> >> > for(var j in a){
>> >> > if(typeof a[j] == "object" && a[j]){
>> >> > s.push(encodeURIComponent(j) + pair + "__" +
>> >> > objectToQueryString(a[j],"**","##") +"__");
>> >> > }
>> >> > else{
>> >> > s.push( encodeURIComponent(j) + pair +
>> >> > encodeURIComponent( a[j] ) );
>> >> > }
>> >> > };
>> >> > return s.join(joiner);
>> >> > }
>> >> > else{
>> >> > return a;
>> >> >  

[jQuery] Re: dimensions issue?

2007-09-25 Thread Brandon Aaron
The jQuery collection is empty ... meaning it didn't match any any elements.
Which means my_element.length == 0

--
Brandon Aaron

On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>
>
>
> [Exception... "'Dimensions: jQuery collection is empty' when calling
> method:
> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
> (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]
>
> anyone know why this would happen?  here is that this happens on:
>
> $('.input:eq(' + index + ')').livequery('click', function()
> {
> if($('#' + indexs[index] + '_list').css('display') === 'none' &&
> $('#' + indexs[index] + '_list').text() != '')
> {
> //alert('start');
> var my_element = $('[EMAIL PROTECTED]' + indexs[index]
> +']').parent('div');
> var offset = my_element.offset();
> var height = my_element.height();
>
> var top = offset.top + height;
> var left = offset.left;
>
> $('#' + indexs[index] + '_list').css({'display': 'block',
>'top': top,
>'left': left,
>'z-index': 2,
>'border': '2px solid black'});
> //alert('end');
> }
> else
> {
> $('#' + indexs[index] + '_list').css({'display': 'none'});
> }
> });
> --
> View this message in context:
> http://www.nabble.com/dimensions-issue--tf4518540s15494.html#a12889201
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Validation Plugin 1.2 ETA

2007-09-25 Thread Aaron Heimlich
Jorn,

Is there an ETA on version 1.2 of your validation plugin?

Thanks,

Aaron

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


[jQuery] Re: code is ok but page is reloading itself

2007-09-25 Thread Glen Lipka
Is #open_menu an ?
If yes, put return false after the alert.

Glen

On 9/25/07, kamiseq <[EMAIL PROTECTED]> wrote:
>
>
> this is the code
> $('#open_menu').click(function(){
> $(this).next().filter('div').removeClass('hidden');
> alert('dd');
> });
> everything is fine until I will press ok (that shows that my code is
> ok) on the alert button. then surprisingly the page is reloaded. i
> really dont have any errors, I ve changed lib from pack to unpack and
> still something is wrong:(
>
>


[jQuery] Re: weird problem with remove or toggle Class

2007-09-25 Thread Glen Lipka
Can you post this example online?

Glen

On 9/25/07, kamiseq <[EMAIL PROTECTED]> wrote:
>
>
>
> I ve just downloaded new version of jquery 1.2.1 and i tried to do sth
> like
> that
>
> menu
> 
>  
>   zamknij
>  login.html?form_action=logout wyloguj
>  start.html start
> 
>  
>  
>   kontrahent
>   zamowienie
>   produkt
>   dokumenty
>   wynik wyszukiwania
>  
> 
> and my simple code in JQ is
> $(function(){
> $('#open_menu').click(function(){
> var $r = $(this).next().filter('div');
> $r.removeClass('hidden');
> });
> });
>
> result is that i dont have any errors or warning in js console, the sub
> menu
> is showing itself and suddenly after that page reloads itself due to
> something i really don't know.
>
> if I change code to something like that:
> $(function(){
> $('#open_menu').click(function(){
> $(this).next().filter('div').removeClass('hidden');
> });
> });
>
> then I have this:
>
> FIREBUG WARNING: [Exception... "Component returned failure code:
> 0x8000
> (NS_ERROR_UNEXPECTED) [nsIScriptableUnicodeConverter.ConvertToUnicode]"
> nsresult: "0x8000 (NS_ERROR_UNEXPECTED)"  location: "JS frame ::
> chrome://firebug/content/lib.js :: anonymous :: line 191"  data: no]
>
> Warning: Element referenced by ID/NAME in the global scope. Use W3C
> standard
> document.getElementById() instead.
> Source File:
> Line: 1
>
> Warning: Element referenced by ID/NAME in the global scope. Use W3C
> standard
> document.getElementById() instead.
> Source File: javascript: with (__scope__.vars) { with (__scope__.api) {
> with
> (__scope__.userVars) { with (window) {try
> {__scope__.callback(eval(__scope__.expr));} catch (exc)
> {__scope__.callback(exc, true);}
> Line: 1
>
> come one, what is wrong with my code or with that lib
> --
> View this message in context:
> http://www.nabble.com/weird-problem-with-remove-or-toggle-Class-tf4517184s15494.html#a12885125
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Re: In regards to xml "design"

2007-09-25 Thread Glen Lipka
Are you saying speed?  Or ease of programming?
Personally I like the second.  But I wouldn't call it TopLink, I would call
it   and valURL I would rename to HREF. :)
Then you could find all of the topLinks in the XML with one selector.
$("topLinks").

Either one is perfectly easy to manage with jQuery.  Just treat it as if
it's html.

alert(
  $("topLinks topLink[valUrl=home]").text();  //pops up SMC Home
)



Glen

On 9/25/07, Danjojo <[EMAIL PROTECTED]> wrote:
>
>
> If I am purposing to consume XML it seems logical that the XML be
> designed the best that it can FIRST before consuming with more complex
> javascript, xpath, or your flavor of the month.
>
> In that regard is what I have desinged easy to consume using jquery/
> ajax?
>
> 
> SMC Home
> Login
> Order Tracking
> My Parts List
> Contact
> Help
> Your Account
> 
>
> Or would I have an easier time (esspecially being more of a developer
> than a programmer) if my xml was done like this.
>
> 
> SMC Home
> Login
> Order Tracking
> My Parts List
> Contact
> Help
> Your Account
> 
>
> >From a dom perspective would it be easier to process the secont xml
> example?
>
> Or would the first one be just as easy whereby you could return the
> innertext value of every child of  ??
>
> Hope I am clear enough.
>
> Thank you.
>
>


[jQuery] Re: "Event Delegation" and "this" question

2007-09-25 Thread Michael Geary

I think event.target is what you're looking for all around, does that sound 
right?

//PAGINATION
var $target = $(event.target);
if ($target.is("a.pagination"))
{
$target.parent().load($target.attr("href"));
return false;
}

-Mike

> From: Matt81
> 
> I'm currently working on a site where I load in a series of 
> links (in a list) with some pagination links underneath 
> (a.pagination) into a div via an ajax request.
> 
> In order to bind click events to the anchors with a class 
> pagination, I've used the technique outlined on the jQuery 
> website, whereby I attach a click to the body, and then test 
> the event.target. Like so...
> 
> $("body").click
> (
> function(event)
> {
> //PAGINATION
> if ($(event.target).is("a.pagination"))
> {
> $(this).parent().load($(this).attr("href"));
> return false;
> }
> }
> );
> 
> This code does not work, and I believe the problem lies with 
> the use of the "this" keyword - could it be I'm referring to 
> the body element.
> As the content is loaded into the parent of the links, I need 
> a solution based along these lines... so any help would be 
> very much appreciated.
> 



[jQuery] Re: "Event Delegation" and "this" question

2007-09-25 Thread Jörn Zaefferer


Matt81 schrieb:

Hi there.

I'm currently working on a site where I load in a series of links (in
a list) with some pagination links underneath (a.pagination) into a
div via an ajax request.
[...]

This code does not work, and I believe the problem lies with the use
of the "this" keyword - could it be I'm referring to the body element.
As the content is loaded into the parent of the links, I need a
solution based along these lines... so any help would be very much
appreciated.
  

Have you tried replacing "this" with "event.target"?

-- Jörn



[jQuery] Question on using jQuery with other libs

2007-09-25 Thread Su
Is there still the requirement that jQuery be loaded /after/ the other
lib(s)? The wiki page on this[1] doesn't explicitly say so, but I do (now)
remember it being an important point in an earlier version of those docs
when it was on the main site. I just spent a good bit of Angry Time with
some scripting because I'd forgotten this, and pushing the library
(moo.ajaxin this case) above jQuery suddenly fixed my problem.

[1] http://docs.jquery.com/Using_jQuery_with_Other_Libraries


[jQuery] Re: $(function()

2007-09-25 Thread Matt Stith
Using a function like that is called an "anonymous" function, and in this
case you are passing the anonymous function to the jQuery object, which
stores it and calls on it when the DOM is finished loading.

On 9/25/07, Danjojo <[EMAIL PROTECTED]> wrote:
>
>
> 2 Questions.
>
> 1. are there the correct number of parenthesis in this code. Is there
> a syntax error? It runs fine..
>
> 2. What is this idea of wrapping the code in like a blank function()
> with no name? The one the looks like $function() ? I don't understand
> it and I want to. Being a noob javascript coder I understand functions
> like:
>
> function myCall() {
> // etc
> }
>
>
> $(function() {
> $("#languages").bind('change', function() {
> var country = $(this).val();
> if(country) {
> $('#countryFlag').attr("src", "images/" + country
> + ".gif");
> $.cookie('language', country, {expires: 7}); //
> set cookie
> }
> });
> });
>
>


[jQuery] I tried this but I got an error

2007-09-25 Thread Potluri


Suppose I've this array object 
 var tempRows = new Array();
tempRows.push({name:"vj",rollNo:10});
tempRows.push({name:"kr",rollNo:20});

I tried to do this copied all of your functions and

 $cookieName = 'rowCookie';
  $sitedata = tempRows; /* where tempRows is array of objects */
  getSetCookies(false);
 tempRows = getSetCookies(true);
alert(tempRows.length) // which should return 2 

When I tried to do this I got following error. 
$.iLogger has no properties in funtion getSetCookies.

Do I need to have some plugin to remove this error.


Potluri wrote:
> 
> Hi can you please tell me the syntax of calling these functions. I tried
> to do the following.
> 
> var $cookieName = "arrCookie" //Assuming this is the cookie name
> 
> where the value of the cookie is been set like in my case value should be
> array of objects?.
> 
> 1>> how to set value of this cookie ?
> I copied all the functions given by you 
> sterilizeQueryString = function(input,splitter,pair){
>   try{
>   if(typeof input != 'string') return null;
>   if(!splitter){
>   splitter = "&";
>   }
>   if(!pair) pair ="=";
>   var a = input.split(splitter), b = Array();
>   for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
>  
>   for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
>  
>   return b;
>   }
>   catch(e){
>   $.iLogger.log(e.name + ': ' + e.message,
> 'error','sterilizeQueryString();');
>   };
>   };
>  
>   objectToQueryString = function( a , joiner, pair) {
>   try{
>   var s = [];
>   if(!pair) pair ="=";
>   if((typeof a == "object")){
>   for(var j in a){
>   if(typeof a[j] == "object" && a[j]){
>   s.push(encodeURIComponent(j) + pair + "__"
> +objectToQueryString(a[j],"**","##") +"__");
>   }
>   else{
>   s.push( encodeURIComponent(j) + pair
> +encodeURIComponent( a[j] ) );
>   }
>   };
>   return s.join(joiner);
>   }
>   else{
>   return a;
>   };
>   }
>   catch(e){
>   $.iLogger.log(e.name + ': ' + e.message,
> 'error','objectToQueryString();');
>   };
>   };
>  
>   queryStringToObject = function(s){
>  try{
>  if(s && typeof s == "string"){
>  s = sterilizeQueryString(s);
>  for(var j in s){
>  if(/__(.*)__/.test(s[j])){
> s[j] = s[j].replace(/__/g,"");
>  s[j] = sterilizeQueryString(s[j],"**","##")
>  };
>  };
> return s;
> }
> else{
>  return s;
>  };
>  }
>  catch(e){
>  $.iLogger.log(e.name + ': ' + e.message,
> 'error','queryStringToObject();');
>  };
>  } 
> /**
>> >  * @name getSetCookies
>> >  * @example getSetCookies();
>> >  * @param {Boolean} getOnly
>> >  * @desc Purpose of this function is to set and get cookie data
>> >  * @see objectToQueryString
>> >  * @see queryStringToObject
>> >  */
>> > getSetCookies = function(getOnly){
>> > $.iLogger.log('getSetCookies();');
>> > try{
>> > //
>> > if(getOnly){
>> > var tempSiteData = $.cookie($cookieName);
>> > if(tempSiteData){
>> > $sitedata = queryStringToObject(tempSiteData);
>> > }
>> > else{
>> > $.cookie($cookieName,
>> objectToQueryString($sitedata,"&"),
>> > $cookieParams);
>> > }
>> > }
>> > else{
>> > $.cookie($cookieName, objectToQueryString($sitedata,"&"),
>> > $cookieParams);
>> > };
>> > }
>> > catch(e){
>> > $.iLogger.log(e.name + ': ' + e.message, 'error',
>> > 'getSetCookies();');
>> > };
>> > }; // end : getSetCookies 
> 
> I've doubt like do I need to use only getSetCookies function to get and
> set the object of array from cookie. or
> 
> As of my assumption  getSetCookies(false) should be used to set the value
> of cookie to query string.
> and getSetCookies(true) should bring back the array of object.
> 
> I think I'm missing something like how to set the value of cookie to be
> object of array and whats the exact syntax of how to make this work after
> copying the functions you've given.
> I hope you'll clarify my doubt.
> 
> Thanks.  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-cookie-plugin-when-trying-to-store-array-object-in-cookie-tf4516799s15494.html#a12889212
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Programming contest with $10,000 USD in prizes

2007-09-25 Thread Kendall

Hi everyone,

I work for MP3tunes.com and wanted to tell you about a programming
contest that we are having. There are 10 categories and each one is
worth $1,000 USD (for a total of $10,000 USD).

If you're feeling up to it --- show us how you might use jQuery to
interact with our API to do something useful. The ideas are due by
Sept. 28th. But, the final code isn't due until Nov. 5th.

You can find more information on our web site: http://mp3tunes.com/cb/contest

Best regards,

Kendall Dawson



[jQuery] Aaron Gustafson has a great ALA-Article on (Content-)Image Alignment and Consistency

2007-09-25 Thread [EMAIL PROTECTED]

Anyone already has a similar approach based on jQuery? If so, is there
a chance to share it?

Regards, Erik



[jQuery] tablesorter: border problem with scroll on the tbody

2007-09-25 Thread Marcelo Wolfgang





Hi all, 

First time posting here, so please excuse me if I break something ;)
I'm developing for the firt time with jQuery, mostly because of the
tablesorter plugin, but I'm having a weird problem on the table in this
page:

http://www.zerocinco.com.br/clientes/bottero/catalogo/linha.html

In FF the border of the cells do not scroll with the body, and in IE 6
it won't even display the table.
Can someone give me some advice on how to fix this code?

TIA
Marcelo Wolfgang






[jQuery] code is ok but page is reloading itself

2007-09-25 Thread kamiseq

this is the code
 $('#open_menu').click(function(){
$(this).next().filter('div').removeClass('hidden');
alert('dd');
});
everything is fine until I will press ok (that shows that my code is
ok) on the alert button. then surprisingly the page is reloaded. i
really dont have any errors, I ve changed lib from pack to unpack and
still something is wrong:(



[jQuery] Focusfields

2007-09-25 Thread Charles Sheehan-Miles

Hello all,

I'm new to jquery, so forgive me if I'm asking questions which have
been asked a thousand times.  I've searched through the list archives
and not had much luck with this one.

I'm using the focusfields plugin, which I found here:

http://www.texotela.co.uk/code/jquery/focusfields/

It works great on Firefox, Camino, etc., and the demo works fine on
IE.  But in my test setup, I get this error:

'this.parentNode.borderCss.off' is null or not an object

Error comes up as soon as the page loads.

I'm using jQuery 1.2 on my server, which is the one difference I found
from the demo page (which seems to be calling jquery-1.1.2.pack.js).
If this possibly a version difference, and the newer version doesn't
deal as well with IE?

Hope someone has some ideas,

Charles



[jQuery] Any sample project practice to follow ?

2007-09-25 Thread [EMAIL PROTECTED]

Hi everyone knows how jquery works, but a project that needs to handle
large amount of dynamic like Meboo.com , how actually coding in jquery
will win prototype ? and which is the best practice to code in ? for
example , each Tabs is dynamic, add , remove, rename, disable, hide,
show and every new tab added must have the basic event handling like
the above,  And disable will actually give another new event handling .



[jQuery] Upgrading to jQuery 1.2 article

2007-09-25 Thread Danjojo

I would just like to say that the following article on upgrading to
1.2 and rewriting for the removed Dom traversal methods and Xpath
electors was very well written.

http://www.learningjquery.com/2007/09/upgrading-to-jquery-12#more-71

I understand quite alot about the jQuery changes by reading it.

It seems overall the goal in 1.2 was to make the library compatible
with itself, since CSS/Javascript syntax is so different than XPath
syntax in the end they were incompatible with each other.



[jQuery] jquery ajax problem

2007-09-25 Thread luigi7up

Hello everyone, I think Ill go go nuts!

I already posted something about problem Im facing with but I didn't
get the right answer so Ill try again by expaining my problem further.

My PHP website is organised in following manner:

MAin file is index.php and it includes other files. So, my
"components" are included by setting URL for example index.php?
kom=gallery. Everything in gallery

file (and all others) is printed into global variable $htmlOutput.=
and is echoed at the end of execution of index.php.

Gallery file, for example, runs switch($_POST[task]) and calls
different functions depending on value of ($_POST[task].

One function outputs HTML form where you can input username. I want to
check if username is already taken by querying my database. Normal
check would be by

pressing submit button but I want ajax to check availability and to
output message. For ajax check I've set a function fAjaxCheck() that
is triggered by

$_POST[task] = ajaxCheck. That function looks like this

ajaxCheck()
{
//Find if DB has that us ername
//if database returns so mething it means tahat usuername is already
taken

if(empty($result))
{
//Username taken
echo "no";
exit;
}
else
{
//Username ok
echo "yes";
exit;
}

}

I get my index php page html as a result!!!

This is jquery Im using:

$.post(\"index.php?kom=gallery\",
{
  task:'is_username_taken',username: $('#username').val()},
  function(data){
  alert(data);
})

I can't understand why do I keep getting this result. exit() at the
and of if/else should stop script from working and my $htmlOutput
variable at the end of index.php sholud never be echoed.

Do you have any idea how to solve this? Why do I get all that html
when I shold be geting only things from my ajaxCheck() function, thing
I explicitly echo!?

Thank you and sory for the trouble...



[jQuery] "Event Delegation" and "this" question

2007-09-25 Thread Matt81

Hi there.

I'm currently working on a site where I load in a series of links (in
a list) with some pagination links underneath (a.pagination) into a
div via an ajax request.

In order to bind click events to the anchors with a class pagination,
I've used the technique outlined on the jQuery website, whereby I
attach a click to the body, and then test the event.target. Like so...

$("body").click
(
function(event)
{
//PAGINATION
if ($(event.target).is("a.pagination"))
{
$(this).parent().load($(this).attr("href"));
return false;
}
}
);

This code does not work, and I believe the problem lies with the use
of the "this" keyword - could it be I'm referring to the body element.
As the content is loaded into the parent of the links, I need a
solution based along these lines... so any help would be very much
appreciated.



[jQuery] weird problem with remove or toggle Class

2007-09-25 Thread kamiseq


I ve just downloaded new version of jquery 1.2.1 and i tried to do sth like
that

 menu 

 
  zamknij 
 login.html?form_action=logout wyloguj 
 start.html start 

 
 
  kontrahent 
  zamowienie 
  produkt 
  dokumenty 
  wynik wyszukiwania 
 

and my simple code in JQ is 
$(function(){
$('#open_menu').click(function(){
var $r = $(this).next().filter('div');
$r.removeClass('hidden');
});
});

result is that i dont have any errors or warning in js console, the sub menu
is showing itself and suddenly after that page reloads itself due to
something i really don't know. 

if I change code to something like that:
$(function(){
$('#open_menu').click(function(){
$(this).next().filter('div').removeClass('hidden');
});
});

then I have this:

FIREBUG WARNING: [Exception... "Component returned failure code: 0x8000
(NS_ERROR_UNEXPECTED) [nsIScriptableUnicodeConverter.ConvertToUnicode]" 
nsresult: "0x8000 (NS_ERROR_UNEXPECTED)"  location: "JS frame ::
chrome://firebug/content/lib.js :: anonymous :: line 191"  data: no]

Warning: Element referenced by ID/NAME in the global scope. Use W3C standard
document.getElementById() instead.
Source File: 
Line: 1

Warning: Element referenced by ID/NAME in the global scope. Use W3C standard
document.getElementById() instead.
Source File: javascript: with (__scope__.vars) { with (__scope__.api) { with
(__scope__.userVars) { with (window) {try
{__scope__.callback(eval(__scope__.expr));} catch (exc)
{__scope__.callback(exc, true);}
Line: 1

come one, what is wrong with my code or with that lib
-- 
View this message in context: 
http://www.nabble.com/weird-problem-with-remove-or-toggle-Class-tf4517184s15494.html#a12885125
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] $(function()

2007-09-25 Thread Danjojo

2 Questions.

1. are there the correct number of parenthesis in this code. Is there
a syntax error? It runs fine..

2. What is this idea of wrapping the code in like a blank function()
with no name? The one the looks like $function() ? I don't understand
it and I want to. Being a noob javascript coder I understand functions
like:

function myCall() {
 // etc
}


$(function() {
$("#languages").bind('change', function() {
var country = $(this).val();
if(country) {
$('#countryFlag').attr("src", "images/" + country + 
".gif");
$.cookie('language', country, {expires: 7}); // set 
cookie
}
});
});



[jQuery] Using "interface" for tooltips: tips appear under form dropdowns?

2007-09-25 Thread jsandppr


I'm using the latest jQuery and Interface.  When I hover over an area
with a ToolTip function assigned -- which works great -- the tooltip
appears over most of the page, but under any dropdown lists on the
form.

Is there a good way around this?  I've searched the archives, and only
found one mention of a different plug-in that has fixing this problem
on their to-do list.

Thanks!

jsandppr



[jQuery] weird problem with remove or toggle Class

2007-09-25 Thread kamiseq

I ve just downloaded new version of jquery 1.2.1 and i tried to do sth
like that

menu

 
zamknij
wyloguj
start

 
 
kontrahent
zamowienie
produkt
dokumenty
wynik wyszukiwania
 

and my simple code in JQ is
$(function(){
$('#open_menu').click(function(){
var $r = $(this).next().filter('div');
$r.removeClass('hidden');
});
});

result is that i dont have any errors or warning in js console, the
sub menu is showing itself and suddenly after that page reloads itself
due to something i really don't know.

if I change code to something like that:
$(function(){
$('#open_menu').click(function(){
$(this).next().filter('div').removeClass('hidden');
});
});

then I have this:

FIREBUG WARNING: [Exception... "Component returned failure code:
0x8000 (NS_ERROR_UNEXPECTED)
[nsIScriptableUnicodeConverter.ConvertToUnicode]"  nsresult:
"0x8000 (NS_ERROR_UNEXPECTED)"  location: "JS frame ::
chrome://firebug/content/lib.js :: anonymous :: line 191"  data: no]

Warning: Element referenced by ID/NAME in the global scope. Use W3C
standard document.getElementById() instead.
Source File:
Line: 1

Warning: Element referenced by ID/NAME in the global scope. Use W3C
standard document.getElementById() instead.
Source File: javascript: with (__scope__.vars) { with (__scope__.api)
{ with (__scope__.userVars) { with (window) {try
{__scope__.callback(eval(__scope__.expr));} catch (exc)
{__scope__.callback(exc, true);}
Line: 1

come one, what is wrong with my code or with that lib



[jQuery] Replace XPath Selectors and Removed DOM Traversal Methods

2007-09-25 Thread Danjojo

Was the main reason for the removal of XPath from the jQuery library
to keep the core library small?



[jQuery] In regards to xml "design"

2007-09-25 Thread Danjojo

If I am purposing to consume XML it seems logical that the XML be
designed the best that it can FIRST before consuming with more complex
javascript, xpath, or your flavor of the month.

In that regard is what I have desinged easy to consume using jquery/
ajax?


SMC Home
Login
Order Tracking
My Parts List
Contact
Help
Your Account


Or would I have an easier time (esspecially being more of a developer
than a programmer) if my xml was done like this.


SMC Home
Login
Order Tracking
My Parts List
Contact
Help
Your Account


>From a dom perspective would it be easier to process the secont xml
example?

Or would the first one be just as easy whereby you could return the
innertext value of every child of  ??

Hope I am clear enough.

Thank you.



[jQuery] Re: errors using carousel lite plugin

2007-09-25 Thread muccy

There are some other errors to correct...the plugin has strange
behaviours :(

On Sep 18, 9:04 pm, Adam Messinger <[EMAIL PROTECTED]> wrote:
> On Sep 18, 10:23 am, stef <[EMAIL PROTECTED]> wrote:
>
> > the error i get in firebug is:
>
> > tLi.gt is not a function
> > ul.prepend(tLi.gt(tl-v-1).clone()).append(tLi.lt(v).clone());
>
> If you're using jQuery 1.2.x, try adding the 1.1.x compatibility
> plugin into the mix:http://jquery.com/plugins/project/compat11
>
> -- Adam



[jQuery] Re: jCarousel Lite - version 1.0

2007-09-25 Thread muccy

Is it planned an upgrade for jQuery 1.2? :(



[jQuery] Re: input type text toUpperCase() jquery question

2007-09-25 Thread Frank Tudor
Anybody?

On 9/25/07, FrankTudor <[EMAIL PROTECTED]> wrote:
>
> As a user types in content to this this text field I would like tho
> force the text to uppercase to as keys are pressed.
>
> How would this be done?
>
> and is toUpperCase a real jquery function?  if not wbhat would be a
> simple way to hndle this with either CSS or someother method...
>
>
> Here is what I have and obviously I am stuck...
>
> 
> $(document).ready(function()
> {
> $('.highball').keypress( function()
> {
> $('.highball').toUpperCase()
> }
> );
> }
> );
> 
>
>
>  autocomplete="off" id="CityLocal" value="" type="text">
>
>
> Frank
>
>


[jQuery] Plugin to format date string

2007-09-25 Thread owen

I seem to recall seeing a plugin that would take a date-entry form
field and reformat the date the user enters according to a predefined
date format. Am I making that up? I can't seem to find it now.

  -- Owen



[jQuery] Re: jQuery 1.2.1 is auto evaling scripts from AJAX before DOM is ready

2007-09-25 Thread benjam

No,  I used the 'places the scripts at the end of the inserted HTML'
method that I didn't want to use.

It works, but this may be something that the developers will want to
tweak.

Thanks for all your suggestions though.

On Sep 21, 4:18 am, Andy <[EMAIL PROTECTED]> wrote:
> Benjam,
>
> Did you have any luck resolving this issue other than using the
> setTimeout method?
>
> thanks.
>
> On Sep 17, 11:20 pm,benjam<[EMAIL PROTECTED]> wrote:
>
> > I have a script that runs a clickable calendar date field, and this
> > script is being called in a form that is passed through AJAX.
>
> > When the form html is returned from the AJAX script, it is added to
> > the page and displayed.
>
> > The problem is that the script (which cames after the input field it
> > is referring to) is trying to look for said input field and is failing
> > to find it.  This leads me to believe that the javascript is being run
> > before the html has been fully integrated into the page, which is also
> > why there is nothing shown on the page when the errors pop up.
>
> > Here is a sample of the script that is being run:
> >  > class="datedDate" value="1969-12-31" type="text" />Calendar.setup({ "ifFormat" : "%Y-%m-%d", "daFormat" : "%Y/
> > %m/%d", "firstDay" : 0, "showOthers" : true, "inputField" : "f-
> > calendar-field-8da04fa6e1", "button" : "f-calendar-
> > trigger-8da04fa6e1"} );
>
> > Is there a way to delay eval of the scripts until after the html
> > content has been integrated into the page?



[jQuery] input type text toUpperCase() jquery question

2007-09-25 Thread FrankTudor

As a user types in content to this this text field I would like tho
force the text to uppercase to as keys are pressed.

How would this be done?

and is toUpperCase a real jquery function?  if not wbhat would be a
simple way to hndle this with either CSS or someother method...


Here is what I have and obviously I am stuck...


$(document).ready(function()
{
$('.highball').keypress( function()
{
$('.highball').toUpperCase()
}
);
}
);






Frank



[jQuery] Re: strange slice and eq behavior with star ratings + jQuery 1.2.1

2007-09-25 Thread Jim Spath

I've discovered the cause of the problem... slice() and eq() require
the arguments to be integers, and do not properly handle strings which
happen to only hold integers.

eq(3) != eq('3')

In my example, my problem is solved by doing the following:

 
stars.eq(parseInt(averageIndex)).addClass('on').children('a').css('width',
percent + "%");

Which forces an integer value to be passed to eq().

I'm not sure that this is a bug, but it is certainly not very
friendly...

On Sep 24, 4:38 pm, Jim Spath <[EMAIL PROTECTED]> wrote:
> There is a line in the (Wil Stuckey's) star ratings plugin that looks
> like this:
>
>   stars.eq(averageIndex).addClass('on').children('a').css('width',
> percent + "%");
>
> I found that the eq() function was not returning 1 item, but rather
> all matching items from averageIndex to the end of the items.
>
> My first thought was that perhaps a bug was introduced when eq() was
> removed then readded. so I changed it to use a slice:
>
>   stars.slice(averageIndex, averageIndex +
> 1).addClass('on').children('a').css('width', percent + "%");
>
> To my dismay, slice() was also refusing to return a single item!
>
> I decided at this point to try implementing this functionality via a
> selector:
>
>   $('div.star:eq('+averageIndex
> +')').addClass('on').children('a').css('width', percent + "%");
>
> This worked and only returned the single item I cared about.
>
> It seems like something is very wrong for eq() and slice(x, x+1) to
> both return more than a single element?  How can this possibly occur?
>
> - Jim



[jQuery] Re: jQuery for Floating Div

2007-09-25 Thread Pete Bekisz
Actually, Amazon looks the same again. I wonder what they're up to over
there

On 9/25/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> If amazon took theirs down, you can still see a similar example on
> Microsoft.  Wow, microsoft just changed their site pretty heavily.
> Try here http://msdn2.microsoft.com/en-us/default.aspx
> They optimize for IE7 of course.  Top right link.
>
> Glen
>
> On 9/24/07, Pete Bekisz <[EMAIL PROTECTED]> wrote:
> >
> > Glen --
> >
> > That's really slick! I don't think I'll be able to use it on this
> > project though, but I think it's great for a quicklinks feature. It just
> > pulled up Intuit -- what a slick site!
> >
> > On 9/24/07, Glen Lipka < [EMAIL PROTECTED]> wrote:
> > >
> > > Sorry Karl.  I just grabbed the one that came up first in google. :)
> > > Yeah, that amazon effect is really useful.
> > >
> > > I tried to do that with Intuit, but couldn't figure it out, so I ended
> > > up with the slideLinks instead.
> > > These did very well in usability studies.  Unexpected wow.
> > > http://www.commadot.com/jquery/slideMenu.php  (click links at top)
> > >
> > > Pete, even though its not what you asked for, it might be a good
> > > choice.
> > >
> > > Glen
> > >
> > > On 9/24/07, Karl Swedberg <[EMAIL PROTECTED] > wrote:
> > > >
> > > >  Hey Glen,
> > > >
> > > > That's actually a pretty old version of the plugin. A new(er) and
> > > > improved version can be found here:
> > > >
> > > > http://plugins.learningjquery.com/cluetip/demo/
> > > >
> > > > Pete,
> > > > Check out that URL above and click on the Examples link at the top
> > > > of the page. Then hover over the link that says "sort of like
> > > > amazon.com?" under the "Custom (temporary)" section. Maybe that's
> > > > something close to what you're looking for?
> > > >
> > > > One of these days when I'm not swamped with freelance work, I'd like
> > > > to write a stripped-down plugin that just does that amazon.comthing. A 
> > > > bunch of people have already asked for it.
> > > >
> > > > Cheers,
> > > >
> > > > --Karl
> > > >
> > > > On Sep 24, 2007, at 6:36 PM, Glen Lipka wrote:
> > > >
> > > > That's a nice effect.  I have been trying to do something like that
> > > > too.  Microsoft does a very similar thing.
> > > > Some helpful plugins to check out:
> > > > 1. Hoverintent.  Slows down the interaction to make sure the user
> > > > intended to 
> > > > mouseover.http://cherne.net/brian/resources/jquery.hoverIntent.html
> > > >
> > > > 2. ClueTip.  Shows one example of popup hovers like that. 
> > > > http://examples.learningjquery.com/62/demo/
> > > >
> > > >
> > > > There may be other plugins that help.  I am interested in this if
> > > > you nail it.
> > > >
> > > > Glen
> > > >
> > > >
> > > > On 9/24/07, Pete < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I'm trying to construct a "popover" menu that resembles the one on
> > > > >
> > > > > Amazon.com (put your mouse over "see all 43 product categories").
> > > > > I'm
> > > > > not too familiar with jQuery/JavaScript, but I thought I would be
> > > > > able
> > > > > to do something like this:
> > > > >
> > > > > $(document).ready(function(){
> > > > > $("#link").mouseover(function(){
> > > > > $("#popup_menu").show();
> > > > > return false;
> > > > > });
> > > > > $("#popup_menu").mouseout(function(){
> > > > > $(this).hide();
> > > > > return false;
> > > > > });
> > > > > });
> > > > >
> > > > > The problem is, as soon as you move your mouse off the link to go
> > > > > into
> > > > > the div, it collapses. Could someone please offer some examples/
> > > > > insight?
> > > > >
> > > > > If you'd like to see the page, here's a link: 
> > > > > http://www.keuka.edu/pete/jquery_float.html
> > > > >
> > > > >
> > > > > Thanks!
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
>


[jQuery] Re: jQuery().evalScripts is not a function (AjaxFileUpload and jquery 1.2)

2007-09-25 Thread deerchao

Thanks a lot!

On Sep 25, 7:43 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> Sure, use the 1.1 compatibility 
> plugin:http://dev.jquery.com/browser/trunk/plugins/compat-1.1/jquery.compat-...
>
> --John
>
> On 9/25/07, deerchao <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi, I'm using AjaxFileUpload 
> > fromhttp://www.phpletter.com/Demo/AjaxFileUpload-Demo/
> > , which is listed in the plugins page, and uses jQuery 1.1.3.
>
> > With jQuery 1.2, I always get a TypeError says
> > "jQuery("div").html(data).evalScripts is not a function".
>
> > Is there any way out?
> > Thaks!



[jQuery] Re: Select event on SELECT box

2007-09-25 Thread luigi7up

I meant something like mouseover - mouseout but in the context of
keybord celection I used deselect phrase...

Ill try this in a minute,

thank you

On Sep 24, 4:48 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> Check out this page to see the available events:http://docs.jquery.com/Events
>
> One you will probably need is $("select").change(...
> That fires when the user selects an option with keyboard or mouse.
>
> What do you mean "de-select"?
>
> Glen
>
> On 9/23/07, luigi7up <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > Im having problems SELECT box. I have few options in my box.
> > Some of them have class="unavailable" and for those I want to trigger
> > an event.
>
> > When you select option with that class:
> > //Do something
>
> > When you "deselect" it:
> > //do something else
>
> > I would like to find a solution for keybord and mouse select
>
> > Thank you



[jQuery] return var from $.get

2007-09-25 Thread [EMAIL PROTECTED]

Hi

Im newbie with Javascript/jQuery so this question may be lame...

I have something like that:

$.get('istracked.php',{'code': code}, function(data) {
if (data=='true')
{
r=true;
}
});

How can I use "r" outside $.get ?
$.get returns XMLHttpRequest

at the moment I know only one solution:
inside of $.get:
$('body').append(''+r+'');

and outside
r=$('span.temp').html();

Do you know how to solve my problem in proper way?

TIA
Michael



[jQuery] Re: slide to the left!

2007-09-25 Thread Simpel

Hi!

That does the trick! thank you!

On Sep 25, 3:25 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Sep 25, 2007, at 4:14 AM, Simpel wrote:
>
>
>
>
>
> > Hi everybody
>
> > I'm looking for a plugin or something like that witch has the same
> > functionality as the categories onhttp://www.deviantart.com/(click
> > on categories on the upper left side of the site...) What I'm after is
> > the functionality that when you click a category it slides to the left
> > and the subcategories appear with a back link. It would be great if it
> > works with an unordered list!!
>
> > I've been trying to mod the accordion plug in but I just won't get it
> > right! so...any help would be much appreciated!
>
> > Thanks in advance!
>
> > /Simpel
>
> Hi there,
>
> I think this plugin does what you're looking for:
>
> http://www.webappers.com/2007/09/05/smooth-and-clean-fastfind-menu-
> jquery-plugin/
>
> --Karl
> _
> Karl Swedbergwww.englishrules.comwww.learningjquery.com



[jQuery] Re: IT Assistant

2007-09-25 Thread Danjojo

The site is too slow.

Look into some benchmarks.

On Sep 24, 7:17 am, Gordon <[EMAIL PROTECTED]> wrote:
> Well it's finally ready enough to go live so now I can plug the big
> jQuery-driven project I've been working on.  It's called IT Assistant
> and is intended to make shopping to IT equipment easier (and more fun
> from the comments I've had back on it so far :) ).
>
> http://www.pcwb.com/assistants/
>
> the product selector page is almost entirely jQuery driven.  The
> follow up pages (accessories, upgrades, etc) are server-side based but
> they do make use of Thickbox for displaying Flash movies.



[jQuery] $.ajax url: ?

2007-09-25 Thread Danjojo

Hi guys,

In the same way I have used the cookie value to set which country flag
image is used, could I also alter the url: value in the $.ajax
funtion?

var country = $.cookie('language'); // get cookie

$('#countryFlag').attr("src", "images/" + country + ".gif");

$.ajax({
type: "GET",
url: "language_sheet_en.xml",
dataType: "xml",
success: function(xmlDocument){
alert("Hello World");
//$(xmlDocument).find(...).dosomeThing(...)
}
});

So if japan was selected in the language drop down box the document
name would become "language_sheet_jp.xml"

Thank you.



[jQuery] Focusfields

2007-09-25 Thread Charles Sheehan-Miles

Hello all,

I'm new to jquery, so forgive me if I'm asking questions which have  
been asked a thousand times.  I've searched through the list archives  
and not had much luck with this one.

I'm using the focusfields plugin, which I found here:

http://www.texotela.co.uk/code/jquery/focusfields/

It works great on Firefox, Camino, etc., and the demo works fine on  
IE.  But in my test setup, I get this error:

'this.parentNode.borderCss.off' is null or not an object

Error comes up as soon as the page loads.

I'm using jQuery 1.2 on my server, which is the one difference I  
found from the demo page (which seems to be calling  
jquery-1.1.2.pack.js).  If this possibly a version difference, and  
the newer version doesn't deal as well with IE?

Hope someone has some ideas,

Charles


[jQuery] Re: How to use google group ?

2007-09-25 Thread Pyrolupus

On Sep 25, 5:43 am, Fabrizio <[EMAIL PROTECTED]> wrote:
> I try to use this google group and it's the first time I use a google
> group. I wrote 3 differents message. I have a reply on only one of
> this but I never seen my new message on the list of the discussion.
>
> If some body could help to teacth me how the group and the discussion
> works ?
>
> I m French so if a frenchy could reply just one time in french i'll be
> very glad !!!

Sorry, no sprecken ze French, but:

Google Groups take some time--somewhere between a few minutes to a few
hours to never--to post your message.  It's slow, but it's free.

One of the jQuery users has started a forum at http://jqueryhelp.com/
- it doesn't have a whole lot of activity, yet, but it only started.
However, I have yet to see an unanswered post on there.

Pyro

Pyro



[jQuery] curvycorners wierd safari thing

2007-09-25 Thread [EMAIL PROTECTED]

hi all, im trying to get the curvy corners plugin to work in safari
and cant seem to do it.

I use the code below and it works fine in all browsers but Safari

$(document).ready(function(){
  var settings = {
  tl: { radius: 10 },
  tr: { radius: 10 },
  bl: { radius: 10 },
  br: { radius: 10 },
  antiAlias: true,
  autoPad: false,
  validTags: ["div"]
  }

$("#home-innerLeft").curvy(settings);
$("#curved-right1").curvy(settings);
$("#curved-right2").curvy(settings);
$("#curved-right3").curvy(settings);
  });

it works only for the first line, ie..

#home-innerLeft gets curved fine, and if i change the order the first
one each time works, but i cant see why - any ideas or do i have the
syntax wrong?

just to repeat  - the above code works a treat in ie6/7/ff/opera :S



[jQuery] Re: Avoid enter keypress to submit form

2007-09-25 Thread [EMAIL PROTECTED]

> Is there an non javascript way to avoid "enter" keystroke in an input
> to trigger the form submit or am I forced to catch keystroke code 13
> in javascript ?
>
> If force to do in javascript, is there a way to catch keystroke event
> of only one input and not window object ? Is there already a jquery
> plugin for this ?


--
document.onkeypress = function(e) {
  if (e.keyCode=='13')
  {
x = e||window.event;
t = x.target||x.srcElement;
if ($(t).parents('#foo').is('#foo'))
{
 alert('foo form');
  doActionOnlyOnFooForm();
}
  }
}









-
... or something like that (I didnt check)

Regards
Michael



[jQuery] Re: Avoid enter keypress to submit form

2007-09-25 Thread Peter Tung

2ways.

1. remove the type=submit button. you need to also use javascript to
submit form.

2. add key down, key up etc. on any elements you want to avoid enter,
not only window.

On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there an non javascript way to avoid "enter" keystroke in an input
> to trigger the form submit or am I forced to catch keystroke code 13
> in javascript ?
>
> If force to do in javascript, is there a way to catch keystroke event
> of only one input and not window object ? Is there already a jquery
> plugin for this ?
>
> Regards.
>
> --
> Fabien Meghazi
>
> Website:http://www.amigrave.com
> Email: [EMAIL PROTECTED]
> IM: [EMAIL PROTECTED]



[jQuery] Re: How to use google group ?

2007-09-25 Thread Danjojo

The other Frenchman is hiding. :)

Your message showed up fine.

On Sep 25, 5:43 am, Fabrizio <[EMAIL PROTECTED]> wrote:
> Hello ,
>
> I try to use this google group and it's the first time I use a google
> group. I wrote 3 differents message. I have a reply on only one of
> this but I never seen my new message on the list of the discussion.
>
> If some body could help to teacth me how the group and the discussion
> works ?
>
> I m French so if a frenchy could reply just one time in french i'll be
> very glad !!!
>
> Thank you !!!
>
> Fabrizio



[jQuery] Re: jQuery and XML revisited (tutorial)

2007-09-25 Thread Danjojo

Thank you.

I will have a look.


On Sep 24, 9:21 pm, Giant Jam Sandwich <[EMAIL PROTECTED]> wrote:
> This is a tutorial I posted this evening. I thought I might throw it
> up here in case anyone was interested.
>
> http://blog.reindel.com/2007/09/24/jquery-and-xml-revisited/
>
> Brian Reindel
> d'bug @ blog.reindel.com



[jQuery] Re: Open and search a .XML file

2007-09-25 Thread Danjojo

I am continuing to read the documentation at
http://docs.jquery.com/Specifying_the_Data_Type_for_AJAX_Requests

On Sep 24, 4:02 pm, Danjojo <[EMAIL PROTECTED]> wrote:
> Hi, thank you for helping me begin down this path.
>
> Before I use the $.ajax function, do I need to install a codebase for
> it?
>
> I notice it is similar to Klaus Hartl cookie plugin, where I install
> his codebase, then use it later like var country =
> $.cookie('language');
>
> When I start to use this code it seems almost like the rest of the
> working jQuery portions of the web page stop working.
> //$.ajax({
> //url: "language_sheet_en.xml",
> //dataType: "xml";
> //success: function(xmlDocument){
> //  $(xmlDocument).find(...).dosomeThing(...);
> //}
> //});
>
> Do I need to install an ajax library or is it allready available in my
> jQuery build:  * jQuery 1.1.3.1
>
> Thank you.
>
> On Sep 20, 2:18 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Danjojo schrieb:> Can anyone provide me a link of how to open an xml file 
> > using JQuery?
>
> > Try this:
>
> > $.ajax({
> > url: "file.xml",
> > dataType: "xml",
> > success: function(xmlDocument) {
> >   $(xmlDocument).find(...).dosomeThing(...);
> >}
>
> > });
>
> >http://docs.jquery.com/Ajax/jQuery.ajax#options
>
> > -- Jörn- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: Avoid enter keypress to submit form

2007-09-25 Thread Peter Tung

Yes, I think you can do it in many ways...

1. remove  button. Then the enter will not
invoke form's submit. But you should add form submit function in
somewhere.

2. You can catch the 13 keycode in any element's key event, not only
window object.

On 9月25日, 下午1时05分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there an non javascript way to avoid "enter" keystroke in an input
> to trigger the form submit or am I forced to catch keystroke code 13
> in javascript ?
>
> If force to do in javascript, is there a way to catch keystroke event
> of only one input and not window object ? Is there already a jquery
> plugin for this ?
>
> Regards.
>
> --
> Fabien Meghazi
>
> Website:http://www.amigrave.com
> Email: [EMAIL PROTECTED]
> IM: [EMAIL PROTECTED]



[jQuery] Re: New Plugin: Picklists

2007-09-25 Thread Danjojo

I think I can help with a suggestion.

When I came in as a first time user. I worked the first example up top
fine (the one with just the submit button).

Very fast, nice.

Then I went to the second one. At first thought it was similar. Add a
few then saw I could remove. So I tried removing from the top select
pane 2 or 3 times.

I would move the Remove Item button down below the bottom pane so it
is obvious it is used to remove items from that pane.

I like it a lot.

I would just call it MultiSelect.



On Sep 25, 6:28 am, "george.gsgd" <[EMAIL PROTECTED]> wrote:
> Ah, that's interesting, hadn't thought of using it other than onload,
> will have a look at that, thanks.
>
> I think I've got to use html() to transfer the options so I can
> preserve any optgroups, but I'll have a good look at your code.
>
> On Sep 24, 6:25 pm, "Leonardo K" <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a suggestion:
>
> > Example: If u have a select multiple with few options already selected.
>
> > When the plugin is activeted it move all options to another select but it
> > lose all options selected before.
>
> > Instead of this:
>
> > function moveAllOptions(from, to) {
> > jQuery("#"+to).html(jQuery("#"+from).html())
> > .find('option:selected')
> > .attr("selected", false);
> > jQuery("#"+from).html('');
> > }
>
> > change for:
>
> > function moveAllOptions(from, to) {
> > var dest = jQuery("#"+to);
> > jQuery("#"+from).find("option").each(function(){
> > dest.append(this);
> > });
> > jQuery("#"+from).html('');
> > if (dest.find("option:selected").size() >= 1)
> > addTo(to, from);
> > }
>
> > I dont know if I make myself clear.
>
> > On 9/24/07, Stephan Beal <[EMAIL PROTECTED]> wrote:
>
> > > On Sep 24, 4:12 pm, "george.gsgd" <[EMAIL PROTECTED]> wrote:
> > > > Can anyone help me come up with a better name for this? I struggled to
> > > > come up with 'Picklists', and I'm not sure it's particularly
> > > > descriptive or obvious...
>
> > > a) Linked Selection?
> > > b) Chained Selection?
> > > c) ... err... Natural Selection? ;)
> > > d) s2s: Select To Select (sounds like an AT&T calling plan)
>
> > > That's pretty slick, by the way. :)- Hide quoted text -
>
> - Show quoted text -



[jQuery] $.ajax ?

2007-09-25 Thread Danjojo

Before I use the $.ajax function, do I need to install a codebase for
it?

I notice it is similar to Klaus Hartl cookie plugin, where I install
his codebase, then use it later like var country =
$.cookie('language');

When I start to use this code it seems almost like the rest of the
working jQuery portions of the web page stop working.
$.ajax({
url: "language_sheet_en.xml",
dataType: "xml";
success: function(xmlDocument){
$(xmlDocument).find(...).dosomeThing(...);
}
});

Do I need to install an ajax library or is it allready available in
my
jQuery build:  * jQuery 1.1.3.1


Thank you.



[jQuery] curvycorners wierd safari thing

2007-09-25 Thread billybrag


hi all, im trying to get the curvy corners plugin to work in safari and cant
seem to do it.

I use the code below and it works fine in all browsers but Safari

$(document).ready(function(){
  var settings = {
  tl: { radius: 10 },
  tr: { radius: 10 },
  bl: { radius: 10 },
  br: { radius: 10 },
  antiAlias: true,
  autoPad: false,
  validTags: ["div"]
  }

$("#home-innerLeft").curvy(settings);
$("#curved-right1").curvy(settings);
$("#curved-right2").curvy(settings);
$("#curved-right3").curvy(settings);
  });

it works only for the first line, ie..

#home-innerLeft gets curved fine, and if i change the order the first one
each time works, but i cant see why - any ideas or do i have the syntax
wrong?

just to repeat  - the above code works a treat in ie6/7/ff/opera :S
-- 
View this message in context: 
http://www.nabble.com/curvycorners-wierd-safari-thing-tf4514708s15494.html#a12876944
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] dimensions issue?

2007-09-25 Thread Eridius


[Exception... "'Dimensions: jQuery collection is empty' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]

anyone know why this would happen?  here is that this happens on:

$('.input:eq(' + index + ')').livequery('click', function()
{
if($('#' + indexs[index] + '_list').css('display') === 'none' &&
$('#' + indexs[index] + '_list').text() != '')
{
//alert('start');
var my_element = $('[EMAIL PROTECTED]' + indexs[index]
+']').parent('div');
var offset = my_element.offset();
var height = my_element.height();

var top = offset.top + height;
var left = offset.left;

$('#' + indexs[index] + '_list').css({'display': 'block',
   'top': top,
   'left': left,
   'z-index': 2,
   'border': '2px solid black'});
//alert('end');
}
else
{
$('#' + indexs[index] + '_list').css({'display': 'none'});
}
});
-- 
View this message in context: 
http://www.nabble.com/dimensions-issue--tf4518540s15494.html#a12889201
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Validate plugin limited? with line error

2007-09-25 Thread Jörn Zaefferer


Jean schrieb:

Sorry for my previous email talking about the limitation of Validate
plugin with 50 or more elements to validade. Is not an error but the
script stops in this line
  

Can you post a test page for that issue?

-- Jörn


[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread Jörn Zaefferer


voltron schrieb:

Here is a test page:
http://www.nhytro.de/apache2-default/test_validation.html
  
I get "missing } after function body" on line 24 of test.js via Firebug 
console (www.getfirebug.com).


-- Jörn


[jQuery] Re: Can we store array of objects into cookie

2007-09-25 Thread Potluri


Hi can you please tell me the syntax of calling these functions. I tried to
do the following.

var $cookieName = "arrCookie" //Assuming this is the cookie name

where the value of the cookie is been set like in my case value should be
array of objects?.

1>> how to set value of this cookie ?
I copied all the functions given by you 
sterilizeQueryString = function(input,splitter,pair){
  try{
  if(typeof input != 'string') return null;
  if(!splitter){
  splitter = "&";
  }
  if(!pair) pair ="=";
  var a = input.split(splitter), b = Array();
  for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
 
  for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
 
  return b;
  }
  catch(e){
  $.iLogger.log(e.name + ': ' + e.message,
'error','sterilizeQueryString();');
  };
  };
 
  objectToQueryString = function( a , joiner, pair) {
  try{
  var s = [];
  if(!pair) pair ="=";
  if((typeof a == "object")){
  for(var j in a){
  if(typeof a[j] == "object" && a[j]){
  s.push(encodeURIComponent(j) + pair + "__"
+objectToQueryString(a[j],"**","##") +"__");
  }
  else{
  s.push( encodeURIComponent(j) + pair
+encodeURIComponent( a[j] ) );
  }
  };
  return s.join(joiner);
  }
  else{
  return a;
  };
  }
  catch(e){
  $.iLogger.log(e.name + ': ' + e.message,
'error','objectToQueryString();');
  };
  };
 
  queryStringToObject = function(s){
 try{
 if(s && typeof s == "string"){
 s = sterilizeQueryString(s);
 for(var j in s){
 if(/__(.*)__/.test(s[j])){
s[j] = s[j].replace(/__/g,"");
 s[j] = sterilizeQueryString(s[j],"**","##")
 };
 };
return s;
}
else{
 return s;
 };
 }
 catch(e){
 $.iLogger.log(e.name + ': ' + e.message,
'error','queryStringToObject();');
 };
 } 
/**
> >  * @name getSetCookies
> >  * @example getSetCookies();
> >  * @param {Boolean} getOnly
> >  * @desc Purpose of this function is to set and get cookie data
> >  * @see objectToQueryString
> >  * @see queryStringToObject
> >  */
> > getSetCookies = function(getOnly){
> > $.iLogger.log('getSetCookies();');
> > try{
> > //
> > if(getOnly){
> > var tempSiteData = $.cookie($cookieName);
> > if(tempSiteData){
> > $sitedata = queryStringToObject(tempSiteData);
> > }
> > else{
> > $.cookie($cookieName,
> objectToQueryString($sitedata,"&"),
> > $cookieParams);
> > }
> > }
> > else{
> > $.cookie($cookieName, objectToQueryString($sitedata,"&"),
> > $cookieParams);
> > };
> > }
> > catch(e){
> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> > 'getSetCookies();');
> > };
> > }; // end : getSetCookies 

I've doubt like do I need to use only getSetCookies function to get and set
the object of array from cookie. or

As of my assumption  getSetCookies(false) should be used to set the value of
cookie to query string.
and getSetCookies(true) should bring back the array of object.

I think I'm missing something like how to set the value of cookie to be
object of array and whats the exact syntax of how to make this work after
copying the functions you've given.

Thanks.  



bmsterling wrote:
> 
> Vijay,
> I answered your question in your other posting.
> 
> On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Hi,
>>   I'm having trouble storing array of objects into cookie like
>> var arr = [];
>> arr.push({index:1,name:"vijay"});
>> arr.push({index:2,name:"krish"});
>>
>> When I'm trying to store array of objects into cookie usin g jquery
>> cookie
>> plugin like
>> $.cookie("arrCookie",arr);, It's not storing array object but a string as
>> [object Object],[object Object] indeed.
>>
>> So, when I'm trying to retrieve the value in cookie its returning a
>> string
>> [object Object],[object Object] which is frustrating.
>>
>> Can anyone of you know a way to store array of objects into cookie.
>>
>> Thanks in advance.
>> Vijay
>> --
>> View this message in context:
>> http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12889163
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
I have a variable $sitedata, an object, that is structured like:

{
'fname':null,
'lname':null,
moduleLevel: {
bPassed: null,
bContentComplete: null,
iNumAttempts: null,
dDateStart: month + "/" + day + "/" + year,//"6/25/2007",
dDateEnd: null,
sTestTaken: null,
sTestPassed: null,
sPageViewed: null
},
lessonLevel:{
_0_0:{
iLessonRef: 0,
iTopicRef: 0,
bIsDone: 0,
sInlineQuiz: '0',
sPageRef: 0
}
}
}



Now, to get the object into a cookie we need to convert it to a querysting,
like:

objectToQueryString($sitedata,"&")

which will return something like:

fname=benjamin&lname=sterling etc

If used like below:

$.cookie('myCookie', objectToQueryString(myObject,"&"));

Now our cookie is set, now we want to grab it again:

var tempSiteData = $.cookie('myCookie');

now we turn our querysting (fname=benjamin&lname=sterling)

myObject = queryStringToObject(tempSiteData);

into:

{
fname :'benjamin',
lname :'sterling',
etc...
}

Let me know if you understand.

On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>
>
>
> Thanks for your great help. But I'm finding hard to know the exact syntax
> of
> how to use these functions. Can you tell me exact syntax of  how to use
> these functions objectToQueryString and  the function queryStringToObject
> given the array name "arrObject" which contains array of objects.
>
> Waiting for your response.
> Thanks in advance.
> Regards,
> Vijay Potluri
>
>
> bmsterling wrote:
> >
> > You can't store an Object/Array into a cookie, you will get the result
> you
> > are currently seeing.  The code I provided with convert your object into
> a
> > querystring, which can be stored, and stores that and when you want to
> > retrieve it, you pass the returned cookie value to the other function
> and
> > it
> > changes it back to an Object/Array.
> >
> > On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> Sorry I didn't understand what you are trying to say. How this solves
> my
> >> problem of storing array of objects into the cookie. Can you try on
> your
> >> side of storing array of objects into cookie, so that later when I try
> to
> >> to
> >> retrive value from cookie I need to get array of objects but not string
> >> which is what happening right now.
> >>
> >> Thanks in advance.
> >>
> >> bmsterling wrote:
> >> >
> >> > Vij,
> >> > I am actually using the following functions in an app that uses the
> >> cookie
> >> > plugin:
> >> >
> >> > /**
> >> >  * @name sterilizeQueryString
> >> >  * @type function
> >> >  * @param {String} input
> >> >  * @desc Turns a query string into an object
> >> >  * @return Object b
> >> >  */
> >> > sterilizeQueryString = function(input,splitter,pair){
> >> > try{
> >> > if(typeof input != 'string') return null;
> >> > if(!splitter){
> >> > splitter = "&";
> >> > }
> >> > if(!pair) pair ="=";
> >> > var a = input.split(splitter), b = Array();
> >> > for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
> >> >
> >> > for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
> >> >
> >> > return b;
> >> > }
> >> > catch(e){
> >> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> >> > 'sterilizeQueryString();');
> >> > };
> >> > };
> >> >
> >> > objectToQueryString = function( a , joiner, pair) {
> >> > try{
> >> > var s = [];
> >> > if(!pair) pair ="=";
> >> > if((typeof a == "object")){
> >> > for(var j in a){
> >> > if(typeof a[j] == "object" && a[j]){
> >> > s.push(encodeURIComponent(j) + pair + "__" +
> >> > objectToQueryString(a[j],"**","##") +"__");
> >> > }
> >> > else{
> >> > s.push( encodeURIComponent(j) + pair +
> >> > encodeURIComponent( a[j] ) );
> >> > }
> >> > };
> >> > return s.join(joiner);
> >> > }
> >> > else{
> >> > return a;
> >> > };
> >> > }
> >> > catch(e){
> >> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> >> > 'objectToQueryString();');
> >> > };
> >> > };
> >> >
> >> > queryStringToObject = function(s){
> >> > try{
> >> > if(s && typeof s == "string"){
> >> > s = sterilizeQueryString(s);
> >> > for(var j in s){
> >> > if(/__(.*)__/.test(s[j])){
> >> > s[j] = s[j].replace(/__/g,"");
> >> > s[j] = sterilizeQueryString(s[j],"**","##")
> >> > };
> >> > };
> >> > return s;
> >> > }
> >> > else{
> >> > return s;
> >> > };
> >> > }
> >> > catch(e){
> >> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> >> > 'queryStringTo

[jQuery] Re: an "Undo" plugin, or something as such. :-)

2007-09-25 Thread Webbie Master
sdsdfsdfds

> Date: Mon, 24 Sep 2007 22:08:06 +0200> From: [EMAIL PROTECTED]> To: 
> jquery-en@googlegroups.com> Subject: [jQuery] Re: an "Undo" plugin, or 
> something as such. :-)> > > Steve Finkelstein schrieb:> > Hi all,> >> > I was 
> curious if there is anyone currently working on an 'Undo' type> > plugin for 
> the jQuery platform. Essentially, similar functionality to> > what gmail 
> offers is desired by many. If not in the works, I wouldn't> > mind giving it 
> a shot myself.> > > Implementing an undo functionality requires quite some 
> work on the > serverside, as it is always some persistent state that is 
> undone. Where > do you think could a jQuery plugin help to implement that?> > 
> -- Jörn
_
Probeer Live Search: de zoekmachine van de makers van MSN!
http://www.live.com/?searchOnly=true

[jQuery] Validate plugin limited? with line error

2007-09-25 Thread Jean

Sorry for my previous email talking about the limitation of Validate
plugin with 50 or more elements to validade. Is not an error but the
script stops in this line

line 487
lem.tagName && elem.ownerDocument && !elem.ownerDocument.body;

jquery-1.2.1
-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Validate plugin limited?

2007-09-25 Thread Jean

Is a limite of how much inputs we can validate? I have a form with 52
questions what is {required:true} very required. In a 29 questions
required it works fine!

-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread voltron

Here is a test page:
http://www.nhytro.de/apache2-default/test_validation.html


Thanks


On Sep 25, 7:50 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> voltron schrieb:> Yes, I added the method, this is what I have now [...]
>
> I can't see anything wrong with that. Can you post a test page?
>
> It may also help to use the debug-option, just specify validate({ debug:
> true, ...}).
>
> -- Jörn



[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri


Thanks for your great help. But I'm finding hard to know the exact syntax of
how to use these functions. Can you tell me exact syntax of  how to use
these functions objectToQueryString and  the function queryStringToObject
given the array name "arrObject" which contains array of objects. 

Waiting for your response.
Thanks in advance.
Regards,
Vijay Potluri


bmsterling wrote:
> 
> You can't store an Object/Array into a cookie, you will get the result you
> are currently seeing.  The code I provided with convert your object into a
> querystring, which can be stored, and stores that and when you want to
> retrieve it, you pass the returned cookie value to the other function and
> it
> changes it back to an Object/Array.
> 
> On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Sorry I didn't understand what you are trying to say. How this solves my
>> problem of storing array of objects into the cookie. Can you try on your
>> side of storing array of objects into cookie, so that later when I try to
>> to
>> retrive value from cookie I need to get array of objects but not string
>> which is what happening right now.
>>
>> Thanks in advance.
>>
>> bmsterling wrote:
>> >
>> > Vij,
>> > I am actually using the following functions in an app that uses the
>> cookie
>> > plugin:
>> >
>> > /**
>> >  * @name sterilizeQueryString
>> >  * @type function
>> >  * @param {String} input
>> >  * @desc Turns a query string into an object
>> >  * @return Object b
>> >  */
>> > sterilizeQueryString = function(input,splitter,pair){
>> > try{
>> > if(typeof input != 'string') return null;
>> > if(!splitter){
>> > splitter = "&";
>> > }
>> > if(!pair) pair ="=";
>> > var a = input.split(splitter), b = Array();
>> > for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
>> >
>> > for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
>> >
>> > return b;
>> > }
>> > catch(e){
>> > $.iLogger.log(e.name + ': ' + e.message, 'error',
>> > 'sterilizeQueryString();');
>> > };
>> > };
>> >
>> > objectToQueryString = function( a , joiner, pair) {
>> > try{
>> > var s = [];
>> > if(!pair) pair ="=";
>> > if((typeof a == "object")){
>> > for(var j in a){
>> > if(typeof a[j] == "object" && a[j]){
>> > s.push(encodeURIComponent(j) + pair + "__" +
>> > objectToQueryString(a[j],"**","##") +"__");
>> > }
>> > else{
>> > s.push( encodeURIComponent(j) + pair +
>> > encodeURIComponent( a[j] ) );
>> > }
>> > };
>> > return s.join(joiner);
>> > }
>> > else{
>> > return a;
>> > };
>> > }
>> > catch(e){
>> > $.iLogger.log(e.name + ': ' + e.message, 'error',
>> > 'objectToQueryString();');
>> > };
>> > };
>> >
>> > queryStringToObject = function(s){
>> > try{
>> > if(s && typeof s == "string"){
>> > s = sterilizeQueryString(s);
>> > for(var j in s){
>> > if(/__(.*)__/.test(s[j])){
>> > s[j] = s[j].replace(/__/g,"");
>> > s[j] = sterilizeQueryString(s[j],"**","##")
>> > };
>> > };
>> > return s;
>> > }
>> > else{
>> > return s;
>> > };
>> > }
>> > catch(e){
>> > $.iLogger.log(e.name + ': ' + e.message, 'error',
>> > 'queryStringToObject();');
>> > };
>> > }
>> >
>> >
>> > This is the function that is using the previous functions:
>> >
>> > //  if $use is set to cookie, this variable will be used for the cookie
>> > name
>> > var $cookieName = 'dummyData';
>> >
>> > //  if $use is set to cookie, this variable will be used for the cookie
>> > params
>> > var $cookieParams = {expires: 7};
>> > /**
>> >  * @name getSetCookies
>> >  * @example getSetCookies();
>> >  * @param {Boolean} getOnly
>> >  * @desc Purpose of this function is to set and get cookie data
>> >  * @see objectToQueryString
>> >  * @see queryStringToObject
>> >  */
>> > getSetCookies = function(getOnly){
>> > $.iLogger.log('getSetCookies();');
>> > try{
>> > //
>> > if(getOnly){
>> > var tempSiteData = $.cookie($cookieName);
>> > if(tempSiteData){
>> > $sitedata = queryStringToObject(tempSiteData);
>> > }
>> > else{
>> > $.cookie($cookieName,
>> objectToQueryString($sitedata,"&"),
>> > $cookieParams);
>> > }
>> > }
>> > else{
>> > $.cookie($cookieName, objectToQueryString($sitedata,"&"),
>> > $cookieParams);
>> > };
>> > }
>> > catch(e){
>> > $.iLogger.log(e.name + ': ' + e.message, 'error',
>> > 'getSetCookies();');
>> > };
>> > }; // end : getSetCookies
>> >
>> > Don't have time to ex

[jQuery] Tablesorter dd/mm/YYY date problem

2007-09-25 Thread Jean

  Have i write my parser for dd/mm/ date format? The plugin use mm/dd/
either i changing in plugin configs

-- 

[]´s Jean
www.suissa.info

   Ethereal Agency
www.etherealagency.com


[jQuery] Re: Can we store array of objects into cookie

2007-09-25 Thread Benjamin Sterling
Vijay,
I answered your question in your other posting.

On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
>   I'm having trouble storing array of objects into cookie like
> var arr = [];
> arr.push({index:1,name:"vijay"});
> arr.push({index:2,name:"krish"});
>
> When I'm trying to store array of objects into cookie usin g jquery cookie
> plugin like
> $.cookie("arrCookie",arr);, It's not storing array object but a string as
> [object Object],[object Object] indeed.
>
> So, when I'm trying to retrieve the value in cookie its returning a string
> [object Object],[object Object] which is frustrating.
>
> Can anyone of you know a way to store array of objects into cookie.
>
> Thanks in advance.
> Vijay
> --
> View this message in context:
> http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
You can't store an Object/Array into a cookie, you will get the result you
are currently seeing.  The code I provided with convert your object into a
querystring, which can be stored, and stores that and when you want to
retrieve it, you pass the returned cookie value to the other function and it
changes it back to an Object/Array.

On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>
>
>
> Sorry I didn't understand what you are trying to say. How this solves my
> problem of storing array of objects into the cookie. Can you try on your
> side of storing array of objects into cookie, so that later when I try to
> to
> retrive value from cookie I need to get array of objects but not string
> which is what happening right now.
>
> Thanks in advance.
>
> bmsterling wrote:
> >
> > Vij,
> > I am actually using the following functions in an app that uses the
> cookie
> > plugin:
> >
> > /**
> >  * @name sterilizeQueryString
> >  * @type function
> >  * @param {String} input
> >  * @desc Turns a query string into an object
> >  * @return Object b
> >  */
> > sterilizeQueryString = function(input,splitter,pair){
> > try{
> > if(typeof input != 'string') return null;
> > if(!splitter){
> > splitter = "&";
> > }
> > if(!pair) pair ="=";
> > var a = input.split(splitter), b = Array();
> > for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
> >
> > for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
> >
> > return b;
> > }
> > catch(e){
> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> > 'sterilizeQueryString();');
> > };
> > };
> >
> > objectToQueryString = function( a , joiner, pair) {
> > try{
> > var s = [];
> > if(!pair) pair ="=";
> > if((typeof a == "object")){
> > for(var j in a){
> > if(typeof a[j] == "object" && a[j]){
> > s.push(encodeURIComponent(j) + pair + "__" +
> > objectToQueryString(a[j],"**","##") +"__");
> > }
> > else{
> > s.push( encodeURIComponent(j) + pair +
> > encodeURIComponent( a[j] ) );
> > }
> > };
> > return s.join(joiner);
> > }
> > else{
> > return a;
> > };
> > }
> > catch(e){
> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> > 'objectToQueryString();');
> > };
> > };
> >
> > queryStringToObject = function(s){
> > try{
> > if(s && typeof s == "string"){
> > s = sterilizeQueryString(s);
> > for(var j in s){
> > if(/__(.*)__/.test(s[j])){
> > s[j] = s[j].replace(/__/g,"");
> > s[j] = sterilizeQueryString(s[j],"**","##")
> > };
> > };
> > return s;
> > }
> > else{
> > return s;
> > };
> > }
> > catch(e){
> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> > 'queryStringToObject();');
> > };
> > }
> >
> >
> > This is the function that is using the previous functions:
> >
> > //  if $use is set to cookie, this variable will be used for the cookie
> > name
> > var $cookieName = 'dummyData';
> >
> > //  if $use is set to cookie, this variable will be used for the cookie
> > params
> > var $cookieParams = {expires: 7};
> > /**
> >  * @name getSetCookies
> >  * @example getSetCookies();
> >  * @param {Boolean} getOnly
> >  * @desc Purpose of this function is to set and get cookie data
> >  * @see objectToQueryString
> >  * @see queryStringToObject
> >  */
> > getSetCookies = function(getOnly){
> > $.iLogger.log('getSetCookies();');
> > try{
> > //
> > if(getOnly){
> > var tempSiteData = $.cookie($cookieName);
> > if(tempSiteData){
> > $sitedata = queryStringToObject(tempSiteData);
> > }
> > else{
> > $.cookie($cookieName,
> objectToQueryString($sitedata,"&"),
> > $cookieParams);
> > }
> > }
> > else{
> > $.cookie($cookieName, objectToQueryString($sitedata,"&"),
> > $cookieParams);
> > };
> > }
> > catch(e){
> > $.iLogger.log(e.name + ': ' + e.message, 'error',
> > 'getSetCookies();');
> > };
> > }; // end : getSetCookies
> >
> > Don't have time to explain it right now (wanted to at least answer you),
> > but
> > if you have questions, I can answer them later on today.
> >
> > Ben
> >
> > On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> I don't see this is a problem with cookie plugin in particular but this
> >> is
> >> problem with cookie itself.
> >>
> >> Suppose this is the array
> >> var arr = [];
> >> arr.push({name:"vj",rollNo:10});
> >> arr.push({name:"kr",rollNo:15});
> >>
> >> The size of arr is 2 before storing in cookie
> >>
> >> I tried to store this a

[jQuery] Re: How to use the slider i have been supplied with

2007-09-25 Thread Anthony Leboeuf(Worcester Wide Web)
Nice thanks, I will upgrade it. Do you know how I would actually use it 
in an application? I see demos which show how to use it but nothing that 
shows it in production use. Im looking to use it to pull articles


Glen Lipka wrote:

I think that version has been upgraded.  Check these links:

http://docs.jquery.com/UI/Slider
http://dev.jquery.com/view/trunk/plugins/ui/demos/ui.slider.html

Glen

On 9/25/07, *Anthony Leboeuf(Worcester Wide Web)* 
<[EMAIL PROTECTED] > 
wrote:


Hello everyone, I am designing the BBB site and they gave me a
template which uses the jquery slider. But unfortunatley they
didnt tell me how it works lol. Would anyone know how you would
use a slider this way to display results according to day? Im
assuming theres definatley ajax involved
http://bbb.dlg360.com/temp/news_center.html

I am a php guy so If its easy as using ajax to post to a function
then its all good, I just need someone to push me in the right
direction.

Thanks

-Anthony






[jQuery] Can we store array of objects into cookie

2007-09-25 Thread Potluri


Hi,
  I'm having trouble storing array of objects into cookie like
var arr = [];
arr.push({index:1,name:"vijay"});
arr.push({index:2,name:"krish"});

When I'm trying to store array of objects into cookie usin g jquery cookie
plugin like 
$.cookie("arrCookie",arr);, It's not storing array object but a string as
[object Object],[object Object] indeed. 

So, when I'm trying to retrieve the value in cookie its returning a string
[object Object],[object Object] which is frustrating.

Can anyone of you know a way to store array of objects into cookie.

Thanks in advance.
Vijay
-- 
View this message in context: 
http://www.nabble.com/Can-we-store-array-of-objects-into-cookie-tf4517321s15494.html#a12885643
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: How to use the slider i have been supplied with

2007-09-25 Thread Glen Lipka
I think that version has been upgraded.  Check these links:

http://docs.jquery.com/UI/Slider
http://dev.jquery.com/view/trunk/plugins/ui/demos/ui.slider.html

Glen

On 9/25/07, Anthony Leboeuf(Worcester Wide Web) <
[EMAIL PROTECTED]> wrote:
>
>  Hello everyone, I am designing the BBB site and they gave me a template
> which uses the jquery slider. But unfortunatley they didnt tell me how it
> works lol. Would anyone know how you would use a slider this way to display
> results according to day? Im assuming theres definatley ajax involved
> http://bbb.dlg360.com/temp/news_center.html
>
> I am a php guy so If its easy as using ajax to post to a function then its
> all good, I just need someone to push me in the right direction.
>
> Thanks
>
> -Anthony
>


[jQuery] How to use the slider i have been supplied with

2007-09-25 Thread Anthony Leboeuf(Worcester Wide Web)
Hello everyone, I am designing the BBB site and they gave me a template 
which uses the jquery slider. But unfortunatley they didnt tell me how 
it works lol. Would anyone know how you would use a slider this way to 
display results according to day? Im assuming theres definatley ajax 
involved http://bbb.dlg360.com/temp/news_center.html


I am a php guy so If its easy as using ajax to post to a function then 
its all good, I just need someone to push me in the right direction.


Thanks

-Anthony


[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri


Sorry I didn't understand what you are trying to say. How this solves my
problem of storing array of objects into the cookie. Can you try on your
side of storing array of objects into cookie, so that later when I try to to
retrive value from cookie I need to get array of objects but not string
which is what happening right now. 

Thanks in advance.

bmsterling wrote:
> 
> Vij,
> I am actually using the following functions in an app that uses the cookie
> plugin:
> 
> /**
>  * @name sterilizeQueryString
>  * @type function
>  * @param {String} input
>  * @desc Turns a query string into an object
>  * @return Object b
>  */
> sterilizeQueryString = function(input,splitter,pair){
> try{
> if(typeof input != 'string') return null;
> if(!splitter){
> splitter = "&";
> }
> if(!pair) pair ="=";
> var a = input.split(splitter), b = Array();
> for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);
> 
> for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];
> 
> return b;
> }
> catch(e){
> $.iLogger.log(e.name + ': ' + e.message, 'error',
> 'sterilizeQueryString();');
> };
> };
> 
> objectToQueryString = function( a , joiner, pair) {
> try{
> var s = [];
> if(!pair) pair ="=";
> if((typeof a == "object")){
> for(var j in a){
> if(typeof a[j] == "object" && a[j]){
> s.push(encodeURIComponent(j) + pair + "__" +
> objectToQueryString(a[j],"**","##") +"__");
> }
> else{
> s.push( encodeURIComponent(j) + pair +
> encodeURIComponent( a[j] ) );
> }
> };
> return s.join(joiner);
> }
> else{
> return a;
> };
> }
> catch(e){
> $.iLogger.log(e.name + ': ' + e.message, 'error',
> 'objectToQueryString();');
> };
> };
> 
> queryStringToObject = function(s){
> try{
> if(s && typeof s == "string"){
> s = sterilizeQueryString(s);
> for(var j in s){
> if(/__(.*)__/.test(s[j])){
> s[j] = s[j].replace(/__/g,"");
> s[j] = sterilizeQueryString(s[j],"**","##")
> };
> };
> return s;
> }
> else{
> return s;
> };
> }
> catch(e){
> $.iLogger.log(e.name + ': ' + e.message, 'error',
> 'queryStringToObject();');
> };
> }
> 
> 
> This is the function that is using the previous functions:
> 
> //  if $use is set to cookie, this variable will be used for the cookie
> name
> var $cookieName = 'dummyData';
> 
> //  if $use is set to cookie, this variable will be used for the cookie
> params
> var $cookieParams = {expires: 7};
> /**
>  * @name getSetCookies
>  * @example getSetCookies();
>  * @param {Boolean} getOnly
>  * @desc Purpose of this function is to set and get cookie data
>  * @see objectToQueryString
>  * @see queryStringToObject
>  */
> getSetCookies = function(getOnly){
> $.iLogger.log('getSetCookies();');
> try{
> //
> if(getOnly){
> var tempSiteData = $.cookie($cookieName);
> if(tempSiteData){
> $sitedata = queryStringToObject(tempSiteData);
> }
> else{
> $.cookie($cookieName, objectToQueryString($sitedata,"&"),
> $cookieParams);
> }
> }
> else{
> $.cookie($cookieName, objectToQueryString($sitedata,"&"),
> $cookieParams);
> };
> }
> catch(e){
> $.iLogger.log(e.name + ': ' + e.message, 'error',
> 'getSetCookies();');
> };
> }; // end : getSetCookies
> 
> Don't have time to explain it right now (wanted to at least answer you),
> but
> if you have questions, I can answer them later on today.
> 
> Ben
> 
> On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> I don't see this is a problem with cookie plugin in particular but this
>> is
>> problem with cookie itself.
>>
>> Suppose this is the array
>> var arr = [];
>> arr.push({name:"vj",rollNo:10});
>> arr.push({name:"kr",rollNo:15});
>>
>> The size of arr is 2 before storing in cookie
>>
>> I tried to store this array object in a cookie as $.cookie("cookieName",
>> arr), and then later when I tried to  access the length of array with
>> cookie
>> as var tempArr= $.cookie("cookieName")--which should give array object
>> named
>> "arr".
>>
>> and then I tried to alert length of array as alert(tempArr.length); I was
>> expecting size of array to be 2 but surprisingly its returning 31. I
>> printed
>> the value of tempArr like alert("arr="+ tempArr+" len="+tempArr.length).
>>
>> it prints arr=[object Object],[object Object]  len=31.
>> When you calculate the each character of [object Object],[object Object]
>> it
>> returns 31.
>>
>> Can any one of you come up with quick solution of how to 

[jQuery] Re: an "Undo" plugin, or something as such. :-)

2007-09-25 Thread Jörn Zaefferer


Michael Geary schrieb:

I'll tidy up the undo code to make a nice plugin release out of it, but there 
it is in case anyone wants to take a look at it now.
I'd be interested in any feedback on the issues I mentioned in my previous 
message. (I'd mentioned saving the undo/redo queue in a
hidden form field so it survives a soft reload, but now that I look at the 
code, it doesn't do that. Must have been something I was
thinking about doing. The code actually should work with either strings or 
objects or any type as the undo queue entries.)
Interesting stuff Mike! I can imagine quite a few scenarios where that 
could be used. For example I'm currently working on persisting the 
treeview plugin in a cookie. Pushing my serialized form to the 
undo-plugin would be really easy, and the persistence in a hidden field 
may be even the more appropiate approach in same cases.


You could make it an actual plugin that must start with the two buttons 
as the selected elements, something like this:


$.fn.undo = function() {
 var $undoBtn = this.eq(0), undoBtn = this[0];
 var $redoBtn = this.eq(1), redoBtn = this[1];
 ...
}

A bit of documentation about the options and the return value definitely 
help a lot.


-- Jörn


[jQuery] Re: Open and search a .XML file

2007-09-25 Thread Jörn Zaefferer


Danjojo schrieb:

Hi, thank you for helping me begin down this path.

Before I use the $.ajax function, do I need to install a codebase for
it?
  

Nope, $.ajax is part of jQuery core.

Please note that my example code in the success-callback was just that: 
an example. You need to modify that!
What may actually be happening is this: The xml-documented is loaded via 
AJAX, the success-callback is executed and throws an errors. Depending 
on the type of errors you may see it on Firebugs console 
(www.getfirebug.com). If not, try to add this to your document:


$().ajaxError(function() {
   console.log(arguments);
});

If that doesn't help to see the actual problem either, please post a 
test page here.


-- Jörn


[jQuery] Re: Validation plugin - alphanumeric password with min length

2007-09-25 Thread Jörn Zaefferer


voltron schrieb:

Yes, I added the method, this is what I have now [...]
  

I can't see anything wrong with that. Can you post a test page?

It may also help to use the debug-option, just specify validate({ debug: 
true, ...}).


-- Jörn


[jQuery] Re: problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Benjamin Sterling
Vij,
I am actually using the following functions in an app that uses the cookie
plugin:

/**
 * @name sterilizeQueryString
 * @type function
 * @param {String} input
 * @desc Turns a query string into an object
 * @return Object b
 */
sterilizeQueryString = function(input,splitter,pair){
try{
if(typeof input != 'string') return null;
if(!splitter){
splitter = "&";
}
if(!pair) pair ="=";
var a = input.split(splitter), b = Array();
for(var i=0; i < a.length; i++)a[i] = a[i].split(pair);

for(var i = 0; i < a.length; i++) b[a[i][0]] = a[i][1];

return b;
}
catch(e){
$.iLogger.log(e.name + ': ' + e.message, 'error',
'sterilizeQueryString();');
};
};

objectToQueryString = function( a , joiner, pair) {
try{
var s = [];
if(!pair) pair ="=";
if((typeof a == "object")){
for(var j in a){
if(typeof a[j] == "object" && a[j]){
s.push(encodeURIComponent(j) + pair + "__" +
objectToQueryString(a[j],"**","##") +"__");
}
else{
s.push( encodeURIComponent(j) + pair +
encodeURIComponent( a[j] ) );
}
};
return s.join(joiner);
}
else{
return a;
};
}
catch(e){
$.iLogger.log(e.name + ': ' + e.message, 'error',
'objectToQueryString();');
};
};

queryStringToObject = function(s){
try{
if(s && typeof s == "string"){
s = sterilizeQueryString(s);
for(var j in s){
if(/__(.*)__/.test(s[j])){
s[j] = s[j].replace(/__/g,"");
s[j] = sterilizeQueryString(s[j],"**","##")
};
};
return s;
}
else{
return s;
};
}
catch(e){
$.iLogger.log(e.name + ': ' + e.message, 'error',
'queryStringToObject();');
};
}


This is the function that is using the previous functions:

//  if $use is set to cookie, this variable will be used for the cookie name
var $cookieName = 'dummyData';

//  if $use is set to cookie, this variable will be used for the cookie
params
var $cookieParams = {expires: 7};
/**
 * @name getSetCookies
 * @example getSetCookies();
 * @param {Boolean} getOnly
 * @desc Purpose of this function is to set and get cookie data
 * @see objectToQueryString
 * @see queryStringToObject
 */
getSetCookies = function(getOnly){
$.iLogger.log('getSetCookies();');
try{
//
if(getOnly){
var tempSiteData = $.cookie($cookieName);
if(tempSiteData){
$sitedata = queryStringToObject(tempSiteData);
}
else{
$.cookie($cookieName, objectToQueryString($sitedata,"&"),
$cookieParams);
}
}
else{
$.cookie($cookieName, objectToQueryString($sitedata,"&"),
$cookieParams);
};
}
catch(e){
$.iLogger.log(e.name + ': ' + e.message, 'error',
'getSetCookies();');
};
}; // end : getSetCookies

Don't have time to explain it right now (wanted to at least answer you), but
if you have questions, I can answer them later on today.

Ben

On 9/25/07, Potluri <[EMAIL PROTECTED]> wrote:
>
>
>
> I don't see this is a problem with cookie plugin in particular but this is
> problem with cookie itself.
>
> Suppose this is the array
> var arr = [];
> arr.push({name:"vj",rollNo:10});
> arr.push({name:"kr",rollNo:15});
>
> The size of arr is 2 before storing in cookie
>
> I tried to store this array object in a cookie as $.cookie("cookieName",
> arr), and then later when I tried to  access the length of array with
> cookie
> as var tempArr= $.cookie("cookieName")--which should give array object
> named
> "arr".
>
> and then I tried to alert length of array as alert(tempArr.length); I was
> expecting size of array to be 2 but surprisingly its returning 31. I
> printed
> the value of tempArr like alert("arr="+ tempArr+" len="+tempArr.length).
>
> it prints arr=[object Object],[object Object]  len=31.
> When you calculate the each character of [object Object],[object Object]
> it
> returns 31.
>
> Can any one of you come up with quick solution of how to store array of
> array objects in a cookie.
>
> It'll be greatful.
>
> Regards,
> Vijay
> --
> View this message in context:
> http://www.nabble.com/problem-with-cookie-plugin-when-trying-to-store-array-object-in-cookie-tf4516799s15494.html#a12883618
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: Plugin Question

2007-09-25 Thread Brandon Aaron
Inside the plugin this is actually the jQuery object that the plugin was
called on.

(function($) {

$.fn.plugin = function() {
console.log(this); // the jQuery collection/object
};

})(jQuery);

--
Brandon Aaron


On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>
>
>
> Ok, lets say i make a plugin using this (function())(jQuery) format and it
> works like this:
>
> $('#something').plugin();
>
> Now inside the plugin this is the access for the class, how do i access
> the
> jquery object that the plugin was called on?
> --
> View this message in context:
> http://www.nabble.com/Plugin-Question-tf4516781s15494.html#a12883523
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] problem with cookie plugin when trying to store array object in cookie

2007-09-25 Thread Potluri


I don't see this is a problem with cookie plugin in particular but this is
problem with cookie itself.

Suppose this is the array
var arr = [];
arr.push({name:"vj",rollNo:10});
arr.push({name:"kr",rollNo:15});

The size of arr is 2 before storing in cookie

I tried to store this array object in a cookie as $.cookie("cookieName",
arr), and then later when I tried to  access the length of array with cookie
as var tempArr= $.cookie("cookieName")--which should give array object named
"arr". 

and then I tried to alert length of array as alert(tempArr.length); I was
expecting size of array to be 2 but surprisingly its returning 31. I printed
the value of tempArr like alert("arr="+ tempArr+" len="+tempArr.length).

it prints arr=[object Object],[object Object]  len=31.
When you calculate the each character of [object Object],[object Object] it
returns 31.

Can any one of you come up with quick solution of how to store array of
array objects in a cookie.

It'll be greatful.

Regards,
Vijay
-- 
View this message in context: 
http://www.nabble.com/problem-with-cookie-plugin-when-trying-to-store-array-object-in-cookie-tf4516799s15494.html#a12883618
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Plugin Question

2007-09-25 Thread Eridius


Ok, lets say i make a plugin using this (function())(jQuery) format and it
works like this:

$('#something').plugin();

Now inside the plugin this is the access for the class, how do i access the
jquery object that the plugin was called on?
-- 
View this message in context: 
http://www.nabble.com/Plugin-Question-tf4516781s15494.html#a12883523
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jdmenu and new dimensions issue?

2007-09-25 Thread Jonathan Sharp
Howdy, I'm jumping in late to the conversation here.

As Brandon pointed out there were some updates to dimensions/jQuery core
that need to be updated in the plugin. I have a rewrite nearing completion
which I'm working hard at trying to have completed and published by Ajax
Experience at the end of October.

Let me take a moment and appologize to those of you who have contacted me
but haven't gotten a response. With this plugins growth and popularity I'm
getting more emails than I can respond to. I unfortunately haven't had the
time available to commit to this over the past few months due to family,
personal and work commitments.

Cheers,
-js


On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>
>
> A demo of the issue is at:
>
> www.kaizendigital.com/index2.php
>
> Note you have to use FF right now cause IE is even more broken.  if you
> hover over products, you will get the error.  can't test out a unpack till
> later tonight.
>
>
> Brandon Aaron wrote:
> >
> > Okay ... sorry for the confusion. I'm just trying to figure out if it is
> > actually a compatibility issue with dimensions or just jQuery 1.2. So if
> > you
> > use jQuery 1.2 + older dimensions it works as expected but when you add
UI
> > and new dimensions it breaks?
> >
> > Could you use the unpacked source to get a more meaningful error? Could
> > you
> > upload a demo of the issue?
> >
> > --
> > Brandon Aaron
> >
> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> I know it work with the older version the jdmenu comes with however i
> >> also
> >> am
> >> using the jQuery UI which needs the newer version and i can't use both
> >> versions.
> >>
> >>
> >> Brandon Aaron wrote:
> >> >
> >> > You can get the older version of dimensions here:
> >> > http://jquery.com/plugins/project/dimensions
> >> >
> >> > If you could test it out, that would help a lot. Thanks!
> >> >
> >> > --
> >> > Brandon Aaron
> >> >
> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >>
> >> >> I don't know which version it comes with by default but it does work
> >> with
> >> >> that version but not he version with jQuery UI and not sure which
> >> version
> >> >> that is since the file does not have a version number just the rev
> >> number
> >> >> that i gave you.
> >> >>
> >> >>
> >> >> Brandon Aaron wrote:
> >> >> >
> >> >> > Does it work with Dimensions 1.1.2?
> >> >> >
> >> >> > --
> >> >> > Brandon Aaron
> >> >> >
> >> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and
> >> >> dimensions
> >> >> >> Rev:
> >> >> >> 3238 Built on 2007-09-11 for jQuery 1.2+?
> >> >> >>
> >> >> >>
> >> >> >> Brandon Aaron wrote:
> >> >> >> >
> >> >> >> > What issue are you referring to?
> >> >> >> >
> >> >> >> > --
> >> >> >> > Brandon Aaron
> >> >> >> >
> >> >> >> > On 9/23/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Does anyone know if the issue with the new dimensions(the one
> >> with
> >> >> the
> >> >> >> >> jQuery
> >> >> >> >> UI) is being worked out with jdmenu cause i need to use both
or
> >> is
> >> >> >> there
> >> >> >> >> a
> >> >> >> >> menu system like jdmenu under development for release in the
> >> jQuery
> >> >> >> UI?
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921
> >> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089
> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333
> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445
> >> Sent from the JQuery mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Re: jdmenu and new dimensions issue?

2007-09-25 Thread Eridius


If that is the case, would would the replacement be for those functions as i
would rather edit the code myself and use the newer version(along with
passing the new code to the author of jdmenu so he can release a working
version for the latest dimensions).  Worst case i should be able to pull
those function and just entered the new dimensions to include the old
function.


Brandon Aaron wrote:
> 
> Hmmm it looks like jdmenu is using either innerWidth/Height or
> outerWidth/Height on the window which was removed in the latest SVN of
> dimensions. Using the older version of dimensions along with UI shouldn't
> give you any trouble at least until either dimensions or jdmenu is
> updated.
> 
> --
> Brandon Aaron
> 
> On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> A demo of the issue is at:
>>
>> www.kaizendigital.com/index2.php
>>
>> Note you have to use FF right now cause IE is even more broken.  if you
>> hover over products, you will get the error.  can't test out a unpack
>> till
>> later tonight.
>>
>>
>> Brandon Aaron wrote:
>> >
>> > Okay ... sorry for the confusion. I'm just trying to figure out if it
>> is
>> > actually a compatibility issue with dimensions or just jQuery 1.2. So
>> if
>> > you
>> > use jQuery 1.2 + older dimensions it works as expected but when you add
>> UI
>> > and new dimensions it breaks?
>> >
>> > Could you use the unpacked source to get a more meaningful error? Could
>> > you
>> > upload a demo of the issue?
>> >
>> > --
>> > Brandon Aaron
>> >
>> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >> I know it work with the older version the jdmenu comes with however i
>> >> also
>> >> am
>> >> using the jQuery UI which needs the newer version and i can't use both
>> >> versions.
>> >>
>> >>
>> >> Brandon Aaron wrote:
>> >> >
>> >> > You can get the older version of dimensions here:
>> >> > http://jquery.com/plugins/project/dimensions
>> >> >
>> >> > If you could test it out, that would help a lot. Thanks!
>> >> >
>> >> > --
>> >> > Brandon Aaron
>> >> >
>> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >>
>> >> >> I don't know which version it comes with by default but it does
>> work
>> >> with
>> >> >> that version but not he version with jQuery UI and not sure which
>> >> version
>> >> >> that is since the file does not have a version number just the rev
>> >> number
>> >> >> that i gave you.
>> >> >>
>> >> >>
>> >> >> Brandon Aaron wrote:
>> >> >> >
>> >> >> > Does it work with Dimensions 1.1.2?
>> >> >> >
>> >> >> > --
>> >> >> > Brandon Aaron
>> >> >> >
>> >> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and
>> >> >> dimensions
>> >> >> >> Rev:
>> >> >> >> 3238 Built on 2007-09-11 for jQuery 1.2+?
>> >> >> >>
>> >> >> >>
>> >> >> >> Brandon Aaron wrote:
>> >> >> >> >
>> >> >> >> > What issue are you referring to?
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Brandon Aaron
>> >> >> >> >
>> >> >> >> > On 9/23/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Does anyone know if the issue with the new dimensions(the one
>> >> with
>> >> >> the
>> >> >> >> >> jQuery
>> >> >> >> >> UI) is being worked out with jdmenu cause i need to use both
>> or
>> >> is
>> >> >> >> there
>> >> >> >> >> a
>> >> >> >> >> menu system like jdmenu under development for release in the
>> >> jQuery
>> >> >> >> UI?
>> >> >> >> >> --
>> >> >> >> >> View this message in context:
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921
>> >> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089
>> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333
>> >> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445
>> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12882307
Sent from the JQuery mailing list archive at Nabbl

[jQuery] Re: jdmenu and new dimensions issue?

2007-09-25 Thread Brandon Aaron
Hmmm it looks like jdmenu is using either innerWidth/Height or
outerWidth/Height on the window which was removed in the latest SVN of
dimensions. Using the older version of dimensions along with UI shouldn't
give you any trouble at least until either dimensions or jdmenu is updated.

--
Brandon Aaron

On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>
>
>
> A demo of the issue is at:
>
> www.kaizendigital.com/index2.php
>
> Note you have to use FF right now cause IE is even more broken.  if you
> hover over products, you will get the error.  can't test out a unpack till
> later tonight.
>
>
> Brandon Aaron wrote:
> >
> > Okay ... sorry for the confusion. I'm just trying to figure out if it is
> > actually a compatibility issue with dimensions or just jQuery 1.2. So if
> > you
> > use jQuery 1.2 + older dimensions it works as expected but when you add
> UI
> > and new dimensions it breaks?
> >
> > Could you use the unpacked source to get a more meaningful error? Could
> > you
> > upload a demo of the issue?
> >
> > --
> > Brandon Aaron
> >
> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> I know it work with the older version the jdmenu comes with however i
> >> also
> >> am
> >> using the jQuery UI which needs the newer version and i can't use both
> >> versions.
> >>
> >>
> >> Brandon Aaron wrote:
> >> >
> >> > You can get the older version of dimensions here:
> >> > http://jquery.com/plugins/project/dimensions
> >> >
> >> > If you could test it out, that would help a lot. Thanks!
> >> >
> >> > --
> >> > Brandon Aaron
> >> >
> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >>
> >> >> I don't know which version it comes with by default but it does work
> >> with
> >> >> that version but not he version with jQuery UI and not sure which
> >> version
> >> >> that is since the file does not have a version number just the rev
> >> number
> >> >> that i gave you.
> >> >>
> >> >>
> >> >> Brandon Aaron wrote:
> >> >> >
> >> >> > Does it work with Dimensions 1.1.2?
> >> >> >
> >> >> > --
> >> >> > Brandon Aaron
> >> >> >
> >> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and
> >> >> dimensions
> >> >> >> Rev:
> >> >> >> 3238 Built on 2007-09-11 for jQuery 1.2+?
> >> >> >>
> >> >> >>
> >> >> >> Brandon Aaron wrote:
> >> >> >> >
> >> >> >> > What issue are you referring to?
> >> >> >> >
> >> >> >> > --
> >> >> >> > Brandon Aaron
> >> >> >> >
> >> >> >> > On 9/23/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Does anyone know if the issue with the new dimensions(the one
> >> with
> >> >> the
> >> >> >> >> jQuery
> >> >> >> >> UI) is being worked out with jdmenu cause i need to use both
> or
> >> is
> >> >> >> there
> >> >> >> >> a
> >> >> >> >> menu system like jdmenu under development for release in the
> >> jQuery
> >> >> >> UI?
> >> >> >> >> --
> >> >> >> >> View this message in context:
> >> >> >> >>
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921
> >> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089
> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333
> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445
> >> Sent from the JQuery mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Debugging in Safari 2

2007-09-25 Thread Gordon

I really need a hand with my IT Assistant project (http://www.pcwb.com/
assistants/) and an issue in Safari version 2.  As it works in Safari
3/Win I'm assuming that it's a bug in Safari itself, but as our
website stats indicate that Safari 2 is the most popular version by
far it's something I need to find a workaround for.

When I visit the page on a mac wit hSafari 2 installed, the "please
wait" blockUI message appears, but then the whole thing just sits
there and doesn't progress any further.  I managed to enable the debug
menu but that offered no insight whatsoever.  It simply displayed the
message "null value - line 1" when the page loaded.  Line 1 of what
file?  Come on, give me something useful here!  I know Apple seems to
hate error messages, but a developer needs something to work with!

I tried finding some more debugging tools for Safari, but they are
only compatible with Safari 3 for Mac, which doesn't do me any good.
The only machines around here with Safari 3 on them are Windows boxes,
and the assistant works fine in Safari 3 anyway.

Is there a list of known issues with JavaScript in Safari 2 anywhere?
I've not managed to find one on Google.  Or do any of you guys have
experience with this problem and know of a work around?  Or is there a
decent debugger for Safari 2.x that I don't know about?



[jQuery] [NEWS] New ColdFusion Custom Tag for TableSorter

2007-09-25 Thread Rey Bango


Brian Rinaldi has gone through the effort of simplifying server-side 
implementation of the jQuery UI TableSorter control within the 
ColdFusion application server. You can read more here:


http://www.remotesynthesis.com/blog/index.cfm/2007/9/25/Sortable-Table-ColdFusion-Custom-Tag-with-jQueryUI

As a developer and huge fan of ColdFusion I'm very happy to see this done.

Great job Brian.

Rey...



[jQuery] Re: jdmenu and new dimensions issue?

2007-09-25 Thread Eridius


A demo of the issue is at:

www.kaizendigital.com/index2.php

Note you have to use FF right now cause IE is even more broken.  if you
hover over products, you will get the error.  can't test out a unpack till
later tonight.


Brandon Aaron wrote:
> 
> Okay ... sorry for the confusion. I'm just trying to figure out if it is
> actually a compatibility issue with dimensions or just jQuery 1.2. So if
> you
> use jQuery 1.2 + older dimensions it works as expected but when you add UI
> and new dimensions it breaks?
> 
> Could you use the unpacked source to get a more meaningful error? Could
> you
> upload a demo of the issue?
> 
> --
> Brandon Aaron
> 
> On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> I know it work with the older version the jdmenu comes with however i
>> also
>> am
>> using the jQuery UI which needs the newer version and i can't use both
>> versions.
>>
>>
>> Brandon Aaron wrote:
>> >
>> > You can get the older version of dimensions here:
>> > http://jquery.com/plugins/project/dimensions
>> >
>> > If you could test it out, that would help a lot. Thanks!
>> >
>> > --
>> > Brandon Aaron
>> >
>> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >> I don't know which version it comes with by default but it does work
>> with
>> >> that version but not he version with jQuery UI and not sure which
>> version
>> >> that is since the file does not have a version number just the rev
>> number
>> >> that i gave you.
>> >>
>> >>
>> >> Brandon Aaron wrote:
>> >> >
>> >> > Does it work with Dimensions 1.1.2?
>> >> >
>> >> > --
>> >> > Brandon Aaron
>> >> >
>> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >>
>> >> >> has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and
>> >> dimensions
>> >> >> Rev:
>> >> >> 3238 Built on 2007-09-11 for jQuery 1.2+?
>> >> >>
>> >> >>
>> >> >> Brandon Aaron wrote:
>> >> >> >
>> >> >> > What issue are you referring to?
>> >> >> >
>> >> >> > --
>> >> >> > Brandon Aaron
>> >> >> >
>> >> >> > On 9/23/07, Eridius <[EMAIL PROTECTED]> wrote:
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> Does anyone know if the issue with the new dimensions(the one
>> with
>> >> the
>> >> >> >> jQuery
>> >> >> >> UI) is being worked out with jdmenu cause i need to use both or
>> is
>> >> >> there
>> >> >> >> a
>> >> >> >> menu system like jdmenu under development for release in the
>> jQuery
>> >> >> UI?
>> >> >> >> --
>> >> >> >> View this message in context:
>> >> >> >>
>> >> >>
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921
>> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089
>> >> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333
>> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881853
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: jdmenu and new dimensions issue?

2007-09-25 Thread Brandon Aaron
Okay ... sorry for the confusion. I'm just trying to figure out if it is
actually a compatibility issue with dimensions or just jQuery 1.2. So if you
use jQuery 1.2 + older dimensions it works as expected but when you add UI
and new dimensions it breaks?

Could you use the unpacked source to get a more meaningful error? Could you
upload a demo of the issue?

--
Brandon Aaron

On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
>
>
>
> I know it work with the older version the jdmenu comes with however i also
> am
> using the jQuery UI which needs the newer version and i can't use both
> versions.
>
>
> Brandon Aaron wrote:
> >
> > You can get the older version of dimensions here:
> > http://jquery.com/plugins/project/dimensions
> >
> > If you could test it out, that would help a lot. Thanks!
> >
> > --
> > Brandon Aaron
> >
> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> I don't know which version it comes with by default but it does work
> with
> >> that version but not he version with jQuery UI and not sure which
> version
> >> that is since the file does not have a version number just the rev
> number
> >> that i gave you.
> >>
> >>
> >> Brandon Aaron wrote:
> >> >
> >> > Does it work with Dimensions 1.1.2?
> >> >
> >> > --
> >> > Brandon Aaron
> >> >
> >> > On 9/25/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >>
> >> >> has anyone been able to use jdmenu 1.3 with jquery 1.2.1 and
> >> dimensions
> >> >> Rev:
> >> >> 3238 Built on 2007-09-11 for jQuery 1.2+?
> >> >>
> >> >>
> >> >> Brandon Aaron wrote:
> >> >> >
> >> >> > What issue are you referring to?
> >> >> >
> >> >> > --
> >> >> > Brandon Aaron
> >> >> >
> >> >> > On 9/23/07, Eridius <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> Does anyone know if the issue with the new dimensions(the one
> with
> >> the
> >> >> >> jQuery
> >> >> >> UI) is being worked out with jdmenu cause i need to use both or
> is
> >> >> there
> >> >> >> a
> >> >> >> menu system like jdmenu under development for release in the
> jQuery
> >> >> UI?
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12852921
> >> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880089
> >> >> Sent from the JQuery mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12880333
> >> Sent from the JQuery mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/jdmenu-and-new-dimensions-issue--tf4506665s15494.html#a12881445
> Sent from the JQuery mailing list archive at Nabble.com.
>
>


[jQuery] Re: jQuery for Floating Div

2007-09-25 Thread Glen Lipka
If amazon took theirs down, you can still see a similar example on
Microsoft.  Wow, microsoft just changed their site pretty heavily.
Try here http://msdn2.microsoft.com/en-us/default.aspx
They optimize for IE7 of course.  Top right link.

Glen

On 9/24/07, Pete Bekisz <[EMAIL PROTECTED]> wrote:
>
> Glen --
>
> That's really slick! I don't think I'll be able to use it on this project
> though, but I think it's great for a quicklinks feature. It just pulled up
> Intuit -- what a slick site!
>
> On 9/24/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> >
> > Sorry Karl.  I just grabbed the one that came up first in google. :)
> > Yeah, that amazon effect is really useful.
> >
> > I tried to do that with Intuit, but couldn't figure it out, so I ended
> > up with the slideLinks instead.
> > These did very well in usability studies.  Unexpected wow.
> > http://www.commadot.com/jquery/slideMenu.php  (click links at top)
> >
> > Pete, even though its not what you asked for, it might be a good choice.
> >
> > Glen
> >
> > On 9/24/07, Karl Swedberg <[EMAIL PROTECTED] > wrote:
> > >
> > >  Hey Glen,
> > >
> > > That's actually a pretty old version of the plugin. A new(er) and
> > > improved version can be found here:
> > >
> > > http://plugins.learningjquery.com/cluetip/demo/
> > >
> > > Pete,
> > > Check out that URL above and click on the Examples link at the top of
> > > the page. Then hover over the link that says "sort of like amazon.com?"
> > > under the "Custom (temporary)" section. Maybe that's something close to 
> > > what
> > > you're looking for?
> > >
> > > One of these days when I'm not swamped with freelance work, I'd like
> > > to write a stripped-down plugin that just does that amazon.com thing.
> > > A bunch of people have already asked for it.
> > >
> > > Cheers,
> > >
> > > --Karl
> > >
> > > On Sep 24, 2007, at 6:36 PM, Glen Lipka wrote:
> > >
> > > That's a nice effect.  I have been trying to do something like that
> > > too.  Microsoft does a very similar thing.
> > > Some helpful plugins to check out:
> > > 1. Hoverintent.  Slows down the interaction to make sure the user
> > > intended to 
> > > mouseover.http://cherne.net/brian/resources/jquery.hoverIntent.html
> > >
> > > 2. ClueTip.  Shows one example of popup hovers like that. 
> > > http://examples.learningjquery.com/62/demo/
> > >
> > >
> > > There may be other plugins that help.  I am interested in this if you
> > > nail it.
> > >
> > > Glen
> > >
> > >
> > > On 9/24/07, Pete < [EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > I'm trying to construct a "popover" menu that resembles the one on
> > > > Amazon.com (put your mouse over "see all 43 product categories").
> > > > I'm
> > > > not too familiar with jQuery/JavaScript, but I thought I would be
> > > > able
> > > > to do something like this:
> > > >
> > > > $(document).ready(function(){
> > > > $("#link").mouseover(function(){
> > > > $("#popup_menu").show();
> > > > return false;
> > > > });
> > > > $("#popup_menu").mouseout(function(){
> > > > $(this).hide();
> > > > return false;
> > > > });
> > > > });
> > > >
> > > > The problem is, as soon as you move your mouse off the link to go
> > > > into
> > > > the div, it collapses. Could someone please offer some examples/
> > > > insight?
> > > >
> > > > If you'd like to see the page, here's a link: 
> > > > http://www.keuka.edu/pete/jquery_float.html
> > > >
> > > >
> > > > Thanks!
> > > >
> > > >
> > >
> > >
> >
>


  1   2   >