Home Search Member List Faq Register Login  
UltimatePanel
Re: Javascript error

Thread Starter: cmn   Started: 04-07-2005 1:34 AM   Replies: 9
 Karamasoft Support Forums » General Discussions » UltimatePanel » Re: Javascript error
 Printable Version    « Previous Thread   Next Thread »
  07 Apr 2005, 1:34 AM
cmn is not online. Last active: 4/13/2005 8:00:52 PM cmn

Top 10 Posts
Joined on 04-07-2005
Posts 5
Javascript error
I am currently evaluating the PanelSuite product.

We are getting the following javascript error when some users try to use the panel:

'ahv3jhoy[...].WDh6uDKj[...].b68y4N63' is null or not an object.

I have created a simple panel similar to the ClientPersistence example on the Karamasoft web site. I have the web app running on my development PC and on and development server. In both instances, when I use the panel, it works fine.

When another person uses the panel, it works ok when he is navigating to my development machine, but when they go to the development server, they get the above javascript error.

The XML that is used for the panel is as follows:

<?xml version="1.0" encoding="Windows-1252"?>
<Panel xmlns="http://schemas.karamasoft.com/WebControls/UltimatePanel" CssFile="NavMenu.css" ScriptPath="js" ImagePath="Images" PanelCssClass="NavMenuPanel" GroupHeaderCssClass="NavMenuGroupHeader" GroupHeaderOpenCssClass="NavMenuGroupHeaderOpen" DisabledGroupHeaderCssClass="NavMenuDisabledGroupHeader" DefaultItemCssClass="NavMenuItem" DefaultGroupCssClass="NavMenuGroup" DefaultDisabledItemCssClass="NavMenuDisabledItem" DefaultItemOverCssClass="NavMenuItemOver" PanelWidth="165" GroupSpacing="4" GroupHeaderWidth="165" DefaultItemOver="Item" GroupHeaderLeftIcon="GroupHeader_LeftIcon.gif" GroupHeaderLeftIconOpen="GroupHeader_LeftIconOpen.gif" GroupHeaderRightIcon="GroupHeader_RightIcon.gif" GroupHeaderRightIconOpen="GroupHeader_RightIconOpen.gif" DefaultLeftIcon="Item_LeftIcon.gif" DefaultLeftIconOver="Item_LeftIcon.gif" AutoScrollVertical="False" AutoScrollHorizontal="False" DefaultItemNowrap="False" GroupHeaderSelectCssClass="NavMenuGroupHeaderSelect" ShowHideMenu="False" ShowHideOnClick="False">
  <Group xmlns="">
    <item ID="Item1" Caption="CIMS">
      <Group>
        <item ID="Item2" Caption="Home" PostBackValue="Menu.aspx" />
        <item ID="Item3" Caption="User Guide" />
        <item ID="Item4" Caption="Contact Us" />
      </Group>
    </item>
    <item ID="Item5" Caption="Issues and Incidents">
      <Group>
        <item ID="Item6" Caption="Enter a new Issue" PostBackValue="IssInc.aspx|MODE|Add|EVENT_TYPE|Issue|REFID|" />
        <item ID="Item7" Caption="Enter a new Incident" PostBackValue="IssInc.aspx|MODE|Add|EVENT_TYPE|Incident|REFID|" />
        <item ID="Item8" Caption="Search" PostBackValue="Search.aspx|MODE|Display|SEARCH|" />
        <item ID="Item9" Caption="Track Actions" ItemCssClass="NavMenuItemTitle" ItemOverCssClass="NavMenuItemTitle" LeftIcon="Item_LeftIcon.gif" LeftIconOver="Item_LeftIcon.gif" SubgroupIndentLeft="20" SubgroupExpandOnItemClick="False" LeftIconClosed="Item_LeftIcon.gif" LeftIconOpen="Item_LeftIcon.gif">
          <Group>
            <item ID="Item10" Caption="Search" PostBackValue="ActionTrack.aspx|SEARCH|" />
            <item ID="Item11" Caption="Summary" PostBackValue="ActionSummary.aspx" />
          </Group>
        </item>
        <item ID="Item12" Caption="Reporting" PostBackValue="Reports.aspx?Type=1" />
      </Group>
    </item>
    <item ID="Item13" Caption="Reviews">
      <Group>
        <item ID="Item14" Caption="Enter a new Review" PostBackValue="Reviews.aspx|REVIEW_MODE|Add|REVIEWID|" />
        <item ID="Item15" Caption="Search" PostBackValue="SearchReview.aspx|MODE|Display|SEARCH|" />
        <item ID="Item16" Caption="Track Review Actions" PostBackValue="ActionTrack.aspx" />
        <item ID="Item17" Caption="Reporting" PostBackValue="Reports.aspx?Type=2" />
      </Group>
    </item>
    <item ID="Item18" Caption="Storage Facilities Inspections">
      <Group>
        <item ID="Item19" Caption="Add Storage Facility" PostBackValue="Facilities.aspx|FACILITY_MODE|Add|FACILITYID|" />
        <item ID="Item20" Caption="Search" />
      </Group>
    </item>
    <item ID="Item21" Caption="Safety Stats">
      <Group>
        <item ID="Item22" Caption="Coming Soon" />
      </Group>
    </item>
    <item ID="Item23" Caption="Executive Reporting">
      <Group>
        <item ID="Item24" Caption="Coming Soon" />
      </Group>
    </item>
    <item ID="Item25" Caption="Admin Functions">
      <Group>
        <item ID="Item26" Caption="Maintain Lookups" PostBackValue="LUMaint.aspx" />
        <item ID="Item27" Caption="Maintain Security" ItemCssClass="NavMenuItemTitle" ItemOverCssClass="NavMenuItemTitle" LeftIcon="Item_LeftIcon.gif" LeftIconOver="Item_LeftIcon.gif" SubgroupIndentLeft="20" SubgroupExpandOnItemClick="False" LeftIconClosed="Item_LeftIcon.gif" LeftIconOpen="Item_LeftIcon.gif">
          <Group>
            <item ID="Item28" Caption="Maintain Users" PostBackValue="Users.aspx" />
            <item ID="Item29" Caption="Maintain Roles" PostBackValue="Roles.aspx" />
            <item ID="Item30" Caption="Maintain Pages" PostBackValue="Pages.aspx" />
          </Group>
        </item>
      </Group>
    </item>
  </Group>
