Someone found that this method does not handle visibility correctly.
When a visibility:hidden parent with a visibility:show child, the
child would override its parent's property (of course!).
So the script only need to check display:none parent, which would
introduce another filter:
Your inner $(this).filter(...) doesn't make sense to me. This works for me
on FF2/Mac:
$(':input:visible').filter(function() {
return $(this).parents(':hidden').length == 0;
}).slice(0,1).focus();
That is: Select all visible inputs elements, filter out any who have parents
which are
HI there,
I've just added a removeMarker function to the codebase last night and
is in the tip version:
http://hg.sharesource.org/jmaps/raw-file/5f67642a1526/docs/index.html#removemarker
It's a bit of a quick fix, so might change - I'm thinking adding
support for multiple markers instead of
I been going through JQuery to add it to my knowledge base so I can
integrate some of its functionality to our new web 2.0 UI for our
applications which use to reside in RPG on IBM system i.
I have created is a zebra list that I want to click on the list to
help build the next page. There is a
This is my very first implementation.
But it fails on visibility:hidden parent which has a visibility:show child.
You may try the updated demo page. Box 11 would still be visible even when
you toggle its parent's visibility.
http://www.seezone.net/dev/focusField.html
':hidden' selector would try
hi,
I want a simple ajax event to be fired when user closes the browser; the
code below sometimes works, sometimes not... and don't know the reason.
someone has an idea why does it happen? I suppose it's about browser
behaviour... (tested by firefox 2.0)
And if I wanna apply this when a user
I *think* you are after something like this:
script type=text/javascript
$(.stripeMe tr).click(function() {
var MyVal = $(#LNAME, this).val();
javascript:location.href='test.htmlMyval=' + MyVal;
});
/script
having a line that says $this(); doesn't really do
One of the tooltip-demos shows this embedded HTML, but somehow this is
much more sophisticated than what I need.
Is there a way how I can make the tooltip show the CONTENT of the url
in the tooltip.
For example, if the link points to x.html, and x.html contains Hello
World, I want to see Hello
thanks
On Apr 20, 3:28 pm, Sephi-Chan [EMAIL PROTECTED] wrote:
Hello,
You can look the code of the load function in the jQuery source. It's what i
did few days ago whereas i want do this (filter the response).
I make something like this :
$.ajax({
url : 'remotePage.php',
I found my answer - I needed to use options
$.ajax({
type: post,
url: Proc.asp,
data: cmd=ups+ mystring,
success: function(data){
the beauty of jquery is to keep it simple .
On Apr 21, 8:35 pm, Rey Bango [EMAIL PROTECTED] wrote:
For the foreseeable future, we're focusing our efforts on jQuery UI and
ensuring that the rich set of functionality in the library is top notch.
The jQuery adapter which allows Ext to use
Thanks Shawn! This explanation of (this) helped me a great deal! And
helped my application!
Rob
On Apr 22, 5:33 am, Shawn [EMAIL PROTECTED] wrote:
I *think* you are after something like this:
script type=text/javascript
$(.stripeMe tr).click(function() {
var MyVal =
Hi there, hope you can help.
I'm looking for some javascript to create the same sort of effect the
bbc.co.uk site has, when you roll over one of the news articles, the
image changes. Is there anything in jquery js that does this? I'm a
complete newbie to js i'm not sure where to start looking.
I'm using the cycle plugin and have set it up to automagically create the
tabs for changing to the next image.
http://www.actionhobby.ca/index.php?q=/node/524
But, this particular page has 32 images (possibly more to come). The tabs
are generated in a single row, and do not wrap at the
Hi there,
I'm not sure if there is a plugin defineing exatcly the behaviour you need.
You can check it here: http://plugins.jquery.com/.
Nevertheless it's easy to implement such behaviour with jQuery.
First of all you need to make a html code that will present a single link
with picture. Make it
Thanks,
What I ended up doing was grabbing the current time before I make the
AJAX call, and then storing it in a latest_keypress_time data
variable in the textbox jQuery object. Then, in the callback, compare
the keypress_time from before the AJAX call to the
latest_keypress_time data
And just to point something out... Duplicate id's are never good on a
page... I think you're better off by setting either the 'name' or the
'class' attribute of the hidden input.
A page will never pass validation if it has duplicate id's on it and
some of your javascript my freak out.
Greetz,
Same problem here. Please help, folks.
On Apr 21, 11:33 am, PragueExpat [EMAIL PROTECTED] wrote:
I can only open the link one or two times. Refreshing the page again
gives me the error. Am I the only one?
(tested FF2 on linux and windows)
On Apr 17, 4:39 pm, PragueExpat [EMAIL PROTECTED]
Hi, I'm newbie here
there is two input form, checkbox and text. i want if I checked the
chekbox, the input text will become readonly, and if i checked again,
the input text back to normal. I'm trying make this function
function makeReadOnly(a) {
if
I found that if you remove all cookies from dev.jquery.com, you can
reload the page.
On Apr 22, 4:12 pm, Jeremy Stanton [EMAIL PROTECTED] wrote:
Same problem here. Please help, folks.
On Apr 21, 11:33 am, PragueExpat [EMAIL PROTECTED] wrote:
I can only open the link one or two times.
Just messed with it for about an hour or so and it's not the overflow. Tried
every possible combination of values and nothing.
I think I've narrowed it to down to the Flash movie, and not Javascript.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
I hope someone more experienced can tell me where I'm going wrong with
this?
I have PHP generate the jQuery for an .html() rewrite of links,
replacing the less-jazzy non-javascript show/hide alternative. It
works like a charm in FF, but ie refuses at this point will not go
any further.
The
Use the attr function
On Apr 22, 3:19 pm, Andri [EMAIL PROTECTED] wrote:
Hi, I'm newbie here
there is two input form, checkbox and text. i want if I checked the
chekbox, the input text will become readonly, and if i checked again,
the input text back to normal. I'm trying make this function
Thanks helped a lot.
An added note. For Firefox the
$('div.pics a').each(function() {
$(this).css({left: '50%', marginLeft: -$(this).width()/
2});
});
needs to happen before you start the cycle plugin. Otherwise for some
reason only the first photo is centered.
And what is with this post showing up 7 times?? I only hit the submit
button once on Google Groups. Hope no one thinks I am spamming. :(
On Apr 17, 8:01 pm, AsymF [EMAIL PROTECTED] wrote:
I recently implemented the following CSS layout on a site in place of
a previous table
Andy,Are you talking about the scroll bar appearing?
As Dan pointed out, you can get rid of that by setting the padding and
margin of the body of the page INSIDE the iframe to 0, and do the same for
the form. They're taking on their default values. I was able to do this
with firebug. I see that
I'm not the world's greatest Jquery coder so I'm hoping someone can
help me with this. I have a client that needs me to pass the VALUES
of certain items checked in one form, to a select box in another
form. I've been successful at doing this between two select elements,
but can't seem to get it
I am using ajax to post a form that has an image upload input field.
I tried getting the value as I do with other inputs, but it does not
seem to work, and returns undefined:
var imageUpload = $(#image_0).val();
input type=file name=image_0 class=sq-form-field /
Am I missing something here?
i see no div called box
at leats firebug doesnt
On Apr 22, 9:53 am, AsymF [EMAIL PROTECTED] wrote:
And what is with this post showing up 7 times?? I only hit the submit
button once on Google Groups. Hope no one thinks I am spamming. :(
On Apr 17, 8:01 pm, AsymF [EMAIL PROTECTED] wrote:
I
Rolf...
The interior page also has an iframe, but that's a non-issue. It's what we
use to store history state for the Flash app.
If you view the main interior page in IE outside of the frameset, you'll see
that after it loads, the height of the Flash movie increases. When it's
inside the
You are currently accessing that input by id. You currently don't have
an id in that particular input field. You have the name as image_0.
the selector is actually
$('[name=image_0]').val();
so try:
var imageUpload=$('[name=image_0]').val();
You understand why right?
On Apr 22, 1:57 pm,
sebastian schrieb:
Hi, i'm developing a costum validation method for a password field,
the password must not contain spaces. I thought my method worked fine
until during a test i put a space at the end of the password, my
method returned that the password was correct, and i noticed that the
sebastian schrieb:
Hi, the problem i have is that I have a group of radio buttons
associated with a hidden field like this:
input type=hidden name=data[User][gender] value=
id=UserGender_ /
input type=radio name=data[User][gender] id=UserGenderF
value=f /
label for=UserGenderFFemale/label
Yes, I understand. I am just being a dummy and not looking at it
closely.
Thanks, I will try this.
On Apr 22, 11:26 am, Chris J. Lee [EMAIL PROTECTED] wrote:
You are currently accessing that input by id. You currently don't have
an id in that particular input field. You have the name as
Jacky See schrieb:
[...]
Any better way to do this?
Or I should not use validation plugin under this situation?
The plugin is certainly not the best fit for this kind of validation.
You could try to implement your own plugin, reusing parts of the
validation plugin, especially validation
Jacky schrieb:
I see... the group's key is not related to the rules/method.
So the group would force the underlying fields to only display one
message?
This would be a problem because a field would also have its own
message (like date format is incorrect). I tried my old demo,
inputting
instead of making it readonly, i try to disabled it
function makeReadOnly(a) {
if ($(a:contains('disabled'))) {
$(a).attr(disabled,disabled);
}
else {
Thanks Wizz,
I'll try that out too.
On Apr 22, 9:13 am, Wizz [EMAIL PROTECTED] wrote:
And just to point something out... Duplicate id's are never good on a
page... I think you're better off by setting either the 'name' or the
'class' attribute of the hidden input.
A page will never pass
Hi guys,
I just wanted to show off my new project realised with jquery:
http://www.tubesearch.de
What do you think?? Any suggestions regarding improvements, design or
handling??
dbruensicke schrieb:
Hi,
i am using Jörns TreeView Plugin (http://bassistance.de/jquery-plugins/
jquery-plugin-treeview/). I try to use the async version of it,
because i need lazy loading (more than 9000 elements) but i want to
render the starting ul with the following elements:
root
+
Try doing
if ( $('#specialSection').length )
in your conditional.
-- Josh
- Original Message -
From: Sharique [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Tuesday, April 22, 2008 12:22 PM
Subject: [jQuery] searching css id
Hi,
What I'm trying to is
Hi,
What I'm trying to is that when there is certain css id appears in
area. then it should hide right sidebar and change the width of center
area.
if($('#specialSection'))
{
$('#sidebar-right').hide();
$('#center').css('width','760px');
}
But this code is not working
I'm looking for the flexgrid plugin that used to live at
http://webplicity.net/flexigrid/. The site is down, and I really want
to use it! Anyone know of a backup site or have an archive to send me?
[EMAIL PROTECTED] schrieb:
Hi!
I use the tooltip from here:
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
I use Jquery 1.2.3 and wish to know how to implement an fadeIn and
fadeOut into it.[...]
I've commited a patch that addes a fade-option:
dineshv schrieb:
I know this is a simple question but ... In the Autocomplete multiple
cities example (http://dev.jquery.com/view/trunk/plugins/
autocomplete/) how do you send the final set of chosen entries to the
server ie. all the values in the input box when Get Value is
clicked?
[...]
Which begs the question, Why would you want to remove scripts? Once a
script has been included, it should have executed, so what do you gain
by removing it?
- jake
On Mon, Apr 21, 2008 at 6:41 PM, cfdvlpr [EMAIL PROTECTED] wrote:
Is it possible to remove a script from a page dynamically?
I'm looking into porting my current ad-hoc javascript solution to jQuery. I
added a little bit of jQuery to the project and it works just fine on IE,
Firefox, and Opera, but when I tried it on Safari the file seems to not
load.
When I look into the web inspector jquery.js has a long gray bar
Hi, how can I 'select' the sorting 'factor'?
For example: I have a cell that contains this markup:
28-09-2007, 08:41:09 ambr /
by a href=#patrick91/a
now I need to sort the table by the date 28-09-2007, 08:41:09 am but I
don't how to do it, can you help me?
Ps. Sorry if my english is hateful but
I have a click even that I add to a certain class when the page is
created. There is the possibility of dynamically adding another
element with that class, and I would like to have the same click even
added. I'm just wondering what would happen if I registered the click
event for that class,
The default behavior:
$(.classname).click(function(){
alert(Hello, world!);
});
$(body).append('span class=classnameClick Me!/span');
Clicking Click Me! would do nothing.
Using the liveQuery plugin (http://brandonaaron.net/docs/livequery/):
$(.classname).livequery(click, function(event) {
Because this wasn't immediately obvious to me when I started out, here
is why:
The jQuery selector will always return an object. Eg:
typeof($(#doesntExist)) == object.
That means if( $(#doesntExist) ) will evaluate true.
This is intentional - ie, if you do something like this:
Flexigrid is so good that creator site reach his bandwidth limit. Paulo
Marinas, please change your bandwidth size. ;-)
Cheers
Marco Antonio
On 4/22/08, bryanl [EMAIL PROTECTED] wrote:
I'm looking for the flexgrid plugin that used to live at
http://webplicity.net/flexigrid/. The site is
I'm having a strange problem using $.ajax. Better to illustrate with
the code:
function ajaxBind(trigger) {
trigger.click(function(){
$.ajax({
type: POST,
url: $(this).attr('href'),
data: {
'authenticity_token': $
('input[name=authenticity_token]').val()
},
Oh my gosh, I know better than that. What was I thinking. Ok, I will try
some alternative method. Thanks for pointing that out. I do appreciate it.
If I can not figure my problem out I will repost new issue.
Thanks again.
Cheers,
Clint
--
View this message in context:
Thanks Mike. That did the trick.
http://www.actionhobby.ca/index.php?q=/node/524
Also had to throw in some code to make sure the image navigation DIV was
in place (add it if it wasn't). TinyMCE likes to remove empty DIVs
Shawn
Mike Alsup wrote:
I'm using the cycle plugin and have
I'm just guessing here, but I would think it would be related to your
xhr.setRequestHeader line. I don't really understand why you need
that anyway in this case. What happens if you completely remove the
beforeSend: parameter from your $.ajax?
On Apr 22, 3:51 pm, s.ross [EMAIL PROTECTED]
[EMAIL PROTECTED] schrieb:
Hi,
If you look at this page
http://elearningrd.info/jrl/policies.php
and click on each of the links next to the arrow graphics, you'll see
the center text switches out. However, it is choppy. It seems that
as one div is fading out, the other is fading in at the
Hi,
When I submit the contact form
http://elearningrd.info/jrl/contact.php
I would like to validate the email address and possibly check non-
empty values for the other fields. I'm using this code to try and
check things upon form submission:
$(document).ready(function() {
Check the form plugin. May be of some use. Also, I'm no expert, but
is passing a jquery object to validateForm function causing an issue?
http://www.malsup.com/jquery/form/#getting-started
Joe
www.subprint.com
On Apr 22, 4:57 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
When I
This should do it.
function swapDivs(oldDivId, newDivId) {
$(# + oldDivId).fadeOut(slow,
function() {
$(# + newDivId).fadeIn(slow);
} // swapDivs
);
[EMAIL PROTECTED] wrote:
Hi,
If you look at this page
You have to use a callback:
$(a).click(function () {$(div).fadeIn(3000, function () {
$(div).fadeOut(100);});return false; });
Look it up in the jQuery documentation. It's quite simple to use.
http://2whoa.com/dominate/
Thank you very much!!!
On Apr 22, 1:27 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
sebastian schrieb: Hi, i'm developing a costum validation method for a
password field,
the password must not contain spaces. I thought my method worked fine
until during a test i put a space at the end of
Thank you very much for your answer!!!
On Apr 22, 1:31 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
sebastian schrieb:
Hi, the problem i have is that I have a group of radio buttons
associated with a hidden field like this:
input type=hidden name=data[User][gender] value=
Try using this code instead:
function makeReadOnly(a) {
if ($(a:contains('disabled'))) {
$(a).attr(disabled,disabled);
}
else {
$(a).removeAttr(disabled);
Hi,
I'm using TableSorter 2.0 with the pager plugin, and then appending
table rows. This works fine when run without prototype.js, when run
with prototype.js (but jQuery then breaks our prototype calls), and
always works in IE 6.
We had to add jQuery.noConflict() to the top of our script, and
still doesn't work :(
can't go back to normal
On Apr 23, 5:19 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Try using this code instead:
function makeReadOnly(a) {
if ($(a:contains('disabled'))) {
$(a).attr(disabled,disabled);
To change disabled or readonly you can use boolean values (true
and false) and the attr() function.
So if a is a jQuery selected text box (or a checkbox or any other
form input), you can write:
// Disable a
a.attr('disabled', true);
// Enable a
a.attr('disabled', false);
// Make a read-only
even i changed the code become
function makeReadOnly(a) {
if ($(a:contains('disabled'))) {
$(a).attr(disabled,true);
}
else {
$(a).attr(disabled,false);
What is the HTML you are using? You are doing something strange.
The code $(a:contains('disabled')) means:
Select all a elements (links) that have the text disabled in the text.
For example:
a href=blahThis has disabled in it and so will be selected/a
The code $(a:contains('disabled'))
Mistake in my JavaScript code, should be:
$(document).ready(funtion() {
$('#myCheckbox').click( function() {
// Disable myTextBox when myCheckbox is checked
$('#myTextBox').attr('disabled', this.checked);
});
});
Karl Rudd
On Wed, Apr 23, 2008 at 10:42
I'm have checkbox and input text like this
input type=checkbox name=f1corporation value=1
onclick=makeReadOnly('#f1corporationstate');/ Corporation
input name=f1corporationstate id=f1corporationstate size=5
type=text /
I want, if I check the f1corporation, the f1corporationstate
Ok first the intrusive version (that is with the onclick handler
directly in the HTML code) which I really don't recommend:
label
input type=checkbox name=f1corporation value=1
onclick=changeState('#f1corporationstate', this.checked) /
Corporation
/label
input name=f1corporationstate
72 matches
Mail list logo