Sorry, I am pretty new to this sort of thing. I am making a web page which basically queries a database, and displays the information in a table format, based on the search options the user specifies at the top of the screen. This part is actually all done and is working fine. However, one of the columns in my table that I display, may need more explanation. This webpage basically displays a log of emails that were sent out. The column that may need more explanation is the "alert targets" which would detail who was sent the email. All the information displayed on the page, so far, is contained in one database. Unfortunately, this "alert targets" column will have some home grown names in there, such as "Accounting Group" instead of the actual alerting targets (email addresses) contained within that group. This group name to alerting targets relationship information is stored in an entirely different database. Hopefully that all made sense to far.
So what I am trying to do is to make it so that the "Alerting Targets" column in my table is a hyperlink. I would like that hyperlink to open a separate page. This new page will show the details of the contents of the alerting group. But I can't seem to figure out how to pass data to the pop-up window. So on my main page, the cells for the Alerting Target in the table get added like so:
Then I have the following built into my .aspx script to actually open the pop-up window:
Then to my project (in Visual Studio), I've added a blank file named popupbasic.html.
Can anyone help me figure out how to pass data from my main webpage to this popup window? So that I can then, on the new pop up, have the code look in the other database and display the targets?
Please let me know if that did not make sense or if you need any more information!
So what I am trying to do is to make it so that the "Alerting Targets" column in my table is a hyperlink. I would like that hyperlink to open a separate page. This new page will show the details of the contents of the alerting group. But I can't seem to figure out how to pass data to the pop-up window. So on my main page, the cells for the Alerting Target in the table get added like so:
HTML:
output.Append(" <td class='cell'><A HREF = 'popupbasic.html' onClick='return popup(this, 'notes') target='_blank''>" & strTargets & "</A></td>" & vbNewLine)
Then I have the following built into my .aspx script to actually open the pop-up window:
JavaScript:
<SCRIPT TYPE="text/javascript">
<!--
Function popup(ByVal mylink, ByVal windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
Else
href=mylink.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
Then to my project (in Visual Studio), I've added a blank file named popupbasic.html.
Can anyone help me figure out how to pass data from my main webpage to this popup window? So that I can then, on the new pop up, have the code look in the other database and display the targets?
Please let me know if that did not make sense or if you need any more information!