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
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.
Better
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
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
that you can
then style via CSS.
Hope that helps,
Thomas
On Dec 18, 3:13 pm, Mauricio Vargas pixelcriat...@gmail.com 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 format 12-31-2009
Oh, here's the link to the doc:
http://jqueryui.com/demos/datepicker/#event-beforeShowDay
On Dec 18, 3:13 pm, Mauricio Vargas pixelcriat...@gmail.com 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
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
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
relevant test cases.
On Oct 7, 12:49 pm, Thomas thpick...@googlemail.com 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 opposed to showing them only if
the user has
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
Addendum:
jQuery also works without problems side-by-side with MooTools in
noConflict() mode.
On Jul 20, 9:56 am, Sebastien BRUNEL srbru...@gmail.com 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
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
no
presentation
i put this :
alert( $(this).text() );
in the function to see if my accordion is well selected and it is...
why does my accordion isn't reload ??
Charlie a écrit :
http://docs.jquery.com/Frequently_Asked_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 have maybe a clue : ajax doesn't load well also accent if their are
not code like acirc;
(yes, i'm french)
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 aacute;
anyway, if somebody has
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 h2 for instance), the same fadein runs again... Am I doing
something wrong with the
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
.
Is this related to WebKit and Gecko, to OSX or to something else?
Thanks,
Thomas
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...
2009/6/3 Arie thomasa...@gmail.com:
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:
-
script type=text/javascript
$(function() {
$('#feat-container').cycle({
prev:
If I understood correctly, all you still want to do is to find a way
to get the text of the image 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
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 first
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
the
individual sections were excluded.
Thomas
On Apr 30, 2:16 pm, Thomas Allen thomasmal...@gmail.com wrote:
Thanks. I ended up using the classes add/remove style, and it works
well. However, a method that should be called on every page load is
not working properly. I am sure that it's being called
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
more of a design question right
now.
Thanks,
Thomas
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 joern.zaeffe...@googlemail.com
wrote:
One alternative approach can be found
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 thomasmal...@gmail.com wrote:
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
Yep, that did it, thanks. I had never heard of this before.
Thomas
On Apr 27, 10:13 am, Scott Sauyet li...@sauyet.com wrote:
Thomas Allen wrote:
What I'm doing is creating a couple button objects and cloning them.
$(memberSections).prepend(toggler.clone());
$(youngerSections
That was it. jQuery was being loaded just before /body, 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 thomasmal...@gmail.com
The second 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
are thrown, one for the missing jQuery
object, and another for the validate method.
Ignore the reference to validate.js in the head, that's not being
used here.
Thomas
On Apr 15, 4:39 pm, Eric Garside gars...@gmail.com wrote:
It's the order of your includes. In the first page, you're including
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 gars...@gmail.com wrote:
Upon further inspection, I'm not quite
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',
-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 Creutz alien...@alientxc.de wrote:
sorry, but who
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
solution.
because: I have
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 right.. the clear:both in .footer .legality
a monopoly..
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
On Apr 9, 2:26 am, Hellofrom hellof...@gmail.com 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
such that it 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
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 erdeveshmis...@gmail.com wrote:
Hi,
I am using the latest version of jquery. I want
definition ;-)
Thomas
signature.asc
Description: OpenPGP digital signature
-in-html-and-their-difference/
Thomas
signature.asc
Description: OpenPGP digital signature
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.info/2006/10/08/launch-and-open-links-in-new-window-or-tab
trips in this bug.
The final question is, who should fix this? the plugin author? Or is there any
other solution?
regards,
Thomas
signature.asc
Description: OpenPGP digital signature
Thomas
Sure, I'll do that.
Thomas
On Apr 8, 2:02 pm, Ralph Whitbeck ralph.whitb...@gmail.com 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, Thomas Allen thomasmal
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() {
Calendar List');
} else {
$('.calendarInfo').hide();
$(this).html('Show Calendar List');
}
});
);
}) (jQuery);
Thanks,
Thomas Allen
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 phigg...@gmail.com wrote:
.css({
'display': 'block',
'text-align': 'right
This should do it:
$('tr:not(.className)').css({'background':'red'});
Sorry, that's above my abilities...
Anyone else?
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).
Hi Nicolas, I will definitely look into this, thank yout!
On 22 Feb., 13:34, Nicolas R ruda...@googlemail.com 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/group
(I didn't write the filter stuff yet...)
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 img elements inside an empty
Your Loop should probably look like this:
$.each(results, function(key,val) {
event += 'div' + val.title + ' ' + val.style + '\/div';
});
On 21 Feb., 12:51, newkid85 newki...@googlemail.com wrote:
If I have JSON data like this:
{ 9: { title: Event 1, style: rock }, 11: { title:
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: IMGP3826,
Sorry, I mean if (item.key.indexOf(val) != -1) {.
But anyway, any ideas? I know my approach probably makes no sense at
all...
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 mal...@gmail.com wrote:
What is key? That's not in either
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;
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 p@btopenworld.com 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
have 8 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 thomas.ja...@gmail.com wrote:
You could use the callback function (http://docs.jquery.com/Effects/
animate#paramsdurationeasingcallback
, 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 thomas.ja...@gmail.com wrote:
You could use the callback function (http://docs.jquery.com/Effects/
animate#paramsdurationeasingcallback).
$(#right).click(function(){
$(#i1
?
Ty,
Thomas
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 no
Sorry, I just found this thread:
http://groups.google.com/group/jquery-en/browse_thread/thread/7cbc9fb45f7dc133/578d5407199aaf31
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
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 ricardob...@gmail.com wrote:
Doh. I'm blind.
$(#pay_cc:checked) will always be 'true'. even if the element
as 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
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 joern.zaeffe...@googlemail.com
wrote:
You can use $.format to create dynamic
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'
am a bit confused, could anyone bring some light into this?
Thanks :)
Thomas
by my
code, Microsofts code, jQuery+IE8 compatibility issues or a combination
of all of this.
Thanks in advance!
/Thomas Kahn
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);
());
should do the trick
.
On Jan 7, 9:41 am, Thomas tom.ronc...@gmail.com 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
suppose ).
Only one picture allowed per users so I renamed
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
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
, the 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;
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 Thomas Kahn and this is my first post to this list. I'm
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 itself
It seems you not using jQuery...
Give an ID for the table and use jQuery! It will be easyer! ;)
else/a
and do a 'thisIsASuperFunction()' function.
I think is a better way...
Good luck,
Thomas
Hi!
I have this in html:
a href=javascript:addSubject();add/a
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
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 body. 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
Your document contains multiple same ids (info, info_link). This is
not valid (http://validator.w3.org/check?verbose=1uri=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 ($('lihello\/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...
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!
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
head
titleJQuery/title
meta http-equiv=Content-Type
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
script lanuage=javascript
$(document).ready(function(){
$('#dayOfBirth').bind('focus',function(){
$(this).val('');
});
});
/script
- Original Message -
From: Raghu [EMAIL PROTECTED]
To:
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
$('#dayOfBirth').bind('focus',function(){
$(this).val('');
});
- Original Message -
From: Raghu [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Saturday, April 05, 2008 12:55 AM
Subject: [jQuery] JQuery bigginer
Hi I am learning JQuery and
I finally got the superfish menu system for jQuery working in my
application (after some idiot moves on my part). The problem now is
that the menu system, which is located in my header, is not displaying
on top of the page but instead the content of my main content area.
On another note I'm
Has there been any progress in creating a JQuery library xml file, or
whatever is needed for the JSEclipse plugin? Does anyone know of where I
could find it? Google only reports old news posts, and I was wondering if
anyone has done anything with it since.
Hi,
Is there a way to add scroll bars to a jqmodal dialog?
--
Tom Burns
1 - 100 of 118 matches
Mail list logo