Question

dropdownlist autopostback works in IE but not in FireFox

Asked by: mattegol

This works in IE after I've changed  'dropoptions.Visible = False to dropoptions.Attributes.Add("style", "display:none;")  but not in FireFox..

Page_Load:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
 
        '*********
        'first we check if the user is logged in. If not sent to LogIn page.
        'then we check that there is an eventid available. If not sent to register new event page.
        '****************
        Try
            If Session("Logged") = True Then
                'only proceed if event is not published
                If Session("EvPublished") <> "yes" Then
 
 
                    Dim strHeading As String
                    Dim lst As String = "" 'holds name of listbox to process
                    'strHeading = "Edit Reg Form"
                    'lblHeading.Text = strHeading
 
                    btnSave.Attributes.Add("onclick", "return ValErrorText();")
 
                    '******
                    'only show possibility of adding drop down options if that type of control is chosen
                        '******
                        valrequired.Visible = True
                        'reqErrorText.Visible = True
                        dropoptions.Attributes.Add("style", "display:none;")
                        radiooptions.Visible = False
                        'dropoptions.Visible = False
                        'regExpError.Attributes.Add("style", "display:none;")
                        regExpError.Visible = False
                        regExpMinMax.Visible = False
                        allocation.Visible = False
                    cctypelabel.Visible = False
                    ccNrLabel.Visible = False
                    ccDateLabel.Visible = False
                    ccCvcLabel.Visible = False
                    ccNrError.Visible = False
                    ccCVCError.Visible = False
                        chkShowCvC.Visible = False
                        txtarealabel.Visible = False
                        TextArea.Visible = False
                    help.Visible = True
                    frmlabel.Visible = True
                    frmEvalVal1Txt.visible = False
                    frmEvalVal2Txt.visible = False
                    frmEvalNrOptions.Visible = False
                        frmEvalQuestion.Visible = False
                        linkTextLabel.Visible = False
                        linkLabel.Attributes.Add("style", "display:none;")
 
 
                    If Session("Eventid") > 0 Then
 
                        'check to see if a query string is coming in
                        'if so populate controls and put form in update mode
                        'this is fired from the dynamic edit buttons created on screen
                        If Not IsPostBack Then
                            If Request.QueryString.Count > 0 Then
                                Dim iControlid As Integer
 
                                iControlid = Request.QueryString("CID")
 
                                PopControls(iControlid)
                                ltlSaveFlag.Text = "Update"
                                ltlControlId.Text = iControlid
                                ddlControlType.Enabled = False
 
                            End If
                        End If
 
                        'build the preview at the bottom of page
                        BuildForm(Session("Eventid"), tdContainer, True, False)
 
 
                            If IsPostBack Then
 
                                Select Case ddlControlType.SelectedValue.ToUpper
 
                                    Case "DROPDOWN"
                                        dropoptions.Attributes.Add("style", "display:block;")
                                        'dropoptions.Visible = True
 
                                    Case "RADIO"
                                        radiooptions.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "CHECK"
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "FIXED LENGTH", "MAX LENGTH"
                                        regExpError.Visible = True
                                        regExpMinMax.Visible = True
 
                                    Case "NUMERIC"
                                        regExpError.Visible = True
 
                                    Case "EMAIL"
                                        regExpError.Visible = True
 
                                    Case "ALLOCATION"
                                        allocation.Visible = True
                                        regExpError.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "SINGLEALLOCATION"
                                        allocation.Visible = True
                                        regExpError.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
 
                                    Case "CREDITCARD"
 
                                        frmlabel.Visible = False
                                        cctypelabel.Visible = True
                                        ccNrLabel.Visible = True
                                        ccDateLabel.Visible = True
                                        ccCvcLabel.Visible = True
                                        ccNrError.Visible = True
                                        ccCVCError.Visible = True
                                        chkShowCvC.Visible = True
 
                                    Case "SECTIONHEADER"
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
 
                                    Case "SUBSECTIONHEADER"
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
 
                                    Case "TEXTAREA"
                                        txtarealabel.Visible = True
                                        TextArea.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
                                        frmlabel.Visible = False
 
                                    Case "EVALUATION OPTIONS"
                                        radiooptions.Visible = False
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        frmlabel.Visible = True
                                        frmEvalVal1Txt.Visible = True
                                        frmEvalVal2Txt.Visible = True
                                        frmEvalNrOptions.Visible = True
                                        frmEvalQuestion.Visible = True
 
                                    Case "LINK"
                                        linkTextLabel.Visible = True
                                        linkLabel.Attributes.Add("style", "display:block;")
                                        'linkLabel.Visible = True
                                        valrequired.Visible = False
                                        reqErrorText.Visible = False
                                        help.Visible = False
                                        frmlabel.Visible = False
 
 
                                End Select
 
 
                            End If
                        '*****
 
 
                        If Not IsPostBack Then
                            PopControlDropDown()
                        End If
 
                    Else
                        Response.Redirect("../CreatePages/CreateNewEvent.aspx?msg=You must have an Event before you can create a form. Please register a new Event.")
                    End If
 
                    'if event is published
                Else
                    tblEditForm.Visible = False
                    BuildMessageTable(tdContainer, "This event is published. Editing of form is not allowed.")
                End If
 
            Else
                    Response.Redirect("../Main/Login.aspx")
            End If
 
        Catch excException As Exception
            If Not TypeOf excException.GetBaseException Is System.Threading.ThreadAbortException Then
 
                Me.cvGeneral.ErrorMessage = Errors.UserFriendlyMessage(excException, "EN")
            Errors.EmailDiagnostics(excException, "RegisterforEvent Admin Edit Form")
 
            Me.cvGeneral.IsValid = False
            End If
 
        End Try
    End Sub

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-05-11 at 06:04:04ID24397746
Tags

asp.net

,

javascript

,

html

Topics

VB Controls

,

Hypertext Markup Language (HTML)

,

Firefox Web Browser

Participating Experts
1
Points
500
Comments
45

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. ComboBox with DropDownList style
    Hi, Is it possible, in HTML, to have a ComboBox with DropDownList style? So that a user just needs to enter the first letters, and the rest will appear automatically in the ComboBox. Thanx for your help.
  2. Using display:none and display:block in Firefox
    I have developed a technique for simulating a popup by creating a div that has "display:none" and a scripted change to "display:block" with absolute positioning. The div then appears with a nice simulation of a popup. The main reason for doing this is to a...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mattegolPosted on 2009-05-11 at 06:06:00ID: 24354087

Controls in usercontrol:

<tr>
		<td class="header" colSpan="2">Edit Form
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
	<TR>
		<TD class="label" width="200"><asp:label id="Label1" runat="server">Choose Control Type:</asp:label></TD>
		<TD class="label" width="400"><asp:dropdownlist id="ddlControlType" runat="server" Width="300" AutoPostBack="True" CssClass="Companylist"></asp:dropdownlist></TD>
	</TR>
	<tr id="radiooptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label7" runat="server">Enter Control Options:</asp:label></td>
		<td width="400"><asp:textbox id="txtradvalue1" runat="server"></asp:textbox>&nbsp;&nbsp;
			<asp:textbox id="txtradvalue2" runat="server"></asp:textbox></td>
	</tr>
	<tr id="dropoptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label6" runat="server">Enter Control Options:</asp:label></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
					<TD class="label" vAlign="top" width="270"><asp:textbox id="txtDropOption" runat="server"></asp:textbox>&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="170"><asp:listbox id="lstDropOption" runat="server" Width="170" CssClass="Companylist" SelectionMode="Multiple"></asp:listbox></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
	<tr id="allocation" runat="server">
		<td>Enter Allocation Amt:</td>
		<td><asp:textbox id="txtAllocationAmt" runat="server" Width="50px"></asp:textbox></td>
	</tr>
	<TR id="regExpMinMax" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Min/Max Value:</TD>
		<TD width="400"><asp:textbox id="txtMin" runat="server" Width="50px"></asp:textbox>&nbsp;
			<asp:textbox id="txtMax" runat="server" Width="50px"></asp:textbox></TD>
	</TR>
	<TR id="regExpError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Error Text.</TD>
		<TD width="400"><asp:textbox id="txtErrorText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="rptlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label5" runat="server">Enter Control Name:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtCtlName" runat="server" Width="300" MaxLength="50"></asp:textbox></TD>
	</TR>
	<TR id="frmlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label2" runat="server">Enter Label Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtControlLabel" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<!--Evaluation controls-->
	<TR id="frmEvalVal1Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label8" runat="server">Enter Left Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal1Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalVal2Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label9" runat="server">Enter Right Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal2Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalQuestion" runat="server">
		<TD class="label" width="200"><asp:label id="Label10" runat="server">Enter Question:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalQuestion" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalNrOptions" runat="server">
		<TD class="label" vAlign="top" width="200">How many options?:(2-7):</TD>
		<TD width="400"><asp:textbox id="txtEvalOptions" runat="server" Width="50px"></asp:textbox></TD>
	</TR>
	<!--Credit Card Fields-->
	<tr id="cctypelabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Type Label:</TD>
		<TD width="400"><asp:textbox id="txtCCtypeLabel" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="ccNrLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Label:</TD>
		<TD width="400"><asp:textbox id="txtCCnrLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccNrError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Error:</TD>
		<TD width="400"><asp:textbox id="txtCCNrError" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccDateLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Date Label:</TD>
		<TD width="400"><asp:textbox id="txtCCDateLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="chkShowCvC" runat="server">
		<TD class="label" vAlign="top" width="200">Show CVC?:</TD>
		<TD class="label" width="400"><asp:checkbox id="chkCVC" runat="server"></asp:checkbox></TD>
	</tr>
	<tr id="ccCvcLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Label:</TD>
		<TD width="400"><asp:textbox id="txtCVCLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccCVCError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Error:</TD>
		<TD width="400"><asp:textbox id="txtCCCvcError" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<!--End of CreditCard Fields-->
	<!--Link Fields-->
	<tr id="linkTextLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link text:</TD>
		<TD width="400"><asp:textbox id="txtLinkText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="linkLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link:</TD>
		<TD width="400">
		    <asp:textbox id="txtLink" runat="server" Width="300px" MaxLength="500"></asp:textbox>
            <!--<asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtLink" ValidationExpression="((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)" runat="server" ErrorMessage="Ange en giltig adress" />-->
		</TD>
	</tr>
 
	<!--End of Link Fields-->
	<TR id="valrequired" runat="server">
		<TD class="label" width="200"><asp:label id="Label3" runat="server">Is it Required:</asp:label></TD>
		<TD class="label" width="400"><asp:radiobutton id="rbYes" runat="server" GroupName="grpYesNo" Text="Yes"></asp:radiobutton><asp:radiobutton id="rbNo" runat="server" GroupName="grpYesNo" Text="No"></asp:radiobutton></TD>
	</TR>
	<TR id="reqErrorText" runat="server">
		<TD class="label" width="200"><asp:label id="lblRequiredText" runat="server">Required Error Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtReqError" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="help" runat="server">
		<TD class="label" vAlign="top" width="200"><asp:label id="Label4" runat="server">Help Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtHelpText" runat="server" Width="300" MaxLength="100" TextMode="MultiLine"></asp:textbox></TD>
	</TR>
	<tr id="txtarealabel" runat="server">
		<td class="label" colSpan="2"><asp:label id="lblTxtArea" Runat="server">Text:</asp:label></td>
	</tr>
	<tr id="TextArea" runat="server">
		<td class="label" colSpan="2"><asp:textbox id="txtTextArea" runat="server" Width="500" MaxLength="2000" TextMode="MultiLine"
				height="85"></asp:textbox></td>
	</tr>
	<TR>
		<td style="HEIGHT: 5px" colSpan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<INPUT id="lblList" type="hidden" runat="server"></td>
	</TR>
	<TR>
		<TD align="center" colSpan="2"><asp:button id="btnSave" runat="server" Text="Save"></asp:button>&nbsp;&nbsp;
			<asp:literal id="ltlSaveFlag" runat="server" Visible="False"></asp:literal><asp:literal id="ltlControlId" runat="server" Visible="False"></asp:literal></TD>
	</TR>
	<TR>
		<td colSpan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</TR>
	<tr>
		<td class="header" colSpan="2">View Results
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
</TABLE>
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="tdContainer" runat="server"></td>
	</tr>
</table>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-11 at 06:07:13ID: 24354103

From aspx:

<%@ Register TagPrefix="uc1" TagName="ucMenu" Src="../EditControls/ucMenuEditEvent.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucEditForm" Src="../EditControls/ucEditForm.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucFooter" Src="../MainControls/ucFooter.ascx" %>
<%@ Register TagPrefix="uc1" TagName="ucHeader" Src="../MainControls/ucHeader.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Inherits="RegisterForEvent.EditForm" CodeFile="EditForm.aspx.vb" %>
<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		
function popListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var tBox = document.getElementById('ucEditForm:txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstAllocation');
				var tAllBox = document.getElementById('ucEditForm:txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm:txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		var intCount=el.options.length;
		for(i = 0; i < intCount;i++)
		{
			el.options(i).selected=true;
		}
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op.checked==true){
 
						if (tx.value.length < 1)
							{
							alert("You must add a validation error message.")
							return false;
							}
							else
							{
							
							return true;
							}
							}
				}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" onsubmit="SelectAllItems('ucEditForm:lstDropOption');"
			runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2"><uc1:ucheader id="ucHeader" runat="server"></uc1:ucheader></TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160"><uc1:ucmenu id="ucMenu" runat="server"></uc1:ucmenu></TD>
					<td width="500"><uc1:uceditform id="ucEditForm" runat="server"></uc1:uceditform></td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2"><uc1:ucfooter id="ucFooter" runat="server"></uc1:ucfooter></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-11 at 06:12:17ID: 24354151

