Iron Speed Technical Forums
Sign up Latest Topics

  Author   Comment  

Posts: 1
Reply with quote  #1 
When I click on the mark, I will open a new page, javascript must be given the choice of recording reference on page load, but it does not work in Firefox.

main page code

<asp:Literal runat="server" id="PersonalIDLabel" Text="">
            <td class="dfv" id="td_CLASS_PersonalID"><asp:textbox id="CLASS_PersonalIDTextbox" readonly="true" name="CLASS_PersonalIDTextbox" onmouseover="this.title=this.value" class="field_input" runat="server" /><a href="javascript:"onclick="OpenClassesSelector1('<%# Container.FindControl("CLASS_PersonalID").ClientID %>'); return false;"><img src="../Images/DialogHeaderIconExpand.gif" border="0"></a>

function OpenClassesSelector1(target)


         var url = '../SelectListForms/ShowVPersonals_selectListTablePage.aspx?target=' + target ;
, '', 'width=800, height=400, resizable=yes, scrollbars=yes, modal=yes');



target page code (record select page)

<td class="ttc"  style="text-align:right"><a href='javascript:' onclick='UpdateTarget("<asp:Literal runat="server" id="ID1" ></asp:Literal>"); return false;'>
<img src="../Images/Select.gif" border="0"></a></td>

<script type="text/javascript" language="javascript">

function UpdateTarget(selectedValue)
          // "target" is the name of a URL parameter passed to this page. 

          // The value of the URL parameter is the ClientId of the ASPX

    // TextBox control that receives the selected value.
          //var target = window.opener.document.all('<%# Request.Params("target") %>');
    var target = window.opener.document.getElementById('<%# Request.Params("target") %>');
          target.value = selectedValue;



Previous Topic | Next Topic

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement