[jQuery] Naming plugin files
I've looked at quite afew plugins lately. Some of them I want to include in the PHP framework for Waarneming.nl I'm working on. What strikes me, is that all of them have a different naming system for files. I suggest we set a naming standard for jQuery plugin files that clearly marks them as depen
Re: [jQuery] Naming plugin files
What about these names:> So editable would be in jquery.editable.js, DOM would be in jquery.dom.js.jq.editable.js, DOM would be in jq.dom.js. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Naming plugin files
They don't line up nicely with jquery.js :-) On 8/15/06, Dimitar Spassov <[EMAIL PROTECTED]> wrote: > What about these names: > > > > So editable would be in jquery.editable.js, DOM would be in jquery.dom.js. > jq.editable.js, DOM would be in jq.dom.js. > >
Re: [jQuery] Textarea: redux
I've tried everything I can think of, and I'm still having no luck. I am at my wits end!If I set the textarea's value to "abc" ($('#SendMessage1_txtMessageBody ").val("abc")), it shows up in the textarea correctly. But when I change the value in the textarea, and try to get the updated value ($(#
Re: [jQuery] Textarea: redux
Ah, one HUGE issue that I forgot to mention is that it IS working in Firefox, but not in IE.ChadOn 8/15/06, Chad Lansford < [EMAIL PROTECTED]> wrote:I've tried everything I can think of, and I'm still having no luck. I am at my wits end! If I set the textarea's value to "abc" ($('#SendMessage1_txt
Re: [jQuery] Textarea: redux
the content in textarea should be innerHTML? try .html()hope this help :)2006/8/15, Chad Lansford <[EMAIL PROTECTED]>: Ah, one HUGE issue that I forgot to mention is that it IS working in Firefox, but not in IE.Chad On 8/15/06, Chad Lansford < [EMAIL PROTECTED]> wrote:I've tried everything I can th
[jQuery] Custom Borders Plugin
Hi all, I'm using the Custom Borders Plugin made by Sorin Ionescu: http://www.studioindustryllc.com/misc/border/border.html http://www.studioindustryllc.com/misc/border/jquery.js My problem: I assign a custom border to an element: $("#myDiv").border("selected-"); Now depending on the the user int
Re: [jQuery] Textarea: redux
thanks for responding realazy, but it didn't work. i've tried: val(), text(), and html() all to no avail.On 8/15/06, Realazy XA Chen < [EMAIL PROTECTED]> wrote:the content in textarea should be innerHTML? try .html() hope this help :)2006/8/15, Chad Lansford <[EMAIL PROTECTED]>: Ah, one HUGE issu
Re: [jQuery] Textarea: redux
Chad Lansford schrieb: > thanks for responding realazy, but it didn't work. > > i've tried: val(), text(), and html() all to no avail. try ($('#SendMessage1_txtMessageBody ").get(0).value -- Klaus ___ jQuery mailing list discuss@jquery.com http:/
Re: [jQuery] Textarea: redux
thanks klaus...still no luck. i tried $('#SendMessage1_txtMessageBody').get(0).value, $('#SendMessage1_txtMessageBody').get(0).innerText and $('#SendMessage1_txtMessageBody').get(0).innerHTML. still getting nothin... On 8/15/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: Chad Lansford schrieb:> thank
Re: [jQuery] Textarea: redux
Chad Lansford schrieb: > thanks klaus... > > still no luck. i tried $('#SendMessage1_txtMessageBody').get(0).value, > $('#SendMessage1_txtMessageBody').get(0).innerText and > $('#SendMessage1_txtMessageBody').get(0).innerHTML. still getting > nothin... Ok, what does $('#SendMessage1_txtMe
Re: [jQuery] Textarea: redux
Size returns "1".Funny you ask, I actually just finished going over the HTML... yeah, it's definitely unique.On 8/15/06, Klaus Hartl < [EMAIL PROTECTED]> wrote: Chad Lansford schrieb:> thanks klaus...>> still no luck. i tried $('#SendMessage1_txtMessageBody').get(0).value,> $('#SendMessage1_txtMes
Re: [jQuery] XPath
I want the expression to verify that the link is in the correct data structure, i.e. inside a that is inside a and where $(this).parent().next() is a . Said differently: I want to tell my script "if the link is inside a then show() the corresponding (if it exists)". That's why I was trying t
[jQuery] how to load images with jquery ajax?
I stried to use ajax with jquery to load images. Basicly it works but I don't get the image, instead I get some strange codes from the picture, I guess because .jpg is a binary file. Maybe this is a basic question, but still how can I load images with jquery and is there any way to use that littl
Re: [jQuery] how to load images with jquery ajax?
Hey there, have a look at Cody Lindley's thickbox. It sounds like this is more or less what youre after. Im no pro myself, so Im not going to post any code - i might get it wrong :) http://codylindley.com/_javascript_/257/thickbox-one-box-to-rule-them-allcheerscOn 8/16/06, Braveheart < [EMAIL PROTE
Re: [jQuery] Textarea: redux
Have you try emptying your cache and restarting IE. Sometimes IE cache gets corrupted and It stop responding in a predictable manner. Chad Lansford wrote: > > Size returns "1". > > Funny you ask, I actually just finished going over the HTML... yeah, it's > definitely unique. > > On 8/15/06, Kl
Re: [jQuery] XPath
$("dl dt a").click(function (event) { event.preventDefault(); event.stopPropagation(); $(this).parent().next().show(); }); Fil wrote: > > > I want the expression to verify that the link is in the correct data > structure, i.e. inside a that is inside a and where > $(this).parent().ne
Re: [jQuery] Textarea: redux
> Have you try emptying your cache and restarting IE. Sometimes IE cache gets > corrupted and It stop responding in a predictable manner. That's a good idea. Also, try to ween down the page as much as possible to pin-point the problem; strip out everything you can. "value" is the dom property tha
Re: [jQuery] Dom creation
> How would i go about making a table and then inserting rows > in the body in a for loop. I am wanting to create a stats board for > a post match. I figured i would create the table and then append > to it am i right in how to go about this? How would i append to a > tag in the table i just creat
[jQuery] how to bring new form to the top of the page
Hello, I open a new form via $().show(). Unfortunately the button to open the form is already at the bottom of the page, so the user needs to scroll to see the complete form. I tried to use "location.href" right after the $().show(), with an anchor in the form and also with an anchor under
Re: [jQuery] Naming plugin files
On 2006.08.15, Dylan Verheul <[EMAIL PROTECTED]> wrote: > They don't line up nicely with jquery.js :-) > > On 8/15/06, Dimitar Spassov <[EMAIL PROTECTED]> wrote: > > What about these names: > > > > > So editable would be in jquery.editable.js, DOM would be in jquery.dom.js. > > jq.editable.js, DOM
Re: [jQuery] how to bring new form to the top of the page
> I tried to use "location.href" right after the $().show() If the animation isn't done then the form isn't showing yet and you probably can't scroll to an anchor in it. Maybe something like this? $("p").show("slow",function(){ location.href = "#whatever"; }); The completion function is s
Re: [jQuery] how to load images with jquery ajax?
You can not load images with AJAX simply create a new image object and append, then the image can load asyncronously. Try this simple jQuery plugin:$.fn.image = function(src, f){ return this.each(function(){ var i = new Image(); i.src = ""> i.> this.appendChild(i);
Re: [jQuery] In-situ editing (Editable, etc.) disturbs layout
On 8/15/06, Dylan Verheul <[EMAIL PROTECTED]> wrote: Hi,The problem you describe is indeed due to the nature of the formelement. Many browsers have given it a (hardcoded) style, a block withsome margin.Also, the input or textarea created by editable could be styled. I'll look into the memory leakag
[jQuery] replaced content losing it's 'binding'
Taking my first real stab at jquery, and can't get around what I expect is a common problem: I have a table to which the user can add/remove rows. The data in the table is also periodically refreshed. All my functions work on their own, but after the first add/refresh, my deletes stop working. >
Re: [jQuery] In-situ editing (Editable, etc.) disturbs layout
On 2006.08.15, Jonathan Sharp <[EMAIL PROTECTED]> wrote: > >I'll look into the memory leakage part, but I've never really noticed it > >myself. > > I doubt it would be a memory leak since the form is part of the dom. All it > does is leave around some extra elements. In short it should clean up wh
[jQuery] date picker plugin update
Hi, I've just released some fixes to my jQuery date picker plugin which you can get from here: http://kelvinluck.com/assets/jquery/datePicker/ The fixes since I last announced on the list are: * You can now specify an end date - dates after this can't be selected ($.datePicker.setLastDate).
Re: [jQuery] In-situ editing (Editable, etc.) disturbs layout
On 8/15/06, Dossy Shiobara <[EMAIL PROTECTED]> wrote: On 2006.08.15, Jonathan Sharp <[EMAIL PROTECTED]> wrote:> >I'll look into the memory leakage part, but I've never really noticed it> >myself. >> I doubt it would be a memory leak since the form is part of the dom. All it> does is leave around so
[jQuery] Closures
http://laurens.vd.oever.nl/weblog/items2005/closures/Has this been found to be an adequate solution to this issue? (mainly for non jquery code) -js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] date picker plugin update
Good job Kelvin...this looks really nice. I believe that one of the requests was to allow selection of previous years. Currently the next/prev buttons would tedious to wade through if you're going back or forward more than a few months. -Original Message- From: [EMAIL PROTECTED] [mailto
[jQuery] loading content with load() and having probs with a.test
hi, Im very new to jquery and so I have stil a lot to learn... this is the code I use: $(document).ready(function(){ $("a.menu").click(function(){ $("body").append("< img src='content/loading.gif' />"); $("div.content").load(this.href,functio
Re: [jQuery] date picker plugin update
I would argue that "less is more". One of the most fantastic things about jQuery and the syntax is that it's so damn light. What's the most common scenario for a date picker in a web app? Is it really neccessary to pick a date 2, 3 years in the future? Othewise, great plugin Kelvin. My only sugge
Re: [jQuery] Closures
> http://laurens.vd.oever.nl/weblog/items2005/closures/ > > Has this been found to be an adequate solution to this issue? > (mainly for non jquery code) Yes, it solves the IE closure problem very nicely. My closure plugin for jQuery uses a modified version of this code. -Mike
Re: [jQuery] date picker plugin update
> $("input.mydate").datePicker({format:'mm/dd/', startdate:'08/15/2006', > enddate:'08/31/2006'}); Yeah! That would be much better! This way you could create several date pickers at once, without having to configure which class is used to mark the date field. And it would be possible to use
[jQuery] unbind all events for an object? (Fix issue with AJAX loaded content and leaked elements, ie drip)
Do events need to be unbound from dom objects? For example, I load in some content via ajax and attach a few events to some of these elements. Then I refresh this via another ajax call and load in more content attaching additional events. IE Drip has these elements listed as being leaked. Is there
Re: [jQuery] loading content with load() and having probs with a.test
On 8/15/06, scharc <[EMAIL PROTECTED]> wrote: hi, Im very new to jquery and so I have stil a lot to learn...this is the code I use:
$(document).ready(function(){
$("a.menu").click(function(){
$("body").append("< img");
src='' />
Re: [jQuery] Closures
>> http://laurens.vd.oever.nl/weblog/items2005/closures/ >> >> Has this been found to be an adequate solution to this issue? >> (mainly for non jquery code) > Yes, it solves the IE closure problem very nicely. My closure > plugin for jQuery uses a modified version of this code. Yipes! I just d
Re: [jQuery] unbind all events for an object? (Fix issue with AJAXloaded content and leaked elements, ie drip)
> Do events need to be unbound from dom objects? I think they do, see the Closures thread. > Is there a way that I say loop through my content and unattach all > events before replacing the content? (Essentially a $(object).unbind(); that removes all events) It looks like .unbi
Re: [jQuery] how to load images with jquery ajax?
I guess this is what I was looking for. Anyway I don't know almost anything about javaScript and I started using it since I found out about AJAX So can you explain me better for how to implement it? Here is my example how I tried using it: $(document).ready(function(){ // The plugin
Re: [jQuery] date picker plugin update
On Tue, August 15, 2006 11:49 am, bbuchs said: > > I would argue that "less is more". One of the most fantastic things about > jQuery and the syntax is that it's so damn light. What's the most common > scenario for a date picker in a web app? Is it really neccessary to pick a > date 2, 3 years in t
Re: [jQuery] date picker plugin update
Jörn Zaefferer schrieb: >> $("input.mydate").datePicker({format:'mm/dd/', startdate:'08/15/2006', >> enddate:'08/31/2006'}); >> > > Yeah! That would be much better! This way you could create several date > pickers at once, without having to configure which class is used to mark the > dat
Re: [jQuery] date picker plugin update
Sure... It wouldn't be all that common. But it was a request from the last time he posted a link to it. It will come up though and I'd suggest trying to build it in if it's not too much addtl code. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of bbuchs Sen
[jQuery] How to bind an event to a function of a class?
Hi Guys, How can i bind/unbind an event to a specific function of a class? e.g. class { somecallback() { }, somefunc() { $(document).keypress(this.somecallback); }, otherfunc() { $(document).unkeypress(this.somecallback); } } Is this possible? Thanx, Gi
Re: [jQuery] How to bind an event to a function of a class?
Hi, Is this what you mean? var test = new TestClass(); function TestClass() { function callback() { alert('fired!'); } functio
Re: [jQuery] date picker plugin update
> Make the textfield read-only (optional). Whats the point in having a > date picker, when the user still can put unwanted date in the textfield :-) The point is that the user can choose how they enter dates. I know I can type a date value much faster than I can use a date widget and it would an
Re: [jQuery] how to load images with jquery ajax?
Maybe you need learn some of _javascript_ basics and jQuery notation.The plugin normally is in a separate file, althought you can write the plugincode in your program code:in HTML code: alert("The image is loaded");
});
});
2006/8/15, Braveheart <[EMAIL PROTECTED]>: I gues
Re: [jQuery] platform/plugins detection with jQuery
well jQuery already has browser detection, the current browser is saved in the variable $.browser , but im not sure if thats what your looking for.On 8/15/06, Will Arp <[EMAIL PROTECTED]> wrote:Dear list, is there a jQuery plugin or exampleon platform+plugin detection?If not could you please, poin
[jQuery] .contains() ?
I'm trying to figure something out, but i'm kinda lost in the documented jQuery code... Is there a way to see if an object is a child of another object? e.g. if a link is a child of a div? based upon the outcome, i need to do something, which i am going to share, but first i need to g
Re: [jQuery] .contains() ?
Well, the obvious way would be to do this: $("div > link") but if you're going from the context of the link element itself, you could do: $(this).parent("div") Hope this helps. (This is with the SVN version of jQuery) --John On 8/15/06, Webunity | Gilles van den Hoven <[EMAIL PROTECTE
Re: [jQuery] .contains() ?
Try .ancestors( ) or .parent( ) /christian Webunity | Gilles van den Hoven wrote: > I'm trying to figure something out, but i'm kinda lost in the documented > jQuery code... > > Is there a way to see if an object is a child of another object? > > e.g. if a link is a child of a div? > > > >
[jQuery] Simple checkbox replacement
Example http://kawika.org/jquery/checkbox/ Code jQuery.fn.checkbox = function (opt) { $("[EMAIL PROTECTED]'checkbox']", this).each( function () { var img = document.createElement("img"); img.src = this.checked ? opt.checked : opt.unchecked;
Re: [jQuery] Simple checkbox replacement
Oooh...nice! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of kawika k Sent: Tuesday, August 15, 2006 3:45 PM To: jQuery Discussion. Subject: [jQuery] Simple checkbox replacement Example http://kawika.org/jquery/checkbox/ Code jQuery.fn.checkbox = funct
Re: [jQuery] Simple checkbox replacement
This is some great code - I really dig it. It's super simple, which is good. Just as a mini-tutorial to the upcoming 1.0b, here are some of the changes that are possible: jQuery.fn.checkbox = function (opt) { $("[EMAIL PROTECTED]'checkbox']", this).hide().each(function(){ $("")
Re: [jQuery] Closures
Tuesday, August 15, 2006, 12:23:10 PM, Jonathan Sharp wrote: > http://laurens.vd.oever.nl/weblog/items2005/closures/ > Has this been found to be an adequate solution to this issue? (mainly for > non jquery code) Warning: All "solution" links off that page lock-up Opera 9, as they did 8. I alerted
Re: [jQuery] .contains() ?
John Resig wrote: > Hope this helps. (This is with the SVN version of jQuery) > Hmm, not really I am trying to do something like this: If the event receiving the focus is not a child of another "object", set the focus back to that "object". As you might guess, this is for a new style lightbox :
Re: [jQuery] .contains() ?
Ok, I understand your problem better now, try this: $(document).focus(function(oEvent) { if ( $( oEvent.srcElement || oEvent.target ).ancestors( "#test" ).length ) return true; $('#test')[0].focus(); return false; });
Re: [jQuery] .contains() ?
John Resig wrote: > Ok, I understand your problem better now, try this: > Thanx for the ultrashort code, however it doesn't work with rev.206 I've set up a test page at: http://www.webunity.nl/_test/jquery/focus.html I got the original idea from this page, but that code is crap :) http://www.h
Re: [jQuery] .contains() ?
The problem has more to do with the fact that you're doing two things wrong: 1) You're setting focus to a element... which is unfocusable. 2) You're setting focus to the element before you ever finish the focus function of the previous element - creating an infinite loop. However, the following c
Re: [jQuery] replaced content losing it's 'binding'
First off, $(document).ready() only fires once. When the document is first ready. Second, if you have events on a dom object, and create an identical dom object, you need to reattach the events to this new dom object when it's created (or really, whenever) for the events to fire. I don't even r
Re: [jQuery] replaced content losing it's 'binding'
Hi Jason, I had the same trouble recently - I solved it by using find() in the function after using load(). Here's what I did: $(document).ready(function(){ // Gets everything set up on page load $("#searchbutton").click(function(){ // Search button has been clicked - let's do
Re: [jQuery] Simple checkbox replacement
On 8/15/06, John Resig <[EMAIL PROTECTED]> wrote: This is some great code - I really dig it. It's super simple, which is good.Just as a mini-tutorial to the upcoming 1.0b, here are some of thechanges that are possible:jQuery.fn.checkbox = function (opt) { $("[EMAIL PROTECTED]'checkbox']", this)
Re: [jQuery] replaced content losing it's 'binding'
If you're using $.load, put any _javascript_ you need evaluated in tags in the updated content. $.load automagically eval's