Javascript issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JimmyGiraffe

    #1

    Javascript issue

    I have some javascript written for a dropdown menu that works fine if
    my page is an html page, but if I save it as an aspx page it messes
    up. I'm using an asp grid view control, so I need it to be an asp
    page. The menu still shows, however it doesn't seem to be reading my
    x and y coordinates correctly and just puts the menu in the top left
    of the page. I can post the code if necessary, but I thought/hoped it
    might just be a setting I need to change. Thanks a lot.
  • darrel

    #2
    Re: Javascript issue

    >I have some javascript written for a dropdown menu that works fine if
    my page is an html page, but if I save it as an aspx page it messes
    up. I'm using an asp grid view control, so I need it to be an asp
    page. The menu still shows, however it doesn't seem to be reading my
    x and y coordinates correctly and just puts the menu in the top left
    of the page. I can post the code if necessary, but I thought/hoped it
    might just be a setting I need to change. Thanks a lot.
    Ideally, upload the page and point us at the URL.

    If the issue is menu placement, it's likely a CSS/DOM conflict somewhere.

    -Darrel


    Comment

    • Patrice

      #3
      Re: Javascript issue

      My first guess would be that you don't use the appropriate id values and
      that you actually do"nt find those controls in your client side javascript
      code. Keep in mind that ASP.NET creates the id values. You can get those
      using the ClientID property...

      Hard to say more without seeing more. Also using the debugger should likely
      allow to easily spot the problem...

      --
      Patrice

      "JimmyGiraf fe" <jimstruckster@ gmail.coma écrit dans le message de news:
      fef2225b-2d6f-40c6-8b15-698ab06abdad...l egroups.com...
      >I have some javascript written for a dropdown menu that works fine if
      my page is an html page, but if I save it as an aspx page it messes
      up. I'm using an asp grid view control, so I need it to be an asp
      page. The menu still shows, however it doesn't seem to be reading my
      x and y coordinates correctly and just puts the menu in the top left
      of the page. I can post the code if necessary, but I thought/hoped it
      might just be a setting I need to change. Thanks a lot.

      Comment

      • JimmyGiraffe

        #4
        Re: Javascript issue

        On Feb 7, 11:36 am, "Patrice" <http://www.chez.com/scribe/wrote:
        My first guess would be that you don't use the appropriate id values and
        that you actually do"nt find those controls in your client side javascript
        code. Keep in mind that ASP.NET creates the id values. You can get those
        using the ClientID property...
        >
        Hard to say more without seeing more. Also using the debugger should likely
        allow to easily spot the problem...
        >
        --
        Patrice
        >
        "JimmyGiraf fe" <jimstrucks...@ gmail.coma écrit dans le message de news:
        fef2225b-2d6f-40c6-8b15-698ab06ab...@f4 7g2000hsd.googl egroups.com...
        >
        >
        >
        I have some javascript written for a dropdown menu that works fine if
        my page is an html page, but if I save it as an aspx page it messes
        up.  I'm using an asp grid view control, so I need it to be an asp
        page.  The menu still shows, however it doesn't seem to be reading my
        x and y coordinates correctly and just puts the menu in the top left
        of the page.  I can post the code if necessary, but I thought/hoped it
        might just be a setting I need to change.  Thanks a lot.- Hide quoted text -
        >
        - Show quoted text -
        Here is a link to just the menu. This is an intranet site normally,
        but I posted it to our outside server and got rid of all the content
        except the menu. The sub menus should appear under the link, but as
        you will see it puts it in the top left.

        http://www.fenton100.org/testcss/default.aspx

        Comment

        • JimmyGiraffe

          #5
          Re: Javascript issue

          On Feb 7, 11:59 am, JimmyGiraffe <jimstrucks...@ gmail.comwrote:
          On Feb 7, 11:36 am, "Patrice" <http://www.chez.com/scribe/wrote:
          >
          >
          >
          >
          >
          My first guess would be that you don't use the appropriate id values and
          that you actually do"nt find those controls in your client side javascript
          code. Keep in mind that ASP.NET creates the id values. You can get those
          using the ClientID property...
          >
          Hard to say more without seeing more. Also using the debugger should likely
          allow to easily spot the problem...
          >
          --
          Patrice
          >
          "JimmyGiraf fe" <jimstrucks...@ gmail.coma écrit dans le message de news:
          fef2225b-2d6f-40c6-8b15-698ab06ab...@f4 7g2000hsd.googl egroups.com...
          >
          >I have some javascript written for a dropdown menu that works fine if
          my page is an html page, but if I save it as an aspx page it messes
          up.  I'm using an asp grid view control, so I need it to be an asp
          page.  The menu still shows, however it doesn't seem to be reading my
          x and y coordinates correctly and just puts the menu in the top left
          of the page.  I can post the code if necessary, but I thought/hoped it
          might just be a setting I need to change.  Thanks a lot.- Hide quoted text -
          >
          - Show quoted text -
          >
          Here is a link to just the menu.  This is an intranet site normally,
          but I posted it to our outside server and got rid of all the content
          except the menu.  The sub menus should appear under the link, but as
          you will see it puts it in the top left.
          >
          http://www.fenton100.org/testcss/default.aspx- Hide quoted text -
          >
          - Show quoted text -
          Not too sure what I did, but I found a page that worked and copied the
          code from that one and that fixed it...

          Comment

          Working...