[jQuery] Re-distribute jQuery

2009-03-08 Thread howa
Hello, I want to include jQuery as part of my jQuery plugin so user can include only one file and can use immediately. I want to release under MIT liecnese, so is it just include the original liecnse senstence is okay? Thanks.

[jQuery] jQuery.get filtered JavaScript Tag

2008-12-20 Thread howa
When using jQuery.get to fetch remote contents, the content inside the

[jQuery] Re: Cross domain Ajax without Proxy

2008-12-11 Thread howa
On 12月11日, 上午2時32分, ricardobeat <[EMAIL PROTECTED]> wrote: > I believe you have already answered that to yourself but was hoping > for a misteryous miraculous solution right? :) > > No, there isn't, you'll have to do it server-side. Or if you're not > playing with the remote page's content use a

[jQuery] jQuery.get filtered JavaScript Tag

2008-12-09 Thread howa
When using jQuery.get to fetch remote contents, the content inside the

[jQuery] Re: Image rollover using jQuery

2008-11-30 Thread howa
Maybe this: http://code.google.com/p/jquery-swapimage/ On Nov 30, 5:14 pm, Ray M <[EMAIL PROTECTED]> wrote: > Hello, > > Are there any existing jQuery plugin which can provide similar image > rollover functions such as the one provided by Dreamweaver? > > Thanks. > > Ray

[jQuery] Is my style of writing jQuery plugin correct?

2008-11-24 Thread howa
Codes... jQuery.test = function(val) { jQuery.test.foo = function() { alert( "foo" + jQuery.test.bar() ); }; jQuery.test.bar = function() { return "bar" +val; }; jQuery(document).ready(function() { jQuery.test.foo(); }); }; // To use jQ

[jQuery] How to position a footer always at bottom?

2008-11-18 Thread howa
Consider the code: http://www.w3.org/TR/html4/strict.dtd";> $(document).ready(function() { var footer = $('#footer'); var w = ( $(window).width() - footer.width() ) / 2; footer.css('left', w);

[jQuery] Re: Server Side jQuery

2008-06-15 Thread howa
On 6月16日, 上午2時34分, "Nitsan Bin-Nun" <[EMAIL PROTECTED]> wrote: > I'm new here, > For what cause you want to execute jquery on the server side? 'DOM Scraping' http://www.aptana.com/node/339

[jQuery] Server Side jQuery

2008-06-15 Thread howa
Currently I have only tested 2 way to do server side jquery 1. env.js + rhino 2. jaxer Both 2 methods are following John's blog Anyone know other ways such as other JavaScript server implementations? Thanks.

[jQuery] Should metadata plugin merge into the core?

2008-06-02 Thread howa
Hi, I am more and more relying metadata in my codes, I think the idea in using it to store data is simply amazing, what do you guy think? Of coz livequery is also a good choice. What I think is in order to promote these plugins, we might consider provide an additional offical plugin packages fo

[jQuery] Re: A simple plugin to check if your browser supported by jQuery - Officially

2008-05-22 Thread howa
On 5月23日, 下午1時19分, Danny <[EMAIL PROTECTED]> wrote: ...people who felt browser-sniffing was too evil to ever allow. People saying this are those who never read the jQuery sources. Also, I agree this should be in the core of jQuery. Howard

[jQuery] A simple plugin to check if your browser supported by jQuery - Officially

2008-05-22 Thread howa
Just share with you one of a useful plugin: jQuery.supported = function() { if (typeof jQuery.supported.result != "undefined") return jQuery.supported.result; jQuery.supported.browsers = [ ["safari", "412"], ["opera", "9.0"],

[jQuery] Re: how to preserve the image that was there when I roll over

2008-04-29 Thread howa
On 4月30日, 上午10時41分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have several images on my page, each with class "myClass". I know > when I roll over each image, I want its source to be "over.gif". > However, when I roll out I want the image to be whatever was there > before, and

[jQuery] Override original jQuery method?

2008-04-19 Thread howa
Hi, How to overrider the original jQuery method and use my own code? E.g. jQuery.fn.extend({ hover: function(fnOver, fnOut) { return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut); } }); I want to override the hover method. Thanks.

[jQuery] Override original jQuery method?

2008-04-19 Thread howa
Hi, For example, how to override the original hover() method and use my own code? jQuery.fn.extend({ hover: function(fnOver, fnOut) { return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut); } }); Thanks

