Isn't that the event propogation concept. ex.
<div onClick="someFu nction()">
<a href="www.a.com ">
<a href="www.b.com ">
</div>
If I attach the onclick event to the div then every click on the href element will be captured...
User Profile
Collapse
-
Are all events supported in browser
I am trying to attach a "onblur" event on the body element. IE does'nt throw any errors but the event is not captured by the browser when the onblur occurs on the elements withing the body.
But if I attach a "onclick" event. That is captured by the browser.
Any idea ? -
Looks like the DOM APIs are very strict about the way the document is structured
When I use this structure.
[HTML]<td >
<table id="TAB2">
<tr id="td3">
<td id="td4"> Some Test TEXT </td>
<td id="td5"> <input type=checkbox value="chk-4">CheckBox 4 </td>
</tr>...Leave a comment:
-
Thanks, Yes you are right, Now I have modified the HTML to
[HTML]<td>
<table> <tr> <td></td> </tr> </table>
</td>[/HTML]
I works for now.. let me work on my logic I will get back on the resultLeave a comment:
-
confused with hasChildNodes() method of DOM
I am using IE 6.x & Mozilla 2.x
This is the HTML code
[HTML] <td id="td2">
<tr id="td3">
<td id="td4"> Some Test TEXT </td>
<td id="td5"> <input type=checkbox value="chk-4">CheckBox 4 </td>
</tr>
</td>[/HTML]
this is the Javascript Code ... -
DMJRPO,
Using the Individual CodeTags negates the purpose of the Event Bubbling
concept.
Chetan...Leave a comment:
-
Event bubbling does'nt work
I am using the IE 6.x & Firefox 2.x
I am trying the event bubbling concept. Herez the code
[HTML]<html>
<head>
<script>
function call_function(e vt)
{ .........some_c ode_here....... }
</script>
</head>
<body>
<div onClick="return call_function(e vent);">
<a href="http:www. slashdot.org"... -
while using DWR the Standard JAvascript syntax is not required. dwr.util.getval ue()
is available in the engine.js provided by DWR
Thats where the problem is I am not able to access the JS file which is in the JARLeave a comment:
-
Accessing JS file from JAR
I am new to Java Development. Hence this is a basic question. herez what I am doing
1. I have Apache 6, JDK 1.6, & Eclipse 3.3
2. I am trying to work with the DWR samples.
3. I am trying to access the engine.js from the dwr.jar
4. dwr.jar is placed in the lib directly of the root/web-inf/lib
In the Eclipse Project properties I have given the reference to the dwr.jar, but I am just not able to...
No activity results to display
Show More
Leave a comment: