[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Image rollovers don't work.  Image clicks don't work either.  Very short web page to show the problem.  What am I doing wrong?  I need a 5 minute expert for 500 pts!

Asked by louisiana_blues in Web Development Software, Web Graphics Software, Microsoft IIS Web Server, Miscellaneous Web Development, Web Servers

Hello:

Help!  I have a very small web page below that has a draggable panel with additional min, max and close buttons on the drag panel--just like a normal dialog, but using ASP.NET AJAX Drag panel.  However, none of these buttons work!  It appears that the javascript is never called!  None of the rolloevers work either.  And I do not get any javascript errors or anything.  Doesn't matter if I move the javascript into the head tag either.

Can an expert please help me?  I am so desperate to get this to work.  It's probably a one line or one-word issue too!  That's so frustrating.

And *please* take the minute it takes to copy and paste the code below w/your change to ensure you are correct. This women spent a lot of time breaking down the page to something fairly easy with which to ask this question and I've already asked this question twice because someone attempts to answer the question who doesn't know the answer like an expert would.  I know you experts are out there!
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:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="DragTestApp20._Default" %>
 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head id="Head1" runat="server">
  <title>Untitled Page</title>
  <script type="text/javascript" language="javascript">
 
    function switchImage(simgid, simg)
    {
      var oimg = $find(simgid);
      oimg.src = simg;
    }
 
    function minimizeDlg()
    {
      var odlgcnt = $find('dlgContent');
      odlcnt.style.visible = 'false';
    }
 
    function maximizeDlg()
    {
      var odlg = $find('dlgHtml');
      odlg.style.height = '100%';
      odlg.style.width = '100%';
      odlcnt.style.visible = 'true';
    }
 
    function closeDlg()
    {
      var odlgcnt = $find('dlgHtml');
      odlcnt.style.visible = 'false';
    } 
           
  </script>
  <style type="text/css">
 
.dragMe {
        width:100%;
        height:21px;
        background-color:#d6b24a;
        text-align:center;
        cursor:move;
        font-weight:bold;
}
  </style>
</head>
<body>
 
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
 
    <div style="height: 200px; width: 400px; float: left; padding: 5px;" >
      <asp:Panel ID="dlgHtml" runat="server" Width="400px" style="z-index: 20;">
        <asp:Panel ID="drgHtml" runat="server" Width="100%" Height="20px" BackColor="#d6b24a" BorderStyle="Solid" BorderWidth="1px" BorderColor="black">
          <div class="dragMe">Web page Url
          <img src="Images/close.gif" id="imgClose" alt="Close" onclick="javascript:closeDlg();" onmouseover="javascript:switchImage('imgClose', 'Images/closeon.gif');" onmouseout="javascript:switchImage('imgClose', 'Images/close.gif');" style="vertical-align: bottom; cursor: pointer; float: right;" /> 
          <img src="Images/maximize.gif" id="imgMaximize" alt="Maximize" onclick="javascript:maximizeDlg();" onmouseover="javascript:switchImage('imgMaximize', 'Images/maximizeon.gif');" onmouseout="javascript:switchImage('imgMaximize', 'Images/maximize.gif');" style="vertical-align: bottom; cursor: pointer; float: right;" /> 
          <img src="Images/minimize.gif" id="imgMinimize" alt="Minimize" onclick="javascript:minimizeDlg();" onmouseover="javascript:switchImage('imgMinimize', 'Images/minimizeon.gif');" onmouseout="javascript:switchImage('imgMinimize', 'Images/minimize.gif');" style="vertical-align: bottom; cursor: pointer; float: right;" />
          </div>
        </asp:Panel>
        <asp:Panel ID="dlgContent" runat="server" Width="100%" Height="100%"
          Style="overflow: auto" BackColor="#F0F0F0" ForeColor="gray"
          BorderWidth="1px" BorderColor="black" BorderStyle="Solid" >
          <div>
            <p>This panel will reset its position on a postback or page refresh.</p>
            <hr />
            <p>It is a long established fact that a reader will be distracted by the readable content of a page when looking 
            at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as 
            opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages 
            and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover 
            many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, 
            sometimes on purpose (injected humour and the like).</p>
          </div>
        </asp:Panel>        
      </asp:Panel>
    </div>               
    <cc1:DragPanelExtender ID="DragPanelExtender1" runat="server" TargetControlID="dlgHtml" BehaviorID="drgbhvHtml" DragHandleID="drgHtml" />
 
</form>
  <script type="text/javascript" language="javascript">
 
    // The following snippet works around a problem where FloatingBehavior
    // doesn't allow drops outside the "content area" of the page - where "content
    // area" is a little unusual for our sample web pages due to their use of CSS
    // for layout.
    function setBodyHeightToContentHeight()
    {
      document.body.style.height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight) + "px";
    }
    setBodyHeightToContentHeight();
    $addHandler(window, "resize", setBodyHeightToContentHeight);
 
  </script>
</body>
</html>
[+][-]10/09/09 11:26 PM, ID: 25541055Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Web Development Software, Web Graphics Software, Microsoft IIS Web Server, Miscellaneous Web Development, Web Servers
Sign Up Now!
Solution Provided By: tedbilly
Participating Experts: 1
Solution Grade: A
 
[+][-]10/09/09 12:30 PM, ID: 25538075Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_1_20070628