</Panel>



Any help is appreciated.

  
  07 Apr 2005, 11:31 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Javascript error
We tried the above xml file in our test system and everything works fine. Can you make sure that your panel control on the development server uses the same xml as above. Is there any significant difference between your development machine and the other user's machine so that you can see the page without an error but the other person gets the error. Did you try to open the page on the development server using a third user's machine.
  
  07 Apr 2005, 11:34 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Javascript error
By the way, did you mistype the error message in your original post: 'ahv3jhoy[...].WDh6uDKj[...].b68y4N63'. It should be b68y4N6E instead of b68y4N63. Can you also make sure that you did not change the javascript files in the script directory.
  
  11 Apr 2005, 11:17 PM
cmn is not online. Last active: 4/13/2005 8:00:52 PM cmn

Top 10 Posts
Joined on 04-07-2005
Posts 5
Re: Javascript error

Thanks for the replies.

1. Yes, the everyone is using exactly the same XML file. It is generated at run-time, but it is definitely the same each time for each user.

2. The machines are very similar, both running Win XP Pro with Service Pack 2.

3. Haven't been able to test it under a third person's account at this stage.

4. Yes it was a typo. It should have been b68y4N6E instead of b68y4N63.

Any suggestions?


  
  12 Apr 2005, 12:46 AM
cmn is not online. Last active: 4/13/2005 8:00:52 PM cmn

Top 10 Posts
Joined on 04-07-2005
Posts 5
Re: Javascript error
A further development.  I have added a few menu items and now I am having the same problem on my machine.

The new xml is:

