Solved

Change the value of ondblclick event

Posted on 2008-06-12
1
949 Views
Last Modified: 2012-06-27
Hi, how can I change the value of ondblclick in the following code?
<tr style="display:none" onmouseover="javascript:parent.frames['leftFrame'].document.forms.Details.FileName.value='';parent.frames['leftFrame'].document.forms.Details.fileType.value='';parent.frames['leftFrame'].document.forms.Details.fileDateCreated.value='Date Created:';parent.frames['leftFrame'].document.forms.Details.FileDateAccessed.value='Date Accessed:'; parent.frames['leftFrame'].document.forms.Details.FileDateModefied.value='Date Modified:'; parent.frames['leftFrame'].document.forms.Details.FileSize.value='';" ondblclick="javascript:window.location.href='?action=viewfolder&path='" bgcolor="><font face="verdana" size="1"><td onclick="javascript:changeColor(this,event);" bgcolor="" align="left" valign="bottom">&nbsp;<input type="hidden" value='' id="folder" name="folder"/><INPUT style="display:none" onclick="javascript:parent.frames['topFrame'].document.getElementById('DeleteSelected').src='images/ico_del_on.gif';changeColor(checkfolder)" type=checkbox name="checkfolder" value='' ></td> <td onclick="javascript:changeColor(this,event);" bgcolor="" align="left" width="30%" valign=""bottom"" ><img src=""images/folder.gif"" > </td><td onclick="javascript:changeColor(this,event);"  align=""center"" width="15%" valign="bottom">folder</td><td onclick="javascript:changeColor(this,event);" bgcolor="" align="center" valign=""bottom"">&nbsp; </td><td onclick="javascript:changeColor(this,event);" bgcolor="" align="center" valign="bottom"></td><td onclick="javascript:changeColor(this,event);" bgcolor="" align="center" valign="bottom"><a target="BodyFrame" href="?action=RenameFolder&path=&folder="><img border=0  src=images/rename1.gif title="rename folder" width="20" ></a> <a target="BodyFrame" href="?action=deletefolder&path=&folder="><img border=0 title=delete src=images/ico_del_on.gif></a>&nbsp; <a target="BodyFrame" href="zipfolder.asp?f="><img border="0" title="zip file" width="15" hight="15" src="images/zip.gif"></a></td></tr>

Open in new window

0
Comment
Question by:Abdu_Allah
1 Comment
 
LVL 63

Accepted Solution

by:
Zvonko earned 500 total points
ID: 21774248
That is an invisible row.
How do you access that row by script?
The script to change the event hanler is like this:

theRow.ondblclick = function(){window.location.href='?action=viewfolder&path=' };

Or like this:
theRow.ondblclick = new Function("window.location.href='?action=viewfolder&path=' ");
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
date format angularjs2 16 43
connect a series of circles by line based on clicks 4 39
Phone Dialer 5 37
Re-position the objects 7 51
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now