After switching to jQuery 1.4 everything works fine.
My guess is, that it had something to do with the css of my div. It
had a position:fixed attribute. But thats just a guess.
On 14 Jan., 23:08, Reinhard Vornholt reinhard.vornh...@gmail.com
wrote:
Hello group,
ich am fairly new to jQuery and
On Sun, Jan 17, 2010 at 6:17 AM, Reinhard Vornholt
reinhard.vornh...@gmail.com wrote:
After switching to jQuery 1.4 everything works fine.
My guess is, that it had something to do with the css of my div. It
had a position:fixed attribute. But thats just a guess.
Glad you got it figured out but
This example hides but doesn't unhide in iE6 for me.
On Dec 3, 5:00 am, Leonardo K leo...@gmail.com wrote:
I tested here and worked:
http://jsbin.com/ivude
On Wed, Dec 2, 2009 at 13:32, mickey mwjbea...@googlemail.com wrote:
Anyone?
Anyone?
I tested here and worked:
http://jsbin.com/ivude
On Wed, Dec 2, 2009 at 13:32, mickey mwjbea...@googlemail.com wrote:
Anyone?
On Nov 29, 3:26 pm, Jerry Johnson jerryhost@gmail.com wrote:
ok, that worked, but now I need to make an ajax call...
So go ahead and make one. :-)
Or were you looking for more specific help?
-- Scott
Ya, here is my problem. I know how to make the ajax call, and it all works,
but, I need to somehow connect the msg id from the mysql database to the
ajax call, so I need another div, that has the id.
On Nov 30, 11:00 am, Jerry Johnson jerryhost@gmail.com wrote:
Ya, here is my problem. I know how to make the ajax call, and it all works,
but, I need to somehow connect the msg id from the mysql database to the
ajax call, so I need another div, that has the id.
There are many ways to do
ok, that worked, but now I need to make an ajax call...
On Sat, Nov 28, 2009 at 11:54 PM, Charlie charlie...@gmail.com wrote:
Now instead of multiple Id's all the same you have numeric ID's.
ID's can't start with numbers. Adding onclick to your markup is moving
backwards with jQuery.
I have done so, but it still doesn't work
bump
Now instead of multiple Id's all the same you have numeric ID's.
ID's can't start with numbers. Adding onclick to your markup is moving
backwards with jQuery.
Currently your hide function is not available in the DOM for onclick's
as it is closed within jQuery and therefore is not a global
I have verified that it is not the ajax call.
On Nov 27, 12:03 pm, Jerry Johnson jerryhost@gmail.com wrote:
$('a.#hide').click(function()
{
$(this).hide();
}
);
What does a.#hide mean? Shouldn't that just be a#hide, or better
yet, #hide?
div id='msg'
tr
td style='border-bottom:1px solid
On Fri, Nov 27, 2009 at 1:47 PM, Scott Sauyet scott.sau...@gmail.comwrote:
On Nov 27, 12:03 pm, Jerry Johnson jerryhost@gmail.com wrote:
$('a.#hide').click(function()
{
$(this).hide();
}
);
What does a.#hide mean? Shouldn't that just be a#hide, or
ID's must be unique, you use ID='hide" over and over, can't do it
try changing to class="hide" and corresponding jQuery adjust
Jerry Johnson wrote:
On Fri, Nov 27, 2009 at 1:47 PM, Scott
Sauyet scott.sau...@gmail.com
wrote:
On
Nov 27, 12:03pm, Jerry Johnson jerryhost@gmail.com
Oops. got the selector wrong. It should be:
$( function() {
$(div[class^=hide-BAT].hide();
});
Joe
You still didn't get it right :-)
$(div[class^=Hide-BAT]).hide();
To original poster:
if you want fast, then you can't beat CSS with jQuery's hide method
have like:
div class=Hide BAT1
Thank you all i've (you guys) crack it.
Oops! Thanks for the catch!
The other thing to understand is that this wont work for browsers that have
JavaScript disabled.
On Nov 11, 2009 9:16 AM, MorningZ morni...@gmail.com wrote:
Oops. got the selector wrong. It should be: $( function() {
$(div[class^=hide-BAT].hide(); ...
You still
Not possible.
On Oct 21, 9:02 am, Subtle subtlekil...@gmail.com wrote:
Using window.open I can achieve this, however, from what I understand
window.open is normally used for popups. What I want is the first
time the user opens their browser and points to my site, they should
see my site
Thanks Brian.
It's very work.
On Oct 11, 10:55 pm, brian bally.z...@gmail.com wrote:
On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote:
Hello,
span id=thmr_5 class=thmr_call
div class=form-item id=edit-sitewide-wrapper
label class=option for=edit-sitewideinput
On Sat, Oct 10, 2009 at 1:45 PM, Tan it_qn2...@yahoo.com wrote:
Hello,
span id=thmr_5 class=thmr_call
div class=form-item id=edit-sitewide-wrapper
label class=option for=edit-sitewideinput type=checkbox
name=sitewide id=edit-sitewide value=1 class=form-checkbox /
site wide/label
/div
No it is not a trick question, I am new with jquery. I decided to do
it on server side, thanks for help.
Hi,
use .parent() instead of .parents()
http://jsbin.com/isasi/
--
Bohdan
On Oct 8, 6:17 am, Wacko Jacko jackson.be...@gmail.com wrote:
I am having a bit of trouble with this one. Thanks for your help. I
could get it working if the parent is a div but not if it's an li.
Here's my html:
Thanks Bohdan. Tried that first. No luck. As I said, it will work if
the parent is a div, but not if the parent of the div is an li.
Thanks again. Jack
On Oct 8, 5:56 pm, Bohdan Ganicky bohdan.gani...@gmail.com wrote:
Hi,
use .parent() instead of .parents()
http://jsbin.com/isasi/
--
did you look at the working example on jsbin where the li is being
hidden?
Wacko Jacko wrote:
Thanks Bohdan. Tried that first. No luck. As I said, it will work if
the parent is a div, but not if the parent of the div is an li.
Thanks again. Jack
On Oct 8, 5:56pm, Bohdan Ganicky
Hi There. Yeah, just did. Thanks for that!
Why does my test using the same code not work :(
http://www.noosabiosphere.org.au/tester.htm
On Oct 9, 8:46 am, Charlie charlie...@gmail.com wrote:
did you look at the working example on jsbin where the li is being hidden?
Wacko Jacko
On Thu, Oct 8, 2009 at 5:10 PM, Wacko Jacko jackson.be...@gmail.com wrote:
Hi There. Yeah, just did. Thanks for that!
Why does my test using the same code not work :(
http://www.noosabiosphere.org.au/tester.htm
Viewing the source, that div isn't empty. it's got whitespace characters
I'm not sure if this is a trick question or not...
// if logging out
$(#LoggedIn).hide();
$(#LoggedOut).show();
On Oct 8, 4:19 pm, Painstik pains...@gmail.com wrote:
Hi everyone, I can't get this out, i searched everywhere and didn't
find solution...
div id=LoggedOut
fieldset
I am having a bit of trouble with this one. Thanks for your help. I
could get it working if the parent is a div but not if it's an li.
Here's my html:
ul class=member-table
li
divstrongWhy I am involved:/strong/div
div class=answer{tag_why are you involved?}/div
/li
If you're working with server side data like that, couldn't you just write a
conditional in whatever language you're using (PHP, CF, ASP, etc) to not
display the li if no data?
Also, do you really mean to re-use database as an ID for multiple
elements? ID's ought to be unique.
On Wed, Sep 30,
Assuming you can turn those id's into classes (where you have
id=database)... you can do the following:
$(document).ready(function(){
$('ul .database').each(function() {
if ($(this).text() == ) {
$(this).parent().hide();
}
});
});
On Wed, Sep 30, 2009 at 10:14
Hi Charlie,
Thanks for your reply. I am using Business Catalyst (SaaS, hosted
solution) so I can't do the php / ASP thang.
I was using those id's only for reference purposes in this thread.
Thanks.
On Oct 1, 3:14 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
If you're working with
Brilliant! I will try this and get back to you.Thanks for your time!
On Oct 1, 3:21 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
Assuming you can turn those id's into classes (where you have
id=database)... you can do the following:
$(document).ready(function(){
$('ul
Hi,
In the following example, all the radio controls have the name attribute set
to myradio, and the #offices_checkboxes part of the document is shown
when the radio with id 'radioOne' is checked. Your example probably didn't
work because of the syntax you used in your attribute selector (no @
Just off the top of my head, but may work...
$(document).ready(function() {
$('#offices_checkboxes').hide();
$('input:radio[name=radioName]:checked').click(function() {
$('#offices_checkboxes').show();
});
James and Charlie,
your suggested changes worked like a charm. thanks for the help.
it's much appreciated.
- nick
On Aug 28, 8:18 pm, Charlie charlie...@gmail.com wrote:
ID's must be unique, you need to use class for multiple instances
nick.rathert wrote:hi all, i'm having an interesting
You cannot have more than one id=collapse on the document at one
time. IDs are suppose to be unique.
You can use a CLASS instead. Change your HTML to:
ul class=searchResultsList collapse
and your selector to:
$(ul.collapse).hide();
On Aug 28, 8:11 am, nick.rathert nick.rath...@gmail.com wrote:
ID's must be unique, you need to use class for multiple instances
nick.rathert wrote:
hi all,
i'm having an interesting IE6 and IE7 issue that may just be par for
the course. i'm curious if anyone else has run into this problem.
here's the URL:
http://jsbin.com/afede
long story short,
When you remove a floated element from the flow of a document its position is
occupied by the next float and this
causes the ruin! To preserve the space leaving by a removed div how about use:
css('visibility', 'hidden'); istead of show()
Maurício
-Mensagem Original-
De: simusch
Is the layout broken initially or only after you hide/show the
content? When you inspect the DIVs in Firebug, do they still have
their float properties assigned? Are you specifying a width on the
boxes? Posting example code always helps other developers troubleshoot
your issues faster =)
On Aug
IE cannot animate the opacity of a png with alpha transparency and there
is no solution to this.
pmni wrote:
Hi.
I'm building a website, and use your framework to hide/show a div.
This work, but in IE when click to hide/show the div, the background
became black, instead to maintaine the
Thank you for the explain.
On 18 Ago, 08:58, Liam Potter radioactiv...@gmail.com wrote:
IE cannot animate the opacity of a png with alpha transparency and there
is no solution to this.
pmni wrote:
Hi.
I'm building a website, and use your framework to hide/show a div.
This work, but
By IE, I think he means IE6. I haven't tested this, but I think IE7 and
up can do this fine, as long as you make sure you're applying any png
hacks you're using to IE6 only with conditional comments.
I could be wrong on this, though.
Jonathan
pmni wrote:
Thank you for the explain.
On 18
Nope, all versions of IE cannot animate the opacity of a PNG without the
black artifact, regardless of any hacks that are applied. It's really
quite annoying.
Jonathan Vanherpe (T T NV) wrote:
By IE, I think he means IE6. I haven't tested this, but I think IE7
and up can do this fine, as
That sucks, I didn't know that. I was under the impression that they had
fixed IE's png support with IE7, but I guess it shouldn't surprise me
their 'fix' is buggy.
Jonathan
Liam Potter wrote:
Nope, all versions of IE cannot animate the opacity of a PNG without the
black artifact,
I'm not 100% sure, but the fix they used, seems to me to just be
loading the png's into the alpha image loader natively, which is
pretty damn poor if I'm correct.
Jonathan Vanherpe (T T NV) wrote:
That sucks, I didn't know that. I was under the impression that they
had fixed IE's png
- Original Message -
From: Charlie
To: jquery-en@googlegroups.com
Sent: Wednesday, August 05, 2009 6:00 AM
Subject: [jQuery] Re: hide() does not hide span in IE, but does in FF
this is a lot to sift through to find one span hide issue for which there
is likely an easy solution
this is a lot to sift through to find one span hide issue for which
there is likely an easy solution. You'll get a lot better response by
putting a test case on live link.
jsbin.com is great for this if you don't have public access server
msmaeda wrote:
Hi,
With the code below, I am
I will suggest you, that instead of pasting all your code (which ALMOST nobody
reads) you put a demo in
http://www.jsbin.com
- Original Message -
From: Charlie
To: jquery-en@googlegroups.com
Sent: Wednesday, August 05, 2009 6:00 AM
Subject: [jQuery] Re: hide() does not hide
hi, if you use div instead of span I think it will work.
On Tue, Aug 4, 2009 at 8:25 PM, msmaeda msma...@gmail.com wrote:
Hi,
With the code below, I am having an issue that only seems to occur in
IE. The issue is that the payer_pane span should be hidden unless
the NEW option is selected
jQuery.noConflict();- used when other libraries such as Mootools,
Protoype etc are present. Used to avoid conflicts of multiple libraries
using "$". Thus the reasoning behind "jquery" in longhand instead of
"$". If noConflict() exists all jquery functions need to be longhand.
"is not a
Thanks Charlie, you were bang on.
I replaced script language=javascript earlier in the php document
with script type=text/javascript src=documentRoot/js/jquery.js/
script
and the error cleared.
Regards.
Thanks, this is exactly what I was looking for.
On Jun 17, 7:30 pm, Ricardo ricardob...@gmail.com wrote:
If a page is small enough, I usually will hide them in javascript, on $
(document).ready():
myEl = $('#myEl').hide();
myEl.each(...);
A good alternative is to add a class to the
If a page is small enough, I usually will hide them in javascript, on $
(document).ready():
myEl = $('#myEl').hide();
myEl.each(...);
A good alternative is to add a class to the body/html when javascript
is on, see here:
$(#color).change(function() {
if($(this).val() == 2) {
$(#buttons).hide():
} else {
$(#buttons).show();
}
});
On Tue, Jun 16, 2009 at 11:09 AM, ciupaz luigi.zambe...@gmail.com wrote:
Hi all,
I have a select option like this:
select id=color name=color
option value=Select a
Perfect, thank you very much Waseem.
Luis
Ah, I actually came across this page, but assumed it was built into
jQuery and didn't notice it was a plug-in. It works now, thanks for
making me read it properly :P
On Jun 14, 3:37 am, Nitin Sawant nitin.jays...@gmail.com wrote:
http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/
http://www.mathias-bank.de/2006/10/28/jquery-plugin-geturlparam/
On Jun 13, 8:37 pm, Mark markjtur...@gmail.com wrote:
Hi all,
I'm trying to selectively hide and show divs based on what a user
specifies using three select boxes in a form.
I'm quite new to jQuery so I'm probably missing
$(fieldset:has(legend:contains('Promotions'))).hide()
On Jun 11, 10:43 am, Jesse jesseainsk...@gmail.com wrote:
I'm sure that I'm just missing something simple. Basically, I'm trying
the hide the fieldset element if it contains legendPromotions/
legend but I can't get it to work. Here is my
Hi Luigi.
Change your HTML Structure to this
div id=choices
input type=radio class=option id=personaFisica
name=personaFisica value=0 /
input type=radio class=option id=personaGiuridica
name=personaGiuridica value=1 /
!--
notice I wrapped my option in a div and
Perfect, thank you Waseem.
Luigi
The 2 options won't work as radio buttons then, though, will they ?
waseem sabjee wrote:
Hi Luigi.
Change your HTML Structure to this
div id=choices
input type=radio class=option id=personaFisica
name=personaFisica value=0 /
input type=radio class=option
Thank you guys!
The help was indeed helpful. I used css to replace the show and hide
function and that did the trick. Maybe this could be solved in a more
elegant way but at least I have this working for now and learned a
lot.
Added css:
.gallery_demo li.galhidden {
visibility:hidden
O boy, forgot it was closed. Sorry.
I have set it open now.
Don't know if this helps, but the error itself is being caused by an
unset marginLeft property on the .thumb class.
(when it's trying to set properties for the objects options)
The objects currents properties are:
width:auto
height:55
marginLeft:NaN
I'm not sure if it's an error caused by
I don't know how hide works in JQuery but in CSS visibility:hidden is
treated the same or at least similar to display:none in IE 6. The real
question is, what would possess you to use VS after all the trouble
you've suffered at the hands of IE?
On May 1, 6:01 am, gersbod bod@gmail.com wrote:
We can't access your example page.
You don't have permission to access /hideshow.php on this server.
On Tue, Apr 28, 2009 at 04:58, tahooft taho...@tiscali.nl wrote:
For me one of the best things about jQuery is that I don't have to
worry about browser compatiblity. I wrote some code to
bump... pretty please? How do I remove more than the last child if
necessary?
On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote:
Hi guys,
What I'm trying to do is hide list elements if their combined height
is greater than my container div. I've got a start, but it's not
perfect.
What about setting a fixed height to the UL in your CSS along with
overflow: hidden?
On Mon, Apr 6, 2009 at 11:34 AM, Sero r...@combinecreative.com wrote:
bump... pretty please? How do I remove more than the last child if
necessary?
On Apr 3, 11:34 am, Sero r...@combinecreative.com wrote:
Thanks, but sometimes I'll get an li with the text cut off through the
middle. Only the top half of the letters display - looks rough.
On Apr 6, 9:44 am, brian bally.z...@gmail.com wrote:
What about setting a fixed height to the UL in your CSS along with
overflow: hidden?
On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote:
Thanks, but sometimes I'll get an li with the text cut off through the
middle. Only the top half of the letters display - looks rough.
Good point. What about using a while loop, then?
$(function()
{
Beautiful, thank you so much Brian!
On Apr 6, 10:17 am, brian bally.z...@gmail.com wrote:
On Mon, Apr 6, 2009 at 11:50 AM, Sero r...@combinecreative.com wrote:
Thanks, but sometimes I'll get an li with the text cut off through the
middle. Only the top half of the letters display - looks
Hi There,
If I am not mistaken, 'contains' is a selector not a method.
http://docs.jquery.com/Selectors/contains
You could try with the following:
$(span.total:contains('1)).parent().hide();
OR, if you decide to place it in If-else block, then do the following:
if
Yes, floating them to the left worked, thanks :)
Instead of calling .hide() and .show(), try setting the css manually
with .css({display: 'none'}) and .css({display: 'inline'})
Or, if you want to keep the animations, you can float left the LI
elements instead of making them inline.
On 3/29/09, LaUr3nTiU laurentiu.ter...@gmail.com wrote:
$('#dropdown').nextAll().hide() will hide all elements that follow.
http://docs.jquery.com/Traversing
or using CSS selectors:
$('#mydiv select:eq(1) ~ select').hide();
http://www.w3.org/TR/css3-selectors/#general-sibling-combinators
On Mar 29, 4:00 am, iceangel89 iceange...@gmail.com wrote:
I
script type=text/javascript
$(document).ready(function() {
$(.codeButton).hide();
$(.codeButton).click(function() {
// get text in clicked button
var letter = $(this).text();
$(.code).hide(); // hide everything
$(.code+letter).show(); // show
Have you seen the listNav plugin?
http://www.ihwy.com/Labs/jquery-listnav-plugin.aspx
Sounds like it fits well with what you're looking to do.
SEAN O
http://www.sean-o.com
http://twitter.com/seandotcom
JP-47 wrote:
Hi There
I am trying to implement a glossary page (A-Z) for a
Hey!
Is there any simple way to rewrite that so it works on ID:s instead on
class?
I have several checkboxes/hidden divs, but I only want to unhide
the div that belongs to the clicked checkbox.
Best regards.
On Feb 18, 5:10 pm, Stephan Veigl stephan.ve...@gmail.com wrote:
Hi Miguel,
you can
Hi
the example is working on IDs (see the # in the selector).
If you send a HTML snippet of your page, maybe I better understand
what you mean.
by(e)
Stephan
2009/2/26 nubcake unniw...@gmail.com:
Hey!
Is there any simple way to rewrite that so it works on ID:s instead on
class?
I have
Hello again!
div class=container
h1GENERAL/h1
div class=left
input type=checkbox name=application[] value=101a
class=tooltip href=#App #1spanInfo/span/abr
div id=div101[SECRET FIELD FOR App #1]/div
input type=checkbox name=application[] value=100a
class=tooltip href=#App
Hi,
1. Hide all your divs. Maybe you could add a distinguishable class to
your hidden divs, this would make the selection more readable and
precise.
$(.left div).hide();
2. Add a click handler to all your checkboxes.
Get the ID from the value attribute and hide / show the according div.
Thank you so much, it works like a charm!
Best regards.
On Feb 26, 3:01 pm, Stephan Veigl stephan.ve...@gmail.com wrote:
Hi,
1. Hide all your divs. Maybe you could add a distinguishable class to
your hidden divs, this would make the selection more readable and
precise.
$(.left
So I was able to archive my desired effect with the following:
script type=text/javascript
$(document).ready(function(){
$('.answer').css(display, none);
$(.question).click(function(){
var $this = $(this);
if( $this.is('.question') ) {
Hi Miguel,
you can use the click trigger of the checkbox:
form
show secret: input id=checkbox type=checkbox/
div id=div
secret field: input type=text /
/div
/from
$(#div).hide();
$(#checkbox).click(function(){
if ( this.checked ) {
$(#div).show();
} else {
Yes, show()/hide() does change the display properties. There's no
function in jQuery to change the visibility, but you can use the basic
css() function to change it:
$(element).css('visibility', 'hidden');
or for multiple:
$(element).css({visibility:'hidden', backgroundColor:'black'});
On Feb
You can also animate the effect with animate() if you need help doing
this let me know.
Thanks Guys, it worked like a charm.
The page layout does not change anymore.
I did it this way:
$(table).find('th:nth-child(' + colIndex + '), td:nth-child(' +
colIndex + ')').hide();
Istvan
http://www.w3.org/TR/html4/struct/global.html#adef-id
HTML standards state that the id attribute should be unique in an html
document. Use class or somesuch. Then you can do something
like $(.trContactInfo).hide() and it will hide everything.
A. Gundel
On Sun, Feb 8, 2009 at 1:30 PM,
Great, thank you very much, Aeron. Using class as you suggested is what
I'll do.
Aaron Gundel wrote:
http://www.w3.org/TR/html4/struct/global.html#adef-id
HTML standards state that the id attribute should be unique in an html
document. Use class or somesuch. Then you can do something
It's fairly simple to do.
I haven't tested this piece of code, but it should work.
$(div[id^=PrimaryBox] :radio).click(function() {
var clicked_val = $(this).val();
var div_idstr = $(this).parent('div').attr('id')
var group_number = div_idstr.substring
typo: group_numer = group_number
On Feb 3, 10:31 am, Beres Botond boton...@gmail.com wrote:
It's fairly simple to do.
I haven't tested this piece of code, but it should work.
$(div[id^=PrimaryBox] :radio).click(function() {
var clicked_val = $(this).val();
var div_idstr =
I have no idea if this works or is a good way to do it, but hopefully
gives you an idea
$(function() {
$(div[id^=SecondaryBox]).hide(); // hides all secondary boxes
$(input[name^=MainStuff]).bind(click, function() {
var selected = $(:checked, this).val(); // get value of
Try this:
$(.cartSummaryItem).each(function(){
$(this).html($(this).html().replace(/,[^]*/, ' '));
});
It takes the html content of the cartSummaryItem table cell, and
replaces everything from the comma to the start of the View Cart link
with a space, then resets the contents of the table
// fired right away
$('tn-hide').css('display', 'none').addClass('tn-loading');
$(document).ready(function() {
// fired on DOM ready
});
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Sat, Jan 17, 2009 at 9:53 AM, Christine Masters
cmast...@townnews.com wrote:
Why not do it with CSS? where css class tn-loading has display:
none declared
div class=tn-hide tn-loading
Content you are hiding until document ready
/div
then
$(document).ready(function() {
//Do some stuff here
//Done doing stuff, show the content
*http://tinyurl.com/8rwmkr*
On Sat, Jan 17, 2009 at 8:13 PM, MorningZ morni...@gmail.com wrote:
Why not do it with CSS? where css class tn-loading has display:
none declared
div class=tn-hide tn-loading
Content you are hiding until document ready
/div
then
Saif, do you have a point or is this spam?
MorningZ, I am sure you did not have time to go into much details just
like me with my first post :)
Christine, MorningZ suggested (IMO) the best way to do it. Just keep
in mind those users that do not have js enabled. Add some id or class
to your body
1 - 100 of 158 matches
Mail list logo