<Panel xmlns="http://schemas.karamasoft.com/WebControls/UltimatePanel" CssFile="NavMenu.css" ScriptPath="js" ImagePath="Images" PanelCssClass="NavMenuPanel" GroupHeaderCssClass="NavMenuGroupHeader" GroupHeaderOpenCssClass="NavMenuGroupHeaderOpen" DisabledGroupHeaderCssClass="NavMenuDisabledGroupHeader" DefaultItemCssClass="NavMenuItem" DefaultGroupCssClass="NavMenuGroup" DefaultDisabledItemCssClass="NavMenuDisabledItem" DefaultItemOverCssClass="NavMenuItemOver" PanelWidth="165" GroupSpacing="4" GroupHeaderWidth="165" DefaultItemOver="Item" GroupHeaderLeftIcon="GroupHeader_LeftIcon.gif" GroupHeaderLeftIconOpen="GroupHeader_LeftIconOpen.gif" GroupHeaderRightIcon="GroupHeader_RightIcon.gif" GroupHeaderRightIconOpen="GroupHeader_RightIconOpen.gif" DefaultLeftIcon="Item_LeftIcon.gif" DefaultLeftIconOver="Item_LeftIcon.gif" AutoScrollVertical="False" AutoScrollHorizontal="False" DefaultItemNowrap="False" GroupHeaderSelectCssClass="NavMenuGroupHeaderSelect" ShowHideMenu="False" ShowHideOnClick="False">
 <Group xmlns="">
  <item ID="Item1" Caption="CIMS">
   <Group>
    <item ID="Item2" Caption="Home" PostBackValue="Menu.aspx"/>
    <item ID="Item3" Caption="User Guide"/>
    <item ID="Item4" Caption="Contact Us"/>
   </Group>
  </item>
  <item ID="Item5" Caption="Issues and Incidents">
   <Group>
    <item ID="Item6" Caption="Enter a new Issue" PostBackValue="IssInc.aspx|MODE|Add|TYPE|Issue|REFID|"/>
    <item ID="Item7" Caption="Enter a new Incident" PostBackValue="IssInc.aspx|MODE|Add|TYPE|Incident|REFID|"/>
    <item ID="Item8" Caption="Search" PostBackValue="Search.aspx|MODE|Display|SEARCH|"/>
    <item ID="Item9" Caption="Track Actions" ItemCssClass="NavMenuItemTitle" ItemOverCssClass="NavMenuItemTitle" LeftIcon="Item_LeftIcon.gif" LeftIconOver="Item_LeftIcon.gif" SubgroupIndentLeft="20" SubgroupExpandOnItemClick="False" LeftIconClosed="Item_LeftIcon.gif" LeftIconOpen="Item_LeftIcon.gif">
     <Group>
      <item ID="Item10" Caption="Search" PostBackValue="ActionTrack.aspx|SEARCH|"/>
      <item ID="Item11" Caption="Summary" PostBackValue="ActionSummary.aspx"/>
     </Group>
    </item>
    <item ID="Item12" Caption="Reporting" PostBackValue="Reports.aspx?Type=1"/>
   </Group>
  </item>
  <item ID="Item13" Caption="Reviews">
   <Group>
    <item ID="Item14" Caption="Enter a new Review" PostBackValue="Reviews.aspx|REVIEW_MODE|Add|REVIEWID|"/>
    <item ID="Item15" Caption="Search" PostBackValue="SearchReview.aspx|MODE|Display|SEARCH|"/>
    <item ID="Item16" Caption="Track Review Actions" PostBackValue="ActionTrack.aspx"/>
    <item ID="Item17" Caption="Reporting" PostBackValue="Reports.aspx?Type=2"/>
   </Group>
  </item>
  <item ID="Item18" Caption="Storage Facilities">
   <Group>
    <item ID="Item19" Caption="Add Facility" PostBackValue="Facilities.aspx|FACILITY_MODE|Add|FACILITYID|"/>
    <item ID="Item20" Caption="Search Facilities" PostBackValue="SearchFacilities.aspx|FACILITY_MODE|Display|SEARCH|"/>
   </Group>
  </item>
  <item ID="Item21" Caption="Admin Functions">
   <Group>
    <item ID="Item22" Caption="Maintain Lookups" PostBackValue="LUMaint.aspx"/>
    <item ID="Item23" Caption="Maintain Security" ItemCssClass="NavMenuItemTitle" ItemOverCssClass="NavMenuItemTitle" LeftIcon="Item_LeftIcon.gif" LeftIconOver="Item_LeftIcon.gif" SubgroupIndentLeft="20" SubgroupExpandOnItemClick="False" LeftIconClosed="Item_LeftIcon.gif" LeftIconOpen="Item_LeftIcon.gif">
     <Group>
      <item ID="Item24" Caption="Maintain Users" PostBackValue="Users.aspx"/>
      <item ID="Item25" Caption="Maintain Roles" PostBackValue="Roles.aspx"/>
      <item ID="Item26" Caption="Maintain Pages" PostBackValue="Pages.aspx"/>
     </Group>
    </item>
   </Group>
  </item>
 </Group>
