Re: [jQuery] Designing for reuse

2006-12-01 Thread Alan Gutierrez
* Christof Donat <[EMAIL PROTECTED]> [2006-12-01 05:28]:
> Hi, 
> 
> > > $('#grid').grid({data:data}).show().gridController().scrollToRow(6);
> >
> > An perhaps have a method that returns you back to jQuery object?
> > Calling it 'end' (or any other jQuery method name) may be confusing,
> > something like 'endGrid'.
> 
> I don't think that is necessary. You could compare it to a call like 
> $('...').css('color'). That returns a string wich has methods like e.g. 
> substr() but no way to return to jQuery, because it is not necessary. You 
> almost always can move the call to gridController() to the end of your chain.
> 
> Another way to solve the problem would be to use classes in the grid like 
> this:
> 
> $('#grid').grid({data:data}).find('.row_42').scrollToView();
> 
> Then you just add methods like scrollToView() to the jQuery object which are 
> very usefull in other cases as well. Though I am not shure if you can do 
> everything the grid controller needs that way.

Christof

You can't do everything that the grid controller needs, but some of
the things that you do need, can be universal. Your suggestion takes
advantage of the jQuery way, which is very DOM centric. It doesn't
treat the DOM as "primitives", but a useful model. Tree structures,
event bubbling, path langauges are powerfully expressive, they
simply need to be made consistant across browsers.

Thus, there are some ways in which a grid might have components that
are grid abstractions, but also document the structure of the DOM
that it generates so that programmers can add their own effects.

$('#grid').grid({ data: data })
  .gridController()
  .column(5).select().gridController()
  .jQuery()
  .find('.row_42').scrollIntoView().addClass('selected')

Here's a "case study" to lead into a point.

I came to jQuery looking for a way to create a grid control that did
a grid and nothing but a grid. Other libraries had grid controls,
with sortable, reorderable, resizable  columns, with ajax updates,
and in place editing, etc. I didn't want these things. I could turn
them off, but I'd still have to download them, parse them, and step
around them.

What I wanted was a table that could scroll. If I didn't need the
other features, I didn't want to pay for them.

What I like about jQuery, is the potential to build more complicated
objects from "primatives". With jQuery you don't hide DOM behind
controllers the way you do in Prototype. jQuery is very DOM centric,
which is good, because we still don't have the speed to afford
ourselves too many abstractions.

At the same time, the DOM is a pretty powerful abstraction, and
probably doesn't need to be treated like gorey details.

One programmer can create a simple grid renderer, but advertise what
is rendered. Another programmer can whip up a smooth scroll into
view, by attaching jQuery behaviors to the well-documented grid markup.

-- 
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/
Think New Orleans - http://thinknola.com/

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


Re: [jQuery] html() returns different val in Firefox and IE?

2006-12-01 Thread leftend

Thanks for the tips.  The editMode wasn't the problem, turns out that
changing the order of things did the trick.  So, given this HTML:

Text being changed

If I changed the innerHTML of the "innerSpan" before showing the "outerDiv",
I encountered the problem.  When I showed the "outerDiv" first and then
changed the innerHTML of the "innerSpan" it worked in both FF and IE.

In regards to not using globals to persist things, what would you suggest? 
I'm nowhere near a guru - so I'm open to any suggestions.

Thanks.


dave.methvin wrote:
> 
> 
> Doesn't work in IE7 either. Using Fiddler I can see that the ajaxForm is
> working fine and returns the modified data. If you click the edit button a
> second time you see the modified text. I think the problem may be in the
> processEdit(editMode, json) call; see what the value of editMode is inside
> processEdit(). I would find a better way than globals to organize the
> persistent data you need because that won't scale well.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/html%28%29-returns-different-val-in-Firefox-and-IE--tf2740686.html#a7651026
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Alan Gutierrez
* Brian Miller <[EMAIL PROTECTED]> [2006-12-01 09:05]:
> > Hi,
> >
> >> Controller set of methods is returned..
> >>
> >> $('#grid').grid().data(data).drig().show()
> >> $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
> >>
> >> A controller object is returned..
> >>
> >> var grid = null
> >> $("grid").grid({
> >> data: data,
> >> onComplete: function(controller)  { grid = controller }
> >> })
> >> grid.srollToRow(6)
> >>
> >> What is best practice?
> >
> > How about the Idea to have a jQuery-function that returns the controller
> > object:
> >
> > $('#grid').grid({data:data}).show().gridController().scrollToRow(6);
> >
> > That way the function that creates the grid does not break the chain, but
> > there is a function that returns a controller object. You don't
> > necessarily
> > need a way to come back to jQuery if you do it that way, because you can
> > chose to get the controller Object later in the queue.
> >
> > You should think if you want a controller object that can handle mutliple
> > grids at the same time:
> >
> > $('.allmygrids').grid({data:data}).show().gridController().scrollToRow(6);
> >
> > If not, then gridController() needs to take a parameter to know which of
> > the
> > grids you mean:
> >
> > $('.allmygrids').grid({data:data}).show().gridController(42).scrollToRow(6);

> How about overriding $.end() in the grid plugin, so that it returns the
> original jquery object if it's run on the grid controller?
> 
> Of course, you'd have to remember to make $.end() behave normally if run
> elsewhere.  Or, you could just create an $.endGrid() function for the
> controller, and not worry about messing with $end() at all.

I'm now growing partial to this convention...

$("div.grid").grid()
 .data(gridData).
 .columns(2, 3, 7)
.select()
.sortable()
.grid()
 .rowHeight(22)
 .jQuery()
 .show()
 .css("width", "500px)
   
Which is where you return control by naming the object that you wish
to recover.

-- 
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/
Think New Orleans - http://thinknola.com/

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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Alan Gutierrez
* Brandon Aaron <[EMAIL PROTECTED]> [2006-12-01 10:16]:
> On 12/1/06, Sam Collett <[EMAIL PROTECTED]> wrote:
> > An perhaps have a method that returns you back to jQuery object?
> > Calling it 'end' (or any other jQuery method name) may be confusing,
> > something like 'endGrid'.
> 
> I don't think using .end() would be confusing. If it makes sense for a
> plugin to use method chaining then why not use the standard for
> returning state, .end(). If this type of functionality starts to be
> required I would suggest including a standard way for plugins to
> easily restore state (.end()) in the core. Destructive methods will be
> no more in 1.1, so I don't think .end() will be around either.
> However, it seems to make sense (to me at least) to be used in
> situations like these.
> 
> $('#foo').grid({data:data}).show()
> .gridController() // load grid object
> .scrollToRow(6).anything().else().with().grid()
> .end(); // back to jQuery

Does destructive mean that a filter changes the returned contents of
the list returned by the initial jQuery?

-- 
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/
Think New Orleans - http://thinknola.com/

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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Alan Gutierrez
I'm fond of the elegance of chaining for manipulating the DOM.

The chaining methods of jQuery operate on a set of items and as
someone who's landed and getting used to the library and it's idioms
the ability to act on all the elements that match a pattern
accurately models how I view markup.

$('div.menu').click(menuClick)
 .addClass('top-level')
 .css('height', calculateMenuHeight() + 'px')

I agree, Stephen, that sometimes it doesn't make sense to me to have
a method in the jQuery namespace.

jQuery.fn.toJSON

It doesn't chain. It doesn't maniuplate the DOM. I love the library,
but maybe it would be better off in a different "namespace".

When I look at some Prototype code, I can see how the controller way
of doing things is very easy to read and maintain.

Especially, when Prototype idioms are used without going through the
bother of creating new classes and setting up prototypes for
what are singletons. The code gets a lot cleaner. There are
controllers for distinct views of the MAJOR compontents of a UI.

// imagine yourself some code in these functions.
var gridView =  {
redraw: function () { }
show: function () { }
hide: function () { }
showing: function () { }
}

var treeView = {
redraw: function () { }
show: function () { }
hide: function () { }
showing: function () { }
}

var menu = {
switchViews: function () {
var showing = gridView, hidden = treeView
if (treeView.showing()) hidden = gridView, showing = treeView
showing.hide()
hidden.redraw()
hidden.show()
menu.viewToggle(treeView.showing())
},
viewToggle: function () { }
}

Event.observe($("#switch"), 'click', switchViews)

I have been programming this way with Prototype. You'll note that I
don't have to bind to this, which saves a lot of verbiage.

This might not be ideal for jQuery, because there is path for the
above singletons to follow where they can become classes, and begin
to look like script.aculo.us objects, fully reusable.

jQuery may want to draw a distinction between what should be a DOM
manipulation plugin, versus a complicated UI object, like a tree
view or grid.

To me the distinction is the differnce in traditional UI programming
between a form control like a check box, versus the lineTo and
fillRect methods of the device context.

What I didn't like about Prototype was that idioms were did not
embrace the structure of the DOM. Prototype prefers that you find
things by ID. There was one of everything. The controllers could get
monolitic, when sometimes I want dozens of little active UI elements.

jQuery allows me to quickly attach event handlers to the specific
nodes in the document that represent UI controls. Within the above
controllers, I find that jQuery serves me well.

Thus, jQuery can take the controller centric model and make it lot
more powerful.

* Stephen Howard <[EMAIL PROTECTED]> [2006-11-30 17:25]:
> I know we're all fond of the elegance of chaining, but would it be the 
> least confusing to write it like:
> 
> var gridControl = new Grid( '#grid' )
> 
> where:
> 
> function Grid( dom_string ) {
> 
> jQuery( dom_string ).each( function() { instantiate here... } );
> ...
> }
> 
> Remember not everything needs to look like jQuery.
> 
> - Stephen
> 
> Dave Methvin wrote:
> > This will be a short thread--NOT! :-)
> >
> >   
> >> Controller set of methods is returned..
> >>
> >> $('#grid').grid().data(data).drig().show()
> >> $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
> >> 
> >
> > Uh, drig()? So if I want to return to I was before scrollToRow(6), should I
> > use (6)woRoTllorsc?  ;-)
> >
> > I don't know if this a good idiom; changing the object type within the chain
> > might be be too tricky. Also, would the plugin itself have a need for
> > chained methods to change its internal state? Still, to make your object
> > chainable like that, I think your $().grid method would just need to save
> > its jQuery "this" in your Grid object before returning:
> >
> > jQuery.fn.grid = function() {
> >   var gridObject = // ... get your grid object ...
> >   gridObject.jQuery = this;
> >   return gridObject;
> > }
> > jQuery.fn.drig = function() {
> >   return this.jQuery;
> > }
> >
> > As Jörn mentioned, you could still use $("#grid").grid() to create and/or
> > retrieve a Grid object, even if it wasn't chainable. It seems like you'd
> > want some way to determine whether it was a Grid creation or just getting an
> > existing object; you could have a separate $().createGrid() method or maybe
> > the $().grid() argument could be required on creation. (Also, should the
> > core should a standard way for plugins to associate object data with an
> > element, like it does with events?) 
> >
> > Whatever results from this discussion should go to the plugins authoring
> > page on the wiki, http://jquery.com/plugins/Authoring/
> >
> >
> > ___
> > jQ

