To my knowledge, that's not possible to do with Javascript alone.
You would need to employ Flash for that. I believe FancyUpload is a
Flash plugin that might suit you. There are surely more, and possibly
better ones out there but this should give you a starting place for
your research.
On Jan 26,
When I started writing reusable plugins at work, I've read a couple of
tutorials first, but then found this one:
http://www.learningjquery.com/2007/10/a-plugin-development-pattern
All my plugins since then are based on that pattern, and I strongly
felt I've understood every little nuance of why
You can trigger a custom event on any object with trigger(). On the
global document object, for example:
$(document).trigger("myUpdateEvent");
and listen to it like so:
$(document).bind("myUpdateEvent", someFunction);
Fiddling around with the global document object is a bit icky, though.
Bette
Here's a post from John's blog in which he touches the topic of a
general strategy for browser support:
http://ejohn.org/blog/the-browsers-of-2009/
He also briefly writes about it in his (latest?) book:
http://www.manning.com/resig/
Finally, John's (and thus jQuery's) testing strategy is to tes
Oh, here's the link to the doc:
http://jqueryui.com/demos/datepicker/#event-beforeShowDay
On Dec 18, 3:13 pm, Mauricio Vargas wrote:
> Hi,
>
> I'm using the Datepicker that comes with the jQuery UI.
> I would like to keep some dates, in this calendar, checked.
> I'm bringing some dates in the fo
if it is, you set a custom class that you can
then style via CSS.
Hope that helps,
Thomas
On Dec 18, 3:13 pm, Mauricio Vargas wrote:
> Hi,
>
> I'm using the Datepicker that comes with the jQuery UI.
> I would like to keep some dates, in this calendar, checked.
> I'm
I'm using a plugin contextmenu and I want to be able to copy elements
that are dynamically created, but somehow it doesn't clone, it uses
the same element when I paste.
$.post("actions.php", { action: 'getCal', from: dFrom, to: dTo },
function(data){
cals = data.split(";;")
The images are there, they're just for some reason moved to the left.
If you assign a margin-left of 50px to your first image, you'll see
that they are actually visible.
Seems to be a style issue (maybe IE-related), rather than a jquery
issue.
Additionally, your page throws a handful of validatio
Hi,
I am using Jquery autocomplete dropdown, could you please help to add
a "close" link button at the end of the dropdown like the google
suggest ?
I am new to jquery,
Thanks in advance
Thomas
entirely sure I've thought of all relevant test cases.
On Oct 7, 12:49 pm, Thomas wrote:
> Hello!
>
> I'm using the validate plugin, and I am loving it.
>
> Unfortunately, my client would like to show validation errors on form
> fields on blur events every time, as oppo
Hello!
I'm using the validate plugin, and I am loving it.
Unfortunately, my client would like to show validation errors on form
fields on blur events every time, as opposed to showing them only if
the user has previously entered something in the field at least once.
Before I start hacking insid
Addendum:
jQuery also works without problems side-by-side with MooTools in
noConflict() mode.
On Jul 20, 9:56 am, Sebastien BRUNEL wrote:
> Hi
> I have developped this function in jquery for a website, and i have to
> use it on another site which is using mootools. I've tried to convert
> it,
Salut, Sebastian.
See if this works. It's an accurate replication of your code in
MooTools-speak. Personally, I'd attempt a pure CSS solution for your
problem, but of course I don't know all the details on what you want
to achieve and in which context.
As I can't really test the code, it is prov
hello
I'm opening a new window with window.open()
In the new window a file is loaded with the following post data
function:
function ajaxPost(url,data){
$.post(url,data,
function(data){
alert(data)
});
, "json");
}
If I call this function form wit
_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F
>
> Thomas wrote:
> Hello, I use a jquery tabs with ajax (for loading a tab content) it
> works very well, but when ajax have to load an accordion, it doesn't
> work well (i loose the accordion presentation) i
Hello,
I use jquery Tabs with ajax for loading data
it works well
but when data is an accordion, there is no more presentation of the
accordion (like no css, or no js)
it's maybe nothing, but ajax has also a problem when data contain an
accent who is not code with á
anyway, if somebody has any ide
Hello,
I use a jquery tabs with ajax (for loading a tab content)
it works very well,
but when ajax have to load an accordion, it doesn't work well (i loose
the accordion presentation)
i have maybe a clue : ajax doesn't load well also accent if their are
not code like â
(yes, i'm french)
thanks
Is it possible to check if the mouse is hovering over a parent element ?
On 05 Jun 2009, at 02:15, Thomas wrote:
Hi,
I have a layout with 4 collumn divs. When the mouse hovers over each
collumn, a simple fadein is performed on another element.
Now what happens is, when i move over another
Hi,
I have a layout with 4 collumn divs. When the mouse hovers over each
collumn, a simple fadein is performed on another element.
Now what happens is, when i move over another element INSIDE a collumn
div (a for instance), the same fadein runs again... Am I doing
something wrong with the select
2009/6/3 Arie :
>
> Hello,
>
> I tried to use Cycle Plugin, and it works great. I have the "Previous
> and Next" navigation work without any problem.
>
> This is the code I have:
>
> -
>
> $(function() {
> $('#feat-container').cycle({
> prev: '#prev',
> next: '#next',
> timeou
Sorry, in Windows XP it only works when visiting local HTML files. On
"real" websites I'm having the same problem.
But why is it working using any webserver to host the script? I
thought this was cross-domain all the same...
this related to WebKit and Gecko, to OSX or to something else?
Thanks,
Thomas
Ohhh, now that I've read the code you're using to grab the attribute
value...
In your alert(), try
alert(attribute["image"].text());
instead of
alert(attribute["Image"].text());
(note the lowercase i).
But the easiest solution (if it works) would be the direct selector
approach from my firs
If I understood correctly, all you still want to do is to find a way
to get the text of the node that has the attribute "size" with
a value of "medium".
The straightforward jQuery selector for that would be:
"image[size=medium]"
So you were nearly there in your second post. Try:
var mediumUrl
I'm using v1.3.2 as well, and incidentally, I also happen to be using
the same selector pattern.
I get the SELECT element, just as expected.
My guess would be that a space snuck into your selector, like this: $
('select[name^="q_select_"]')
And I'd venture further and hypothesize that your
Both are valid javascript, but only one is valid json.
However many json parsers are leaniant in what they accept.
var moo = { foo: "bar" } // this is javascript, not json.
JSON.stringify(moo) should give '{ "foo": "bar" }' // this is json.
So if you are passing json to something, it needs to be
t.val());
}
}
So that the field validators would not be added back when the
individual sections were excluded.
Thomas
On Apr 30, 2:16 pm, Thomas Allen wrote:
> Thanks. I ended up using the classes add/remove style, and it works
> well. However, a method that should be called on every pa
t the checkbox is checked (the same sections are
hidden), I cannot re-submit the form: The validation classes are not
removed.
What can I do to fix this? I know that the code's a bit clumsy, but I
can explain any specific parts if needed.
Thanks,
Thomas
And I'm not going out of my way to change the subject...I'm not sure
what's going on there.
Thomas
On Apr 28, 2:40 pm, Thomas Allen wrote:
> > a custom method is used for the fields inside the Billing Address group
>
> What does this method do (or, better, what&
> a custom method is used for the fields inside the Billing Address group
What does this method do (or, better, what's it called so I can search
the source)?
Thanks,
Thomas
On Apr 28, 2:16 pm, Jörn Zaefferer
wrote:
> One alternative approach can be found
> here:http://jquery.
make the field set
counts visible to the user, but that's more of a design question right
now.
Thanks,
Thomas
Yep, that did it, thanks. I had never heard of this before.
Thomas
On Apr 27, 10:13 am, Scott Sauyet wrote:
> Thomas Allen wrote:
> > What I'm doing is creating a couple button objects and cloning them.
> > $(memberSections).prepend(toggler.clone());
> >
Class('button')
.click(function() {
console.log('Hello');
// $(this).parent().parent().addOne();
});
var toggler = $('')
.addClass('toggler')
.append(minus)
.append(plus);
$(memberSections).prepend(toggler.clone());
$(youngerSections).prepend(toggler.clone());
});
Why is it that neither button logs to the console when clicked?
Thomas
That was it. jQuery was being loaded just before , so it was
overwriting the jQuery object loaded earlier (via the custom page). By
moving this to the top and deleting the extra script reference, I
fixed the problem. Thanks!
Thomas
On Apr 16, 12:37 am, Thomas Allen wrote:
> This is possi
This is possible, and makes sense. I'll take a look tomorrow (the main
template for this site includes jQuery, and we include these scripts
on forms, which is where things got mixed up).
Thomas
On Apr 15, 4:55 pm, Eric Garside wrote:
> Upon further inspection, I'm not quite sure
x27;s not being
used here.
Thomas
On Apr 15, 4:39 pm, Eric Garside wrote:
> It's the order of your includes. In the first page, you're including
> the validation plugin before you're including jQuery. The result is
> that, when validation attempts to enter itself into the jQue
one works, and the first doesn't. For some reason, the
first site doesn't bind the validate method to jQuery.
$.fn.validate()
throws an exception in the console.
What's going on, and how can I fix this problem? The file itself is
definitely being loaded.
Thanks,
Thomas
Wow, you had me stumped for a couple of minutes there. :)
I think the .index() method doesn't do what you want it to do.
As I understand it, you use that method on a selection of elements,
pass it an element, and it will search for the element in that
selection.
So if you did
alert($('td', th
Thomas Creutz schrieb:
> Jordon Bedwell schrieb:
>> I suggest you check out http://www.smoothhd.com/ before you start dogging
>> Silverlight. Learn a little about things before you dogg them please.
>
> haha, its not possible, I use Linux ... and Moonlight is not the right
-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of Koistya `Navin
> Sent: Saturday, April 11, 2009 2:04 AM
> To: jQuery (English)
> Subject: [jQuery] Re: jQuery SL - jQuery Silverlight Plugin Feedback
>
>
> On 10 апр, 23:30, Thomas Creut
thing from M$
to get a monopoly..
Thomas
Thomas Creutz schrieb:
> Main store schrieb:
>> You'll see the bottom of my page is too long.
>> I have tried to modify the CSS with some Height measurements but
>> nothing happen..
>
> hi.. just remove the height from the body definition ;-)
oh.. Nathan is ri
Thomas Creutz schrieb:
> CaptainABrad schrieb:
>> Stated simply, is there a way to either:
>> 1) Click a link on a page with jQuery, or
>> 2) Open a link in a new tab.
>
> 2: window.open and target "_new" should work
>
> http://www.mydigitallife.i
h-_blank-or-_new-as-target-in-html-and-their-difference/
Thomas
signature.asc
Description: OpenPGP digital signature
ove the height from the body definition ;-)
Thomas
signature.asc
Description: OpenPGP digital signature
Oh, it gives you a virus...the virus of a clean API for the DOM.
Some people in comp.lang.javascript would argue that jQuery itself is
a virus, but they're a bit off-kilter.
Thomas
On Apr 9, 6:22 am, Devesh wrote:
> Hi,
>
> I am using the latest version of jquery. I want to c
overlaps my content. i've
> put the code in to reset the height again, but it doesn't do anything
> at that point. any ideas?
Can we see your code?
Thomas
On Apr 9, 2:26 am, Hellofrom wrote:
> I try to use Form plug in with Validaiton plug in
> i get the following error if firefox
> Error: form.ajaxSubmit is not a function
>
> can someone help me please
I'd like to. Could you please post your code that produces this error?
Thomas
Thomas Creutz schrieb:
I have strange problems with IE7 (older/newer version not tested, but I think, it is also
present in IE6) and some plugins, that do a appendTo().
The Webpage stops loading and I get a warning which says:
Die Internetsite http://mypage.de/ kann nicht geöffnet werden
Sure, I'll do that.
Thomas
On Apr 8, 2:02 pm, Ralph Whitbeck wrote:
> Thomas,
>
> You could submit a bug and if you want to help submit a patch to the bug and
> I am sure the team will consider it.
>
> Thanks,
> Ralph
>
> On Wed, Apr 8, 2009 at 1:50 PM, Th
a
bit
Thomas
egards,
Thomas
signature.asc
Description: OpenPGP digital signature
I would add one common class to to all your .step1, ..., .step10
elements in your mark-up, and then do this:
// say the common class is "step"
$(document).ready(function() {
var $steps = $('.step');
$steps
.addClass('hiddenStep')
.click(
function() {
$steps.addClass('h
Oh, I thought that was a recommended practice to reduce bugs when
changing the number of items in an object. Thanks!
Thomas
On Mar 9, 9:58 am, pete higgins wrote:
> > .css({
> > 'display': 'block',
> > 'text-a
know, this is
grimy, but it works.
$('.calendarInfo').show();
$(this).html('Hide Calendar List');
} else {
$('.calendarInfo').hide();
$(this).html('Show Calendar List');
}
});
);
}) (jQuery);
Thanks,
Thomas Allen
Sorry, that's above my abilities...
Anyone else?
This should do it:
$('tr:not(.className)').css({'background':'red'});
Well, it looks like indexOf() (or probably better search()) is ok
since I just have to check a string for another one (e.g. is "2008"
contained in the date value).
They should have "position:absolute" instead if "position:relative".
Relative means relative to the "normal" position. In this case you
would have to set negative values for top/left to achieve an
overlapping.
Petar schrieb:
> I'm trying to create and place several elements inside an empty
>
(I didn't write the filter stuff yet...)
Hi Nicolas, I will definitely look into this, thank yout!
On 22 Feb., 13:34, Nicolas R wrote:
> Hey Thomas,
> from what you're saying it seems that we're trying to tackle the same
> issue. Have a look at this it may be
> helpful:http://groups.google.com/grou
be a conflict when you end up with 2 objects
> with id1?
>
> Thanks
>
> paul
>
> On Feb 21, 2:29 pm, Thomas Jaggi wrote:
>
> > You could use the callback function (http://docs.jquery.com/Effects/
> > animate#paramsdurationeasingcallback).
>
> > $(&q
numbered form
> 0 to 8, will there not be a conflict when you end up with 2 objects
> with id1?
>
> Thanks
>
> paul
>
> On Feb 21, 2:29 pm, Thomas Jaggi wrote:
>
> > You could use the callback function (http://docs.jquery.com/Effects/
> > animate#par
You have to solve this on the server side. If you put a normal link on
the tab you can deliver an appropriate site on reloading.
On 21 Feb., 13:26, Playtime wrote:
> Dear all,
>
> I'm new to jquery and am just started to use the Ajax tabs in a site I
> am building. However I do notice that if
You could use the callback function (http://docs.jquery.com/Effects/
animate#paramsdurationeasingcallback).
$("#right").click(function(){
$("#i1").animate({width: '98px', "left": "+=86px"}, 1500, function
(){
var id = $(this).attr('id').split('i')[1];
id = id -1;
$(thi
Great, that's it. Thanks a lot!
The indexOf is just an example. The options are actually some kind of
filters and I want to check each item against each filter. Depending
on the filter It could be indexOf.
On 21 Feb., 14:44, Mike wrote:
> > What is "key"? That's not in either one of your dat
Sorry, I mean "if (item.key.indexOf(val) != -1) {".
But anyway, any ideas? I know my approach probably makes no sense at
all...
Let's say I have on object with my options:
options = jQuery.extend({
title: 'xy',
date: 'xy'
}, opts);
And some JSON data:
({ "items": [
{
"title": "IMGP3817",
"date": "2008-10-18T10:35:17-08:00"
},
{
"title"
Your Loop should probably look like this:
$.each(results, function(key,val) {
event += '' + val.title + ' ' + val.style + '<\/div>';
});
On 21 Feb., 12:51, newkid85 wrote:
> If I have JSON data like this:
>
> { "9": { "title": "Event 1", "style": "rock" }, "11": { "title":
> "Event
le!
vlm1 = $(xml).find("title").eq(0).text(); // success
vlm2 = $(xml).find("link").eq(0).text(); // fail
I did not made the xml file and i can't edit it. How could i assign
the content of this link tag ?
Ty,
Thomas
Good call; thanks! I've been working with the Validate plugin, and the
"depends" guards appear to be creeping into my other code :^)
Thomas
On Feb 10, 2:41 pm, Ricardo Tomasi wrote:
> Doh. I'm blind.
>
> $("#pay_cc:checked") will always be 'true
serve the same behavior when I try these
conditionals reverse order (Check first, causing CC to always override
it).
Thomas
On Feb 10, 2:23 pm, Ricardo Tomasi wrote:
> What do you mean by overriden? Just copied your code over and it seems
> to work fine.
>
> http://jsbin.com/efejehtt
y are a part of the same
radio group (as seen in the HTML). The showCC and showCheck functions
work perfectly in the focus() context (they switch normally).
The reason that I'm setting this up this way is so that a user will
only see the payment region that they need to see.
Thanks,
Thomas Allen
Sorry, I just found this thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/7cbc9fb45f7dc133/578d5407199aaf31
Let's say I have a CSS class for each of two possible states of an
element. Now I want to animate from state X (".state-x {width:100%}")
to state Y "(.state-y {width:50%}").
Is it possible to get the CSS definitions of ".state-y"?
I suppose "$('.state-y').css('width')" doesn't work when there is
needed. This seems not be the case with the solution
you have suggested. Once specified the this.settings.messages
[element.name] sticks and does not clear.
How to reset it back to nothing and re-launch validation chain when
the form value changes?
With kind regards,
Thomas
On Jan 26, 11:18 am
the check digit should be for what he
has typed. In order to pass it into template "Entered number is wrong
the check digit must be {0}" I need to be able to alter param
somehow ...
Regards,
Thomas
On Jan 25, 2:29 pm, Jörn Zaefferer
wrote:
> You can use $.format to create dynamic messag
Hello group!
Very happy to have deployed validation plugin ( I mostly need to check
validity of EAN/UPC numbers for barcode generation). You can see it in
action here: http://www.barcoderobot.com/ean-13.html
The question I am struggling with though is howto return a
'dynamically generated' messa
("#portal").sortable
("toArray") });
I am a bit confused, could anyone bring some light into this?
Thanks :)
Thomas
if the errors are caused by my
code, Microsofts code, jQuery+IE8 compatibility issues or a combination
of all of this.
Thanks in advance!
/Thomas Kahn
Hi saiful!
You have several syntax errors in your code, but I assume they're just
typos (for once, you have "isPopUp" in your one selector, instead of
"#isPopUp").
Your problem likely stems from misinterpreting the mouseout event,
though. That event fires *every time the cursor leaves a child of
It would be interesting to see './files/v-winter.txt' as well,
specifically how it's being served.
Total shot in the dark, but I remember having had a similar problem
(IE-only) when I started playing with XML files many moons ago.
Maybe it would help if you served that file with an 'content-type
=" + new Date());
>
> should do the trick
>
> .
> On Jan 7, 9:41 am, Thomas wrote:
>
> > Hi folks!
> > I have a simple profile image upload script. The problem is that I
> > can't change the actual image with jQuery, because is cahed ( i
> > sup
Hi folks!
I have a simple profile image upload script. The problem is that I
can't change the actual image with jQuery, because is cahed ( i
suppose ).
Only one picture allowed per users so I renamed their files to
user1.jpg, user2.jpg, etc.
I tried to use $('#somethin').attr("src", "userN.jpg");
e off.
And now I'm kind of stuck. Any pointers, tips and suggestions are most
welcome. Can I block the links somehow, making them clickable only when
I'm sure that they will open in Shadowbox? Can I somehow use Live Query?
Regards,
Thomas Kahn
Web Developer, Stockholm, Sweden
remaining 3 from the first set
of images were still there on the scroller.
Can any one suggest a workaround for this?
Regards
Thomas
I found it!
The problem was that I used the "complete" and I should "success" !
After this repair I easily access the response with $(xml).
Hi!
I have a basic question with jQueryed ajax. How can I reach elements
by tag name ?
I have this js:
$.ajax({
url:"some.xml",
type: "POST",
dataType: ($.browser.msie) ? "text" : "xml",
processData: false,
complete: function(data) {
var xml;
Thanks a million Mike!
This is EXACTLY the kind of tips'n'tricks that I need to learn. I will
address all the things you point out as soon as I have the time!
/Thomas
Mike Alsup wrote:
All improvements and suggestions are welcome!
Some quick comments on the code itsel
ng two adhead)
That is my plan!
I will be using ten or more of the scrolling DIV's on a single page so
loading all the content at once would be heavy.
Thanks for your feedback!
/Thomas
2008/11/1 tkahn <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
Hi!
My name is Tho
It seems you not using jQuery...
Give an ID for the table and use jQuery! It will be easyer! ;)
Hi!
I have this in html:
add
and this in js:
function addSubject() {
alert( $(this).attr("href") );
}
/* expected output:
*
*javascript:addSubject();
*
*/
I tried some alternate method but those not works neither... What is
the problem ?
Thomas
k do not mutch
else
and do a 'thisIsASuperFunction()' function.
I think is a better way...
Good luck,
Thomas
The easiest way to fetch another page and insert it into the DOM is by
using load():
$('body').load('page.htm');
injects the contents of page.htm into . You can also use
selectors in the url if you only want to fetch parts of the page:
$('body').load('page.html #someelement')
injects only the
Your document contains multiple same ids (info, info_link). This is
not valid (http://validator.w3.org/check?verbose=1&uri=http://
dev.dreimorgen.com/test.html). Please correct this first (use classes
instead) and try again.
For me this is working.
Thomas
Does anybody know how to enable the Cycle again after adding a list-
item ("$('hello<\/li>').appendTo('#cycle');")?
When just enabling it again like "jQuery('#cycle').cycle({...});" the
new item and the first one are set to "display:list-item" at the same
time...
$(document).ready(function(){
$('#dayOfBirth').bind('focus',function(){
$(this).val('');
});
});
- Original Message -
From: "Raghu" <[EMAIL PROTECTED]>
To: "jQuery (English)"
Sent: Sat
Hi spectrus
Here you can see what I mean:
http://view-source.de/ext/larepublique/slider-final/
Seems to work now.
There is just a problem in IE6: As soon as there are any background-
images, it's not really smooth any more... But same problem with the
initial version. Probably that's because of
I'm newbie to jquery.i bind click event to div element which is created
dynamiclly.
but it can't work.
Anyone could help me?
Thank a lot
thomas.chen
The following is my code!
JQuery
JQuery
$(document).ready(functi
sing?
- When the box is higher than the screen (click "expand") there is an
unwanted effect when scrolling to the bottom of the page. How can I
define a minimal margin to the bottom?
Thanks a lot,
Thomas
1 - 100 of 125 matches
Mail list logo