</Panel>

  
  12 Apr 2005, 11:13 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Javascript error

Is there anything in your NavMenu.css that would cause the page load very slowly? We tried the above XML code with one of our own CSS files and we couldn't replicate the problem you mention.


  
  12 Apr 2005, 5:01 PM
cmn is not online. Last active: 4/13/2005 8:00:52 PM cmn

Top 10 Posts
Joined on 04-07-2005
Posts 5
Re: Javascript error

Contents of navmenu.css:


.NavMenuPanel

{

Z-INDEX:999;

background-color:#ffffff;

}

.NavMenuGroupHeader

{

background-color:#CECECE;

color:#000080;

font-family:Tahoma;

font-size:10pt;

font-weight:Bold;

cursor:hand;

cursor:pointer;

}

.NavMenuGroupHeaderOpen

{

background-color:#639CCE;

color:#ffffff;

font-family:Tahoma;

font-size:10pt;

font-weight:Bold;

cursor:hand;

cursor:pointer;

}

.NavMenuGroupHeaderSelect

{

background-color:#639CCE;

color:#ffffff;

font-family:Tahoma;

font-size:10pt;

font-weight:Bold;

cursor:hand;

cursor:pointer;

}

.NavMenuDisabledGroupHeader

{

background-color:#639CCE;

color:#dddddd;

font-family:Tahoma;

font-size:10pt;

font-weight:Bold;

cursor:default;

}

.NavMenuGroup

{

border-style:solid;

border-width:1px;

border-color:#639CCE;

background-color:#f5f5f5;

}

.NavMenuDisabledItem

{

color:#a9a9a9;

font-family:Tahoma;

font-size:8pt;

margin-top:5px;

padding-left:5px;

cursor:default;

}

.NavMenuItem

{

color:DarkBlue;

font-family:Tahoma;

font-size:8pt;

text-decoration:Underline;

margin-top:5px;

padding-left:5px;

}

.NavMenuItemOver

{

color:Red;

font-family:Tahoma;

font-size:8pt;

text-decoration:Underline;

margin-top:5px;

padding-left:5px;

cursor:pointer;

cursor:hand;

}

.NavMenuItemSelect

{

color:DarkBlue;

font-family:Tahoma;

font-size:8pt;

font-weight:Bold;

margin-top:5px;

padding-left:5px;

}

.NavMenuItemTitle

{

color:Black;

font-family:Tahoma;

font-size:8pt;

font-weight:Bold;

margin-top:5px;

padding-left:4px;

}


  
  12 Apr 2005, 5:31 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Javascript error
Your CSS file seems fine. When exactly are you getting that JavaScript error, when the page is loaded, or when you click on something? You also mentioned that you generate the XML dynamically. Can you make sure your code generates the above XML when you get this JavaScript error too or is it generating some other XML string that causes the problem?
  
  13 Apr 2005, 8:00 PM
cmn is not online. Last active: 4/13/2005 8:00:52 PM cmn

Top 10 Posts
Joined on 04-07-2005
Posts 5
Re: Javascript error
It happens when the page is loaded, and when you move the mouse over one of the menu items. If you disable javascript errors, clicking the menu items navigates to the page, but the mouse doesn't change to a hand, and clicking the up or down arrows doesn't close/open the individual panels
  
  14 Apr 2005, 10:32 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Javascript error
Could you email us your sample files (ASPX, XML and CSS) so that we could try it in our test environment.
  
 Page 1 of 1 (10 items)
Karamasoft Support Forums » General Discussions » UltimatePanel » Re: Javascript error

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2021 Karamasoft LLC. All rights reserved.