Click to See Complete Forum and Search --> : Getting pop up to disappear?


dotnetanimal
01-03-2003, 03:30 PM
I am building a string that builds a popup. That pop up works on an onclick event to give the user some selections.

I can't get it to disappear unless I actually roll over the pop ups and I would like to do this.

anyone know of any resources for this?

Here is the code:

sHTML = '<table class="tabOptions" id="tabRowOpt" width="' + width + '" cellspacing="1" cellpadding="1" border="0" bgcolor="#000000">';

//drewman


if (typeID == CG_SOURCE_CUSTOM_ID)
{
if (statusID == REPORT_STAT_READY)
{
sHTML += ' <tr><td id="topt_view" class="tabOptions" onmouseover="tabOver();" onmouseout="tabOut();" onclick="viewReport(\'' + rptID + '\');">View</td></tr>';

sHTML += ' <tr><td id="topt_export" class="tabOptions" onmouseover="tabOver();" onmouseout="tabOut();" onclick="exportReport(\'' + rptID + '\');">Export</td></tr>';

}

dotnetanimal
01-03-2003, 05:58 PM
well my pop up works just fine and as long as I actually enter the menu that pops up when I come out of the box that is created disappears from the screen until you click on the link again.

However,

If I click on the link and the menu comes up and I navigate to another section of the page without touchin any part of the menu that was created with the script it remains popped up state.

Did that help?

dotnetanimal
01-03-2003, 06:11 PM
The pop is a menu link on a page that allows the user to select a number of actions to take. Let's say view, edit, save, delete.

Each of those actions calls another function in my script and executes if selected.

it creates a little table and not a seperate window.

dotnetanimal
01-03-2003, 06:13 PM
Thanks for the links on the JavaScript documentation it is proving very usefull. But I am sure you already knew that. :)

Thanks again!