Re: [jQuery] Reading comments from the dom.

2006-12-01 Thread Ⓙⓐⓚⓔ

here's my take on reading comments from the dom:

jQuery.fn.comments = function(location) {
   var location = location || "inside";
   var comments=[];
   this.each(function(){
   if (location == "inside"){
   var children =this.childNodes
   for (var i = 0; i < children.length; i++){
   var child = children[i];
   if (child.nodeType == 8) comments[comments.length] = $.trim(
child.nodeValue);
   }
   }else if (location=="after") {
   for (var next = this.nextSibling;next;next = next.nextSibling)
   if (next.nodeType == 8) comments[comments.length ] = $.trim(
next.nodeValue);
   }else if (location=="before") {
   for (var prev = this.previousSibling;prev;prev =
prev.previousSibling)
   if (prev.nodeType == 8) comments[comments.length ] = $.trim(
prev.nodeValue);
   }
   })
   return comments;
};

Tested in Firefox 2.0. & Opera. Along the way I found that in FF comments in
a  are not broken out in the dom. A minor inconvenience!
and in Safari comments from the original page are not include in the dom. A
major inconvenience!

Oh well!

--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

On 11/27/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:


Could be a cool addition to the metadata plugin. It's more semantic in
my opinion to have the meta data in a script tag if you don't wan it
directly attached to a dom element, but it would be cool nonetheless.

On 11/27/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> Although we rarely want to pay any attention (programmatically) to the
> comments in the html, I thought it would be cool to read them in jquery.

>
> They are in the dom, obj.nodeType == COMMENT_NODE. But jquery just skips
> over that node type.
>
> I could imagine doing $('a').prevComments() or $('a').nextComments() or
> $('a').Comments()
>
> A plugin could drop down to simple dom navigation to get the info and
then
> return the text.
>
> Has anyone done this? Does it sound useful to anyone?
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

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


Re: [jQuery] html() returns different val in Firefox and IE?

2006-12-01 Thread Dave Methvin
> Alright, here you go:
> http://the-in.com/htmlTester.aspx
>
> Click on the "edit" link at the end of the paragraph.  That
> should put the text into a textbox - when you change the
> text and click save, the textbox will go away, and the
> edited text will be shown.  As I said, working in FF, not IE.

Doesn't work in IE7 either. Using Fiddler I can see that the ajaxForm is
working fine and returns the modified data. If you click the edit button a
second time you see the modified text. I think the problem may be in the
processEdit(editMode, json) call; see what the value of editMode is inside
processEdit(). I would find a better way than globals to organize the
persistent data you need because that won't scale well.


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


Re: [jQuery] a new website with jQuery

2006-12-01 Thread Olivier Percebois-Garve

You just learned me something
I'll use that approach in the future..

olivvv

Fil wrote:

@ Olivier Percebois-Garve <[EMAIL PROTECTED]> :
  
The new design is great. Very readable. I noticed that you are using a 
non-compressed version a jquery...



It's compressed server-side with mod_gzip, no need to slow down the client

-- Fil


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

  


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


Re: [jQuery] MyDayLite (to-do list) release. All files included.

2006-12-01 Thread Morbus Iff
> Is there anything in the CVS to look at?  I'm working on a
> microformats module and I'd like to look opening an API for other
> modules such as yours to use the formats like hCalendar and hCard.

Psst. You know who I am. I already reviewed microid in IRC earlier 
today. Hit me up there and we'll talk about Case Tracker... ;)

-- 
Morbus Iff ( a blivet is 11 pounds of manure in a 10 pound sack )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

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


Re: [jQuery] loading content and using events

2006-12-01 Thread Solid Source

Try adding the submit handler into the loaded code so that it is evaluated
when the form is parsed. If this is not the answer can you plz submit all of
your related js?


Blair McKenzie-2 wrote:
> 
> You need to put this
> $("#submission_form").submit(function() {
>alert('click');
> });
> in the callback for the load. The order of things happening at the moment
> is
> probably something like:
> 1. Request form with .load
> 2. Attach event to all #submission_form's (of which there are none at the
> moment)
> 3. Receive the form back from load and add it
> 
> By putting the bind in the callback, you can be sure that the request is
> compeleted first.
> 
> Blair
> 
> On 12/2/06, roykolak <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello everybody,
>>
>> This question involves the following situation...
>>
>> The main html page has container divs that are blank.
>> When the page loads, a javascript function called 'pageLoad();' is
>> called.
>> This function fills a blank div called 'top' with a form.
>> It does this via .load('php/dspFrontPage.php')
>> dspFrontPage.php contains...
>>
>> > $toDisplay .= "";
>> $toDisplay .= "> name='firstSentence' />";
>> $toDisplay .= "> />";
>> $toDisplay .= '';
>>
>> echo $toDisplay;
>> ?>
>>
>> This form contains a text input and a submit button, standard stuff.
>>
>> On the main html page just below pageLoad(), an event for the submission
>> of
>> the form is waiting...
>>
>> $("#submission_form").submit(function() {
>> alert('click');
>> });
>>
>>
>> The .load event works just fine
>>
>> The problem here is that when the form is submitted, the submit event is
>> never called. When I copy and paste the form into the main html page (not
>> using .load), everything works fine.
>>
>> I'm new to the AJAX 'stuff'. Is there something I am missing? Or not
>> getting
>> right?
>>
>> Roy Kolak
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/loading-content-and-using-events-tf2741280.html#a7648795
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/loading-content-and-using-events-tf2741280.html#a7649006
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] MyDayLite (to-do list) release. All files included.

2006-12-01 Thread digital spaghetti
Hi there,

As soon as I started reading this thread I thought the exact same
thing about a drupal module, but it looks like you already have a
module in development.

Is there anything in the CVS to look at?  I'm working on a
microformats module and I'd like to look opening an API for other
modules such as yours to use the formats like hCalendar and hCard.

I may be a little OT here but I'm am certainlt planning to use a lot
of jQuery for the client side such as adding semantic classes to tags.

You can check out my module, its called microformats.

Tane
http://digitalspaghetti.me.uk

On 11/29/06, Morbus Iff <[EMAIL PROTECTED]> wrote:
>
> Brian - I'd like to potentially use and/or ship this with a Drupal
> module I've been working on which is a project management tool. Would
> you be willing to license your code under the GPL, such that I can
> include it within the Drupal CVS repository?
>
> --
> Morbus Iff ( dare you overpower my stench of vil? )
> Technical: http://www.oreillynet.com/pub/au/779
> Culture: http://www.disobey.com/ and http://www.gamegrene.com/
> icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] loading content and using events

2006-12-01 Thread Blair McKenzie

You need to put this
$("#submission_form").submit(function() {
  alert('click');
});
in the callback for the load. The order of things happening at the moment is
probably something like:
1. Request form with .load
2. Attach event to all #submission_form's (of which there are none at the
moment)
3. Receive the form back from load and add it

By putting the bind in the callback, you can be sure that the request is
compeleted first.

Blair

On 12/2/06, roykolak <[EMAIL PROTECTED]> wrote:



Hello everybody,

This question involves the following situation...

The main html page has container divs that are blank.
When the page loads, a javascript function called 'pageLoad();' is called.
This function fills a blank div called 'top' with a form.
It does this via .load('php/dspFrontPage.php')
dspFrontPage.php contains...

";
$toDisplay .= "";
$toDisplay .= "";
$toDisplay .= '';

echo $toDisplay;
?>

This form contains a text input and a submit button, standard stuff.

On the main html page just below pageLoad(), an event for the submission
of
the form is waiting...

$("#submission_form").submit(function() {
alert('click');
});


The .load event works just fine

The problem here is that when the form is submitted, the submit event is
never called. When I copy and paste the form into the main html page (not
using .load), everything works fine.

I'm new to the AJAX 'stuff'. Is there something I am missing? Or not
getting
right?

Roy Kolak


--
View this message in context:
http://www.nabble.com/loading-content-and-using-events-tf2741280.html#a7648795
Sent from the JQuery mailing list archive at Nabble.com.


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

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


[jQuery] loading content and using events

2006-12-01 Thread roykolak

Hello everybody,

This question involves the following situation...

The main html page has container divs that are blank.
When the page loads, a javascript function called 'pageLoad();' is called. 
This function fills a blank div called 'top' with a form.
It does this via .load('php/dspFrontPage.php')
dspFrontPage.php contains...

";
$toDisplay .= "";
$toDisplay .= "";
$toDisplay .= '';

echo $toDisplay;
?>

This form contains a text input and a submit button, standard stuff.

On the main html page just below pageLoad(), an event for the submission of
the form is waiting...

$("#submission_form").submit(function() {
alert('click');
});


The .load event works just fine

The problem here is that when the form is submitted, the submit event is
never called. When I copy and paste the form into the main html page (not
using .load), everything works fine.