The error message from Error console is:

Error: el is null
......EditForm.aspx
Line: 49

 

by: mplungjanPosted on 2009-05-11 at 23:51:53ID: 24361829

Looks like the server removes the element from the html
Can you post the view-source from the browser instead?

In any case, try this:


function SelectAllItems(sList) {
  var el = document.getElementById(sList)
  if (el) {
    var intCount=el.options.length;
    for(i = 0; i < intCount;i++) {
      el.options(i).selected=true;
    }
  }
}

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-12 at 02:23:29ID: 24362530

That solved it..... everything works now except for the dropdown option (works in IE not in FireFox). When I select dropdown the control appears as it should but when I try to add a value nothing happens. Error console:
tBox is null
EditForm.aspx   Line 16

 

by: mplungjanPosted on 2009-05-12 at 03:10:40ID: 24362790

please post the HTML of the view-source in the browser.

 

by: mattegolPosted on 2009-05-12 at 03:39:46ID: 24362987


<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		
function popListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var tBox = document.getElementById('ucEditForm:txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm:lstAllocation');
				var tAllBox = document.getElementById('ucEditForm:txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm:txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm:lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZXEuYXNweGRkEBYMHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwNx8CBQxVcGxvYWQgRmlsZXMeD01lbnVJdGVtVG9vbFRpcAUxRWRpdCBwZGYgb3Igd2VibGlua3MuIFVwbG9hZCBpbWFnZXMgb3IgUERGIGZpbGVzLh4RSXRlbVZlcnRpY2FsQWxpZ24LKidTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLlZlcnRpY2FsQWxpZ24DHg1JdGVtTGVmdEltYWdlBRYuLi8uLi9pbWFnZXMvQXJyb3cuZ2lmHhJJdGVtTGVmdEltYWdlQWxpZ24LKiRTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLkltYWdlQWxpZ24CFCsABRAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMB8CBQZJbWFnZXMfAwURRWRpdEdyYXBoaWNzLmFzcHhkZBAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMR8CBRNMaW5rcyBQYWdlIFNldHRpbmdzHwMFGkVkaXRMaW5rc1BhZ2VTZXR0aW5ncy5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDIfAgUDUERGHwMFEUVkaXRMaW5rc1BERi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDMfAgUDV0VCHwMFEUVkaXRMaW5rc1dFQi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDQfAgUOTGlua3MgU2VxdWVuY2UfAwURRWRpdExpbmtzU2VxLmFzcHhkZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA4HwIFB1ByZXZpZXcfAwUWLi4vUHJldmlldy9wSW50cm8uYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwOR8CBQdMb2cgb3V0HwMFEy4uL01haW4vTG9nT3V0LmFzcHhkZGQCBQ9kFgJmD2QWLAIDD2QWAgIBD2QWAmYPEA8WAh4LXyFEYXRhQm91bmRnZBAVEgAHVGV4dEJveApPdGhlciBJbmZvCk1heCBMZW5ndGgMRml4ZWQgTGVuZ3RoB051bWVyaWMSRXZhbHVhdGlvbiBPcHRpb25zBUVtYWlsCERyb3BEb3duBVJhZGlvBUNoZWNrCkNyZWRpdENhcmQKQWxsb2NhdGlvbhBTaW5nbGVBbGxvY2F0aW9uCFRleHRBcmVhDVNlY3Rpb25IZWFkZXIQU3ViU2VjdGlvbkhlYWRlcgRMaW5rFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxQrAxJnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAWZkAgQPFgIeB1Zpc2libGVoZAIFDxYCHgVzdHlsZQUNZGlzcGxheTpub25lO2QCBg8WAh8JaGQCBw8WAh8JaGQCCA8WAh8JaGQCCw8WAh8JaGQCDA8WAh8JaGQCDQ8WAh8JaGQCDg8WAh8JaGQCDw8WAh8JaGQCEA8WAh8JaGQCEQ8WAh8JaGQCEg8WAh8JaGQCEw8WAh8JaGQCFA8WAh8JaGQCFQ8WAh8JaGQCFg8WAh8JaGQCFw8WAh8JaGQCGw8WAh8JaGQCHA8WAh8JaGQCHg9kFgJmD2QWAmYPD2QWAh4Hb25jbGljawUWcmV0dXJuIFZhbEVycm9yVGV4dCgpO2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgUFGHVjRWRpdEZvcm06bHN0RHJvcE9wdGlvbgUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5vBQ91Y0VkaXRGb3JtOnJiTm8a6r4dSBPIdTtztFEF2AN/HwTnDQ==" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=15C5cJL3LLlXNd18Rr855uslxYU9TJ8hd3RMUqP5kRs1&amp;t=633748835251662040" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;SelectAllItems('ucEditForm:lstDropOption');
return true;
}
// -->
</script>
 
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_trError" align="center">
		<td colspan="2">
 
<table width="440" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td width="1"></td>
		<td id="ucEditForm_ucError_col1" bgcolor="#ffa525">
			<div headertext="&lt;img src='../../images/warning.gif' hspace=4 vspace=6>&lt;!--" id="ucEditForm_ucError_Validationsummary1" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
		<td bgcolor="#ffa525" style="PADDING-BOTTOM: 4px; PADDING-TOP: 4px">
			<div displaymode="List" id="ucEditForm_ucError_Validationsummary2" class="PageText" style="color:Black;background-color:#FFA525;display:none;">
 
		</div>
		</td>
		<td id="ucEditForm_ucError_col3" bgcolor="#ffa525" align="right">
			<div headertext="&lt;img src='../../images/errorcorner.gif'>&lt;!--" id="ucEditForm_ucError_Validationsummary3" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
	</tr>
</table>
<script language="javascript">
/*
TestContent()
 
window.onbeforeunload=function(){
	tblError.style.display="none"
}
 
window.onload=function(){
	TestContent()
}
 
function TestContent(){
	if(tdCol2.innerText.length>0){
		trError.bgColor="#FFCC66"
		tblError.style.display="block"
	} else {
		trError.bgColor="#FFFFFF"
		tblError.style.display="none"
	}
}
*/
</script>
<span display="None" id="ucEditForm_cvGeneral" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;"></span></td>
	</tr>
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option selected="selected" value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_dropoptions" style="display:none;">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
					<TD class="label" vAlign="top" width="270"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="170"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
 
		</select></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
var Page_ValidationSummaries =  new Array(document.getElementById("ucEditForm_ucError_Validationsummary1"), document.getElementById("ucEditForm_ucError_Validationsummary2"), document.getElementById("ucEditForm_ucError_Validationsummary3"));
var Page_Validators =  new Array(document.getElementById("ucEditForm_cvGeneral"));
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
</script>
        </form>
	</body>
</HTML>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-12 at 04:21:20ID: 24363277

You problem is that IE does not care if you use document.getElementsById using a NAME instead of an ID

The NAME of the dropbox is ucEditForm:txtDropOption but the ID is ucEditForm_txtDropOption
So either change all
document.getElementById(fieldNAME) to
document.forms[0].elements[fieldNAME]
or change
document.getElementById(fieldNAME) to
 
document.getElementById(fieldID)

Also the links should return false on the onClick to stop the page from reloading on the href="#"

<A  onclick="popListBox(); return false" href="#"><IMG src="../../images/plus.gif" border="0"></A>


 

by: mattegolPosted on 2009-05-12 at 06:28:10ID: 24364306

After I've done those changes I can add things to the listbox but when I try to save it the I get the error: lBox.options[iIndex] is undefined  

Thanks for your help so far!


