- Screen name: mad.halfling
- About Me: Developer in php, asp.net and other things. Linux junkie, DBA, sysadmin
mad.halfling's Profile
8 Posts
25 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Hi folks, I have a column of input boxes in a table that have a .change(fn) event bound to them on doc.ready on the basis of their class. I need to dynamically add more rows to that table, which I can do fine, but obviously these new input boxes don't get that event bound to them. I have tried using .live('change', fn) but as I understand it this doesn't work in IE due to event bubbling, correct?So next, I moved the $('.<classname>').change(fn) to its own method (called BindInputs() ) and am calling that on doc.ready ok. When I add in a new row, is it ok, and correct, to call $('.<classname>').unbind('change'); at the start of the BindInputs() function, which will then, afterwards call $('.<classname>').change(fn); and rebind the the event, or will this cause any problems if repeatedly called for multiple table row additions?I think someone will suggest it, and I think there is a .liveQuery plugin out there that should handle this, but I am rather loath to use it as it will bring in another element and so will require a load of retesting of my existing code - esp if there is another way of doing this which doesn't require any new libraries.ThanksMH
- I've got a weird problem that I'm experiencing and I was wondering if it was a known issue.I have a table, and certain rows are created (by server-side script) as follows:-<tr class="PSRow" style="display: none;">I then have a script which is tied to a checkbox:-
-
$(document).ready(
function() { -
$('#PSHide').click(function() {
-
if ($(this).is(':checked')) {
-
$('tr.PSRow').hide();
-
}
-
else {
-
$('tr.PSRow').show();
-
}
-
});
-
});
now most of the time this works fine, the table is loaded without the hidden rows being visible, and when you check and uncheck the box they are shown and hidden. However, sometimes, when there are a lot of hidden rows and only a couple of visible ones (to start with) when you show the rows, all are shown fine, but when you hide them they are hidden but the table bottom stays where it is and leaves space for the now hidden rows, rather than shrinking up to the bottom of the visible area. If you reload the page, the same thing happens, so it isn't a one off.I am testing this in IE8, and it seems to be ok in some copies but not in others.Anyone else getting a certificate error when trying to log on here? If not I'll post the details of the one I'm getting
- 25-Jan-2010 05:16 AM
- Forum: Using jQuery
Hi, I have a form which has a few submit buttons, all named SubmitButton so I can pass the clicked button's value through to the submission processor and then act according to which button is pressed. However on the jquery form submit even, I also want to check certain things before I fire the submission off. As the button isn't a "conventional" input I can't check the document object to see which one was clicked, so I need to check the form contents that are about to be submitted, can I do this from the submission event or will I have to bind to each button individually?
- 22-Sep-2009 08:08 PM
- Forum: Developing jQuery Core
Hi, I originally posted this in the general discussion, but it is
probably more appropriate here.
Are there problems with the animation with IE8 compatibility mode
forced off?
I am using meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"
to force IE 8 out of compatibility mode for my site, as I need to use
the new CSS support that IE 8 finally properly implements (it's an
internal site, so I'm not worried about any other browsers), but I
notice that in doing that the fadeIn (and Out) no longer seems to work
- the content the method is being applied to just sits there for the
fade duration and then disappears. This isn't a great hardship, but
it would be nice to be able to showcase what jQuery can do and these
effects would add a bit more wow-factor to the site.
Thx
MH
Am I correct in thinking that variable in jquery are limited in scope
by their parent functions, and if I want to persist data during a
particular page's lifetime (thinking of a page that will exist for a
while, being updated by AJAX calls, etc) I need to put it in an input
control on that page - I am wanting to store data like sort-field for
an AJAX updated data grid, so that data will need to be persistent and
specific to that page, but I can't find any reference to global/page
variables in jquery, so I was assuming I would need to have some
hidden fields onthe page in which to store this data.
Cheers
MH- 15-Sep-2009 10:51 PM
- Forum: Using jQuery
Hi, are there problems with the animation with IE8 compatibility mode
forced off? I am using
meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"
to force IE 8 out of compatibility mode for my site, as I need to use
the new CSS support that IE 8 finally properly implements (it's an
internal site, so I'm not worried about any other browsers), but I
notice that in doing that the fadeIn (and Out) no longer seems to work
- the content the method is being applied to just sits there for the
fade duration and then disappears. This isn't a great hardship, but
it would be nice to be able to showcase what jQuery can do and these
effects would add a bit more wow-factor to the site.
Thx
MH
Hi folks, I'm new to JQuery and am looking to use it in an ASP.NET MVC
app running under IE8, probably forced into full IE8 mode
(compatibility-mode wise).
How does IE8 play with JQuery? Are there any known issues (especially
biggies) with JQuery on IE8 or does it work nicely on it?
Cheers
MH- «Prev
- Next »
-
Moderate user : mad.halfling
© 2013 jQuery Foundation
Sponsored by and others.

