Daemach schrieb:
Your faith in Microsoft is certainly admirable, but the very fact that we're
talking about storing 2 kinds of information in a single attribute is cause
for concern isn't it? Thinking about the way parsers work in general, an
extra attribute in an element seems less likely to
Ⓙⓐⓚⓔ schrieb:
have you ever made a dtd that the validator likes? I gave up on that a
while back!
good luck!
Yes, unless you don't use *real* xml/xhtml there's not a real chance to
have a validator ever use your specified dtd. so the whole thing is kind
of theoretical.
-- klaus
no one answered me, guess i wrote the subject worng ... please help ...
when i run form validator from
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ , after
putting the uncompressed version, its working fine in ie 7 but in ie 6 its
returns me error:
(here is the code:
Did you found a solution yet? I've been asking myself the same question and
tried to fix it, but I didn't succeed.
Anyone who knows how to 'reinitialize' the selectables?
I've prepared a showcase: http://www.peterriet.net/temp/selectables/
Any help would be great! Thanks!
Peter Riet
floepi
Is there some way of making a bind function so that, one you click away from
an element (say drop down menu) it disapears. So say i've clicked a button
and a menus poped up, i then taken a look at the menu and i dont need it
again, so i click on some other part of the page and the menu hides it
Philip Pryce schrieb:
Is there some way of making a bind function so that, one you click away from
an element (say drop down menu) it disapears. So say i've clicked a button
and a menus poped up, i then taken a look at the menu and i dont need it
again, so i click on some other part of the
Hmm.. maybe capture a focus event?
Like $(document).not(#menu).bind(focus, function() { .../* menu hide
code */...});
Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Brice,
Is there any way I can change the callback functions after the initial
.jqm() call? I'm wanting to have a standard widget that performs similar
to the prompt() function in javascript. But I want to dynamically add a
callback depending on when/where in the site it's being used.
Cheers,
There are two Require plugins in the wiki:
http://dev.jquery.com/wiki/Plugins/require--by Jose Paris
http://dev.jquery.com/wiki/Plugins/requirex --by Mohd Khairi Lamsah
and I'm trying to figure out which is better, if at all.
The only real difference I can detect is that Mohd's explicity
I've tried that, and jQuery Complains about the function one not existing.
Yes, i'm using the latest version of jQuery too.
Klaus Hartl wrote:
Philip Pryce schrieb:
Is there some way of making a bind function so that, one you click away
from
an element (say drop down menu) it disapears.
That doesnt seem to work ether. Could you posibly recomend anything else?
Chris Domigan wrote:
Hmm.. maybe capture a focus event?
Like $(document).not(#menu).bind(focus, function() { .../* menu hide
code */...});
Chris
___
jQuery mailing
Try binding the 'blur' event to to the element you are working with.
-- Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
Philip Pryce wrote:
That doesnt seem to work ether. Could you posibly recomend anything else?
Chris Domigan wrote:
Hmm.. maybe
Thanks that works, yet i have to focus the menu for it work, but it gives the
menu a dotted border, any way of removing the border, yet the menu still
being focused?
Felix Geisendörfer wrote:
Try binding the 'blur' event to to the element you are working with.
-- Felix
any way of removing the border, yet the menu still
being focused?
Not sure about IE, but for FF this CSS should work:
element:focus{-moz-outline-style: none;}
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
Philip Pryce wrote:
Thanks that works, yet i
Chris Domigan wrote:
Is there any way I can change the callback functions after the initial
.jqm() call? I'm wanting to have a standard widget that performs
similar to the prompt() function in javascript. But I want to
dynamically add a callback depending on when/where in the site it's
Thanks for that Brice.
Another thought - is it possible to get the element that triggered the
jqmShow)? So if I have n anchor elements with class of jqmShow, the modal
object (once triggered) will have a reference to its calling element?
Cheers,
Chris
hey, i got the following code (i fixed the ie6 bugs and stuff)
now i need to figure out how can i assign the div the shows errors in each
input? i saw the demos but the problem is that i want to control on each div
position with my css.. .is that possible ? or anyone can shows me how to do
it
Chris Domigan wrote:
Another thought - is it possible to get the element that triggered the
jqmShow)? So if I have n anchor elements with class of jqmShow, the
modal object (once triggered) will have a reference to its calling
element?
Chris,
Sure thing. The last triggering element is
Excellent - just what I needed! Sterling effort.
Cheers
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hi,
This is not very obvious, and I guess some people won't notice that
is offers the same functionalities as a potential hasClass...
from a developer friendly point of view, I think it would be better
to have addClass/toggleClass/hasClass rather than addClass/
toggleClass/is.
Just my 2c
Hello,
Maybe off, sorry.
I made a little script, and I like to pack it. I try to use the js.jar
what is in the svn version of jquery. I try with the next command:
java -jar ./build/js.jar ./build/build/pack.js szamolo.js ./szamolo.pack.js
But, when I like to use the szamolo.pack.js instead
Here's a quick example:
http://www.co-opcookbook.com/test.cfm
It's not working 100% right now, I think due to the way mySQL stores the
data (extra carriage returns at the end maybe). But here's the code for it
(note, this uses an older version of jQuery). I haven't take the time to
update this
Hey there,
I've created a plugin to make a clickable, application-like dropdown
menu out of an unordered list.
Information about it can be found at: http://p.sohei.org
There is still some work to do, to make it really usable (I'm new to
this) but nonetheless please let me know what you think
http://dean.edwards.name/packer/
On 2/26/07, Ámon Tamás [EMAIL PROTECTED] wrote:
Hello,
Maybe off, sorry.
I made a little script, and I like to pack it. I try to use the js.jar
what is in the svn version of jquery. I try with the next command:
java -jar ./build/js.jar ./build/build/pack.js
Hi guys,
I think it's absolutely worth thinking about adding a hasClass shortcut to
the core, since I also missed the shortcut many times. the is() function is
pretty nice, but people would really guess there is a hasClass.
-Paul
2007/3/4, Sébastien Pierre [EMAIL PROTECTED]:
Hi,
This is not
Hey Yehuda,
.one('event',fn) has not been deprecated, as far as I know. Only the
individual .oneEvent(fn) methods have.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Mar 4, 2007, at 8:21 AM, Yehuda Katz wrote:
one has been deprecated since 1.1.
Hi, guys!
I've got in 1.html something about
$(document).ready(function() {
var h = $.ajax({url: test.html,async:
false,dataType:'html'}).responseText;
$('body').append(h);
});
test.html contains smth about that
pTest data/p
script type=text/javascript
/*![CDATA[*/
alert('test');
Maybe .hasClass() would be helpful, but keep in mind that .is()
offers /more/ functionalities than .hasClass() would.
For example ...
$('.class').is('#my-id')
$('p').is(':visible')
$('div').is('[a]')
I'm not necessarily opposed to having .hasClass(), but I really love
the flexibility of
My main issue, I think, is that I don't like the idea of mixing 2 different
types of data in one attribute. I like keeping everything separated, but
that's just me ;)
Klaus Hartl wrote:
Ⓙⓐⓚⓔ schrieb:
I think there is no risk! classes are ours to use (or abuse)... no
sane (not even IE)
As site developers using jQuery, we often attach jQuery behaviours through
an attach function that's registered with $(document).ready();. Typically,
behaviours attach to content identified by jQuery selectors, e.g., id or
class values. This works great for the initial DOM ready state. But how
I found that the simplest way to handle all of this is to make use of
the context parameter of jQuery. Basically write your attachBehaviors
function like this:
var attachBehaviors = function(context)
{
context = context || document;
$('a', context).bind('click', ...);
$('#product',
Use Thickbox in iframe mode and bounce the content off your server.
Otherwise, manually get the values from the form and generate a div
with the preview content in it (all from javascript).
Submit form data to an iframe is a flawed idea.
--Erik
On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote:
I keep all my behaviours in separate functions. For instance if I had a
fancy table widget I'd have a function called initTable() that contained the
behaviour code. I'd call it initially upon page load, then call it again
when necessary if content has been updated via ajax.
Eg.
I see how to do this with a normal HTML page, but how do I submit the
data via POST and get the resulting page into a Thickbox iframe?
Seb
On 4 Mar 2007, at 19:16, Erik Beeson wrote:
Use Thickbox in iframe mode and bounce the content off your server.
On 3/4/07, Seb Duggan [EMAIL
I see. I don't think that functionality is built in to Thickbox. It
probably wouldn't be too hard to hack it to do that. Google 'iframe
post' for info on the HTML necessary to make it happen. Or just use
GET.
Good luck.
--Erik
On 3/4/07, Seb Duggan [EMAIL PROTECTED] wrote:
I see how to do this
I am playing around with the flash plugin for jquery trying to get the sIFR
woking within a site.
I have downloaded the fla file but it does not open in my flash 7
http://jquery.lukelutman.com/plugins/flash/jfr.fla
I was hoping that either Luke or someone might be able either send me a fla
Absolutely Karl -
the is() method is wonderful, I use it quite often. But there are often more
ways to achieve the same things, sometimes it's just a matter of taste.
Anyway - a hasClass method would probably even save a few ms compared to
is() in my opinion, because you don't need to parse
Alexandre,
Is there any way to debug this plugin? For instance jqUploader has just
stopped posting to my server side script for some reason, and it would be
handy to see what sort of error it is throwing.
Cheers,
Chris
___
jQuery mailing list
amircx schrieb:
hey, i got the following code (i fixed the ie6 bugs and stuff)
now i need to figure out how can i assign the div the shows errors in each
input? i saw the demos but the problem is that i want to control on each div
position with my css.. .is that possible ? or anyone can
I have a table with tags. Now I downloaded the autocomplete from
jQuery plugin Modified Auto-complete by Anjesh Tuladhar,
http://just-tech.blogspot.com/2006/12/jquery-tweaking-auto-complete-plugin.html.
But I don't understand how to connect these two. First, I have
retrieved tags from the table
I need to find some consequent elements of one type from some point in
DOM
For example, I have:
div id=start.../divinput id=id1/input id=id2/input
id=idN/div/divinput id=out/
I need to find all inputs (from 1 to N) and not to find input with id=out
if I use $(#start).siblings(input) I
U could generate a div with the info from the form and use thickbox
internal function TB_show, like this:
$(preview).click( function () {
//generate a div with the contents of the form and then call thickbox with:
TB_show(Post preview,
#TB_inline?height=300width=300inlineId=divId, false);
});
I
Dmitry Rudakov wrote:
For example, I have:
div id=start.../divinput id=id1/input id=id2/input
id=idN/div/divinput id=out/
I need to find all inputs (from 1 to N) and not to find input with id=out
if I use $(#start).siblings(input) I will find all inputs including
input with id=out
Ámon Tamás schrieb:
Hello,
Maybe off, sorry.
I made a little script, and I like to pack it. I try to use the js.jar
what is in the svn version of jquery. I try with the next command:
java -jar ./build/js.jar ./build/build/pack.js szamolo.js ./szamolo.pack.js
But, when I like to use the
Hi. I'm just learning about jQuery and finding my way around its
documentation.
I have not been able to find any documentation on $.fn.
In fact in some of the rest of the documentation (e.g. the example code for
$.extend given at http://visualjquery.com/1.1.1.html, $.fn (or rather
jQuery.fn )
Daemach schrieb:
Actually I think I may just modify the validator code to read out of a custom
expando. It would be nice to be able to pass the attribute name to the
validator engine directly though...
Jorn? ==(sorry - I don't know how to do the fancy o ;)
Heh, . Just copypaste the
Brice Burgess wrote:
Dmitry,
As an example, you can use
var elements = $('input',$('#start')).not('#out');
I am sure others will have other suggestions.
Bruce, I do not know ID or something else about these wrong inputs ...
#out was just for example
I should break this
Hi;
I am new in jQuery and also not well in JavaScript enough...
I have been developing a modified version of jCarousel plugin of jQuery...
I try to tell the problem with code:
function loadItemHandler(carousel, start, last, available)
{
if (available) {
// Trigger loaded
Thanks for the info on the metadata plugin.
Make sure to avoid any spaces... is exactly the kind of gotcha that
makes using classes as a data repository so troublesome. While it is
technically possible, mixing data types inside an attribute just feels like
a bad practice to me.
Jörn
Hello everyone,
First off, great job so far on jQuery! I'm absolutely in love with it!
Second, is there any chance a graphing, charting or plotting plugin is
somewhere on the horizon? Something like PlotKit
(http://www.liquidx.net/plotkit/) or Solutoire
(http://solutoire.com/plotr/barexample/)
Alright... now I've got this working very well.
The only problem I have now is validation.
I normally submit a page back to itself, run some
checks on the form values and throw up any errors messages
before the form processes.
However, with the function CalculateMortgage below, I can't do that.
.hasClass() would just use .is() (or jQuery.filter) internally. Right
now we're quickly gaining filesize without even adding new features
(only dealing with bug fixes). For now, .is() will have to suit.
Another option would be to add an entry for .hasClass() in the
documentation, but in its
I believe this is the easiest and simplest way to do it.
On 3/4/07, Chris Domigan [EMAIL PROTECTED] wrote:
I keep all my behaviours in separate functions. For instance if I had a
fancy table widget I'd have a function called initTable() that contained the
behaviour code. I'd call it initially
Hi Kynn -
Documentation on $.extend can be found here:
http://docs.jquery.com/JavaScript
and information on using $.fn.extend can be found here:
http://docs.jquery.com/Plugins/Authoring
In jQuery $.fn.extend is used in plugin authoring, adding new methods to jQuery.
The relationship in jQuery
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ :)
Rick Faircloth wrote:
Alright... now I've got this working very well.
The only problem I have now is validation.
I normally submit a page back to itself, run some
checks on the form values and throw up any errors
All of that being said, if you're just getting started with jQuery,
you're probably not going to have to worry about any of this.
I should say, though, that if you're already digging into Plugin
development, then scratch my statement!
--John
___
This info couldn't have been more timely for me, as soon as I started
playing with jQuery my first reaction was to mix in my homebrew code. It was
very easy, although now I'm trying to extend it and the distinctions you
gave were great. One question though: is there a proper way to check for a
57 matches
Mail list logo