, *as is*, into the document,
it's likely that the form ('#myform') is not yet available to be
found by document.getElementById().
--
hj
I seem to have found a bug. If I try to use $('#someelement').block
({ message: $('#loadingMessage') });
Then when I unblock with $('#someelement').unblock(); the loading
message is removed from the DOM, so any subsequent calls to block it
fail and cause a JS error. Everything works fine if I
= this.form.action;
...
});
});
--
hj
Anyway to do that?
Have certain links, say with an id of link,
to be programmed to submit a form when clicked?
Why not mark up the links as buttons, or input type=submit elements,
and then
just use CSS to style them appropriately?
--
hj
of the script you intend to remove, this may be workable;
otherwise, it's a big
housekeeping problem.
--
hj
is
inferred,
if necessary, by the browser.
http://www.w3.org/TR/html401/struct/tables.html#edef-TBODY
--
hj
, this can get *really* hairy.
--
hj
the script, or the functions and variables
that it defines? To remove the script element, try:
jQuery('script[src*=test.js]').remove();
But that will only remove the element from the DOM; all the functions
and variables it defines will still exists.
--
hj
DOM
API ... which in this case does exactly what you want (and likely
faster than jQuery access).
Otherwise,
var target = jQuery('#context .target').get(0);
--
hj
solution is what andrea varnier
suggested; but that leaves the responsibility of duplicating ID,
classes,
style, hooked events, etc. to *you*.
--
hj
- provide a
substitute method, either.
Try this (untested):
function getStyleOf(elem,ref) {
return (document.defaultView ?
document.defaultView.getComputedStyle(elem,ref) :
elem.currentStyle);
}
--
hj
criteria.Platform.PlatformID
It's not a var; try
$(#games).load($siteRoot/file/ajaxgames.aspx,
{criteria: {Platform : {PlatformID : $(this).val()}}, view: normal})
--
hj
On Dec 21, 3:15 pm, Bitruder [EMAIL PROTECTED] wrote:
I'm using jQuery + FlyDOM to add new elements dynamically after page
load to the DOM tree. I'm adding new input fields this way. They are
clearly within form/form tags (added as children to a div within
the form/form ). However, when I
On Oct 9, 12:56 am, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
On Oct 8, 3:42 pm, Andy Kent [EMAIL PROTECTED] wrote:
snip Yep, absolutely. If you have any ideas on how we could test a
browsers
support for a selector without maintaining a hard coded list then I
would love to hear
and appreciate jQuery. But there
is value
in knowing the DOM API. For a simple test like this one: does an
element with
this ID exist?, I'd simply say:
if (document.getElementById('my-element')) {
// and so on
}
--
hj
on
prototype's older, broken API needed fixing, specifically:
someObject.extend({key: value, ...})
becomes
Object.extend(someObject,{key: value, ...});
--
hj
16 matches
Mail list logo