[jQuery] jQuery.data and metadata plugin

2008-04-18 Thread howa
Hi, Is it true that metadata plugin should be replaced by the jQuery.data? But I found no way to query the data value stored in css class just like metadata. Thanks.

[jQuery] Remote Dom using JQuery

2008-04-01 Thread howa
Hi, If I use ajax to get a remote page, is it possible to process its dom just like the current HTML? E.g. $.get(data.url, function(data) { // data is HTML, I want to process data, using JQuery , e.g. get a particular class } Thanks.

[jQuery] Re: Function overriding

2008-03-03 Thread howa
On 3月4日, 上午12時37分, David Stamm <[EMAIL PROTECTED]> wrote: > I'm sorry, I thought you were trying to architect your own plugin to > make it easier to override for others. > > A useful technique when you're overriding someone else's function, is > to save a reference to the original implementation

[jQuery] Re: jQuery on Mozilla rhino

2008-03-03 Thread howa
On 3月4日, 上午7時27分, "John Resig" <[EMAIL PROTECTED]> wrote: > Sounds like you're using an old version of Rhino. > > --John Hi John, I am using the latest one: rhino1_6R7 I can run successfully according to your post, I just can't read the JavaScript file (env.js) by using Java! I will dig into

[jQuery] Re: Function overriding

2008-03-03 Thread howa
On 3月3日, 下午11時56分, David Stamm <[EMAIL PROTECTED]> wrote: > The function sayHello() is defined inside the function jQuery.example, > and is thus an "inner function" or "nested function". It exists only > when jQuery.example is executing. It cannot be accessed from outside > jQuery.example with

[jQuery] jQuery on Mozilla rhino

2008-03-03 Thread howa
Hello, Anyone tried to run jQuery on rhino? I followed John's post, it was okay. However, if I code in Java (since I don't use command line), the env.js cannot be interpreted: E.g. engine.eval(new FileReader("C:/env.js")); It gives: javax.script.ScriptException: sun.org.mozilla.javascript.i

[jQuery] Function overriding

2008-03-02 Thread howa
Consider I have a simple plugin, e.g. jQuery.example = function(name) { sayHello = function(str) { alert("jQuery.example.sayHello: " + str); }; sayHello(name); }; at sometime later, I would want to override the original sayHello method(), so I add, jQuery.exa

[jQuery] Event handlers stacking using JQuery

2008-02-15 Thread howa
Currently document ready call at different place can be stacked together and call at once. How about normal events, e.g. window.onload (i.e. runonload.js is quite handy in this area, http://safari.oreilly.com/0596101996/jscript5-CHP-17-SECT-6) Besides, event such as mouse clicks, can we stack e

[jQuery] each() without the last element?

2008-02-13 Thread howa
Hello, I want to loop thru each elements with the each() function, except I want to skip the last element, are there simple method? Thanks,

[jQuery] Re: Customized user page?

2008-01-31 Thread howa
Thanks for your comments. On 1月31日, 下午9時21分, h0tzen <[EMAIL PROTECTED]> wrote: > but with serverside scripting you may store the whole configuration in > some backend-system (e.g. db) and only store the hash (much more > flexibility) I don't think I will store the settings in db, as our service

[jQuery] Customized user page?

2008-01-31 Thread howa
This might not be jquery related, but I would like to hear experts' comments :) Let's say I have to make a user customizable front page, e.g. There are multiple blocks within a page (e.g. sports, news, finance, game etc), users would be able to choose their preferences (Something similar to Yaho

[jQuery] JQuery Mobile/Lite?

2008-01-23 Thread howa
Hi all, Given that many mobile devices will have a much better support for Javascript, e.g. iPhone, Nokia N-series handset (running webkit), or 3rd browsers such as Opera mobile/mini, Pocket IE ect, are there any plan to fork a branch of JQuery as JQuery mobile for example? It would be interesti

[jQuery] Can JQuery support iCab 3 (for legacy Mac OS9)

2008-01-07 Thread howa
We have some users still running OS9, I would like to know if any OS9 users here can confirm if JQuery (1.2x) support iCab 3, so we can advise them to use this browser. http://www.icab.de/dl.php Thanks.

[jQuery] Re: Server side JQeury

2008-01-07 Thread howa
On 1月8日, 上午12時50分, "John Resig" <[EMAIL PROTECTED]> wrote: > > I am wondering why it was difficult to parse HTML at the beginning. > > Simply: Because one doesn't exist. I've since written one and hope to > be integrating it soon. > > --John Good! Server side using jquery is really useful for

[jQuery] Re: Server side JQeury

2008-01-07 Thread howa
On 1月7日, 下午6時00分, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jan 7, 3:46 am, howa <[EMAIL PROTECTED]> wrote: > > > > > I have been following John's > > article:http://ejohn.org/blog/bringing-the-browser-to-the-server > > >

[jQuery] Server side JQeury

2008-01-07 Thread howa
I have been following John's article: http://ejohn.org/blog/bringing-the-browser-to-the-server The script only support well formed XML, as defined in the function (env.js) window.__defineSetter__("location", function(url){ var xhr = new XMLHttpRequest(); xhr.open

[jQuery] Re: AJAX Security

2007-11-23 Thread howa
On 11月23日, 下午4時06分, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > howa schrieb: > > > On 11月22日, 下午7時15分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote: > > >>> In non AJAX apps, automatic checking can be prevented using Captcha in > >>&g

[jQuery] Re: AJAX Security

2007-11-22 Thread howa
On 11月22日, 下午7時15分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote: > > In non AJAX apps, automatic checking can be prevented using Captcha in > > the registration page. > > As you could do with an AJAX application, I don't understand what > would prevent you to do so. > What main difference do you se

[jQuery] Re: AJAX Security

2007-11-20 Thread howa
On 11月21日, 上午6時34分, "Fabien Meghazi" <[EMAIL PROTECTED]> wrote: > > With a blank or mismatched referrer, the script will always return a > > username as unavailable. > > > Unfortunately the referrer is easily spoofed, so I'm not sure how effective > > this will be. > > And just because it can be

[jQuery] AJAX Security

2007-11-20 Thread howa
Well, this is not JQuery related, but I want to know the current best practices in AJAX developments... In an AJAX apps, such as user registration, we might have a API for user to check if their desired user name has been taken by another user. If we expose this API using AJAX, then it might bec

[jQuery] Move of namespace

2007-11-13 Thread howa
It is possible to completely move a particular plugin namespace into other one? e.g. if (typeof Company == "undefined") { var Company = {}; } Company.form = {}; Company.form.validator = jQuery.validator; // Assume already loaded // Now I want to modify some of its internal value Company.fo

[jQuery] Namespace conflict

2007-11-03 Thread howa
Hello, I want re-organize the jquery namespace into a more meaningful namespace, but I can't make it success, e.g. var company = {}; var company.animation = {}; // Why this didn't work? company.query = jQuery.noConflict(true); company.query (

[jQuery] Re: Consider a standard documentations for plugins

2007-10-28 Thread howa
On 10月29日, 上午12時11分, "Rick Faircloth" <[EMAIL PROTECTED]> wrote: > A good idea, Howa, however I've been barking up the > "standardization", "consistency", "documentation", > "plug-in-compatibility-with-various-jquery-versions"

[jQuery] Consider a standard documentations for plugins

2007-10-28 Thread howa
Now, JQuery has many plugins, this is good. The bad side is different authors has different taste in writing documentation, I think it would be good to have a standard way to write documents, similar the one in the jquery doc., with examples, arguments description etc. It does not mean most auth

[jQuery] Re: Javascript best practices

2007-09-13 Thread howa
another reason i can think of: sometimes, you don't want to include jquery plugin in the , since maybe header.template is shared, then you put the include plugin codes into the templates only want to show the effect, this came to a problem...putting css into body failed the html validation. On 9

[jQuery] Javascript best practices

2007-09-13 Thread howa
More & more plugins are using CSS to style the layout, this is good, but their didn't aware of if user browser don't know javascript, it is useless to load the CSS, e.g. thickbox can be better: document.write('

[jQuery] Thickbox loading image twice

2007-09-11 Thread howa
If cache is disabled, you might use webdeveloper to try out.

[jQuery] Re: Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-09 Thread howa
Yes, this is exactly what I want. This tool is really useful. Thanks. On 9月8日, 下午11時45分, Tzury <[EMAIL PROTECTED]> wrote: > > When mouse over an object, say a DIV for simplicity, I can use JQuery > > to get its absolute position in DOM tree, > > There is Modi (http://slayeroffice.com/tools/modi

[jQuery] Is it possible to do something like Firebug `inspect` function with JQuery?

2007-09-08 Thread howa
When mouse over an object, say a DIV for simplicity, I can use JQuery to get its absolute position in DOM tree, e.g. div#header < body < html Any idea?

[jQuery] How to fade only the background?

2007-09-06 Thread howa
Hi, The following code will fade the logo, instead of bg, e.g. http://jqueryjs.googlecode.com/files/ jquery-1.1.4.pack.js" > #bg{ width:600px; height:600px; background-color:blue; } jQuery(document).ready(function() {

[jQuery] Re: Image rollover plugin?

2007-09-06 Thread howa
e looking for? > > I think the answer is Yes, but you need to be more specific, there are alot > of different variations. > You may not need a plugin at all. > > Glen > > On 9/6/07, howa <[EMAIL PROTECTED]> wrote: > > > > > > > Something like what d

[jQuery] Image rollover plugin?

2007-09-06 Thread howa
Something like what dreamweaver provide, are there such as plugin in jQuery? Thanks.

[jQuery] iframe + security (can be improved by jQuery/Ajax?)

2007-09-02 Thread howa
Hello, Consider a blog apps like Blogger, you have a site like http://abc.blogspot.com each time, you want to leave a comment for an article, you will be redirected to another page under the blogger domain, e.g. https://www.blogger.com/comment.g. I think one of the reason why Blogger don'

[jQuery] Wrap JQuery into YUI namespace?

2007-08-30 Thread howa
Is it possible? e.g. YAHOO.util.jQuery("#test").each(...);

[jQuery] Rolling region plugin?

2007-08-18 Thread howa
Anyone know there is such as plugin, e.g.

[jQuery] Re: What does "Unobtrusive Javascript" mean?

2007-08-16 Thread howa
http://developer.yahoo.com/yui/articles/gbs/ Progressive Enhancement vs. Graceful Degradation The concepts of graceful degradation and progressive enhancement are often applied to describe browser support strategies. Indeed, they are closely related approaches to the engineering of "fault toleran

[jQuery] Dynamic Form Validation?

2007-08-16 Thread howa
Hello, anyone has idea how to do dynamic form validation? e.g. using http://bassistance.de/jquery-plugins/jquery-plugin-validation/ I only want to check for required field for t2 ONLY if t1 is equal to some value e.g. If t1 = "test", then t2 cannot be null, else never mind abt t2 has any

[jQuery] True overlay?

2007-08-16 Thread howa
Hello, I am looking for a plugin for loading external page into a overlay like jqModal does, but when I click on the link in the overlay, I only want the overlay's content to be changed. Are there such plugin now? Thanks.

[jQuery] Re: Move JSON into the JQuery's core?

2007-08-07 Thread howa
even that, made this as an offical plugin would be good. :) On 8月8日, 上午10時35分, "John Resig" <[EMAIL PROTECTED]> wrote: > Perfect for a plugin, then! :) > > On 8/7/07, howa <[EMAIL PROTECTED]> wrote: > > > > > > > serveral reasons: > >

[jQuery] Re: Move JSON into the JQuery's core?

2007-08-07 Thread howa
serveral reasons: 1. json will become part of the JavaScript Programming Language in the Fourth Edition of the ECMAScript standard, we should encourage using it 2. jquery getJSON() is not too secure, e.g. data = eval("(" + data + ")"); 3. size is not that large. 1.x kb only On 8月7日, 下午9時22分, "

[jQuery] Move JSON into the JQuery's core?

2007-08-07 Thread howa
What do you think? I think json is quite a standard way in developing javascript/ajax apps now.

[jQuery] Re: Jquery Vs. Prototype

2007-08-07 Thread howa
i think that most important aspect is: jquery is more community driven... just paly around with its countless plugins, and also people here to discuss jquery related matters 24x7x365 i think the answer is clear that jquery is the way to go. On 8月4日, 下午11時48分, "[EMAIL PROTECTED]" <[EMAIL PROTEC

[jQuery] Re: Draw line or polygon like Google Map?

2007-08-03 Thread howa
simple photo editing, image drawing etc On 8月3日, 上午1時58分, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > good idea? I am trying to think of use-cases for it... do u have any real > world use case for it off-hand other than maps. > > -GTG > > On 8/2/

[jQuery] Draw line or polygon like Google Map?

2007-08-02 Thread howa
Hello, Did you played with Google Map? Google Map allow you to draw lines or polygon by providing points array. So wouldn't it be great if we have plugin using jQuery to do the same thing, but no need to related to map, just a general drawing library? howa

[jQuery] Re: Validation Plugin

2007-07-12 Thread howa
email: true } }, messages: { } }); }); Thank you so much or your help! Howa

