?
Solved

Change the value of ondblclick event

Posted on 2008-06-12
1
Medium Priority
?
960 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Suggested Courses

864 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