Solved

Change the value of ondblclick event

Posted on 2008-06-12
1
951 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

948 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

22 Experts available now in Live!

Get 1:1 Help Now