I have a field with onblur function like this
and then in a button i put
$('#myname').trigger('blur'); ...
it seems the trigger wont call "dosomething" when i call $
('#myname').trigger('blur');
It's fixed in the Firefox 3 beta. :-)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On May 1, 2008, at 6:09 PM, Micky Hulse wrote:
Ah, interesting. Thanks for the tip Karl!
Anyone know if FF/Mac folks are planning on fixing this bug?
Thanks,
M
On Ma
Hello guys
I am just starting to play with and learn jquery. I have come to some
problems and were able to solve them.
I think that its something obvious that i am missing in the .get()
I am trying to create a page that will never refresh so for the
navigation bar i decided to use the ajax .get
I haven't tested this but it might work for you:
$j('').insertAfter(this).focus(function(){
$(this).val('');
});
That should have the right context (your new node, not this) and you
don't have to look it up again in another line.
HTH!
On May 1, 5:07 pm, jquertil <[EMAIL
Hi all,
I am trying to load some partials on page load and they are not
necessarily aware of each other (different people will be developing
them and they're pulled together on a page before sending to the
client).
Since it's designed this way there is a $(document).ready block on
each partial w
Hey all,
I think that I found an error in the documentation, and if not an
error then an omission.
The documentation for jQuery.extend (http://docs.jquery.com/Core/
jQuery.extend) says that it is used to extend the jQuery object.
However if you look at the instructions on authoring plugins (http
Once your new object has been added to the document you should have total
access to ii and when you create the new object that's when you attach the
event.
I can't tell by the code you posted, when these things are executed.
jquertil <[EMAIL PROTECTED]> wrote:
Hello...
I'm creat
In this case, the simplest thing is probably to use .find() to
"discover" the new element, i.e.:
$(this)
.after('')
.parent()
.find('input.focusClear')
.focus(function(){
$(this).val('');
});
- jason
On May 1, 8:07 pm, jquertil <[EMAIL PROTECTED]> wrote:
> Hello.
Hello...
I'm creating an input element like this:
$(this).after('');
then I want to clear the value on focus like so:
$('.focusClear').focus(function(){
$(this).val('');
});
Obviously this doesnt work cine jquery doesnt know about the element
yet. Do I
> uncaught exception: [Exception... "Could not convert JavaScript
> argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"
I saw that error once when I was trying to get the style properties of
a text node. Can you narrow down the location and call stack with
Firebug?
> The problem was that in my situation '#divMain img' sometimes already
> contains '#newImg', and when it does the add function would add a
> second copy of it, which messed things up further down the line.
That actually sounds like a bug. What version of jQuery are you using?
AFAICT, jQuery().a
I filed a ticket, but it was marked as "nofix." Apparently there are
inconsistencies in changing the "type" attribute in input fields and
they aren't meant to have their type attribute changed. So the
alternative is to simply remove the input field and create a new one
of the desired type using jQ
It seems like all your doing is an accordion feature from page to page. Why?
And it doesn't work at all in IE(6 & 7).
You might want to re-evaluate the script and how your handing it. Just a few
comments to ponder on.
1. Using the hover function to highlight a link seems like ove
You'll need to give us more information, a demo or at least some code,
before we can help you diagnose.
On Thu, May 1, 2008 at 5:18 PM, all4one <[EMAIL PROTECTED]> wrote:
>
> I have two drop-down lists in the "main menu" at the top of the page.
> When you click on link items in the "top menu" (di
Beautiful!
Exactly what I am looking for. Thanks tlphipps, I greatly appreciate
the help!!!
Cheers,
Micky
On Apr 29, 2:48 pm, tlphipps <[EMAIL PROTECTED]> wrote:
> I think you might be talking about something like the cookiejar
> plugin:http://www.jdempster.com/2007/08/11/jquery-cookiejar/
>
>
Ah, interesting. Thanks for the tip Karl!
Anyone know if FF/Mac folks are planning on fixing this bug?
Thanks,
M
On May 1, 1:59 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Are you using FF Mac? If so, it's an opacity bug in the browser. Try
> setting this in the stylesheet:
>
> body { -moz-o
I'm using this plugin for the first time and noticing something odd.
The tooltip loads as you would expect, but at the bottom left hand
side of my screen I see another tooltip loading(with the same title)
with the animated loading image in the body of the window and nothing
else. Very strange. A
The Easiest method would be to create a "wrapper" div that takes up
the entire screen and assign an "onClick" event to that, which would
then contain the other div. For example:
Login box content
The CSS for the DIV id="wrapper" would be something like:
#wrapper {
posit
I have two drop-down lists in the "main menu" at the top of the page.
When you click on link items in the "top menu" (different menu) which
is below the "main menu" the drop-down menu flashs then disapears as
the rest of the page loads.
I recently completed using jQuery to build a navigation structure for
the site I manage at work. The site is http://www.msi.umn.edu.
The script giving problems is http://www.msi.umn.edu/js/leftnav.js.
The difficulty seems to be in the step where I add a span to menu
items that have a sub-menu us
Are you using FF Mac? If so, it's an opacity bug in the browser. Try
setting this in the stylesheet:
body { -moz-opacity: 0.; }
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On May 1, 2008, at 4:47 PM, Andy Matthews wrote:
Unless those other ele
Since it returns an object, you can use either dot notation or bracket
notation. So, to get the top position of an element, you could do
this ...
$(element).offset().top
or this ...
$(element).offset()['top']
hope that helps.
--Karl
_
Karl Swedberg
www.englishrules.com
Hi Rick,
You aren't using multiple forms, are you? If you are, you're going to
run into problems with multiple elements having the same id -- with
the way this appears to be set up now.
Anyway, I think this could be a little simpler. Assuming a single
form, maybe something like this:
$
Unless those other elements are being included in the fade, they shouldn't
be effected.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Austin S.
Sent: Thursday, May 01, 2008 2:37 PM
To: jQuery (English)
Subject: [jQuery] How to stop other eleme
This is an interesting problem to me (not that I have much time to put
into it, ug :-) ... I did a little googling and found this, which may
give you some ideas (albeit using moo):
http://www.wscreative.co.uk/blog/posts/2008/04/08/text-resizing-with-javascript-and-a-scrollbar/
(try the slide
Hi All -
Is there a way to stop the other elements on the page from dimming
when a fade occurs?
I can confirm this is happening. We had to revert back to an older
jQuery (1.1.4). Any ideas if a ticket has been filed for this bug?
-Cody
On Mar 22, 3:36 pm, claudiopro <[EMAIL PROTECTED]> wrote:
> Apparently, jQuery can't set the "type" attribute of html input fields
> to look like Cocoasearc
However you assign it's value is how you'd reference it:
var img = $();
var top = img.top ;
is my guess.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bdee1
Sent: Thursday, May 01, 2008 2:56 PM
To: jquery-en@googlegroups.com
Subject: [jQuery]
i am a little unclear on how exactly to get the position of an element using
jquery dimensions plugin.
documentation says it returns "An object with top and left properties that
are numbers representing the offset in pixels."
and it says the object looks like this:
{ top: 10, left: 10 }
so how
That's pretty much how mine will work as well. Although I haven't had to add
the ajax part. I just needed to create it to display to another team how it's
supposed to work.
With looking at an older message of yours, your getting the same results I
was getting. That's when I removed all the
Just thought that this might help someone's pain. I have a group of
objects and I wanted to add an additional object to it, simply by
doing this:
jQuery('#divMain img').add('#newImg');
The problem was that in my situation '#divMain img' sometimes already
contains '#newImg', and when it does the
Joe wrote on 5/1/2008 12:00 PM:
I would assume this would have to include some sort of database
interaction. I will be considering a PHP/MySQL/jQuery solution.
Spellify uses Google's spellchecker - good if you want just regular spell
checking, bad if you need custom spell checking for speci
Our tree will potentially change within the time that someone is using
it. In fact, the user will be creating and saving new nodes; Other
users will be creating and saving new nodes. Both users need to be
able to refresh the tree to see nodes added by themselves and others.
The async tree starts
Another request for the Async Treeview - in our application, we have
an automatic session time out after a set period of idle time. After
that timeout, the server will return a "302 Redirect" status. We then
popup a dialog or redirect to the login page.
We need to have a callback method that is i
I think the issue with the enlarge image view is in the below snippet of
code as
the URLs dont jabe .jpg extension . Any workaround ?
function mycarousel_getItemHTML(item)
{
var url_m = item.url.replace(/_s.jpg/g, '_m.jpg');
On 5/1/08, Samant <[EMAIL PROTECTED]> wrote:
>
> Hi ,
>
> I was
thanks for the info.
Another thing you can check is whether you are including the
Dimensions plugin. (it's a dependancy.) If it's in there, then the
next thing I'd like to know is the version # you're using for jquery
core, dimensions, and cluetip. Of course, if you have a page you can
s
I didn't remove the contents within the elements(datadata). I
only had to remove the html and (, etc) attributes/characteristics
applied by treeview, cause on a rebuild it would reapply the attributes,
resulting in it breaking.
I had to bring the lists down to the simple html and then rebu
Hi ,
I was trying to use "jCarousel and Thickbox 3 " plugin .
>From the jCarousel, examples folder - used the special_thickbox.html
and replaced the URI to point at REST webservice call image output as
shown below instead of
static .jpg image links.
http://re3.yt-thm-a01.yimg.com/image/25/m4/3024
Thanks ripple.
So are you saying you had to remove and clear the individual elements
and attributes, rather than using empty() or remove() on the UL?
Why wouldn't removing or emptying the contents of the UL do the same
thing?
I guess I'm confused as to what or where (why!) information about the
Rick,
Try this (untested):
$(document).ready(function() {
$.each(".formlink"), function() {
$(this).click(function() {
$("#supporttype").val($(this).attr("id");
$("#supportform").submit();
});
});
});
Paid Support or
Free Support
HTH,
Carl
Rick Fai
I would assume this would have to include some sort of database
interaction. I will be considering a PHP/MySQL/jQuery solution.
Cheers.
Joe
www.subprint.com
On May 1, 10:54 am, Bil Corry <[EMAIL PROTECTED]> wrote:
> Fontzter wrote on 5/1/2008 10:09 AM:
>
> > Any leads on this? This is a comm
Hey,
THis shouldn't be tricky, as long as you cna easily find which form
you want to submit!
Are there multiple forms on the page to choose between?
Something like this *should* submit the first form on the page
(untested) ...
$('.submitLink')
.click(
function()
{
$('form').get(0).submit();
r
As a follow-up to my question, I found this method
that utilizes regular JS, but I'd like to be able to
cause any link with a certain id to act as a "Submit Link".
Here's the code I found to create a text submit link: