I have a div that appears if errors were encountered during a processing step. I have a 'More Info' link which, when clicked, I would like to expand and show specific errors encountered.
I thought I could use scriptaculous and the Effect.Grow() animation but this seems to always start from 0px x 0px and scale up.
Is it possible to star...
I've got a checkout page on my online store, and one the fields is a for a Discount Coupon code, next to which is an 'update total' button. The next column shows the discount.
--------------- ——————————————
enter code:| | |update total| - $0.00
--------------- ——————————————
When the ...
Hello, hopefully someone can help. I am trying to fiddle with Prototype JS and have a question about a basic collapsible nav structure I am trying to build.
The following works well except for one thing. I would like for the JS to identify if the child or 'next' DOM element is empty to not fire.
The code is:
Event.observe(document...
how html dom implemented in browser . i want to write a code to produce a html dom emulator. can anyone help me?
...
Hi,
when I have html:
<html>
<head>
</head>
<body>
text
<div>
text2
<div>
text3
</div>
</div>
</body>
</html>
how can I get with DOM parser in JAVA content of body:
text
<div>
text2
<div>
text3
</div>
</div>
becasuse method getTextContent return:text text2 text3. - so without tags.
It is possible ...
Can I add a custom JavaScript as some DOM node attribute to perform when it's ready like JavaScript added as "onClick" attribute performed when you click on it?
Suppose i need to process a div element with some funcMyTransform function.
I think it'll be more elegant to write smth like this
<div onReady=funcMyTransform(this)>...</div>
...
A lot of time I see jQuery code that looks like this:
$('a').live( 'click', function(event){
..
});
What does the event parameter do? Does it correspond to the element 'a' or the event 'live'?
...
Hey,
I created a ASP.NET regular project, and I am trying to attach an on click event to 'btn1'.
and I have few issues -
function pageLoad -> don't working for checking if the dom is ready
$addHandler,$get intellisense don`t work
how I can fix it?
EDIT : And I don`t have intellisense for Sys variable.
...
I am getting a reference to a DOM element from a WYSIWYG Editor.
I don't understand JS nor the WYSIWYG Editor (CKEditor) that deeply yet, but it somehow seems to be a pointer or other direct reference to the actual element that resides in an IFRAME within the WYSIWYG editor. At least, when I console.log the element, I get a link that, w...
I have a DOM element that in Firebug clearly shows a float: left property.
But when I process it in the DOM, element.style.float returns undefined.
Am I just overlooking something on my end (this is what I'm assuming right now) or is there a special way to address float? I would be baffled if there were.
...
I am working on a personal project involving some jQuery / native Javascript programming. I am hoping somebody can clarify an issue I'm seeing with my code. I'm confused about the relationship among objects created in Javascript and objects that are part of the DOM.
When using JQuery UI (the tabs feature), my program behaves differe...
Hi
I am trying to stop some events but stopPropagation does not work with "live" so I am not sure what to do. I found this on their site.
Live events do not bubble in the
traditional manner and cannot be
stopped using stopPropagation or
stopImmediatePropagation. For example,
take the case of two click events -
one bound to...
How to? Created a document and an element:
import xml.dom.minidom as d
a=d.Document()
b=a.createElement('test')
setIdAttribute doesn't work :(
b.setIdAttribute('something')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/xml/dom/minidom.py", line 835, in setIdAttribute
self.setI...
I am running some JavaScript on my page. Whenever it catches an event that is attached to an anchor <a> element and executes the handler (which I've attached using jQuery) the scroll position resets back to the top of the page. Is there a solution?
...
I'm working on 'timeline' project, where I have content inside of list items, in a horizontal unordered list. This is contained in a div, so you can scroll left to right through the content.
My client would like buttons to 'goto' each era. I know this is easily achieved through JavaScript. However they also want this to be functional wi...
i want a function that finds some strings i've got in an array in the DOM and emphasize it.
eg.
keywords[0] = 'linux';
keywords[1] = 'suse pro';
<body>
im a huge fan of <em>linux</em> and at the moment im using <em>suse pro</em> and finds it amazing.
</body>
how do i do it in the easiest way. thanks in advance
EDIT: i found ...
I am creating a little voting mechanism that sends a quick database timestamp through AJAX.
A series of buttons with the class "vote" are the triggers to vote, while there is text below to show how many "votes" are for that particular item.
After I run the AJAX method from the click event, I remove the "vote" class such that there cann...
I'm using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list. When the image is loaded it does one thing, when an error occurs it does something else. I'm using jQuery load() and error() methods as events. After these events I check the image DOM element for the .complete to make sure the imag...
I've been trying to learn this myself several hours and just had to give up and plead for mercy.
I'm writing a greasemonkey script that interacts with my work OWA (Outlook Web Access), nothing fancy at all.
The goal is to find and count the number of times an image (which has no name or id) exists within my 'inbox'.
Here's my simple t...
I recently read a blog post. In it, the author told readers to wire up all their "onclick" events not inline, but when the DOM's ready, like this (jQuery example):
<script type="text/javascript">
$(document).ready(function() {
$("myElement").click(...
});
</script>
This, for all the elements on the page with events attached to the...