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

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 Othe

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

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

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')

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 > > $("gri

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

[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 be

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

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,

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 b

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 // Appl

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);

[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(){

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 worr

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("

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 *= t

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':

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 te

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

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); Nic

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

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

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 backgrou

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.

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 ad

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.

[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 li

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 wan

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

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 eit

[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(func

[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

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:v

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/ _

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

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 argume

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:

[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'

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 O

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? T

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?

[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 re

[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 o

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.

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]

[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

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

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

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 thoug

[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] 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. Tha

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 als

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 = windo

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'), itemFirst

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] 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 (windo

[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.

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.

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

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 t

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

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,

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

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

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. $('d

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

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 = nul

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 a

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, > > somethi