I'm new to the AJAX 'stuff'. Is there something I am missing? Or not getting
right?

Roy Kolak


-- 
View this message in context: 
http://www.nabble.com/loading-content-and-using-events-tf2741280.html#a7648795
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Window Size

2006-12-01 Thread Sam Collett
On 01/12/06, Glen Lipka <[EMAIL PROTECTED]> wrote:
>  var dimensions = {width: 0, height: 0};
>  if (document.documentElement) {
>  dimensions.width =
> document.documentElement.offsetWidth;
>  dimensions.height =
> document.documentElement.offsetHeight ;
>  } else if (window.innerWidth && window.innerHeight) {
>  dimensions.width = window.innerWidth;
>  dimensions.height = window.innerHeight;
>  }
>
> Where is the dimensions plugin?  I cant find the link.
>
> Glen

Available via SVN:
http://jquery.com/dev/svn/trunk/plugins/dimensions/dimensions.js?format=txt

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


Re: [jQuery] Window Size

2006-12-01 Thread Glen Lipka

http://jquery.com/dev/svn/trunk/plugins/dimensions/dimensions.js?rev=587

Is there a homepage for this plugin?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Starting image

2006-12-01 Thread Jan Sorgalla

Hi,

i've updated jCarousel again to accept a new option "itemStart".
So, just do:

function itemFirstInHandler(carousel, li, idx, state) 
{
$.cookie('map', idx);
};

jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
itemStart: $.cookie('map'),
itemFirstInHandler: itemFirstInHandler
})
});

jCarousel takes care of validating itemStart to be not null and >= 1.

Jan


agent2026 wrote:
> 
> Hello again,
> 
> Still having a little trouble with this.  I can get it to scroll, but when
> I try to use the cookie value it's always being reset to the last image,
> and scrolling there.  Pretty sure I'm doing something wrong with the
> handlers, but not sure which I should use.  I've read the documentation,
> and tried a few different approaches, but no luck.
> 
> I need the carousel to get the cookie value, and scroll to that value.  If
> the image is changed by the user (ie next/prev), the cookie needs to be
> set to the new value of the visible image (I only have 1 image visible). 
> The next time the page is loaded, the carousel should scroll to the new
> value.
> 
> function mapsFIH(carousel, li, idx, state) {
>  jQuery('#lcHdr').get(0).innerHTML = ""+li.title+"";
>  if (state == "init" && $.cookie('map') != null) {
>carousel.scroll($.cookie('map'));
>console.log("scroll to: "+$.cookie('map'));
>  }
>  if (state == "next" || state == "prev") {
>mapsCookie(carousel, li, idx, state);
>  }
> };
> 
> function mapsCookie(carousel, li, idx, state) {
>   $.cookie('map', idx);
>   console.log("set cookie: "+$.cookie('map'));
> };
> 
> $(function() {
>  jQuery('#maps').jcarousel({
>   itemVisible:1,
>   itemScroll:1,
>   scrollAnimation:0,
>   wrap:true,
>   wrapPrev:true,
>   itemFirstInHandler:mapsFIH,
>  });
> });
> 
> 
> Just an idea, but maybe you could add this feature to the next version -
> remember:[true/false] - configuring the carousel to automatically scroll
> to the last viewed/focused image.  Think it would be a great feature, and
> would look really nice with scrollAnimation.
> 
> Adam
> 

-- 
View this message in context: 
http://www.nabble.com/Starting-image-tf2668575.html#a7648249
Sent from the jCarousel mailing list archive at Nabble.com.


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


Re: [jQuery] Window Size

2006-12-01 Thread Glen Lipka

var dimensions = {width: 0, height: 0};
if (document.documentElement) {
dimensions.width = document.documentElement.offsetWidth;
dimensions.height = document.documentElement.offsetHeight;
} else if (window.innerWidth && window.innerHeight) {
dimensions.width = window.innerWidth;
dimensions.height = window.innerHeight;
}

Where is the dimensions plugin?  I cant find the link.

Glen


On 12/1/06, Dave Methvin <[EMAIL PROTECTED]> wrote:


 > Is there a jQuery way to get the window size cross-platform,
> or should I be using the algorithm at:
> http://www.howtocreate.co.uk/tutorials/javascript/browserwindow



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


Re: [jQuery] html() returns different val in Firefox and IE?

2006-12-01 Thread leftend

Alright, here you go:

http://the-in.com/htmlTester.aspx

Click on the "edit" link at the end of the paragraph.  That should put the
text into a textbox - when you change the text and click save, the textbox
will go away, and the edited text will be shown.  As I said, working in FF,
not IE.  I also included all of the Javascript functions and such that I'm
using.  I'm going to be repeating this same process for a bunch of things on
a screen - thus the reason for all the js functions.

Thanks for any help you can provide!


dave.methvin wrote:
> 
>> Again, this is working fine in Firefox, but not in IE - so I
>> can't help but thinking I'm missing something simple.
>>  Any thoughts? 
> 
> I am thinking I would be rich if I could have trademarked the phrase "This
> is working fine in Firefox, but not in IE."
> 
> Can you post a link to a page that shows the problem?
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/html%28%29-returns-different-val-in-Firefox-and-IE--tf2740686.html#a7648073
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] IE7 native xmlhttp breaks load() ?

2006-12-01 Thread Paul McLanahan
You can also just pass your callback function as your 2nd parameter
and the load function will realize that this is the case and use it as
your callback.

$("#ajax_episodebox").load(url, function() { // This line

Paul

On 12/1/06, Doug Tabacco <[EMAIL PROTECTED]> wrote:
> Worked like a charm.  Thanks!
>
> -doug
>
> Joel Birch wrote:
> > Does it work if you change that line to:
> >
> >   $("#ajax_episodebox").load(url, {}, function() { // This line
> >
> > So change the second argument from 'false' to an empty object. I may
> > be way off but I'm not sure 'false' is a valid argument for $.load.
> > Maybe 'null' would be valid too, but an empty hash seems the surest bet.
> >
> > Joel.
> >
> >
> >
> > On 01/12/2006, at 3:21 PM, Doug Tabacco wrote:
> >
> >> $("#ajax_episodebox").load(url, false, function() { // This line
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


[jQuery] Corner plugin added to SVN

2006-12-01 Thread Mike Alsup
http://jquery.com/dev/svn/trunk/plugins/corner/jquery.corner.js?format=txt

This latest version fixes the problem with fixed-height divs.

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


Re: [jQuery] html() returns different val in Firefox and IE?

2006-12-01 Thread leftend

You aint kiddin...

It's behind a login right now, I'll work on getting a public page up - might
be a few minutes...

I'll let you know...


dave.methvin wrote:
> 
>> Again, this is working fine in Firefox, but not in IE - so I
>> can't help but thinking I'm missing something simple.
>>  Any thoughts? 
> 
> I am thinking I would be rich if I could have trademarked the phrase "This
> is working fine in Firefox, but not in IE."
> 
> Can you post a link to a page that shows the problem?
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/html%28%29-returns-different-val-in-Firefox-and-IE--tf2740686.html#a7647607
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Window Size

2006-12-01 Thread Dave Methvin
> Is there a jQuery way to get the window size cross-platform,
> or should I be using the algorithm at:
> http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
 
 
The dimensons.js plugin should do it, but if that's all you need it is
probably simpler to grab the two or three lines you need and insert it into
your code.
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] html() returns different val in Firefox and IE?

2006-12-01 Thread Dave Methvin
> Again, this is working fine in Firefox, but not in IE - so I
> can't help but thinking I'm missing something simple.
>  Any thoughts? 

I am thinking I would be rich if I could have trademarked the phrase "This
is working fine in Firefox, but not in IE."

Can you post a link to a page that shows the problem?


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


[jQuery] Window Size

2006-12-01 Thread Yehuda Katz

Is there a jQuery way to get the window size cross-platform, or should I be
using the algorithm at:
http://www.howtocreate.co.uk/tutorials/javascript/browserwindow

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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread Alex Cook
If the spider allows for JS code, then yea it should be fine, but I
don't know of many spiders that do more then look at the raw text of the
file and then index it.  I'm not familiar with MicroID so I really can't
answer.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of digital spaghetti
Sent: Friday, December 01, 2006 12:50 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Using .addClass() to add dynamic class not for CSS

Yea, I figured it out in the end, but now I'm really happy with the
results.

One question I do have.  Since the class that I add is supposed to be
indexed by a microid spider, do you think these on-the-fly changes
will be picked up as the content is not really embedded but added on a
page view?  That's the only issue I'm worried about.

Tane
http://digitalspaghetti.me.uk

On 12/1/06, Alex Cook <[EMAIL PROTECTED]> wrote:
> You want to look at the Generated Source, not the normal Source FF
> started with.  FF doesn't update that view as JS changes are made, so
> it's pointless to check that.  Firebug or the Web Developers Toolbar
> would help you out a lot.
>
> -ALEX
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
> Behalf Of digital spaghetti
> Sent: Friday, December 01, 2006 6:51 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Using .addClass() to add dynamic class not for
CSS
>
> Paul,
>
> Actually it is working, Firebug has confirmed it for me, I was trying
> to view source in firefox.  I just hope this means that MicroID
> checked can still pick it up
>
> Tane
>
> On 12/1/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
> > I don't know if this is the problem or not, but I do notice a type-o
> > in your script:
> >
> > You have:
> > $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> >
> > Should be:
> > $("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")
> >
> > Notice the quotes around "node". I also switched your match from *=
to
> > ^= because from your example it appears you were looking for the ID
> > attrib to start with "node".  But the *= should work fine as well.
My
> > quess is that it was the lack of quotes around "node" that's the
> > trouble.  addClass is the correct method to use, I just think that
> > your query isn't finding any nodes.
> >
> > Hope this helps,
> >
> > Paul
> >
> > On 12/1/06, digital spaghetti <[EMAIL PROTECTED]>
wrote:
> > > Hey folks,
> > >
> > > I am working on a Microcontent module for Drupal that uses jQuery,
> but
> > > I cannot seem to get that functionality to work.  I need to ask,
> does
> > > .addClass actually add class text to a tag, or is it just applying
> it
> > > in the background.  To explain, my code looks like this:
> > >
> > > $(function(){
> > >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > > });
> > >
> > > Now, $hash is generated from hashing the users email and homepage
> url.
> > >  When I add the JS to drupal_add_js, this is how it outputs, so I
> know
> > > this bit is working:
> > >
> > > 
> > > $(function(){
> > >
>
$("[EMAIL PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137
> bf8aa3")
> > > });
> > > 
> > >
> > > But when I check any div tags that have  (n being
> the
> > > node number) the class list still looks the same.  If .addClass is
> the
> > > wrong thing, can anyone suggest another way I go about this?
> > >
> > > Regards,
> > > Tane
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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

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


Re: [jQuery] MyDayLite (to-do list) release. All files included.

2006-12-01 Thread Rexbard

Brian,

I temporarily messed up the list by adding a todo with the following text:
alert("Hello World")

Once this todo was entered, Firefox wouldn't show most of the list items
(they were obscured by being inside the script tag). IE, however, allowed my
to go back in and delete the errant todo.


Brian Litzinger wrote:
> 
> Online Demo: http://brianlitzinger.com/mydaylite/demo/
> 

-- 
View this message in context: 
http://www.nabble.com/MyDayLite-%28to-do-list%29-release.-All-files-included.-tf2725759.html#a7647008
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] html() returns different val in Firefox and IE?

2006-12-01 Thread leftend

I encountering some strange inconsistencies between Firefox and IE in regards
to the .html() method.  In Firefox everything's working fine - but in IE,
the previous html gets returned.  An example would explain the problem best:

I have html like this:


text to change here |  #
edit 

I use the outer div to hide everything in it, and the inner span to change
only the text within it.  So, my script looks like this:

//hide view div and show edit div
$("#viewToggle").css({display:"none"});  //using css for safari
$("#editToggle").css({display:""});

//I use ajax to get a new string here

//then, I replace the span with the next string
$("#aboutYou").empty().html(newString);
//doing an alert here shows that the text change successfully
alert($("#aboutYou").html());   //good!

//show the view div and hide the edit div
$("#viewToggle").css({display:""});
$("#editToggle").empty().css({display:"none"});

//doing an alert here shows that the text was changed back to the previous
text
alert($("#aboutYou").html());   //bad!


Again, this is working fine in Firefox, but not in IE - so I can't help but
thinking I'm missing something simple.  Any thoughts?

Thanks,
Chad
-- 
View this message in context: 
http://www.nabble.com/html%28%29-returns-different-val-in-Firefox-and-IE--tf2740686.html#a7646807
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Cookies Redux

2006-12-01 Thread Rexbard

I began to rework some old cookie code when Klaus released his great and tiny
cookie utility (see http://jquery.com/plugins/), so I put mine back on the
shelf.

Over the last couple of weekends, I pulled my code back out to make it
available anyway. The next step, if I continue with this, is to reduce some
of the verbose code.

You can see my cookies.js and cookieJar.js as
http://www.dmlair.com/jquery/jqCookies/.

BTW: The demo page uses jQuery, but the cookie libraries do not.
-- 
View this message in context: 
http://www.nabble.com/Cookies-Redux-tf2740640.html#a7646669
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread Rexbard

Other navigation keys need to be handled too (Home, Page Up, space bar, etc).
Currently, they can be used to get around the modality of the dialog and
access content that is not masked.

If changing the focus is handled, can you extend the mask to the entire
window instead of just the viewport?


zaadjis wrote:
> 
> you can prevent 'tabbing' using document.activeElement: ...
> 
> 
> Gavin M. Roy wrote:
>> 
>> The demo and download is available at http://jquery.glyphix.com
>> 
> 

-- 
View this message in context: 
http://www.nabble.com/modalContent-Plugin-0.7-tf2735715.html#a7646073
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread digital spaghetti
Yea, I figured it out in the end, but now I'm really happy with the results.

One question I do have.  Since the class that I add is supposed to be
indexed by a microid spider, do you think these on-the-fly changes
will be picked up as the content is not really embedded but added on a
page view?  That's the only issue I'm worried about.

Tane
http://digitalspaghetti.me.uk

On 12/1/06, Alex Cook <[EMAIL PROTECTED]> wrote:
> You want to look at the Generated Source, not the normal Source FF
> started with.  FF doesn't update that view as JS changes are made, so
> it's pointless to check that.  Firebug or the Web Developers Toolbar
> would help you out a lot.
>
> -ALEX
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of digital spaghetti
> Sent: Friday, December 01, 2006 6:51 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Using .addClass() to add dynamic class not for CSS
>
> Paul,
>
> Actually it is working, Firebug has confirmed it for me, I was trying
> to view source in firefox.  I just hope this means that MicroID
> checked can still pick it up
>
> Tane
>
> On 12/1/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
> > I don't know if this is the problem or not, but I do notice a type-o
> > in your script:
> >
> > You have:
> > $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> >
> > Should be:
> > $("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")
> >
> > Notice the quotes around "node". I also switched your match from *= to
> > ^= because from your example it appears you were looking for the ID
> > attrib to start with "node".  But the *= should work fine as well.  My
> > quess is that it was the lack of quotes around "node" that's the
> > trouble.  addClass is the correct method to use, I just think that
> > your query isn't finding any nodes.
> >
> > Hope this helps,
> >
> > Paul
> >
> > On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> > > Hey folks,
> > >
> > > I am working on a Microcontent module for Drupal that uses jQuery,
> but
> > > I cannot seem to get that functionality to work.  I need to ask,
> does
> > > .addClass actually add class text to a tag, or is it just applying
> it
> > > in the background.  To explain, my code looks like this:
> > >
> > > $(function(){
> > >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > > });
> > >
> > > Now, $hash is generated from hashing the users email and homepage
> url.
> > >  When I add the JS to drupal_add_js, this is how it outputs, so I
> know
> > > this bit is working:
> > >
> > > 
> > > $(function(){
> > >
> $("[EMAIL PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137
> bf8aa3")
> > > });
> > > 
> > >
> > > But when I check any div tags that have  (n being
> the
> > > node number) the class list still looks the same.  If .addClass is
> the
> > > wrong thing, can anyone suggest another way I go about this?
> > >
> > > Regards,
> > > Tane
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Hover over div layers

2006-12-01 Thread Ⓙⓐⓚⓔ

Dan!

Welcome to jquery! I've been recommending jquery on yahooo answers for
months now... solved a lot of problems, and introduce some folks to
jquery... you're the first I've seen post to the list! Jörn's tooltip
plugin  is cool and can solve lots of your needs!

JakeCigar on Yah! Answers

On 12/1/06, Acuff, Daniel (Comm Lines, PAC) <[EMAIL PROTECTED]>
wrote:


 I posted on Answers.Yahoo.com and was told jquery is the best tool for
making links that show a hidden div layer.

*http://answers.yahoo.com/question/index?qid=20061201095722AAvfws3&r=w*

I would love to have the ones that appear when hoveing over links like at
Answers.Yahoo.com when you over over a persons avatar or the Motley Fool
website that displays data on stock symbols.

How is this *BEST* done using Jquery please?

Thanks.
dan




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


[jQuery] My ThickBoxMod

2006-12-01 Thread agent2026

Hey guys,

Just thought I'd throw my ThickBox files up here.  I've made many, if not
most, of the changes posted here for improvements and enhancements, as well
as a few of my own.  I've tried to credit and comment where ever I've made
changes, but I'm sure I've missed a few of these.  Anyway, it's pretty ugly
with all the commented out code and notes, but I wanted the changes to be
visible.  I decided to give it to the group in case, with the changes, some
more refinements could be made.  6k packed as it is now.

http://www.nabble.com/file/4400/thickboxMod.js thickboxMod.js 
http://www.nabble.com/file/4401/thickbox.css thickbox.css 

There is one more thing I would like to achieve.  With my changes to how the
overlay size is handled, the underlying page no longer scrolls behind the
ThickBox in FF 2.0.  Haven't tested FF 1.5 or any of the Mac browsers, but
everything else looks good with modern browsers (and those that are current,
yet not modern).

Adam
-- 
View this message in context: 
http://www.nabble.com/My-ThickBoxMod-tf2740161.html#a7645100
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread Alex Cook
You want to look at the Generated Source, not the normal Source FF
started with.  FF doesn't update that view as JS changes are made, so
it's pointless to check that.  Firebug or the Web Developers Toolbar
would help you out a lot.

-ALEX

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of digital spaghetti
Sent: Friday, December 01, 2006 6:51 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Using .addClass() to add dynamic class not for CSS

Paul,

Actually it is working, Firebug has confirmed it for me, I was trying
to view source in firefox.  I just hope this means that MicroID
checked can still pick it up

Tane

On 12/1/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
> I don't know if this is the problem or not, but I do notice a type-o
> in your script:
>
> You have:
> $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
>
> Should be:
> $("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")
>
> Notice the quotes around "node". I also switched your match from *= to
> ^= because from your example it appears you were looking for the ID
> attrib to start with "node".  But the *= should work fine as well.  My
> quess is that it was the lack of quotes around "node" that's the
> trouble.  addClass is the correct method to use, I just think that
> your query isn't finding any nodes.
>
> Hope this helps,
>
> Paul
>
> On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> > Hey folks,
> >
> > I am working on a Microcontent module for Drupal that uses jQuery,
but
> > I cannot seem to get that functionality to work.  I need to ask,
does
> > .addClass actually add class text to a tag, or is it just applying
it
> > in the background.  To explain, my code looks like this:
> >
> > $(function(){
> >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > });
> >
> > Now, $hash is generated from hashing the users email and homepage
url.
> >  When I add the JS to drupal_add_js, this is how it outputs, so I
know
> > this bit is working:
> >
> > 
> > $(function(){
> >
$("[EMAIL PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137
bf8aa3")
> > });
> > 
> >
> > But when I check any div tags that have  (n being
the
> > node number) the class list still looks the same.  If .addClass is
the
> > wrong thing, can anyone suggest another way I go about this?
> >
> > Regards,
> > Tane
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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

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


Re: [jQuery] IE7 native xmlhttp breaks load() ?

2006-12-01 Thread Doug Tabacco
Worked like a charm.  Thanks!

-doug

Joel Birch wrote:
> Does it work if you change that line to:
> 
>   $("#ajax_episodebox").load(url, {}, function() { // This line
> 
> So change the second argument from 'false' to an empty object. I may  
> be way off but I'm not sure 'false' is a valid argument for $.load.  
> Maybe 'null' would be valid too, but an empty hash seems the surest bet.
> 
> Joel.
> 
> 
> 
> On 01/12/2006, at 3:21 PM, Doug Tabacco wrote:
> 
>> $("#ajax_episodebox").load(url, false, function() { // This line
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/


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


Re: [jQuery] a new website with jQuery

2006-12-01 Thread Fil
@ Olivier Percebois-Garve <[EMAIL PROTECTED]> :
> The new design is great. Very readable. I noticed that you are using a 
> non-compressed version a jquery...

It's compressed server-side with mod_gzip, no need to slow down the client

-- Fil


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


Re: [jQuery] Hover over div layers

2006-12-01 Thread Dave Methvin
> I posted on Answers.Yahoo.com and was told jquery
> is the best tool for making links that show a hidden div layer. 

Finally, the creators of YUI come to their senses! :-) 

Sounds like Jörn's tooltip plugin is what you want.

http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ 



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


Re: [jQuery] fadeOut for each

2006-12-01 Thread Dave Methvin

> I use $(".rounded").fadeOut(900) to nicely fade out
> some elements.This is wrapped in a setTimeout()
> thing so that it happens after 10 seconds.

Looks like seven seconds, but anyway, you can use :visible in the selector
to avoid the each:

   window.setTimeout(function() {
  $(".rounded:visible").fadeOut(900);
   }, 1000*7);

If you can narrow down the selector a bit more (like div.rounded) it would
be more efficient. The way it is now, it will have to look at every element
in document.body to determine whether they are in the rounded class. That
ain't cheap on a big page.


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


[jQuery] Hover over div layers

2006-12-01 Thread Acuff, Daniel \(Comm Lines, PAC\)
I posted on Answers.Yahoo.com and was told jquery is the best tool for
making links that show a hidden div layer.

http://answers.yahoo.com/question/index?qid=20061201095722AAvfws3&r=w

I would love to have the ones that appear when hoveing over links like
at Answers.Yahoo.com when you over over a persons avatar or the Motley
Fool website that displays data on stock symbols.

How is this *BEST* done using Jquery please?

Thanks.
dan


*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*

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


[jQuery] fadeOut for each

2006-12-01 Thread Peter Bengtsson
I use $(".rounded").fadeOut(900) to nicely fade out some elements.
This is wrapped in a setTimeout() thing so that it happens after 10 
seconds. If someone has already manually closed one of the elements, I 
have to use this code::

 window.setTimeout(function() {
   $(".rounded").each(function() {
 if(this.style['display']!='none')
   $(this).fadeOut(900);
   })
 }, 1000*7);

What do more experienced jQuery people think about that approach?
Is that the easiest way to do it?


-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com

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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Sam Collett
On 01/12/06, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> If this type of functionality starts to be
> required I would suggest including a standard way for plugins to
> easily restore state (.end()) in the core. Destructive methods will be
> no more in 1.1, so I don't think .end() will be around either.

Going a bit offtopic, but how would it work if it is non-destrutive?








$("div").eq(0).append("(first)").eq(1).append("(second)").filter(".foo").append("(has
class foo)");

If 'end' is executed before the next filter/eq etc, then the result
would be the following (rather than just the first append working).

(first)

(has class foo)(second)

(has class foo)


Also, what if you did (I'm assuming 0 based, so lt(2) returns those
before the 3rd):

$("div").lt(2).gt(0);

Would that result in the first 2 div's being selected, or all 3? If
all three, then you would need 'between' as a function
($("div").between(0,2)). Also you may want to do something a bit more
complex:

$("div").lt(2).filter(".foo"); // should return the second div only

Or am I not understanding non-destructive properly?

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


Re: [jQuery] a new website with jQuery

2006-12-01 Thread Olivier Percebois-Garve
The new design is great. Very readable. I noticed that you are using a 
non-compressed version a jquery...

olivvv

Fil wrote:
> or, a rather old website (founded circa 1994) that has launched a new
> version, jquery-ed. http://www.monde-diplomatique.fr/
>
> thanks John, Jörn and all
>
> jQuery is credited @ http://www.monde-diplomatique.fr/diplo/logiciels/
>
> -- Fil
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>   


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


Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread Ⓙⓐⓚⓔ

Java thinks all internal characters are utf... if you want to read gb2312
you have to convert them.

On 12/1/06, 齐永恒 <[EMAIL PROTECTED]> wrote:


i use gb2312, because my database is gbk, and our project all src is
gb2312 coding, i use java, i find my server once recive is wrong encoding.
so i want to know jQ post the data use what encoding?

在06-12-1,Blair McKenzie <[EMAIL PROTECTED]> 写道:
>
>
>- The page with the script will need to have the correct encoding
>- The page you are requesting needs to have the correct encoding (
>e.g. php has a method for setting encoding of page)
>- If you are using database data, the database needs to be
>configured to use the correct encoding
>
>
> Others probably have more details.
>
> Blair
>
>
> On 12/1/06, 齐永恒 < [EMAIL PROTECTED]> wrote:
> >
> > hi everyone
> > i am a Chinaese, i use jQ and form plusin , i find the Chinaese is
> > posted the wrong coding.
> > could you tel me what i will do.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


--
yours 齐永恒
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/






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


[jQuery] a new website with jQuery

2006-12-01 Thread Fil

or, a rather old website (founded circa 1994) that has launched a new
version, jquery-ed. http://www.monde-diplomatique.fr/

thanks John, Jörn and all

jQuery is credited @ http://www.monde-diplomatique.fr/diplo/logiciels/

-- Fil


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


Re: [jQuery] MyDayLite (to-do list) release. All files included.

2006-12-01 Thread Brian Litzinger

Thanks for the feedback! 

I agree it isn't the most intuitive app the first time you open it, but like
someone mentioned, once you view the vid or read the help page it should be
more clear. There are quite a few hidden things like the marking off of a
to-do(big thanks  http://shib71.googlepages.com/index.htm to Blair McKenzie
for writing that  after I inquired about it on the discussion list), or the
typing shortcuts that I wasn't sure how to explain on page, but maybe a one
time, or first time use tooltip pops up and explains it. 

The sorting does need some tweaking. Like you mentioned just clicking on a
priority should bring up a bubble asking what to change the priority to
instead of requiring a drag every time.

As for the addition of due dates and stuff... I'm not sure if I want to
include that in this part. I kind of built this the way I would like to use
it, and for simple to-do lists dates just seem to get in the way, especially
if they're required. If I have a to-do I need to get done by December 14th,
I'd rather just type that in. This is called MyDayLite because its basically
the core functionality of a grander project. I'm hoping to build a full
scale project management app out of it, which will include to-do details,
due dates, assignments, and simple asset and time management. I eventually
want to have Gmail, Google Calendar, and this project mangement app open at
the same time and have it feel like a suite. I took a stab at creating a PM
tool and highly based it off Basecamp, but in the end it didn't feel right
to me. It worked great, but I wanted to take a slightly different approach
to it.

Right now the biggest things I want to look at are cleaning the text so an
html tag doesn't blow up the page, and changing the editing text field to
textarea. After that I'll look at making it a little more intuitive.

Thanks again for the suggestions :)

Brian




 



Chris W. Parker wrote:
> 
> Sorry for the long email but I enjoy thinking about and tweaking
> interfaces to make them easier to use so that's why I seem to just go on
> and on. If you're not interested in this kind of thing or take offense
> with constructive criticism then you should probably stop reading now.
> :)
> 
> On Wednesday, November 29, 2006 10:37 PM Juha Suni <> said:
> 
>> I'm answering for Brian since I had pretty much the same questions
>> when I started testing it. Found the answers and actually the user
>> interface is really intuitive once you "get" it.
> 
> I wouldn't call it intuitive. It's not intuitive because the knowledge I
> have about the interface when I first started using it wasn't enough to
> actually use it fully. In this case the application should give hints
> and/or instructions.
> 
> Having said all that, the interface is definitely cool and I understand
> it's only at v0.2. I think Brian has made a really slick app so far with
> some great ideas.
> 
>> 1. Changing the priority happens by just dragging the item up and
>> down. Since they are ordered from high to low, the app knows how to
>> set the new priority according to your drag. An if you drag a low
>> item to between med and high items, it conveniently just asks you
>> which one do you want the dragged item to be.
> 
> When you hover over these links for a sustained amount of time, or if
> you click and don't move, it'd be good for a popup/tooltip to appear
> that says, "Drag up or down to change priority."
> 
>> 2. The whole form doesn't disable. Using the checkboxes you can
>> select items and then select a new lable for them from the top.
> 
> When you check a box for the first time it'd be good for a tooltip to
> appear at the labels dropdown saying, "To change a task's label choose
> one from the following list." This could use cookies so that it is only
> shown once per computer/user.
> 
>> 3. There are small + and - links near the label, these can be used to
>> create new lables or edit old ones.
> 
> This one is ok I think. But maybe a tighter visual relationship between
> the dropdown and the +/- would be helpful.
> 
>> You can also create a new label
>> quickly by typing out "MyNewLabelName>", or even create the todo-item
>> for it at the same time using "MyNewLabelName->MyNewTodoItem". There
>> is also a shortcut for setting the priority. Just type "med!" and it
>> will change to medium.
> 
> This is cool but definitely not intuitive.
> 
> Again, upon first click in the task box a tooltip can appear that says
> "This is where new tasks go. To add a new or already existing label,
> type 'label> task'. To set a tasks priority type 'low!', 'med!', or
> 'high!'."
> 
>> 4. This was something I hadn't seen before and really intuitive. You
>> do it like you would with a pen and paper. Try drawing a line on top
>> of the item, from left to right. Yes, with your mouse - click'n'drag.
>> To remove the line do it from right to left. Works amazingly well.
> 
> Yes this is very cool and a good idea, but definitely not intuitive.
> When was the

Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread digital spaghetti
On 12/1/06, Marc Jansen <[EMAIL PROTECTED]> wrote:
> Hi digital spaghetti,
>
> digital spaghetti schrieb:
> > Hey folks,
> >
> > I am working on a Microcontent module for Drupal that uses jQuery, but
> > I cannot seem to get that functionality to work.  I need to ask, does
> > .addClass actually add class text to a tag, or is it just applying it
> > in the background.  To explain, my code looks like this:
> >
> > $(function(){
> >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > });
> >
> >
> Ignore this post if I totally miss something, but:
>
> What do the dots (.) around $hash do? Is $hash a jquery-variable? Some
> PHP? I thought you wanted to concatenate a classname as a string, but I
> can't see the JavaScript-plus-operator. (and the dots keep thinking me
> of PHP-concatenation)
>
> This is rather confusing... at least to me.
>

Hi Marc,

Ignore this - it's a PHP variable.  You are seeing this code out of
context as to add jQuery to a drupal page you use a function called
drupal_add_js:

drupal_add_js('$(function(){$("[EMAIL PROTECTED]").addClass("microid-' .
$hash . '")});', 'inline');

It's very handy, as it allows you to mix JS and PHP.  The 'inline' as
the end add's it to the header, without 'inline' you can add JS files
to your header.

Tane

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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread Giuliano Marcangelo

If you have the FF Web Developer Extension by Chris Pederick, you can check
which classes are being added to elements within your document by using
"View Generated Source", rather than "View Source"...

hth

On 01/12/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:


Yeah.. you're right. Even without the quotes your code works perfectly
for me.  I added your code to a test page with svn-jquery and some
divs with id's like "node-12", and checked the dom via both firebug
and the view formatted source extension and the class is there.  I
dunno what to tell you I'm using FF 1.5.0.8.

How are you checking the div tags for the class?

On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> Paul,
>
> Actually it is working, Firebug has confirmed it for me, I was trying
> to view source in firefox.  I just hope this means that MicroID
> checked can still pick it up
>
> Tane
>
> On 12/1/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
> > I don't know if this is the problem or not, but I do notice a type-o
> > in your script:
> >
> > You have:
> > $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> >
> > Should be:
> > $("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")
> >
> > Notice the quotes around "node". I also switched your match from *= to
> > ^= because from your example it appears you were looking for the ID
> > attrib to start with "node".  But the *= should work fine as well.  My
> > quess is that it was the lack of quotes around "node" that's the
> > trouble.  addClass is the correct method to use, I just think that
> > your query isn't finding any nodes.
> >
> > Hope this helps,
> >
> > Paul
> >
> > On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> > > Hey folks,
> > >
> > > I am working on a Microcontent module for Drupal that uses jQuery,
but
> > > I cannot seem to get that functionality to work.  I need to ask,
does
> > > .addClass actually add class text to a tag, or is it just applying
it
> > > in the background.  To explain, my code looks like this:
> > >
> > > $(function(){
> > >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > > });
> > >
> > > Now, $hash is generated from hashing the users email and homepage
url.
> > >  When I add the JS to drupal_add_js, this is how it outputs, so I
know
> > > this bit is working:
> > >
> > > 
> > > $(function(){
> >
>  $("[EMAIL 
PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137bf8aa3")
> > > });
> > > 
> > >
> > > But when I check any div tags that have  (n being
the
> > > node number) the class list still looks the same.  If .addClass is
the
> > > wrong thing, can anyone suggest another way I go about this?
> > >
> > > Regards,
> > > Tane
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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

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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread Marc Jansen
Hi digital spaghetti,

digital spaghetti schrieb:
> Hey folks,
>
> I am working on a Microcontent module for Drupal that uses jQuery, but
> I cannot seem to get that functionality to work.  I need to ask, does
> .addClass actually add class text to a tag, or is it just applying it
> in the background.  To explain, my code looks like this:
>
> $(function(){
>  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> });
>
>   
Ignore this post if I totally miss something, but:

What do the dots (.) around $hash do? Is $hash a jquery-variable? Some 
PHP? I thought you wanted to concatenate a classname as a string, but I 
can't see the JavaScript-plus-operator. (and the dots keep thinking me 
of PHP-concatenation)

This is rather confusing... at least to me.

-- Marc




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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread Paul McLanahan
Yeah.. you're right. Even without the quotes your code works perfectly
for me.  I added your code to a test page with svn-jquery and some
divs with id's like "node-12", and checked the dom via both firebug
and the view formatted source extension and the class is there.  I
dunno what to tell you I'm using FF 1.5.0.8.

How are you checking the div tags for the class?

On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> Paul,
>
> Actually it is working, Firebug has confirmed it for me, I was trying
> to view source in firefox.  I just hope this means that MicroID
> checked can still pick it up
>
> Tane
>
> On 12/1/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
> > I don't know if this is the problem or not, but I do notice a type-o
> > in your script:
> >
> > You have:
> > $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> >
> > Should be:
> > $("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")
> >
> > Notice the quotes around "node". I also switched your match from *= to
> > ^= because from your example it appears you were looking for the ID
> > attrib to start with "node".  But the *= should work fine as well.  My
> > quess is that it was the lack of quotes around "node" that's the
> > trouble.  addClass is the correct method to use, I just think that
> > your query isn't finding any nodes.
> >
> > Hope this helps,
> >
> > Paul
> >
> > On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> > > Hey folks,
> > >
> > > I am working on a Microcontent module for Drupal that uses jQuery, but
> > > I cannot seem to get that functionality to work.  I need to ask, does
> > > .addClass actually add class text to a tag, or is it just applying it
> > > in the background.  To explain, my code looks like this:
> > >
> > > $(function(){
> > >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > > });
> > >
> > > Now, $hash is generated from hashing the users email and homepage url.
> > >  When I add the JS to drupal_add_js, this is how it outputs, so I know
> > > this bit is working:
> > >
> > > 
> > > $(function(){
> > >  $("[EMAIL 
> > > PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137bf8aa3")
> > > });
> > > 
> > >
> > > But when I check any div tags that have  (n being the
> > > node number) the class list still looks the same.  If .addClass is the
> > > wrong thing, can anyone suggest another way I go about this?
> > >
> > > Regards,
> > > Tane
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Brandon Aaron
On 12/1/06, Sam Collett <[EMAIL PROTECTED]> wrote:
> An perhaps have a method that returns you back to jQuery object?
> Calling it 'end' (or any other jQuery method name) may be confusing,
> something like 'endGrid'.

I don't think using .end() would be confusing. If it makes sense for a
plugin to use method chaining then why not use the standard for
returning state, .end(). If this type of functionality starts to be
required I would suggest including a standard way for plugins to
easily restore state (.end()) in the core. Destructive methods will be
no more in 1.1, so I don't think .end() will be around either.
However, it seems to make sense (to me at least) to be used in
situations like these.

$('#foo').grid({data:data}).show()
.gridController() // load grid object
.scrollToRow(6).anything().else().with().grid()
.end(); // back to jQuery

--
Brandon Aaron

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


Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread Mike Alsup
> If you had the user define the animation effect in terms of the actual
> jQuery method names ("fadeIn", "slideDown", "show") and made the default be
> "show", you could replace all of that with one line:
>
> modalContent.css({top: mdcTop+'px', left: 
> mdcLeft+px}).hide()[animation](speed);


Nice, Dave!

And nice plugin, Gavin.  I like how easy it is to use.

Mike

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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread digital spaghetti
Paul,

Actually it is working, Firebug has confirmed it for me, I was trying
to view source in firefox.  I just hope this means that MicroID
checked can still pick it up

Tane

On 12/1/06, Paul McLanahan <[EMAIL PROTECTED]> wrote:
> I don't know if this is the problem or not, but I do notice a type-o
> in your script:
>
> You have:
> $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
>
> Should be:
> $("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")
>
> Notice the quotes around "node". I also switched your match from *= to
> ^= because from your example it appears you were looking for the ID
> attrib to start with "node".  But the *= should work fine as well.  My
> quess is that it was the lack of quotes around "node" that's the
> trouble.  addClass is the correct method to use, I just think that
> your query isn't finding any nodes.
>
> Hope this helps,
>
> Paul
>
> On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> > Hey folks,
> >
> > I am working on a Microcontent module for Drupal that uses jQuery, but
> > I cannot seem to get that functionality to work.  I need to ask, does
> > .addClass actually add class text to a tag, or is it just applying it
> > in the background.  To explain, my code looks like this:
> >
> > $(function(){
> >  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> > });
> >
> > Now, $hash is generated from hashing the users email and homepage url.
> >  When I add the JS to drupal_add_js, this is how it outputs, so I know
> > this bit is working:
> >
> > 
> > $(function(){
> >  $("[EMAIL 
> > PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137bf8aa3")
> > });
> > 
> >
> > But when I check any div tags that have  (n being the
> > node number) the class list still looks the same.  If .addClass is the
> > wrong thing, can anyone suggest another way I go about this?
> >
> > Regards,
> > Tane
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] iFxTransfer problem with IE

2006-12-01 Thread Paul McLanahan
Hi Nerique,

Is "el" a jQuery object or just a DOM node?  Do you have an example
page where we could see the error?

On 11/30/06, nerique <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> nodoby can help ? i m really annoyed and am not able to find a solution.
> If nobody wants to help me, could you please tell me where i'll be able to
> find some help ?
>
> Thanks,
>
>
> nerique wrote:
> >
> > Hi,
> > I meet a problem with the ifxtransfer plugin. It doesn't work with IE7.
> > COuld you help ?
> >
> > el.TransferTo(
> > {
> > to: 'd_' + el.attr('id'),
> > duration: 500,
> > complete: function(to)
> > {
> >
> > $(to).click(deleteFromSelectedCategories).Pulsate(100,2);
> > }
> > }
> > ).Puff(400);
> >
> > This returns me an error in Jquery on es=e.style.
> >
> > Thanks for your time.
> >
> > Nerique
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/iFxTransfer-problem-with-IE-tf2718478.html#a7616086
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread Dave Methvin

>> You could reduce the code by using switch

Switch usually ends up being vertical code, lookup tables are often shorter
and faster. In Javascript, switch is just a nice-looking form of
if-then-else.

> modalContent.top(mdcTop + 'px').left(mdcLeft + 'px');
> switch(animation){
> case 'fade':
> modalContent.fadeIn(speed);
> break;
>   case 'slide':
> modalContent.hide().slideDown(speed);
> break;
>   case 'show':
> modalContent.show();
> break;
> }

If you had the user define the animation effect in terms of the actual
jQuery method names ("fadeIn", "slideDown", "show") and made the default be
"show", you could replace all of that with one line:

modalContent.css({top: mdcTop+'px', left:
mdcLeft+px}).hide()[animation](speed);

If you want to keep the same names it's just a lookup table:

var fx = {fade: 'fadeIn', slide: 'slideDown'}[animation] || 'show';
modalContent.css({top: mdcTop+'px', left: mdcLeft+px}).hide()[fx](speed);

I changed the code a bit in the transformation, it seemed like .hide() could
always be applied and show can now take a speed.

Also, I noticed that this plugin uses $(window).unbind("resize") to clear
its resize handler. That will also clear anyone else's resize handler!
Plugins should always pass in the second arg identifying the handler to be
removed, otherwise they won't play nicely with others.


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


Re: [jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread Paul McLanahan
I don't know if this is the problem or not, but I do notice a type-o
in your script:

You have:
$("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")

Should be:
$("[EMAIL PROTECTED]'node']").addClass("microid-' . $hash . '")

Notice the quotes around "node". I also switched your match from *= to
^= because from your example it appears you were looking for the ID
attrib to start with "node".  But the *= should work fine as well.  My
quess is that it was the lack of quotes around "node" that's the
trouble.  addClass is the correct method to use, I just think that
your query isn't finding any nodes.

Hope this helps,

Paul

On 12/1/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> Hey folks,
>
> I am working on a Microcontent module for Drupal that uses jQuery, but
> I cannot seem to get that functionality to work.  I need to ask, does
> .addClass actually add class text to a tag, or is it just applying it
> in the background.  To explain, my code looks like this:
>
> $(function(){
>  $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
> });
>
> Now, $hash is generated from hashing the users email and homepage url.
>  When I add the JS to drupal_add_js, this is how it outputs, so I know
> this bit is working:
>
> 
> $(function(){
>  $("[EMAIL 
> PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137bf8aa3")
> });
> 
>
> But when I check any div tags that have  (n being the
> node number) the class list still looks the same.  If .addClass is the
> wrong thing, can anyone suggest another way I go about this?
>
> Regards,
> Tane
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Brian Miller
Heh, I should have read this first, before suggesting it myself.  *blush*

- Brian

> On 01/12/06, Christof Donat <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> > Controller set of methods is returned..
>> >
>> > $('#grid').grid().data(data).drig().show()
>> > $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
>> >
>> > A controller object is returned..
>> >
>> > var grid = null
>> > $("grid").grid({
>> > data: data,
>> > onComplete: function(controller)  { grid = controller }
>> > })
>> > grid.srollToRow(6)
>> >
>> > What is best practice?
>>
>> How about the Idea to have a jQuery-function that returns the controller
>> object:
>>
>> $('#grid').grid({data:data}).show().gridController().scrollToRow(6);
>
> An perhaps have a method that returns you back to jQuery object?
> Calling it 'end' (or any other jQuery method name) may be confusing,
> something like 'endGrid'.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>



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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Brian Miller
How about overriding $.end() in the grid plugin, so that it returns the
original jquery object if it's run on the grid controller?

Of course, you'd have to remember to make $.end() behave normally if run
elsewhere.  Or, you could just create an $.endGrid() function for the
controller, and not worry about messing with $end() at all.

- Brian


> Hi,
>
>> Controller set of methods is returned..
>>
>> $('#grid').grid().data(data).drig().show()
>> $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
>>
>> A controller object is returned..
>>
>> var grid = null
>> $("grid").grid({
>> data: data,
>> onComplete: function(controller)  { grid = controller }
>> })
>> grid.srollToRow(6)
>>
>> What is best practice?
>
> How about the Idea to have a jQuery-function that returns the controller
> object:
>
> $('#grid').grid({data:data}).show().gridController().scrollToRow(6);
>
> That way the function that creates the grid does not break the chain, but
> there is a function that returns a controller object. You don't
> necessarily
> need a way to come back to jQuery if you do it that way, because you can
> chose to get the controller Object later in the queue.
>
> You should think if you want a controller object that can handle mutliple
> grids at the same time:
>
> $('.allmygrids').grid({data:data}).show().gridController().scrollToRow(6);
>
> If not, then gridController() needs to take a parameter to know which of
> the
> grids you mean:
>
> $('.allmygrids').grid({data:data}).show().gridController(42).scrollToRow(6);
>
> Christof
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>



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


[jQuery] Using .addClass() to add dynamic class not for CSS

2006-12-01 Thread digital spaghetti
Hey folks,

I am working on a Microcontent module for Drupal that uses jQuery, but
I cannot seem to get that functionality to work.  I need to ask, does
.addClass actually add class text to a tag, or is it just applying it
in the background.  To explain, my code looks like this:

$(function(){
 $("[EMAIL PROTECTED]").addClass("microid-' . $hash . '")
});

Now, $hash is generated from hashing the users email and homepage url.
 When I add the JS to drupal_add_js, this is how it outputs, so I know
this bit is working:


$(function(){
 $("[EMAIL 
PROTECTED]").addClass("microid-48d0e28087a9cb825fbc7e6257fdb00137bf8aa3")
});


But when I check any div tags that have  (n being the
node number) the class list still looks the same.  If .addClass is the
wrong thing, can anyone suggest another way I go about this?

Regards,
Tane

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


Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread Mike Alsup
> You could reduce the code by using switch

And by eliminating duplicate code:

$('#modalBackdrop').top(wt).css(css).height(winHeight +
'px').width(winWidth + 'px').show();
modalContent.top(mdcTop + 'px').left(mdcLeft + 'px');
switch(animation){
case 'fade':
modalContent.fadeIn(speed);
break;
  case 'slide':
modalContent.hide().slideDown(speed);
break;
  case 'show':
modalContent.show();
break;
}

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


Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread David Duymelinck
Gavin M. Roy schreef:
> The file size (6.2K) is based upon heavy whitespace and comments.  I'm 
> working on a comment-less version to cut down on file size and will 
> offer both on the page.
>
You could reduce the code by using switch instead of all those if/else 
statements. for example

// Apply our css and positioning, then show
  if ( animation == 'fade' )
  {
$('#modalBackdrop').top(wt).css(css).height(winHeight + 
'px').width(winWidth + 'px').show();
 modalContent.top(mdcTop + 'px').left(mdcLeft + 'px').fadeIn(speed);
  } else {
if ( animation == 'slide' )
{
  $('#modalBackdrop').top(wt).css(css).height(winHeight + 
'px').width(winWidth + 'px').show();
  modalContent.hide().top(mdcTop + 'px').left(mdcLeft + 
'px').slideDown(speed);
} else {
  if ( animation == 'show')
  {
$('#modalBackdrop').top(wt).css(css).height(winHeight + 
'px').width(winWidth + 'px').show();
modalContent.top(mdcTop + 'px').left(mdcLeft + 'px').show();
  }
}
  }

change to

switch(animation){
   case 'fade':
$('#modalBackdrop').top(wt).css(css).height(winHeight + 
'px').width(winWidth + 'px').show();
 modalContent.top(mdcTop + 'px').left(mdcLeft + 'px').fadeIn(speed);
break;
   case 'slide':
$('#modalBackdrop').top(wt).css(css).height(winHeight + 
'px').width(winWidth + 'px').show();
  modalContent.hide().top(mdcTop + 'px').left(mdcLeft + 
'px').slideDown(speed);
break;
   case 'show': 
$('#modalBackdrop').top(wt).css(css).height(winHeight + 
'px').width(winWidth + 'px').show();
modalContent.top(mdcTop + 'px').left(mdcLeft + 'px').show();
break;
}


It also makes the code easier to read and manipulate ;)


-- 
David Duymelinck

[EMAIL PROTECTED]


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


Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread 齐永恒

thanks ,
because some resesions , i use a fiter in reqeust, so in process jQ post, i
set reqeust setCharacterEncoding("utf-8"). so , it is ok.
i find jQ formToArray ,it is tranfer chinaese to utf-8 coding.so i recive it
use utf-8.
thank a lot.

在06-12-1,Blair McKenzie <[EMAIL PROTECTED]> 写道:


I believe it uses the encoding of the page it is in. That's the limit of
my knowledge.

On 12/1/06, 齐永恒 <[EMAIL PROTECTED] > wrote:
>
> i use gb2312, because my database is gbk, and our project all src is
> gb2312 coding, i use java, i find my server once recive is wrong encoding.
> so i want to know jQ post the data use what encoding?
>
> 在06-12-1,Blair McKenzie <[EMAIL PROTECTED]> 写道:
> >
> >
> >- The page with the script will need to have the correct
> >encoding
> >- The page you are requesting needs to have the correct encoding
> >(e.g. php has a method for setting encoding of page)
> >- If you are using database data, the database needs to be
> >configured to use the correct encoding
> >
> >
> > Others probably have more details.
> >
> > Blair
> >
> >
> > On 12/1/06, 齐永恒 < [EMAIL PROTECTED]> wrote:
> > >
> > > hi everyone
> > > i am a Chinaese, i use jQ and form plusin , i find the Chinaese is
> > > posted the wrong coding.
> > > could you tel me what i will do.
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> >
>
>
> --
> yours 齐永恒
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>

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






--
yours 齐永恒
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] MyDayLite (to-do list) release. All files included.

2006-12-01 Thread Juha Suni
Chris W. Parker wrote:
> I wouldn't call it intuitive. It's not intuitive because the
> knowledge I have about the interface when I first started using it
> wasn't enough to actually use it fully. In this case the application
> should give hints and/or instructions.

I agree that the instructions, or actually the in-app-instructions could be 
better (they pretty much dont exist at the moment). If you had, however, 
watched the video presentation, or read the documentation before use, it 
would have been a lot easier to learn.

Since it is a small app and people usually dont like to go through docs, 
creating a slick responsive in-app-documentation would definately help.

-- 
Suni 


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


Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread Blair McKenzie

I believe it uses the encoding of the page it is in. That's the limit of my
knowledge.

On 12/1/06, 齐永恒 <[EMAIL PROTECTED]> wrote:


i use gb2312, because my database is gbk, and our project all src is
gb2312 coding, i use java, i find my server once recive is wrong encoding.
so i want to know jQ post the data use what encoding?

在06-12-1,Blair McKenzie <[EMAIL PROTECTED]> 写道:
>
>
>- The page with the script will need to have the correct encoding
>- The page you are requesting needs to have the correct encoding (
>e.g. php has a method for setting encoding of page)
>- If you are using database data, the database needs to be
>configured to use the correct encoding
>
>
> Others probably have more details.
>
> Blair
>
>
> On 12/1/06, 齐永恒 < [EMAIL PROTECTED]> wrote:
> >
> > hi everyone
> > i am a Chinaese, i use jQ and form plusin , i find the Chinaese is
> > posted the wrong coding.
> > could you tel me what i will do.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>
>


--
yours 齐永恒
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



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


[jQuery] Stop using thickbox!

2006-12-01 Thread Michael Holloway
Another point towards using css over tables for layout.. It's a lot 
easier to reach semantically meaningful markup. Tables are for tabular 
data, abused by rookies of the web dev. industry for grid layouts, and 
before I get flamed for "but the client wants it to look exactly like 
x,y,z", I've been working in the industry for roughly 5 years, I know 
the pressures, but every thing's achievable using CSS (granted you need 
some lenience  on the versions  of browsers you  are going to use)

Accessibility is not just 'another point', it should be up there with 
the top priorities. If you code sites using tables purely for layout 
(for visually enabled users) you will be excluding a mass of potential 
users. To the business man / woman, this equates to money, perhaps not 
directly from ecommerce, etc, but from marketing and word-of-mouth 
potential. For what is a little bit of investment in your time to learn 
the curve of CSS, it's got to be a worthy payoff in terms of more 
customers, more fulfilling experiences for a greater range of users and 
from your point of view, you become more sought-after and marketable as 
an individual as you step out of the cowboy circle and become a 
professional.


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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Christof Donat
Hi, 

> > $('#grid').grid({data:data}).show().gridController().scrollToRow(6);
>
> An perhaps have a method that returns you back to jQuery object?
> Calling it 'end' (or any other jQuery method name) may be confusing,
> something like 'endGrid'.

I don't think that is necessary. You could compare it to a call like 
$('...').css('color'). That returns a string wich has methods like e.g. 
substr() but no way to return to jQuery, because it is not necessary. You 
almost always can move the call to gridController() to the end of your chain.

Another way to solve the problem would be to use classes in the grid like 
this:

$('#grid').grid({data:data}).find('.row_42').scrollToView();

Then you just add methods like scrollToView() to the jQuery object which are 
very usefull in other cases as well. Though I am not shure if you can do 
everything the grid controller needs that way.

Christof

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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Sam Collett
On 01/12/06, Christof Donat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > Controller set of methods is returned..
> >
> > $('#grid').grid().data(data).drig().show()
> > $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
> >
> > A controller object is returned..
> >
> > var grid = null
> > $("grid").grid({
> > data: data,
> > onComplete: function(controller)  { grid = controller }
> > })
> > grid.srollToRow(6)
> >
> > What is best practice?
>
> How about the Idea to have a jQuery-function that returns the controller
> object:
>
> $('#grid').grid({data:data}).show().gridController().scrollToRow(6);

An perhaps have a method that returns you back to jQuery object?
Calling it 'end' (or any other jQuery method name) may be confusing,
something like 'endGrid'.

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


Re: [jQuery] modalContent Plugin 0.7

2006-12-01 Thread zaadjis

you can prevent 'tabbing' using document.activeElement: 1) save it, 2) blur
it, 3) focus saved (on exit).
p.s. not all browsers support it, so you'll have to 'do it yourself':

$(function(){
if (typeof document.activeElement == 'undefined') {
$('a, input, select, textarea, button')
.blur(function(){document.activeElement = null;})
.focus(function(){document.activeElement = this;});
}
});



Gavin M. Roy wrote:
> 
> I've released the very-quickly incremented modalContent plugin which is
> now
> at 0.7.  This release fixes bugs, adds animations to the display of the
> modalContent and an unmodalContent() function which can turn off the
> modalContent when using ajax or what not.
> 
> The file size (6.2K) is based upon heavy whitespace and comments.  I'm
> working on a comment-less version to cut down on file size and will offer
> both on the page.
> 
> The demo and download is available at http://jquery.glyphix.com
> 
> Gavin
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
-- 
View this message in context: 
http://www.nabble.com/modalContent-Plugin-0.7-tf2735715.html#a7635329
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Designing for reuse

2006-12-01 Thread Christof Donat
Hi,

> Controller set of methods is returned..
>
> $('#grid').grid().data(data).drig().show()
> $('#grid').grid().scrollToRow(6).drig().css("border", "1px")
>
> A controller object is returned..
>
> var grid = null
> $("grid").grid({
> data: data,
> onComplete: function(controller)  { grid = controller }
> })
> grid.srollToRow(6)
>
> What is best practice?

How about the Idea to have a jQuery-function that returns the controller 
object:

$('#grid').grid({data:data}).show().gridController().scrollToRow(6);

That way the function that creates the grid does not break the chain, but 
there is a function that returns a controller object. You don't necessarily 
need a way to come back to jQuery if you do it that way, because you can 
chose to get the controller Object later in the queue.

You should think if you want a controller object that can handle mutliple 
grids at the same time:

$('.allmygrids').grid({data:data}).show().gridController().scrollToRow(6);

If not, then gridController() needs to take a parameter to know which of the 
grids you mean:

$('.allmygrids').grid({data:data}).show().gridController(42).scrollToRow(6);

Christof

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


Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread 齐永恒

i use gb2312, because my database is gbk, and our project all src is gb2312
coding, i use java, i find my server once recive is wrong encoding.
so i want to know jQ post the data use what encoding?

在06-12-1,Blair McKenzie <[EMAIL PROTECTED]> 写道:



   - The page with the script will need to have the correct encoding
   - The page you are requesting needs to have the correct encoding (
   e.g. php has a method for setting encoding of page)
   - If you are using database data, the database needs to be
   configured to use the correct encoding


Others probably have more details.

Blair

On 12/1/06, 齐永恒 <[EMAIL PROTECTED]> wrote:
>
> hi everyone
> i am a Chinaese, i use jQ and form plusin , i find the Chinaese is
> posted the wrong coding.
> could you tel me what i will do.


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






--
yours 齐永恒
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread Blair McKenzie

  - The page with the script will need to have the correct encoding
  - The page you are requesting needs to have the correct encoding (e.g.
  php has a method for setting encoding of page)
  - If you are using database data, the database needs to be configured
  to use the correct encoding


Others probably have more details.

Blair

On 12/1/06, 齐永恒 <[EMAIL PROTECTED]> wrote:


hi everyone
i am a Chinaese, i use jQ and form plusin , i find the Chinaese is posted
the wrong coding.
could you tel me what i will do.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Parameters truncated after $.post

2006-12-01 Thread 齐永恒

hi everyone
i am a Chinaese, i use jQ and form plusin , i find the Chinaese is posted
the wrong coding.
could you tel me what i will do.

2006/12/1, Blair McKenzie <[EMAIL PROTECTED]>:


Can you give us a sample page? I occassionally find bizarre problems like
this cropping up because of code that appears completely unrelated.

Blair

On 12/1/06, Christoph Baudson <[EMAIL PROTECTED]> wrote:
>
> Hi Matt,
>
> that's exactly how I did it. An object like
> {name1:value1,name2:value2,...}
>
> Any other ideas?
>
> Christoph
>
> On Thu, November 30, 2006 6:36 pm, Matt Grimm wrote:
> > How is your data parameter formatted in the $.post call? It should be
> an
> > object of key/value pairs rather than a request uri string like
> > 'key=value&key2=value2'.
> >
> > m.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Christoph Baudson
> > Sent: Thursday, November 30, 2006 8:23 AM
> > To: jQuery Discussion.
> > Subject: [jQuery] Parameters truncated after $.post
> >
> > Hi there,
> >
> > in my script I'm trying to send an 80KB String via $.post, but somehow
> I
> >
> > only receive about 4KB of it. It feels like the string is sent via
> GET,
> > although I use $.post.
> >
> > I checkd the string in the ajax function before the line
> > "xml.send(data);", and then it was still complete.
> >
> > Any ideas if there is any truncation or if GET is used instead of
> POST?
> >
> > Thanks for any input,
> >
> > Christoph
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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






--
yours 齐永恒
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/