<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		
function popListBox(){
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				//var lBox = document.forms[0].elements['ucEditForm:lstDropOption'];
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				//var tBox = document.forms[0].elements['ucEditForm:txtDropOption'];
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZXEuYXNweGRkEBYMHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwNx8CBQxVcGxvYWQgRmlsZXMeD01lbnVJdGVtVG9vbFRpcAUxRWRpdCBwZGYgb3Igd2VibGlua3MuIFVwbG9hZCBpbWFnZXMgb3IgUERGIGZpbGVzLh4RSXRlbVZlcnRpY2FsQWxpZ24LKidTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLlZlcnRpY2FsQWxpZ24DHg1JdGVtTGVmdEltYWdlBRYuLi8uLi9pbWFnZXMvQXJyb3cuZ2lmHhJJdGVtTGVmdEltYWdlQWxpZ24LKiRTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLkltYWdlQWxpZ24CFCsABRAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMB8CBQZJbWFnZXMfAwURRWRpdEdyYXBoaWNzLmFzcHhkZBAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMR8CBRNMaW5rcyBQYWdlIFNldHRpbmdzHwMFGkVkaXRMaW5rc1BhZ2VTZXR0aW5ncy5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDIfAgUDUERGHwMFEUVkaXRMaW5rc1BERi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDMfAgUDV0VCHwMFEUVkaXRMaW5rc1dFQi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDQfAgUOTGlua3MgU2VxdWVuY2UfAwURRWRpdExpbmtzU2VxLmFzcHhkZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA4HwIFB1ByZXZpZXcfAwUWLi4vUHJldmlldy9wSW50cm8uYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwOR8CBQdMb2cgb3V0HwMFEy4uL01haW4vTG9nT3V0LmFzcHhkZGQCBQ9kFgJmD2QWLAIDD2QWAgIBD2QWAmYPEA8WAh4LXyFEYXRhQm91bmRnZBAVEgAHVGV4dEJveApPdGhlciBJbmZvCk1heCBMZW5ndGgMRml4ZWQgTGVuZ3RoB051bWVyaWMSRXZhbHVhdGlvbiBPcHRpb25zBUVtYWlsCERyb3BEb3duBVJhZGlvBUNoZWNrCkNyZWRpdENhcmQKQWxsb2NhdGlvbhBTaW5nbGVBbGxvY2F0aW9uCFRleHRBcmVhDVNlY3Rpb25IZWFkZXIQU3ViU2VjdGlvbkhlYWRlcgRMaW5rFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxQrAxJnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAWZkAgQPFgIeB1Zpc2libGVoZAIFDxYCHwloFgICAQ9kFgICAw8QZGQWAGQCBg8WAh8JaGQCBw8WAh8JaGQCCA8WAh8JaGQCCw8WAh8JaGQCDA8WAh8JaGQCDQ8WAh8JaGQCDg8WAh8JaGQCDw8WAh8JaGQCEA8WAh8JaGQCEQ8WAh8JaGQCEg8WAh8JaGQCEw8WAh8JaGQCFA8WAh8JaGQCFQ8WAh8JaGQCFg8WAh8JaGQCFw8WAh8JaGQCGw8WAh8JaGQCHA8WAh8JaGQCHg9kFgJmD2QWAmYPD2QWAh4Hb25jbGljawUWcmV0dXJuIFZhbEVycm9yVGV4dCgpO2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgQFEHVjRWRpdEZvcm06cmJZZXMFEHVjRWRpdEZvcm06cmJZZXMFD3VjRWRpdEZvcm06cmJObwUPdWNFZGl0Rm9ybTpyYk5vUZ3NUQp/IQBetxkWHX5ZeoTjwKk=" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=15C5cJL3LLlXNd18Rr855uslxYU9TJ8hd3RMUqP5kRs1&amp;t=633748835251662040" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;SelectAllItems('ucEditForm:lstDropOption');
return true;
}
// -->
</script>
 
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_trError" align="center">
		<td colspan="2">
 
<table width="440" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td width="1"></td>
		<td id="ucEditForm_ucError_col1" bgcolor="#ffa525">
			<div headertext="&lt;img src='../../images/warning.gif' hspace=4 vspace=6>&lt;!--" id="ucEditForm_ucError_Validationsummary1" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
		<td bgcolor="#ffa525" style="PADDING-BOTTOM: 4px; PADDING-TOP: 4px">
			<div displaymode="List" id="ucEditForm_ucError_Validationsummary2" class="PageText" style="color:Black;background-color:#FFA525;display:none;">
 
		</div>
		</td>
		<td id="ucEditForm_ucError_col3" bgcolor="#ffa525" align="right">
			<div headertext="&lt;img src='../../images/errorcorner.gif'>&lt;!--" id="ucEditForm_ucError_Validationsummary3" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
	</tr>
</table>
<script language="javascript">
/*
TestContent()
 
window.onbeforeunload=function(){
	tblError.style.display="none"
}
 
window.onload=function(){
	TestContent()
}
 
function TestContent(){
	if(tdCol2.innerText.length>0){
		trError.bgColor="#FFCC66"
		tblError.style.display="block"
	} else {
		trError.bgColor="#FFFFFF"
		tblError.style.display="none"
	}
}
*/
</script>
<span display="None" id="ucEditForm_cvGeneral" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;"></span></td>
	</tr>
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option selected="selected" value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
		<td class="label">Test</td><td><select name="ucEditForm:ddl32182" id="ucEditForm_ddl32182" class="Companylist">
 
		</select></td><td><input type="submit" name="ucEditForm:32182" value="Delete" id="ucEditForm_32182" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32182" value="Edit" id="ucEditForm_E32182" class="btntrip" /></td>
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
var Page_ValidationSummaries =  new Array(document.getElementById("ucEditForm_ucError_Validationsummary1"), document.getElementById("ucEditForm_ucError_Validationsummary2"), document.getElementById("ucEditForm_ucError_Validationsummary3"));
var Page_Validators =  new Array(document.getElementById("ucEditForm_cvGeneral"));
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
</script>
        </form>
	</body>
</HTML>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-12 at 06:32:34ID: 24364348

I do not see a link to call popListBox in the html you pasted nor a select called ucEditForm_lstDropOption

 

by: mattegolPosted on 2009-05-12 at 07:08:19ID: 24364735

here, this is it before submit

<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
 
		<script language="javascript">
		
function popListBox(){
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				//var lBox = document.forms[0].elements['ucEditForm:lstDropOption'];
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				//var tBox = document.forms[0].elements['ucEditForm:txtDropOption'];
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" language="javascript" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZXEuYXNweGRkEBYMHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwNx8CBQxVcGxvYWQgRmlsZXMeD01lbnVJdGVtVG9vbFRpcAUxRWRpdCBwZGYgb3Igd2VibGlua3MuIFVwbG9hZCBpbWFnZXMgb3IgUERGIGZpbGVzLh4RSXRlbVZlcnRpY2FsQWxpZ24LKidTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLlZlcnRpY2FsQWxpZ24DHg1JdGVtTGVmdEltYWdlBRYuLi8uLi9pbWFnZXMvQXJyb3cuZ2lmHhJJdGVtTGVmdEltYWdlQWxpZ24LKiRTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLkltYWdlQWxpZ24CFCsABRAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMB8CBQZJbWFnZXMfAwURRWRpdEdyYXBoaWNzLmFzcHhkZBAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMR8CBRNMaW5rcyBQYWdlIFNldHRpbmdzHwMFGkVkaXRMaW5rc1BhZ2VTZXR0aW5ncy5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDIfAgUDUERGHwMFEUVkaXRMaW5rc1BERi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDMfAgUDV0VCHwMFEUVkaXRMaW5rc1dFQi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDQfAgUOTGlua3MgU2VxdWVuY2UfAwURRWRpdExpbmtzU2VxLmFzcHhkZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA4HwIFB1ByZXZpZXcfAwUWLi4vUHJldmlldy9wSW50cm8uYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwOR8CBQdMb2cgb3V0HwMFEy4uL01haW4vTG9nT3V0LmFzcHhkZGQCBQ9kFgJmD2QWLAIDD2QWAgIBD2QWAmYPEA8WAh4LXyFEYXRhQm91bmRnZBAVEgAHVGV4dEJveApPdGhlciBJbmZvCk1heCBMZW5ndGgMRml4ZWQgTGVuZ3RoB051bWVyaWMSRXZhbHVhdGlvbiBPcHRpb25zBUVtYWlsCERyb3BEb3duBVJhZGlvBUNoZWNrCkNyZWRpdENhcmQKQWxsb2NhdGlvbhBTaW5nbGVBbGxvY2F0aW9uCFRleHRBcmVhDVNlY3Rpb25IZWFkZXIQU3ViU2VjdGlvbkhlYWRlcgRMaW5rFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxQrAxJnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAQIIZAIEDxYCHgdWaXNpYmxlaBYCAgEPZBYEZg8PFgIfAGVkZAICDw8WAh8AZWRkAgUPFgIfCWcWAgIBD2QWAgIDDxBkEBUAFQAUKwMAZGQCBg8WAh8JaGQCBw8WAh8JaBYCAgEPZBYEZg8PFgIfAGVkZAICDw8WAh8AZWRkAggPFgIfCWgWAgIBD2QWAmYPDxYCHwBlZGQCCw8WAh8JaGQCDA8WAh8JaGQCDQ8WAh8JaGQCDg8WAh8JaGQCDw8WAh8JaGQCEA8WAh8JaGQCEQ8WAh8JaGQCEg8WAh8JaGQCEw8WAh8JaGQCFA8WAh8JaGQCFQ8WAh8JaGQCFg8WAh8JaGQCFw8WAh8JaGQCGw8WAh8JaGQCHA8WAh8JaGQCHg9kFgJmD2QWAmYPD2QWAh4Hb25jbGljawUWcmV0dXJuIFZhbEVycm9yVGV4dCgpO2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgUFGHVjRWRpdEZvcm06bHN0RHJvcE9wdGlvbgUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5vBQ91Y0VkaXRGb3JtOnJiTm8Tl1XC+fCShof4imvTxL8201JAug==" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=15C5cJL3LLlXNd18Rr855uslxYU9TJ8hd3RMUqP5kRs1&amp;t=633748835251662040" type="text/javascript"></script>
<script type="text/javascript">
<!--
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;SelectAllItems('ucEditForm:lstDropOption');
return true;
}
// -->
</script>
 
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
 
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
 
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
 
				</TR>
				<TR>
					<TD vAlign="top" width="160">
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
 
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
 
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
 
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
 
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
 
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
 
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_trError" align="center">
		<td colspan="2">
 
<table width="440" cellpadding="0" cellspacing="0" border="0">
	<tr valign="top">
		<td width="1"></td>
 
		<td id="ucEditForm_ucError_col1" bgcolor="#ffa525">
			<div headertext="&lt;img src='../../images/warning.gif' hspace=4 vspace=6>&lt;!--" id="ucEditForm_ucError_Validationsummary1" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
		<td bgcolor="#ffa525" style="PADDING-BOTTOM: 4px; PADDING-TOP: 4px">
			<div displaymode="List" id="ucEditForm_ucError_Validationsummary2" class="PageText" style="color:Black;background-color:#FFA525;display:none;">
 
		</div>
		</td>
 
		<td id="ucEditForm_ucError_col3" bgcolor="#ffa525" align="right">
			<div headertext="&lt;img src='../../images/errorcorner.gif'>&lt;!--" id="ucEditForm_ucError_Validationsummary3" style="color:Red;background-color:#FFA525;display:none;">
 
		</div><!---->
		</td>
		
	</tr>
</table>
<script language="javascript">
/*
TestContent()
 
window.onbeforeunload=function(){
	tblError.style.display="none"
}
 
window.onload=function(){
	TestContent()
}
 
function TestContent(){
	if(tdCol2.innerText.length>0){
		trError.bgColor="#FFCC66"
		tblError.style.display="block"
	} else {
		trError.bgColor="#FFFFFF"
		tblError.style.display="none"
	}
}
*/
</script>
<span display="None" id="ucEditForm_cvGeneral" evaluationfunction="CustomValidatorEvaluateIsValid" style="color:Red;display:none;"></span></td>
	</tr>
 
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
 
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
 
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option selected="selected" value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
 
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_dropoptions">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
 
					<TD class="label" vAlign="top" width="250"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox(); return false" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
 
		</select></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
 
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
 
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
 
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
 
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
 
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
 
		<td class="label">Test</td><td><select name="ucEditForm:ddl32183" id="ucEditForm_ddl32183" class="Companylist">
 
		</select></td><td><input type="submit" name="ucEditForm:32183" value="Delete" id="ucEditForm_32183" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32183" value="Edit" id="ucEditForm_E32183" class="btntrip" /></td>
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
 
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
var Page_ValidationSummaries =  new Array(document.getElementById("ucEditForm_ucError_Validationsummary1"), document.getElementById("ucEditForm_ucError_Validationsummary2"), document.getElementById("ucEditForm_ucError_Validationsummary3"));
var Page_Validators =  new Array(document.getElementById("ucEditForm_cvGeneral"));
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script>
<script type="text/javascript">
<!--
var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}
 
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
// -->
 
