I've searched the posts and the web but I can't find a clear answer/
solution. I hope someone can answer this one:
I want to hide a div when there's a click anywhere outside of the div.
How would one do this?
Gav
This is a bit of a newbie question, sorry. :)
I've got a floating dialog that is a draggable.. It has a table in it
with a scrollbar.. Now, of course, the scrollbar doesn't work properly
since it's in the draggable. How do I fix this?
I'm aware of the dragPrevention property, but the syntax
On Nov 15, 4:36 pm, Aaron [EMAIL PROTECTED] wrote:
Hey all,
I've just built a plugin a that allows you to use jQuery as a
replacement for Prototype/script.aculo.us in Rails. It also includes
some of the visual effects that were missing since 1.2 came out and
broke compatibility with
Hi,
I made a new version = http://www.hybridbears.com/zoombox/example-4.htm
But on IE6, it's very slow how to solve this problem?
Thanks
Alex
On 15 nov, 04:27, Guy Fraser [EMAIL PROTECTED] wrote:
Shame, it would have been nice to have it in Aptana Studio - I was
wondering why I wasn't getting code hints, etc.
Your right Guy. Aptana team does not support the last jQuery version.
I suppose they will do it one day. Aptana users will
Example:
$('#topNavigation li a').map(function(){
// find STRONG element...
var b = $(this).find('strong');
// return STRONG element or this (an A)...
return b.length ? b[0] : this;
})
// for each A or STRONG found...
.each(function(){
// get the text...
var me =
On Nov 15, 4:11 pm, window.close [EMAIL PROTECTED]
wrote:
Hello Wizzud and thank you for your reply!
Assuming that function A can be called an unknown/unspecified number
of times before #button may actually be clicked, and that what happens
when #button is eventually clicked is determined
Hi Wizzud,
I got it fixed by changing the handler from an anonymous function to a
known. I wanted to work with that anonymous handler because of the
parameters i could pass easily, but jQuery seem to have some problems
with the unbinding of anonymous handlers (but maybe I'm just to
stupid).
I
On 15 nov, 16:36, Aaron [EMAIL PROTECTED] wrote:
I still have work to do on the visual effects piece but it's a pretty solid
release.
Instead of ripping my designs, you also need to work on your own
website.
Thanks.
http://www.nickstakenburg.com/projects/prototip
- Nick Stakenburg
Hi,
(I think my previous post got lost...)
I just started using jQuery and I am absolutely stoked with the
library and all the beautiful extensions - Great work!
I am using the superfish and it's working absolute perfect. But I have
two different menues on my site and would like to use two
Hi,
I am just starting with Jquery and I am stoked with it's
possibilities...
I question is the beautiful superfish plugin. Everythings works fine!
But I would like to use two different animation types for two
different menues that are on the same page.
I have attached my script below.
Sounds like you need to use the before or after callbacks for this.
The pager is just and element like any other, so you should be able to
move it and size it dynamically as needed.
Mike
On Nov 15, 2007 6:27 AM, Doctorado 2005-2006 DUyOT UPM
[EMAIL PROTECTED] wrote:
hi! i was trying without
You can use options with the form plugin. This might get you going
in the right direction:
$('#addCommentForm').ajaxForm({
beforeSubmit: myValidationFn,
success: mySuccessFn,
error: myErrorFn
});
function myValidationFn(formData, $form, opts) {
for (var i=0; i
Hello,
I have the following http://richmondshire.riverprojex.com/ page the
select boxes are wired upto change event. When user picks item the page
redirects. The issue is for some reason the first item does not trigger the
change event. My code looks like this
Hi Nick,
If Aaron took your design, I think it would be best to address it
directly with him as opposed to airing dirty laundry on a mailing list.
This isn't the place for it so please discuss this with him offline. I'm
sure you two can work this out without involving the whole jQuery list.
SO CLOSE! What I really need - is when the div collapses - is to HIDE
the unchecked items:
Isn't that what this does?
$(this).next('div:hidden').slideDown('fast').siblings('div:visible:not
(:has(input:checked))').slideUp('fast');
It's showing the very next div, and then hiding any other
i use this xml saved locally in projects.xml
?xml version=1.0 encoding=utf-8?
projects
project id=1
nameNome del progetto 1/name
noteNote del progetto 1/note
/project
project id=2
nameNome del progetto 2/name
Hi,
I want to get the border-color of a div. The following code works in
IE and alerts the color of the border:
$(#mydiv).each(function() {
var borderColor = $(this).css(border-color);
alert(borderColor);
});
In FireFox it just alerts 'undefined'
The border is set with CSS, not by
Hi,
There might be one possibility that 1) you are using the latest JQuery
release, and 2) the return javascript is not in the root level
script tag (ie, you have someting like div (or
whatever) ...script Your javascript code /script... /div. If
this is the case, due to JQuery's bug, the
Jim,
You started a new topic and abandoned your last one, not sure if
that was on purpose or not, but the code I pasted at the end of the
other topic seems to do exactly what you're asking for. Like I said,
it's not necessarily elegant, but it does work. I should have
probably copied your
Hi,
I'm trying to modify RikRIkRik Lomas' excellent QuickSearch plugin. I
want to set up clickable links to remove all sorting, and to setup
predefined sorts (defined strings sent to the text input).
I can clear and fill in the text input box easily enough, of course. But
that does nothing.
Are you passing the value for co_name back to the server as a variable
in the .load(url, data) statement?
Some things that you might find useful for form/CF/ajax interactions:
http://www.robgonda.com/blog/projects/ajaxcfc/
http://www.malsup.com/jquery/form/
- Jack
MikeyJ wrote:
Hi All,
Hey Jim,
I think I'm beginning to understand what you're trying to do here.
I'm a little slow. ;-)
When the user clicks on an h3, the following will happen:
1. all div.details with ALL checkboxes inside of them UNchecked will
show all of their checkboxes (and labels)
2. all other unchecked
I use the plugin above to remove the options I don't want to see.
But when I remove them, I cache them in a variable attached to the
select object. I then provide a new function called restoreOptions()
which uses the data in the cache variable to add the options back into
the select box. So a
Hi Andres,
I don't see where you are calling ClockPick?
Also, you will probably need to apply bgIframe to ALL the classes of
ClockPick, or else they will appear under the select menu. They all start
with CP, so probably the easiest way to do that would be like so:
$(div[class^=CP],
Sorry to take so long to get back Andy. I want to keep the strong tag
is it depicts a selected state on the navigation.
Basically, the image is positioned absolutely in the LI, the LI has a
fixed height which is half that of the image. If there is a strong tag
around the image, it shifts up 50%,
anybody?
On Nov 14, 10:57 am, Josh V [EMAIL PROTECTED] wrote:
Hi,
Please check out the following url where im using jcarousel to act as
an image slideshow. to the left of the clip container i have a nested
navigation list that is showing underneath the clip container in IE6.
the nested
Hello Adrian,
I tried your code but on click of the button there is absolutly
nothing happening?! I also tried to locate the potential error, but my
JQuery knowledge is limited so far.
Regards,
Merlin
On Oct 26, 1:30 pm, Adrian Lynch [EMAIL PROTECTED] wrote:
How about creating the form once
I know that you can use JSON or XML for the Ajax response section but
somehow I had not thought of using JSON
for this error checking part.
Thanks for the answers.
Have a nice day
On Nov 15, 4:13 pm, Eric Martin [EMAIL PROTECTED] wrote:
You could force your PHP to respond with an error
-Original Message-
From: Priest, James (NIH/NIEHS) [C]
Last question - would it be possible to have it collapse the
checkboxes
both when you click on the parent H3 or any other H3 (as it does now)?
That may not be possible but what do I know :) I'm going to show this
as it is
-Original Message-
From: trevorp [mailto:[EMAIL PROTECTED]
You started a new topic and abandoned your last one, not sure if
that was on purpose or not, but the code I pasted at the end of the
Unintentional - it was an Outlook glitch on my part!
For your reference, the other
-Original Message-
From: Karl Swedberg [mailto:[EMAIL PROTECTED]
Sent: Friday, November 16, 2007 12:31 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: hiding checkbox AND label?
I think I'm beginning to understand what you're trying to do
here. I'm a little slow. ;-)
Here is the site
www.inkedpress.com
Type your name in the text box and click submit.
Then click any of the thumbnails to pick a letter
you should see a thickbox popup with a set of thumbnails and some buttons.
The broken version looks like this
-Original Message-
From: Karl Swedberg [mailto:[EMAIL PROTECTED]
It's showing the very next div, and then hiding any other
sibling div that does not have a checked input. I must be
misunderstanding something. In the html snippet you provided,
you had one checkbox per
Just tested it in IE7 and the thickbox popup on your page was centered for
me.
Where it was breaking, does the size of the browser window affect it?
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of MichaelEvangelista
Sent: Friday, November
Hi there!
I'd like to load a different css stylesheet depending on the time of
day. If it's 6am-12noon, it'll be one sheet. If it's 12noon-6pm it'll
be another. And 6pm-6am, it'll be a third.
I'm sure there must be an easy way of getting jQuery to take the
browser's time and date, check which
I'm trying to manually interact with the multifile plugin and, as
part of that endeavor, I need to systemically access the anchor tag
that provides Delete functionality. The following works great in FF
(of course):
$('a[href^=#multimulti_]')
The objects are returned as expected and alert ( $
Ok, I see how this is working, but... if you click on the target div
it triggers the close also. Is there a way to 'tell' the target that
when it's open, all underlying divs are disabled?
On 16 nov, 10:29, Feijó [EMAIL PROTECTED] wrote:
Can you provide an code of your attempt?
It may be
I've got my code working (adapted of Karl Swedberg's Scroll Up News
Reader) http://docs.jquery.com/Tutorials:Scroll_Up_Headline_Reader,
but I'm sure there's a cleaner (more dynamic) way of checking where I
am in the loop so that I don't have to do all the individual click
checks
borderColor is a reserved word, so it shouldn't be used as a
variable name. Try using something else, maybe bColor or something
like that. Also, you might want to replace css(border-color) with
css(borderColor) for consistency.
$(#mydiv).each(function() {
var bColor = $(this).css(borderColor);
{bump}
any further thoughts on this? Still fumbling for a cure...
On Nov 6, 4:59 pm, MichaelEvangelista [EMAIL PROTECTED] wrote:
I am using a thickbox modal window to show an ajax routine on an ecommerce
site.
Everything's working great, except in IE7 where the thickbox is aligning to
the
Can you provide an code of your attempt?
It may be simple, or not. Depend on your page.
You could set a master div, then just bind a click event on it to hide the
target div
div id=master
div id=target
target content
/div
master content
/div
script
$('#master).click(function() {
I'm loading the content of an external page via load but I don't want
the script content, as it buggers up ie6 (it's a page with jquery
included and that seems to cause problems).
Is it possible to tell load not to run scripts on the HTML it loads?
Thanks,
George.
-Original Message-
From: Karl Swedberg [mailto:[EMAIL PROTECTED]
Isn't that what this does?
$(this).next('div:hidden').slideDown('fast').siblings('div:vis
ible:not(:has(input:checked))').slideUp('fast');
This is getting closer:
I have a simple problem, but for some reason I can't figure out the
jQuery way to do it. Basically, all I want is to target every child
(except the first one) of a group of elements.
Say, for example, one has multiple divs:
div class=myDiv
pFirst/p
pSecond/p
pThird/p
/div
div class=myDiv
I figured out the following works:
$('div.myDiv').each(function(){
$(this).children('p').not(':first').hide();
})
However it still seems like there must be a better way. Anyone?
So this isn't specific to validate, but it seems to be the one that
for what ever reason causes me pain.
I usually try not to load the same javascript over and over so I do
something like this:
if (typeof(writeLog) == 'undefined') {
I want to get the border-color of a div.
The border-color property is most useful for setting all the border
sides at once. When getting the colors it's more complicated. Which
side of the div do you want to examine: top, right, bottom, or left?
Each can be a different color. If they were
When using jQuery Ajax, I am receiving a parseerror in IE (Firefox
Safari work). Has anyone run into this before - and know how to fix
it? Or something I can at least try.
CODE
object = {
path : 'data.xml',
data : 'lat=40.935lng=-125.000'
}
$.ajax({
url: object.path,
data:
This works fine, except for the toLowerCase() function thar throws an
error, if you remove that it's just fine.
On Oct 31, 7:11 pm, Erik Beeson [EMAIL PROTECTED] wrote:
Untested:
form method=POST action=...
input id=file name=file type=file
/form
$('form').bind('submit', function() {
Where it was breaking, does the size of the browser window affect it?
Yes definitely.
Smaller browser windows get it off-screen.
With a larger monitor at full screen the window is not exactly centered, but
not so far south as to be out of visibility at the bottom.
--
--
Michael
Try...
$('div.myDiv p:not(:first-child)').hide();
On Nov 16, 9:17 pm, skube [EMAIL PROTECTED] wrote:
I figured out the following works:
$('div.myDiv').each(function(){
$(this).children('p').not(':first').hide();
})
However it still seems like there must be a better way. Anyone?
Nope, that results in all of the p's being hidden in the first
div:
div class=myDiv
/div
div class=myDiv
pFirst/p
/div
$('#master).click(function(e) {
(e.target e.target.id == 'target') || $
('#target).fadeOut('slow');
return false;
});
blockui plugin?
jqmodal plugin?
On Nov 16, 4:58 pm, Codex [EMAIL PROTECTED] wrote:
Ok, I see how this is working, but... if you click on the target div
it triggers
Here is an update. I tried using Google's API for Ajax and it is
returning the data but I am unable to parse it with jQuery.
CODE
GDownloadUrl(object.path + '?' + object.data, function(data,
responseCode) {
if (responseCode == '200') {
$('node', data);
}
});
OUTPUT
IE7 v7.0.5730.11 on XP - no problem.
On Nov 16, 9:54 pm, MichaelEvangelista [EMAIL PROTECTED] wrote:
Where it was breaking, does the size of the browser window affect it?
Yes definitely.
Smaller browser windows get it off-screen.
With a larger monitor at full screen the window is not
unbind('click')
On Nov 16, 2:28 am, Chris J. Lee [EMAIL PROTECTED] wrote:
I've tried to search for this in the discussion. but didn't know what
to search.
Is there a way to clear a toggle? Say on a callback of an effect I
clear the toggle event for a sibling of this element?
My example is
I hesitate to suggest that a simpler approach may be to store the
positions as they change, rather than wait until the browser suddenly
disappears, shuts down, moves to another page, or whatever?
On Nov 15, 11:50 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
On Nov 15, 9:35 pm, Bil Corry [EMAIL
Hi,
I need to prevent the browsers ( All ) to show the title link and the
alt message of img as tootltip.
The prevention must be made only on a particular link that wrap an
image.
Any suggestion?
Thanks
Andrea
Good to know, thanks for checking!
(sure wish I could pin down the difference on some systems, or adjust some
css somewhere with an IE hack... just not sure where to begin, and more than
a bit hesitant for fear of breaking the thickbox altogether)
--
--
Michael Evangelista, Evangelista
On Nov 16, 2007, at 5:59 PM, skube wrote:
Nope, that results in all of the p's being hidden in the first
div:
div class=myDiv
/div
div class=myDiv
pFirst/p
/div
Actually, Wizzud's suggestion worked for me when I tested it locally:
$('div.myDiv p:not(:first-child)').hide()
Hides all p
On 17/11/2007, slooodge [EMAIL PROTECTED] wrote:
Unfotunately the declaration of the first
animation type gets overwritten by the second one.
Does anyone know how to implement two different menues on one page?
Hi Slooodge!
Thanks very much for pointing this out. The first version of
Hi Arjan,
Thanks for the bug report - I found that it happens in both IE6 and
IE7. This was such a bizarre thing - I still have no idea why or even
how it possibly could occur, but I seem to have found an ugly but
effective fix for it which I have added to the latest version of
Superfish (now
Hi Jared,
I have not been able to reproduce this problem at all so it's hard to
give any decent advice. The thread you linked to shows that Noobert's
problem was resolved and his issue turned out to be other CSS on the
page interfering with the menu.
Quote from that thread:
Aha! I found the
I had a look at your page and it seems that you just need to adjust
your widths and padding of all the elements involved. I altered the
css from within Firebug to what I think is a more robust set of
values. The resulting css should be more stable across all browsers.
I've posted the resulting
Hi Carleigh,
Sorry for the delay in replying - I've been really busy.
This should solve it I think. In the css rule with the selector:
#nav li:hover, #nav li.sfHover, #nav a:focus, #nav a:hover, #nav
a:active { ... }
you need to have this selector also: #nav li:hover a, #nav li:sfHover a
I
66 matches
Mail list logo