Re: onclick does not fire event for table row

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi,
That is probably design problem of w3c. They planned that TR is only 1
dimention so it cant be clicked. But TD is 2D so it can!
You may use div around tr tag but absolute answer to put onclick to
every TD tag.
Caglar ORHAN (caglaror)
lvcha.gouqizi yazdi:
Hi all,

I've been stuck with a bug in my vbscript. I want to show a dialog from
my html page which was implemented by a onclick vbscipt on a table row
like below. This dialog could be hidden by other dialogs. So I want to
bring it to the front when I click mytext again.

<table width="60%">
<tr><td onclick="myscript">mytext</td></tr>

The fact is that for the first time, onclick works well. However, if I
keep the pop-up dialog open and hit the text again, only the text will
get selected. The dialog is never brought to the front.

Any idea will rock!

lvcha

.



Relevant Pages

  • Re: onclick does not fire event for table row
    ... Tim Williams ... You may use div around tr tag but absolute answer to put onclick to ... Caglar ORHAN (caglaror) ...
    (microsoft.public.scripting.vbscript)
  • Re: onclick does not fire event for table row
    ... Tim Williams wrote: ... You may use div around tr tag but absolute answer to put onclick to ... Caglar ORHAN (caglaror) ...
    (microsoft.public.scripting.vbscript)
  • Re: events and image
    ... tag which is clickable? ... Testing image: ... 'javascript:' is not needed for onclick ... "The most convoluted explanation that fits all of the made-up facts is ...
    (comp.lang.javascript)
  • need to change src attr of a destination image from one this clicked on
    ... Inside of an img tag I have an onclick that fires a function. ... function is supposed to change the src of a larger image elsewhere on ...
    (comp.lang.javascript)
  • Re: onclick event
    ... if its FAQ why cant i find the answer there are many articles ... regarding the onclick subject but not the problem im having. ...
    (comp.lang.javascript)