</script>
        </form>
	</body>
</HTML>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-12 at 07:20:18ID: 24364858

This line does not make sense

else lBox.options[iIndex]=new Option(tValue,iIndex+1);
                       lBox.options[iIndex].value=tValue <<<<<<<<<<<<<

you want

  else {
    lBox.options[iIndex]=new Option(tValue,iIndex+1);
   lBox.options[iIndex].selected=true;
 }




 

by: mplungjanPosted on 2009-05-12 at 07:23:37ID: 24364888

And I would do


function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,iIndex+1);
  lBox.options[iIndex].selected=true;
}
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-12 at 07:49:54ID: 24365199

Ok now i can add options but what happens is if i add lets say Apple, Banana, Orange the result in the dropdown is 1, 2, 3.

 

by: mplungjanPosted on 2009-05-12 at 08:15:19ID: 24365521

change

new Option(tValue,iIndex+1)


to

new Option(iIndex+1,tValue)

or

new Option(tValue,tValue)

 

by: mplungjanPosted on 2009-05-12 at 08:15:43ID: 24365525

PS: I am offline until tomorrow (CET).

 

by: mattegolPosted on 2009-05-12 at 08:39:48ID: 24365843

Ok, now it works to add the options, but when I edit/add options, only the added options remains the old ones disapppears..

Thanks for your help, I appreciate it.

 

by: mplungjanPosted on 2009-05-12 at 22:48:30ID: 24371748

Are you sure?

In what browser?

This works in FF3 and IE7 on XP

<script>
function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
 
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,iIndex+1);
  lBox.options[iIndex].selected=true;
}
</script>
<form>
<select id="ucEditForm_lstDropOption">	
<option>Please select</option>
</select>
<input type="text" name="ucEditForm_txtDropOption" value="">
<input type="button" onClick="popListBox()" value="add">
</form>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-13 at 00:03:48ID: 24372024

Hi again,

Browsers FF3 and IE6.

The closest for it to work is when I use
lBox.options[iIndex]=new Option(tValue,tValue);

When I try that the alert message doesn't work it saves it directly and a empty dropdownlist appears. I have two buttons besides each control delete and edit, when I try to edit and adding more options only the new option is saved the others disappears. What I can do is to highlight all the options manually then it saves them all.

The alert doesn't work in either case.




<tr id="dropoptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label6" runat="server">Enter Control Options:</asp:label></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
					<TD class="label" vAlign="top" width="250"><asp:textbox id="txtDropOption" runat="server"></asp:textbox>&nbsp;<A onclick="popListBox(); return false" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><asp:listbox id="lstDropOption" runat="server" Width="170" CssClass="Companylist" SelectionMode="Multiple"></asp:listbox></TD>
				</TR>
			</TABLE>
		</td>
	</tr>
 
 
<TR>
		<TD align="center" colSpan="2"><asp:button id="btnSave" runat="server" Text="Save"></asp:button>&nbsp;&nbsp;
			<asp:literal id="ltlSaveFlag" runat="server" Visible="False"></asp:literal><asp:literal id="ltlControlId" runat="server" Visible="False"></asp:literal></TD>
	</TR>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-13 at 00:08:54ID: 24372041

In IE the editing works...

 

by: mplungjanPosted on 2009-05-13 at 00:24:59ID: 24372100

I am sorry, I do not understand your comment at all. Did you try the code I gave you just standalone in the browser so you could see it add the options?

Can you post the HTML again and explain exactly what does not do what in what browser when.


1) load page
2) click button x
3) do this
4) do that...

 

by: mattegolPosted on 2009-05-13 at 00:43:00ID: 24372162

I tried the code you gave me standalone, It adds the options in IE but says tBox is null in FF

The alert works in IE here

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TEST2009.aspx.vb" Inherits="TEST2009" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <script>
function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
 
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,iIndex+1);
  lBox.options[iIndex].selected=true;
}
</script>
 
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <select id="ucEditForm_lstDropOption">	
<option>Please select</option>
</select>
<input type="text" name="ucEditForm_txtDropOption" value="">
<input type="button" onClick="popListBox()" value="add">
 
    </div>
    </form>
</body>
</html>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-13 at 01:35:45ID: 24372400

Oh, sorry. I just did what I told you not to do :(((

ID not NAME
<input type="text" ID="ucEditForm_txtDropOption" value="">

 

by: mattegolPosted on 2009-05-13 at 02:09:39ID: 24372609

The standalone works like a charm, but not mine....

This is code behind for the save button with select case dropdown:

 Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
 
        '****************
        'saves or updates structure of form to database
        'based on value in ltlFlagSave
        'first the basic type of control is saved then we check if there are extra things like if it is a dropdown then we need to save the dropdown options etc.
        '****************
 
        Dim strControlType, strControlName, strLabelText, strHelpText, strReqErrorText, strValidateError As String
        Dim iRequired, iSummary, iMin, iMax As Integer
        Dim iEventid As Integer
        Dim iIdentity As Integer 'identity number returned for record just registered.
        txtEvalOptions.Text.Trim()
 
        'Creditcard variables
            Dim sCCType, sCCNr, sCCDate, sCCCvc, sNrError, sCvcError As String
 
            'Link variables
            Dim sTextLabel, sLinkText, sLink As String
 
        Dim blnCVC As Boolean
        Try
            iEventid = Session("eventid")
            If ddlControlType.SelectedValue.Length > 0 Then
 
 
                strControlType = ddlControlType.SelectedValue
                strControlName = txtCtlName.Text.Replace(" ", "")
 
                    'when creating a link
                    If txtLinkText.Text.Length > 0 Then
                        strLabelText = "<a href=" & txtLink.Text & " target=_blank>" & txtLinkText.Text & "</a>"
                    Else
                        strLabelText = txtControlLabel.Text
                    End If
 
 
                    'check the eval options are 2 to 7
                    If Not IsNothing(txtEvalOptions) Then
                        If txtEvalOptions.Text.Length = 0 Then
                            txtEvalOptions.Text = 0
                        End If
 
                    End If
 
 
 
                    If txtTextArea.Text.Trim.Length > 2000 Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "To much text entered in the text area"
                        cvGeneral.IsValid = False
                        'check the eval options are 2 to 7
                    ElseIf (strControlType.ToUpper = "EVALUATION OPTIONS" And (txtEvalOptions.Text < 2 Or txtEvalOptions.Text > 7)) Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "You can only have 2 to 7 Evaluation options"
                        cvGeneral.IsValid = False
                        'check the left and right text are only 10 characters
                    ElseIf (txtEvalVal1Txt.Text.Length > 10 Or txtEvalVal2Txt.Text.Length > 10) Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "The Right and Left text can not have more than 10 characters"
                        cvGeneral.IsValid = False
                        'check that if we are setting up an allocation then an amt has been entered
                    ElseIf (strControlType.ToUpper = "ALLOCATION" And txtAllocationAmt.Text = "") Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "You need to enter an allocation amount"
                        cvGeneral.IsValid = False
                    ElseIf (strControlType.ToUpper = "SINGLEALLOCATION" And txtAllocationAmt.Text = "") Then
                        trError.Visible = True
                        cvGeneral.ErrorMessage = "You need to enter an allocation amount"
                        cvGeneral.IsValid = False
                    Else
 
                        'when creating a text area I 'borrow' the strLabelText variable
                        If txtLinkText.Text.Length = 0 Then
                            If txtTextArea.Text.Length > 0 Then
                                strLabelText = txtTextArea.Text
                            Else
                                strLabelText = txtControlLabel.Text
                            End If
                        End If
 
                        strHelpText = txtHelpText.Text
                        If rbYes.Checked Then
                            iRequired = 1
                            strReqErrorText = txtReqError.Text
                        Else
                            iRequired = 0
                            strReqErrorText = ""
                        End If
 
                        'we need to check if we are updating an existing control or adding a new one.
                        If ltlSaveFlag.Text = "Update" Then
                            iIdentity = ltlControlId.Text
                            UpdateControlStructure(ltlControlId.Text, strControlType, strControlName, strLabelText, iRequired, strHelpText, strReqErrorText, 0)
                            Select Case strControlType.ToUpper
                                Case "DROPDOWN"
 
                                    DeleteDropOptions(iIdentity, iEventid)
                                    'if a dropdown I collect the list of options split them up and save them in DB
                                    Dim MyCollection As NameValueCollection
                                    MyCollection = Request.Form
                                    Dim MySelectedItems As String = MyCollection.Item("ucEditForm:lstDropOption")
                                    If (MySelectedItems <> "") Then
                                        Dim MyArray As Array = MySelectedItems.Split(",")
                                        Dim arrOptions As New ArrayList
                                        Dim i As Integer
 
                                        For i = 0 To MyArray.Length - 1
                                            arrOptions.Add(MyArray.GetValue(i))
                                        Next
 
                                        SaveDropDownOptions(iEventid, iIdentity, arrOptions)
                                        lstDropOption.Items.Clear()
                                    End If
 
                                                           End Select
 
                        Else
                            iIdentity = SaveControlStructure(iEventid, strControlType, strControlName, strLabelText, iRequired, strHelpText, strReqErrorText, iSummary)
 
                            Select Case strControlType.ToUpper
                                Case "DROPDOWN"
                                    Dim MyCollection As NameValueCollection
                                    MyCollection = Request.Form
                                    Dim MySelectedItems As String = MyCollection.Item("ucEditForm:lstDropOption")
                                    If (MySelectedItems <> "") Then
                                        Dim MyArray As Array = MySelectedItems.Split(",")
                                        Dim arrOptions As New ArrayList
                                        Dim i As Integer
 
                                        For i = 0 To MyArray.Length - 1
                                            arrOptions.Add(MyArray.GetValue(i))
                                        Next
 
                                        SaveDropDownOptions(iEventid, iIdentity, arrOptions)
                                        lstDropOption.Items.Clear()
                                    End If
 
                                
                            End Select
 
                        End If
                        'dropoptions.Attributes.Add("style", "display:none;")
                        dropoptions.Visible = False
                        radiooptions.Visible = False
                        regExpError.Visible = False
                        regExpMinMax.Visible = False
 
                        ClearControls()
                        Response.Redirect("EditForm.aspx")
 
                    End If
                Else
                    'trError.Attributes.Add("style", "display:block;")
                    trError.Visible = True
                        cvGeneral.ErrorMessage = "You need to choose a control type."
                    cvGeneral.IsValid = False
 
                End If
 
            Catch excException As Exception
                If Not TypeOf excException.GetBaseException Is System.Threading.ThreadAbortException Then
 
                    trError.Visible = True
                    Me.cvGeneral.ErrorMessage = Errors.UserFriendlyMessage(excException, "EN")
                    Errors.EmailDiagnostics(excException, "RegisterforEvent Admin Edit Form")
 
                    Me.cvGeneral.IsValid = False
                End If
 
            End Try
 
        'BuildForm(iEventid, tdContainer, True
    End Sub

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-13 at 02:12:02ID: 24372620

And HTML from the user control

<TABLE id="tblEditForm" cellSpacing="1" cellPadding="1" width="600" border="0" runat="server">
	<tr id="trError" align="center" runat="server">
		<td colSpan="2"><uc1:ucerr id="ucError" runat="Server"></uc1:ucerr><asp:customvalidator id="cvGeneral" runat="server" Display="None"></asp:customvalidator></td>
	</tr>
	<tr>
		<td class="header" colSpan="2">Edit Form
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
	<TR>
		<TD class="label" width="200"><asp:label id="Label1" runat="server">Choose Control Type:</asp:label></TD>
		<TD class="label" width="400"><asp:dropdownlist id="ddlControlType" runat="server" Width="300" AutoPostBack="True" CssClass="Companylist"></asp:dropdownlist>
        </TD>
	</TR>
	<tr id="radiooptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label7" runat="server">Enter Control Options:</asp:label></td>
		<td width="400"><asp:textbox id="txtradvalue1" runat="server"></asp:textbox>&nbsp;&nbsp;
			<asp:textbox id="txtradvalue2" runat="server"></asp:textbox></td>
	</tr>
	<tr id="dropoptions" runat="server">
		<td class="label" vAlign="top" width="200"><asp:label id="Label6" runat="server">Enter Control Options:</asp:label></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
				    <TD class="label" vAlign="top" width="250"><asp:textbox id="txtDropOption" runat="server"></asp:textbox>&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><asp:listbox id="lstDropOption" runat="server" Width="170" CssClass="Companylist" SelectionMode="Multiple"></asp:listbox></TD>
				</TR>
				
			</TABLE>
		</td>
	</tr>
	<tr id="allocation" runat="server">
		<td>Enter Allocation Amt:</td>
		<td><asp:textbox id="txtAllocationAmt" runat="server" Width="50px"></asp:textbox></td>
	</tr>
	<TR id="regExpMinMax" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Min/Max Value:</TD>
		<TD width="400"><asp:textbox id="txtMin" runat="server" Width="50px"></asp:textbox>&nbsp;
			<asp:textbox id="txtMax" runat="server" Width="50px"></asp:textbox></TD> 
	</TR>
	<TR id="regExpError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Error Text.</TD>
		<TD width="400"><asp:textbox id="txtErrorText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="rptlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label5" runat="server">Enter Control Name:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtCtlName" runat="server" Width="300" MaxLength="50"></asp:textbox></TD>
	</TR>
	<TR id="frmlabel" runat="server">
		<TD class="label" width="200"><asp:label id="Label2" runat="server">Enter Label Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtControlLabel" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<!--Evaluation controls-->
	<TR id="frmEvalVal1Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label8" runat="server">Enter Left Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal1Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalVal2Txt" runat="server">
		<TD class="label" width="200"><asp:label id="Label9" runat="server">Enter Right Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalVal2Txt" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalQuestion" runat="server">
		<TD class="label" width="200"><asp:label id="Label10" runat="server">Enter Question:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtEvalQuestion" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="frmEvalNrOptions" runat="server">
		<TD class="label" vAlign="top" width="200">How many options?:(2-7):</TD>
		<TD width="400"><asp:textbox id="txtEvalOptions" runat="server" Width="50px"></asp:textbox></TD>
	</TR>
	<!--Credit Card Fields-->
	<tr id="cctypelabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Type Label:</TD>
		<TD width="400"><asp:textbox id="txtCCtypeLabel" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="ccNrLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Label:</TD>
		<TD width="400"><asp:textbox id="txtCCnrLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccNrError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Nr Error:</TD>
		<TD width="400"><asp:textbox id="txtCCNrError" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccDateLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter Date Label:</TD>
		<TD width="400"><asp:textbox id="txtCCDateLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="chkShowCvC" runat="server">
		<TD class="label" vAlign="top" width="200">Show CVC?:</TD>
		<TD class="label" width="400"><asp:checkbox id="chkCVC" runat="server"></asp:checkbox></TD>
	</tr>
	<tr id="ccCvcLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Label:</TD>
		<TD width="400"><asp:textbox id="txtCVCLabel" runat="server" Width="300px" MaxLength="100"></asp:textbox></TD>
	</tr>
	<tr id="ccCVCError" runat="server">
		<TD class="label" vAlign="top" width="200">Enter CVC Error:</TD>
		<TD width="400"><asp:textbox id="txtCCCvcError" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<!--End of CreditCard Fields-->
	
	<!--Link Fields-->
	<tr id="linkTextLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link text:</TD>
		<TD width="400"><asp:textbox id="txtLinkText" runat="server" Width="300px" MaxLength="500"></asp:textbox></TD>
	</tr>
	<tr id="linkLabel" runat="server">
		<TD class="label" vAlign="top" width="200">Link:</TD>
		<TD width="400">
		    <asp:textbox id="txtLink" runat="server" Width="300px" MaxLength="500"></asp:textbox>
		</TD>
	</tr>
 
	<!--End of Link Fields-->
	
	<TR id="valrequired" runat="server">
		<TD class="label" width="200"><asp:label id="Label3" runat="server">Is it Required:</asp:label></TD>
		<TD class="label" width="400"><asp:radiobutton id="rbYes" runat="server" GroupName="grpYesNo" Text="Yes"></asp:radiobutton><asp:radiobutton id="rbNo" runat="server" GroupName="grpYesNo" Text="No"></asp:radiobutton></TD>
	</TR>
	<TR id="reqErrorText" runat="server">
		<TD class="label" width="200"><asp:label id="lblRequiredText" runat="server">Required Error Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtReqError" runat="server" Width="300" MaxLength="500"></asp:textbox></TD>
	</TR>
	<TR id="help" runat="server">
		<TD class="label" vAlign="top" width="200"><asp:label id="Label4" runat="server">Help Text:</asp:label></TD>
		<TD class="label" width="400"><asp:textbox id="txtHelpText" runat="server" Width="300" MaxLength="100" TextMode="MultiLine"></asp:textbox></TD>
	</TR>
	<tr id="txtarealabel" runat="server">
		<td class="label" colSpan="2"><asp:label id="lblTxtArea" Runat="server">Text:</asp:label></td>
	</tr>
	<tr id="TextArea" runat="server">
		<td class="label" colSpan="2"><asp:textbox id="txtTextArea" runat="server" Width="500" MaxLength="2000" TextMode="MultiLine"
				height="85"></asp:textbox></td>
	</tr>
	<TR>
		<td style="HEIGHT: 5px" colSpan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<INPUT id="lblList" type="hidden" runat="server"></td>
	</TR>
	<TR>
		<TD align="center" colSpan="2"><asp:button id="btnSave" runat="server" Text="Save"></asp:button>&nbsp;&nbsp;
			<asp:literal id="ltlSaveFlag" runat="server" Visible="False"></asp:literal><asp:literal id="ltlControlId" runat="server" Visible="False"></asp:literal></TD>
	</TR>
	<TR>
		<td colSpan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</TR>
	<tr>
		<td class="header" colSpan="2">View Results
		</td>
	</tr>
	<TR>
		<td colSpan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</TR>
</TABLE>
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="tdContainer" runat="server"></td>
	</tr>
</table>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-13 at 02:13:04ID: 24372629

aspx page

<script language="javascript">
		
                function popListBox() {  
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }
 
 
				//var lBox = document.getElementById('ucEditForm_lstDropOption');
				//var tBox = document.getElementById('ucEditForm_txtDropOption');
				//var tValue = tBox.value
				//var iIndex = lBox.options.length;
				//if (tValue == "") {
				//alert("You need to enter a value");
				//}
				//else
				//lBox.options[iIndex]=new Option(tValue,iIndex+1);
				//lBox.options[iIndex].selected = true;
				//lBox.options[iIndex].value=tValue
				//}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" onsubmit="SelectAllItems('ucEditForm:lstDropOption');" runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2"><uc1:ucheader id="ucHeader" runat="server"></uc1:ucheader></TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160"><uc1:ucmenu id="ucMenu" runat="server"></uc1:ucmenu></TD>
					<td width="500"><uc1:uceditform id="ucEditForm" runat="server"></uc1:uceditform></td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2"><uc1:ucfooter id="ucFooter" runat="server"></uc1:ucfooter></TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-13 at 02:28:28ID: 24372716

I cannot test aspX

Show me the VIEW-SOURCE of the page. PLEASE

 

by: mattegolPosted on 2009-05-13 at 02:29:41ID: 24372722

This is how it looks in edit mode before submit

<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
 
		<script language="javascript">
		
                function popListBox() {  
                 /*
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }
                */
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].selected = true;
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx?CID=32221" id="Form1" onsubmit="SelectAllItems('ucEditForm:lstDropOption');">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZXEuYXNweGRkEBYMHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwNx8CBQxVcGxvYWQgRmlsZXMeD01lbnVJdGVtVG9vbFRpcAUxRWRpdCBwZGYgb3Igd2VibGlua3MuIFVwbG9hZCBpbWFnZXMgb3IgUERGIGZpbGVzLh4RSXRlbVZlcnRpY2FsQWxpZ24LKidTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLlZlcnRpY2FsQWxpZ24DHg1JdGVtTGVmdEltYWdlBRYuLi8uLi9pbWFnZXMvQXJyb3cuZ2lmHhJJdGVtTGVmdEltYWdlQWxpZ24LKiRTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLkltYWdlQWxpZ24CFCsABRAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMB8CBQZJbWFnZXMfAwURRWRpdEdyYXBoaWNzLmFzcHhkZBAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMR8CBRNMaW5rcyBQYWdlIFNldHRpbmdzHwMFGkVkaXRMaW5rc1BhZ2VTZXR0aW5ncy5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDIfAgUDUERGHwMFEUVkaXRMaW5rc1BERi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDMfAgUDV0VCHwMFEUVkaXRMaW5rc1dFQi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDQfAgUOTGlua3MgU2VxdWVuY2UfAwURRWRpdExpbmtzU2VxLmFzcHhkZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA4HwIFB1ByZXZpZXcfAwUWLi4vUHJldmlldy9wSW50cm8uYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwOR8CBQdMb2cgb3V0HwMFEy4uL01haW4vTG9nT3V0LmFzcHhkZGQCBQ9kFgJmD2QWLmYPFgIeB1Zpc2libGVoZAIDD2QWAgIBD2QWAmYPEA8WBB4LXyFEYXRhQm91bmRnHgdFbmFibGVkaGQQFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxUSAAdUZXh0Qm94Ck90aGVyIEluZm8KTWF4IExlbmd0aAxGaXhlZCBMZW5ndGgHTnVtZXJpYxJFdmFsdWF0aW9uIE9wdGlvbnMFRW1haWwIRHJvcERvd24FUmFkaW8FQ2hlY2sKQ3JlZGl0Q2FyZApBbGxvY2F0aW9uEFNpbmdsZUFsbG9jYXRpb24IVGV4dEFyZWENU2VjdGlvbkhlYWRlchBTdWJTZWN0aW9uSGVhZGVyBExpbmsUKwMSZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnFgECCGQCBA8WAh8IaGQCBQ8WAh8IZxYCAgEPZBYCAgMPEA8WBh4NRGF0YVRleHRGaWVsZAULb3B0aW9udmFsdWUeDkRhdGFWYWx1ZUZpZWxkBQtvcHRpb252YWx1ZR8JZ2QQFQMEYWFhYQRmZmZmBG5ubm4VAwRhYWFhBGZmZmYEbm5ubhQrAwNnZ2dkZAIGDxYCHwhoZAIHDxYCHwhoZAIIDxYCHwhoZAILDxYCHwhoZAIMDxYCHwhoZAINDxYCHwhoZAIODxYCHwhoZAIPDxYCHwhoZAIQDxYCHwhoZAIRDxYCHwhoZAISDxYCHwhoZAITDxYCHwhoZAIUDxYCHwhoZAIVDxYCHwhoZAIWDxYCHwhoZAIXDxYCHwhoZAIbDxYCHwhoZAIcDxYCHwhoZAIeD2QWAmYPZBYGZg8PZBYCHgdvbmNsaWNrBRZyZXR1cm4gVmFsRXJyb3JUZXh0KCk7ZAICDxYCHwAFBlVwZGF0ZWQCAw8WAh8ABQUzMjIyMWQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgQFGHVjRWRpdEZvcm06bHN0RHJvcE9wdGlvbgUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5v/1xlpgON8jpGnl4tH3nPBgx7uS0=" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
 
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
 
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
 
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
 
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
 
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
 
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
 
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
 
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" disabled="disabled" class="Companylist" style="width:300px;">
			<option value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
 
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option selected="selected" value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
 
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_dropoptions">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
 
				    <TD class="label" vAlign="top" width="250"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
			<option value="aaaa">aaaa</option>
			<option value="ffff">ffff</option>
			<option value="nnnn">nnnn</option>
 
		</select></TD>
 
				</TR>
				
			</TABLE>
		</td>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
 
	<tr id="ucEditForm_frmlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" checked="checked" /><label for="ucEditForm_rbNo">No</label></TD>
 
	</tr>
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
 
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
 
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
 
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
		<td class="label"></td><td><select name="ucEditForm:ddl32221" id="ucEditForm_ddl32221" class="Companylist">
			<option value="aaaa">aaaa</option>
			<option value="ffff">ffff</option>
 
			<option value="nnnn">nnnn</option>
 
		</select></td><td><input type="submit" name="ucEditForm:32221" value="Delete" id="ucEditForm_32221" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32221" value="Edit" id="ucEditForm_E32221" class="btntrip" /></td>
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
 
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script></form>
	</body>
 
</HTML>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-13 at 02:32:00ID: 24372737

And what exactly does not work?

I can add just fine in FF3

You might want to not SELECT the added option since it selects each added option

 

by: mattegolPosted on 2009-05-13 at 02:33:09ID: 24372747

And after I submit with a added option

<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../Styles.css" type="text/css" rel="stylesheet">
 
		<script language="javascript">
		
                function popListBox() {  
                 /*
                  var tBox = document.getElementById('ucEditForm_txtDropOption');
                  var tValue = tBox.value
                  if (tValue == "") {  
                    alert("You need to enter a value");
                    document.getElementById('ucEditForm_txtDropOption').focus();
                    return;
                  }
                 
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                  var iIndex = lBox.options.length;
                  lBox.options[iIndex]=new Option(tValue,tValue);
                  lBox.options[iIndex].selected=true;
                }
                */
 
				var lBox = document.getElementById('ucEditForm_lstDropOption');
				var tBox = document.getElementById('ucEditForm_txtDropOption');
				var tValue = tBox.value
				var iIndex = lBox.options.length;
				if (tValue == "") {
				alert("You need to enter a value");
				}
				else
				lBox.options[iIndex]=new Option(tValue,iIndex+1);
				lBox.options[iIndex].selected = true;
				lBox.options[iIndex].value=tValue
				}
				
function popAllocationListBox(){
 
				var lBox=document.getElementById('ucEditForm_lstAllocation');
				var tAllBox = document.getElementById('ucEditForm_txtAllocationItem');
				var tAmtBox = document.getElementById('ucEditForm_txtAllocationAmt');
				var tAllValue = tAllBox.value
				var tAmtValue = tAmtBox.value
				
				
				var iIndex = lBox.options.length;
				if ((tAllValue == "")||(tAmtValue == "")) {
				alert("You need to enter an allocation Item and Amount");
				return false
				}
				else
				var lstValue = tAllBox.value + " " + "(" + tAmtBox.value + ")"
				lBox.options[iIndex]=new Option(lstValue,iIndex+1);
				lBox.options[iIndex].value=lstValue
				}
				
	function SelectAllItems(sList)
				{
		var el = document.getElementById(sList)
		if(el)
		{
		    var intCount=el.options.length;
		    for(i = 0; i < intCount;i++)
		    {
			    el.options(i).selected=true;
		    }
		    }
		}
		
	function DeleteListItem()
		{
				var lBox=document.getElementById('ucEditForm_lstDropOption');
				var iSelIndex =lBox.selectedIndex
				if(iSelIndex ==-1){
				alert("You need to selected an item to delete");
				return false
				}
				else
				lBox.remove(iSelIndex);
		}
		
function ValErrorText()
				{
				var op = document.getElementById("ucEditForm_rbYes")
				var tx = document.getElementById("ucEditForm_txtReqError")
					if(op){
					    if(op.checked==true){
 
						    if (tx.value.length < 1)
							{
							    alert("You must add a validation error message.")
							    return false;
							}
							else
							{
							
							return true;
							}
						}
					}	
				}
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="EditForm.aspx" id="Form1" onsubmit="SelectAllItems('ucEditForm:lstDropOption');">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE4ODQ4MTEyMzIPZBYCAgEPZBYGAgEPZBYCAgEPZBYCZg8PFgIeBFRleHQFC01hdHMgRWduZWxsZGQCAw9kFgQCAQ8WAh8ABQRNZW51ZAIDDzwrAAUBAxQrAAoQFgYeBkl0ZW1JRAUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAwHghJdGVtVGV4dAUESG9tZR4HSXRlbVVSTAUZLi4vTUFJTi9BZG1pbldlbGNvbWUuYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwMR8CBQZEZXNpZ24fAwUPRWRpdERlc2lnbi5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDAyHwIFBkxhYmVscx8DBQ9FZGl0TGFiZWxzLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDMfAgUKSW50cm8gUGFnZR8DBRJFZGl0SW50cm9QYWdlLmFzcHhkZBAWBh8BBRh1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDQfAgUMQ29udGFjdCBQYWdlHwMFFEVkaXRDb250YWN0UGFnZS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA1HwIFCUZvcm0gUGFnZR8DBQ1FZGl0Rm9ybS5hc3B4ZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA2HwIFC0ZpZWxkIE9yZGVyHwMFFUVkaXRGb3JtRmllbGRTZXEuYXNweGRkEBYMHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwNx8CBQxVcGxvYWQgRmlsZXMeD01lbnVJdGVtVG9vbFRpcAUxRWRpdCBwZGYgb3Igd2VibGlua3MuIFVwbG9hZCBpbWFnZXMgb3IgUERGIGZpbGVzLh4RSXRlbVZlcnRpY2FsQWxpZ24LKidTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLlZlcnRpY2FsQWxpZ24DHg1JdGVtTGVmdEltYWdlBRYuLi8uLi9pbWFnZXMvQXJyb3cuZ2lmHhJJdGVtTGVmdEltYWdlQWxpZ24LKiRTeXN0ZW0uV2ViLlVJLldlYkNvbnRyb2xzLkltYWdlQWxpZ24CFCsABRAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMB8CBQZJbWFnZXMfAwURRWRpdEdyYXBoaWNzLmFzcHhkZBAWBh8BBSx1Y01lbnVfTWVudTEtbWVudUl0ZW0wMDctc3ViTWVudS1tZW51SXRlbTAwMR8CBRNMaW5rcyBQYWdlIFNldHRpbmdzHwMFGkVkaXRMaW5rc1BhZ2VTZXR0aW5ncy5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDIfAgUDUERGHwMFEUVkaXRMaW5rc1BERi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDMfAgUDV0VCHwMFEUVkaXRMaW5rc1dFQi5hc3B4ZGQQFgYfAQUsdWNNZW51X01lbnUxLW1lbnVJdGVtMDA3LXN1Yk1lbnUtbWVudUl0ZW0wMDQfAgUOTGlua3MgU2VxdWVuY2UfAwURRWRpdExpbmtzU2VxLmFzcHhkZGQQFgYfAQUYdWNNZW51X01lbnUxLW1lbnVJdGVtMDA4HwIFB1ByZXZpZXcfAwUWLi4vUHJldmlldy9wSW50cm8uYXNweGRkEBYGHwEFGHVjTWVudV9NZW51MS1tZW51SXRlbTAwOR8CBQdMb2cgb3V0HwMFEy4uL01haW4vTG9nT3V0LmFzcHhkZGQCBQ9kFgJmD2QWLmYPFgIeB1Zpc2libGVoZAIDD2QWAgIBD2QWAmYPEA8WAh4LXyFEYXRhQm91bmRnZBAVEgAHVGV4dEJveApPdGhlciBJbmZvCk1heCBMZW5ndGgMRml4ZWQgTGVuZ3RoB051bWVyaWMSRXZhbHVhdGlvbiBPcHRpb25zBUVtYWlsCERyb3BEb3duBVJhZGlvBUNoZWNrCkNyZWRpdENhcmQKQWxsb2NhdGlvbhBTaW5nbGVBbGxvY2F0aW9uCFRleHRBcmVhDVNlY3Rpb25IZWFkZXIQU3ViU2VjdGlvbkhlYWRlcgRMaW5rFRIAB1RleHRCb3gKT3RoZXIgSW5mbwpNYXggTGVuZ3RoDEZpeGVkIExlbmd0aAdOdW1lcmljEkV2YWx1YXRpb24gT3B0aW9ucwVFbWFpbAhEcm9wRG93bgVSYWRpbwVDaGVjawpDcmVkaXRDYXJkCkFsbG9jYXRpb24QU2luZ2xlQWxsb2NhdGlvbghUZXh0QXJlYQ1TZWN0aW9uSGVhZGVyEFN1YlNlY3Rpb25IZWFkZXIETGluaxQrAxJnZ2dnZ2dnZ2dnZ2dnZ2dnZ2cWAWZkAgQPFgIfCGhkAgUPFgIfCGgWAgIBD2QWAgIDDxBkZBYAZAIGDxYCHwhoZAIHDxYCHwhoZAIIDxYCHwhoZAILDxYCHwhoZAIMDxYCHwhoZAINDxYCHwhoZAIODxYCHwhoZAIPDxYCHwhoZAIQDxYCHwhoZAIRDxYCHwhoZAISDxYCHwhoZAITDxYCHwhoZAIUDxYCHwhoZAIVDxYCHwhoZAIWDxYCHwhoZAIXDxYCHwhoZAIbDxYCHwhoZAIcDxYCHwhoZAIeD2QWAmYPZBYCZg8PZBYCHgdvbmNsaWNrBRZyZXR1cm4gVmFsRXJyb3JUZXh0KCk7ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WBAUQdWNFZGl0Rm9ybTpyYlllcwUQdWNFZGl0Rm9ybTpyYlllcwUPdWNFZGl0Rm9ybTpyYk5vBQ91Y0VkaXRGb3JtOnJiTm8OcT7a+bXnyhd2Am1tcqQvy3LYkQ==" />
 
<script type="text/javascript">
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>
 
<script src="/Copy of RegisterForEvent on 10.47.0.15/WebResource.axd?d=TDChIrj_h4rKxVsCDotzxQ2&amp;t=633748835251662040" type="text/javascript"></script>
 
 
<script language='javascript'>
<!--
//Region Global Variables
var skm_SelectedMenuStyleInfos=new Object();
var skm_UnselectedMenuStyleInfos=new Object();
var skm_MenuFadeDelays=new Object();
var skm_clockValue=0;
var skm_ticker;
var skm_highlightTopMenus=new Object();
var skm_images=new Array();
var skm_OpenMenuItems = new Array();
//EndRegion
//Region Methods to hook up a menu to the global variables
function skm_registerMenu(menuID, selectedStyleInfo, unselectedStyleInfo, menuFadeDelay, highlightTopMenu){
	skm_SelectedMenuStyleInfos[menuID]=selectedStyleInfo;
	skm_UnselectedMenuStyleInfos[menuID]=unselectedStyleInfo;
	skm_MenuFadeDelays[menuID]=menuFadeDelay;
	skm_highlightTopMenus[menuID]=highlightTopMenu;
}
//Region The methods and contructor of the skm_styleInfo object.
function skm_applyStyleInfoToElement(element){
	element.style.backgroundColor=this.backgroundColor;
	element.style.borderColor=this.borderColor;
	element.style.borderStyle=this.borderStyle;
	element.style.borderWidth=this.borderWidth;
	element.style.color=this.color;
	if (this.fontFamily!='')
		element.style.fontFamily=this.fontFamily;
	element.style.fontSize=this.fontSize;
	element.style.fontStyle=this.fontStyle;
	element.style.fontWeight=this.fontWeight;
	if (this.className!='')
		element.style.className=this.className;
}
function skm_styleInfo(backgroundColor,borderColor,borderStyle,borderWidth,color,fontFamily,fontSize,fontStyle,fontWeight,className){
	this.backgroundColor=backgroundColor;
	this.borderColor=borderColor;
	this.borderStyle=borderStyle;
	this.borderWidth=borderWidth;
	this.color=color;
	this.fontFamily=fontFamily;
	this.fontSize=fontSize;
	this.fontStyle=fontStyle;
	this.fontWeight=fontWeight;
	this.className=className;
	this.applyToElement=skm_applyStyleInfoToElement;
}
//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource){
	skm_stopTick();
	skm_closeSubMenus(elem);
	var childID=elem.id+"-subMenu";  // Display child menu if needed
	if (document.getElementById(childID)!=null){  // make the child menu visible and specify that its position is specified in absolute coordinates
		document.getElementById(childID).style.display='block';
		document.getElementById(childID).style.position='absolute';
		skm_OpenMenuItems = skm_OpenMenuItems.concat(childID);
		if (displayedVertically){ // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(parent)+parent.offsetWidth;
			document.getElementById(childID).style.top=skm_getAscendingTops(elem);
			var visibleWidth=parseInt(window.outerWidth?window.outerWidth-9:document.body.clientWidth,10);
			if ((parseInt(document.getElementById(childID).offsetLeft,10)+parseInt(document.getElementById(childID).offsetWidth,10))>visibleWidth) {
				document.getElementById(childID).style.left=visibleWidth-parseInt(document.getElementById(childID).offsetWidth,10);
			}
		}else{  // Set the child menu's left and top attributes according to the menu's offsets
			document.getElementById(childID).style.left=skm_getAscendingLefts(elem);
			document.getElementById(childID).style.top=skm_getAscendingTops(parent)+parent.offsetHeight;
			if (document.getElementById(childID).offsetWidth<elem.offsetWidth)
				document.getElementById(childID).style.width=elem.offsetWidth;
		}
	}
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverClickToOpen(menuID,elem,parent,imageSource){
	skm_stopTick();
	if (skm_SelectedMenuStyleInfos[menuID] != null) skm_SelectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_SelectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}	
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOverSpacer(menuID,elem,parent){
	skm_stopTick();
}
function skm_mousedOutMenu(menuID,elem,imageSource){
	skm_doTick(menuID);
	if (skm_UnselectedMenuStyleInfos[menuID] != null) skm_UnselectedMenuStyleInfos[menuID].applyToElement(elem);
	if (skm_highlightTopMenus[menuID]){
		var eId=elem.id+'';
		while (eId.indexOf('-subMenu')>=0){
			eId=eId.substring(0, eId.lastIndexOf('-subMenu'));
			skm_UnselectedMenuStyleInfos[menuID].applyToElement(document.getElementById(eId));
		}
	}
	if (imageSource!=''){
		setimage(elem,imageSource)
	}
}
function skm_mousedOutSpacer(menuID, elem){
	skm_doTick(menuID);
}
//Region Utility Functions
function skm_closeSubMenus(parent){
	if (skm_OpenMenuItems == "undefined") return;
	for (var i=skm_OpenMenuItems.length-1; i>-1;i--) {
		if (parent.id.indexOf(skm_OpenMenuItems[i]) != 0) {
			document.getElementById(skm_OpenMenuItems[i]).style.display = 'none';
			skm_shimSetVisibility(false, skm_OpenMenuItems[i]);			
			skm_OpenMenuItems = new Array().concat(skm_OpenMenuItems.slice(0,i), skm_OpenMenuItems.slice(i+1));
  		} 
	}
}
function skm_shimSetVisibility(makevisible, tableid){
	var tblRef=document.getElementById(tableid);
	var IfrRef=document.getElementById('shim'+tableid);
	if (tblRef!=null && IfrRef!=null){
		if(makevisible){
			IfrRef.style.width=tblRef.offsetWidth;
			IfrRef.style.height=tblRef.offsetHeight;
			IfrRef.style.top=tblRef.style.top;
			IfrRef.style.left=tblRef.style.left;
			IfrRef.style.zIndex=tblRef.style.zIndex-1;
			IfrRef.style.display="block";
		}else{
			IfrRef.style.display="none";
		}
	}
}
function skm_IsSubMenu(id){
	if (skm_subMenuIDs == "undefined") return false;
	for (var i=0;i<skm_subMenuIDs.length;i++)
	  if (id==skm_subMenuIDs[i]) return true;
	return false;
}
function skm_getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
	{
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetLeft+skm_getAscendingLefts(elem.offsetParent);
	}
}
function skm_getAscendingTops(elem){
	if (elem==null)
		return 0;
	else {
		if ((elem.style.position=='absolute' || elem.style.position=='relative') && !skm_IsSubMenu(elem.id)) return 0;
		return elem.offsetTop+skm_getAscendingTops(elem.offsetParent);
	}
}
//Region Fade Functions
function skm_doTick(menuID){
	if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
		skm_stopTick();
		skm_closeSubMenus(document.getElementById(menuID));
	} else {
		skm_clockValue++;
		skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
	}
}
function skm_stopTick(){
	skm_clockValue=0;
	clearTimeout(skm_ticker);
}
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
		skm_images[i]=new Image();
		skm_images[i].src=preloadimages.arguments[i];
	}
}
function setimage(elem,imageSource){
	var i=elem.getElementsByTagName("img")[0];
	i.src=imageSource;
}
//-->
</script>
		
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="760" border="0">
				<TR>
					<TD colSpan="2">
<TABLE cellSpacing="0" cellPadding="0" width="760" border="0" ID="Table1">
	<TBODY>
	
		<TR height="70">
 
			<TD width="760" BACKGROUND="../../images/HRGLogo.jpg"><p class="dateline">
					<div style="z-index:1;" align="right"><span id="ucHeader_lbl" style="background-color:Transparent;">Mats Egnell</span></div></p></TD>
		</TR>
		<tr>
			<td><IMG height="1" src="../../images/shim.gif" width="1"></td>
		</tr>
		<tr>
			<td class="HeaderMenuBackground"><img src="../../images/shim.gif" width="0" height="11"></td>
 
		</tr>
	</TBODY>
</TABLE>
</TD>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="5" src="../../images/shim.gif"></td>
				</TR>
				<TR>
					<TD vAlign="top" width="160">
 
<table border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td width="2"><img src="../../images/mTL.gif"></td>
		<td width="142" style="BACKGROUND-IMAGE: url(../../images/mT.gif); BACKGROUND-REPEAT: repeat-x">
			<table border="0" cellpadding="0" cellspacing="0" width="142">
				<tr>
					<td width="120"><p class="MenuHeading">Menu</p>
					</td>
					<td width="22"><img src="../../images/BTIMiniLogo.gif"></td>
 
				</tr>
			</table>
		</td>
		<td width="2"><img src="../../images/mTR.gif"></td>
	</tr>
</table>
<table class="MenuItemBorder" border="0" cellpadding="0" cellspacing="0" width="146">
	<tr>
		<td colSpan="2">
			<table class="menusub" cellspacing="1" cellpadding="1" id="ucMenu_Menu1-menuItem007-subMenu" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;display:none;z-index:1002;">
 
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditGraphics.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Images</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPageSettings.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Page Settings</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksPDF.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">PDF</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksWEB.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">WEB</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem007-subMenu-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLinksSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1-menuItem007-subMenu'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this,'');this.className='MenuItemNormal';" style="cursor:pointer;">Links Sequence</td>
	</tr>
</table><table class="MenuItemNormal" cellspacing="1" cellpadding="1" id="ucMenu_Menu1" bordercolor="#424A52" border="0" style="border-color:#424A52;border-width:1px;border-style:solid;width:146px;z-index:1000;">
	<tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem000" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../MAIN/AdminWelcome.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Home</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem001" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditDesign.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Design</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem002" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditLabels.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Labels</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem003" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditIntroPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Intro Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem004" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditContactPage.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Contact Page</td>
 
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem005" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditForm.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Form Page</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem006" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='EditFormFieldSeq.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Field Order</td>
	</tr><tr>
		<td title="Edit pdf or weblinks. Upload images or PDF files." class="MenuItemNormal" valign="bottom" id="ucMenu_Menu1-menuItem007" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';"><img src="../../images/Arrow.gif" align="right" border="0" />Upload Files</td>
	</tr><tr>
 
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem008" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Preview/pIntro.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Preview</td>
	</tr><tr>
		<td class="MenuItemNormal" id="ucMenu_Menu1-menuItem009" onclick="javascript:skm_closeSubMenus(document.getElementById('ucMenu_Menu1'));location.href='../Main/LogOut.aspx';" onmouseover="javascript:skm_mousedOverMenu('ucMenu_Menu1',this, document.getElementById('ucMenu_Menu1'), true, '');this.className='MenuItemHighlight';" onmouseout="javascript:skm_mousedOutMenu('ucMenu_Menu1', this, '');this.className='MenuItemNormal';" style="cursor:pointer;">Log out</td>
	</tr>
</table></td>
	</tr>