[jQuery] How to select the kast TR of a TABLE?

2007-07-03 Thread howa
var row = jQuery("#test > tbody > tr : last"); something like that? (of coz the above one didn't work) thanks.

[jQuery] How to re-select?

2007-07-03 Thread howa
e.g. How to re-select? var i = jQuery("#i"); Q: so how to select all the input inside p? i know i can use jQuery("p > input"), but I want to re-use the variable i as already selected since i want my functions be more flexible...

[jQuery] Re: Attn. developers. Speed of getElementById

2007-06-27 Thread howa
Hi John, Currently jQuery don't have caching functions, wouldn't it be great if we add it? On 6月22日, 下午10時33分, "John Resig" <[EMAIL PROTECTED]> wrote: > Dimitii - > > test_results.PNG > 14K檢視下載 > > Those results are really interesting - you should post them to the jQuery > Dev list (where we

[jQuery] ANNOUNCE: Linux.com is using jQuery

2007-06-24 Thread howa
jQuery rules

[jQuery] Re: Is it possible to attach codes to body.onload via document.ready?

2007-06-24 Thread howa
quot;Erik Beeson" <[EMAIL PROTECTED]> wrote: > Try this: > > > > > > function test() { >alert('test'); > > } > > $(document).ready(function() { > > }); > > // Assign event to window.onload > $(windo

[jQuery] Re: Is it possible to attach codes to body.onload via document.ready?

2007-06-23 Thread howa
27;t want to override the original onload: test() also... why jQuery(body) or jQuery("body") didn't work? thanks. On 6月23日, 下午9時31分, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Howa, > > Try jQuery(window) without the quotes around window. That sho

[jQuery] Re: Is it possible to attach codes to body.onload via document.ready?

2007-06-23 Thread howa
Hello Gilles & Erik, the codes below never work with IE7 & FF2.0 jQuery(document).ready(function() { alert('ready'); // Assign event to window.onload jQuery('window').load(function() { alert('Everything is loaded!'); });

[jQuery] Is it possible to attach codes to body.onload via document.ready?

2007-06-23 Thread howa
Hello, is it possible to attach some codes to the body.onload via document.ready, or other methods to attach body.onload? thanks.

[jQuery] Re: Simple plugin to rollove an image

2007-06-23 Thread howa
#x27;t use sprites - never :) On 6月23日, 下午2時10分, "Matt Stith" <[EMAIL PROTECTED]> wrote: > Honestly when i develop, im not really worried about browsers that dont > understand css or javascript. If they chose to use an incredibly outdated > browser, thats their fault. >

[jQuery] Re: Simple plugin to rollove an image

2007-06-22 Thread howa
On 6月23日, 上午2時17分, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > I am not sure how it diminishes accessibility. What if your browser don't understand css and js? for jquery's solution, it is fine, you can still see the original image, but only drop the hover effect for css solutions, you might drop

[jQuery] Re: Simple plugin to rollove an image

2007-06-22 Thread howa
I completely agree CSS can do the job but IMHO, css's ways are even more `hacky` i.e. use of single image and simply shift the background think abt it, this is accessibility evil! On 6月22日, 下午1時16分, "Ambient.Impact" <[EMAIL PROTECTED]> wrote: > I very much disagree with the following two poin

[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread howa
I agree with you partly. jquery should provide a little more on the architecture design stuffs, such as organzie the plugin into namespace, force need to follow some standards if they want to get approaved (e.g. coding styles, unit testes)...etc but don't forget jquery is so success becoz it is

[jQuery] Re: CNN and Apple Choose Prototype. Why?

2007-06-14 Thread howa
IMHO, jQuery is surely the MOST successful JS library ever as you can see the things happening in this mailing lists. Developers/Users are so friendly and helpful to each others. what a mouthful It is enough for me. or do you care anyhting else? :) On Jun 14, 9:19 pm, AJ <[EMAIL PROTECTED]>