</table>
</TD>
					<td width="500"><table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
 
	<tr>
		<td class="header" colspan="2">Edit Form
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
	<tr>
		<TD class="label" width="200"><span id="ucEditForm_Label1">Choose Control Type:</span></TD>
 
		<TD class="label" width="400"><select name="ucEditForm:ddlControlType" onchange="javascript:setTimeout('__doPostBack(\'ucEditForm$ddlControlType\',\'\')', 0)" language="javascript" id="ucEditForm_ddlControlType" class="Companylist" style="width:300px;">
			<option selected="selected" value=""></option>
			<option value="TextBox">TextBox</option>
			<option value="Other Info">Other Info</option>
			<option value="Max Length">Max Length</option>
			<option value="Fixed Length">Fixed Length</option>
			<option value="Numeric">Numeric</option>
 
			<option value="Evaluation Options">Evaluation Options</option>
			<option value="Email">Email</option>
			<option value="DropDown">DropDown</option>
			<option value="Radio">Radio</option>
			<option value="Check">Check</option>
			<option value="CreditCard">CreditCard</option>
 
			<option value="Allocation">Allocation</option>
			<option value="SingleAllocation">SingleAllocation</option>
			<option value="TextArea">TextArea</option>
			<option value="SectionHeader">SectionHeader</option>
			<option value="SubSectionHeader">SubSectionHeader</option>
			<option value="Link">Link</option>
 
		</select>
        </TD>
	</tr>
	<tr id="ucEditForm_rptlabel">
		<TD class="label" width="200"><span id="ucEditForm_Label5">Enter Control Name:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtCtlName" type="text" maxlength="50" id="ucEditForm_txtCtlName" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_frmlabel">
 
		<TD class="label" width="200"><span id="ucEditForm_Label2">Enter Label Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtControlLabel" type="text" maxlength="500" id="ucEditForm_txtControlLabel" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_valrequired">
		<TD class="label" width="200"><span id="ucEditForm_Label3">Is it Required:</span></TD>
		<TD class="label" width="400"><input id="ucEditForm_rbYes" type="radio" name="ucEditForm:grpYesNo" value="rbYes" /><label for="ucEditForm_rbYes">Yes</label><input id="ucEditForm_rbNo" type="radio" name="ucEditForm:grpYesNo" value="rbNo" /><label for="ucEditForm_rbNo">No</label></TD>
	</tr>
 
	<tr id="ucEditForm_reqErrorText">
		<TD class="label" width="200"><span id="ucEditForm_lblRequiredText">Required Error Text:</span></TD>
		<TD class="label" width="400"><input name="ucEditForm:txtReqError" type="text" maxlength="500" id="ucEditForm_txtReqError" style="width:300px;" /></TD>
	</tr>
	<tr id="ucEditForm_help">
		<TD class="label" valign="top" width="200"><span id="ucEditForm_Label4">Help Text:</span></TD>
		<TD class="label" width="400"><textarea name="ucEditForm:txtHelpText" id="ucEditForm_txtHelpText" style="width:300px;"></textarea></TD>
 
	</tr>
	<tr>
		<td style="HEIGHT: 5px" colspan="2"><IMG height="5" src="../../images/shim.gif">&nbsp;<input name="ucEditForm:lblList" type="hidden" id="ucEditForm_lblList" /></td>
	</tr>
	<tr>
		<TD align="center" colspan="2"><input type="submit" name="ucEditForm:btnSave" value="Save" onclick="return ValErrorText();WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucEditForm:btnSave&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" language="javascript" id="ucEditForm_btnSave" />&nbsp;&nbsp;
			</TD>
	</tr>
	<tr>
 
		<td colspan="2"><IMG height="15" src="../../images/shim.gif">&nbsp;</td>
	</tr>
	<tr>
		<td class="header" colspan="2">View Results
		</td>
	</tr>
	<tr>
		<td colspan="2"><IMG height="10" src="../../images/shim.gif"></td>
	</tr>
 
</table>
 
<table id="tblFormResult" cellSpacing="1" cellPadding="1" width="600" border="0">
	<tr>
		<td id="ucEditForm_tdContainer"><table cellspacing="2" cellpadding="2" width="620" border="0">
	<tr>
		<td class="label"></td><td><select name="ucEditForm:ddl32221" id="ucEditForm_ddl32221" class="Companylist">
			<option value="afterupdating">afterupdating</option>
 
		</select></td><td><input type="submit" name="ucEditForm:32221" value="Delete" id="ucEditForm_32221" class="btntrip" /></td><td><input type="submit" name="ucEditForm:E32221" value="Edit" id="ucEditForm_E32221" class="btntrip" /></td>
 
	</tr>
</table></td>
 
	</tr>
</table>
</td>
				</TR>
				<TR>
					<td colSpan="2"><IMG height="200" src="../../images/shim.gif"></td>
				</TR>
				<TR>
 
					<TD colSpan="2">
<br>
<br>
<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="760" border="0">
	<tr>
		<td id="ucFooter_trVer" align="right"><p class="FooterText">Ver 3.6.2
			</p>
		</td>
 
	</tr>
</TABLE>
<hr class="SeperatorA">
 
</TD>
				</TR>
			</TABLE>
		
<script type="text/javascript">
<!--
var skm_subMenuIDs =  new Array('ucMenu_Menu1-menuItem007-subMenu', 'ucMenu_Menu1');
// -->
</script>
 
<script language="javascript">skm_registerMenu('ucMenu_Menu1',new skm_styleInfo('','','','','','','','','',''),new skm_styleInfo('','','','','','','','','',''),2,false);</script></form>
	</body>
</HTML>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:

Select allOpen in new window

 

by: mplungjanPosted on 2009-05-13 at 02:33:14ID: 24372748

And why did you leave in
               lBox.options[iIndex].value=tValue


I do not see what it does

 

by: mplungjanPosted on 2009-05-13 at 02:34:48ID: 24372764

It even works if I comment out your old code and remove the comments from
function popListBox() {  
                 var tBox = document.getElementById('ucEditForm_txtDropOption');
                 var tValue = tBox.value
                 if (tValue == "") {  
                   alert("You need to enter a value");
                   document.getElementById('ucEditForm_txtDropOption').focus();
                   return;
                 }
               
                  var lBox = document.getElementById('ucEditForm_lstDropOption');
                 var iIndex = lBox.options.length;
                 lBox.options[iIndex]=new Option(tValue,tValue);
                 lBox.options[iIndex].selected=true;
               }

 

by: mattegolPosted on 2009-05-13 at 02:51:56ID: 24372882

I just tested the old lBox.options[iIndex].value=tValue and forgot to change it back again, but with the new popListBox() it still does not trigger alert and when I add new options it just takes the new ones and skips the old ones if I dont highlight them all myself manually in the listbox. If I use lBox.options[iIndex].selected=false; it does not put any options i the dropdown when submitting..

 

by: mplungjanPosted on 2009-05-13 at 02:54:03ID: 24372893

I give up

The javascript code works

 

by: mattegolPosted on 2009-05-13 at 05:23:33ID: 24373888

Yes it do work, the only thing is when I have saved the options and come back to it and adds an option to the list box like the picture I've attached, The original options were Mike, Chris, Tom. Later I add Peter and click save, the only name added in the dropdown is Peter it skips the old ones that is not selected in the listbox. ( I can select them manually and then all of them adds to the dropdown. )

I hope you understand what I mean, English is not my best language.

You have helped me alot and I will give you your points anyhow...

 

by: mplungjanPosted on 2009-05-13 at 05:30:15ID: 24373948

Change
onsubmit="SelectAllItems('ucEditForm:lstDropOption')
to
onsubmit="SelectAllItems('ucEditForm_lstDropOption')

 

by: mattegolPosted on 2009-05-13 at 05:42:53ID: 24374085

That didn't do it either, I give up too if they have to add an option they have to select all manually or add them all again.

Thanks for your help, you solved the main question.

 

by: mattegolPosted on 2009-05-13 at 05:43:55ID: 31580122

Thanks

 

by: mplungjanPosted on 2009-05-13 at 05:52:40ID: 24374182

But it SHOULD work!!!

Look:

<HTML>
	<HEAD>
		<title>Edit Existing Event</title>
<script>
function popListBox() {  
  var tBox = document.getElementById('ucEditForm_txtDropOption');
  var tValue = tBox.value
  if (tValue == "") {  
    alert("You need to enter a value");
    document.getElementById('ucEditForm_txtDropOption').focus();
    return;
  }
 
  var lBox = document.getElementById('ucEditForm_lstDropOption');
  var iIndex = lBox.options.length;
  lBox.options[iIndex]=new Option(tValue,tValue);
  lBox.options[iIndex].selected=true;
}
				
function SelectAllItems(sList) {
	var el = document.getElementById(sList)
	if(el) {
    var intCount=el.options.length;
    for(i = 0; i < intCount;i++) {
      el.options(i).selected=true;
    }
  }
}
 
		</script>
	</HEAD>
	<body>
		<form name="Form1" method="post" action="" id="Form1" onsubmit="SelectAllItems('ucEditForm:lstDropOption'); alert('I WOULD have submitted all now'); return false">
 
<table id="ucEditForm_tblEditForm" cellspacing="1" cellpadding="1" width="600" border="0">
	<tr id="ucEditForm_dropoptions">
		<td class="label" valign="top" width="200"><span id="ucEditForm_Label6">Enter Control Options:</span></td>
		<td width="400">
			<TABLE id="Table2" cellSpacing="1" cellPadding="1" width="400" border="0">
				<TR>
 
				    <TD class="label" vAlign="top" width="250"><input name="ucEditForm:txtDropOption" type="text" id="ucEditForm_txtDropOption" />&nbsp;<A onclick="popListBox();" href="#"><IMG src="../../images/plus.gif" border="0"></A>
						&nbsp;<A onclick="DeleteListItem();" href="#"><IMG src="../../images/minus.gif" border="0"></A></TD>
					<TD class="label" width="150"><select size="4" name="ucEditForm:lstDropOption" multiple="multiple" 
          id="ucEditForm_lstDropOption" class="Companylist" style="width:170px;">
			<option value="aaaa">aaaa</option>
			<option value="ffff">ffff</option>
			<option value="nnnn">nnnn</option>
 
		</select></TD>
 
				</TR>
</tr>    
  <tr>  <td><input type="submit" name="ucEditForm:32221" value="Delete" id="ucEditForm_32221" class="btntrip" /></td>
  <td><input type="submit" name="ucEditForm:E32221" value="Edit" id="ucEditForm_E32221" class="btntrip" /></td>
	</tr>
</table>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:

Select allOpen in new window

 

by: mattegolPosted on 2009-05-13 at 06:30:27ID: 24374551

In IE the Alert triggers as many times as there is options but in FF it only triggers 1 time...

 

by: mattegolPosted on 2009-05-13 at 06:32:06ID: 24374577

Isn't there a way to automaticly select all options in the listbox?

 

by: mplungjanPosted on 2009-05-13 at 06:42:59ID: 24374705

But that is what the script DOES in FF and IE !
I do not understand your issue.

Try the last stand alone code in IE and FF and see all options are selected

 

by: mattegolPosted on 2009-05-13 at 07:55:54ID: 24375562

I changed:
el.options(i).selected=true;
to
el.options[i].selected=true;

and now it works!


                  
               

 

by: mattegolPosted on 2009-05-13 at 07:56:27ID: 24375569

in function SelectAllItems(sList)

 

by: mplungjanPosted on 2009-05-13 at 07:58:56ID: 24375602

EUUW.

FF3 seems to allow this - other browsers of course not - the options is an array and not a collection
Sorry I did not notice that

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...