Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Div inside another div not sizing correctly in the user control

Div inside another div not sizing correctly in the user control

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gottimukkala
    wrote on last edited by
    #1

    Hi, I have an aspx page that contains a control1, which contains another control (I call it, control2). My control2 contains a div (chartdiv) inside other div (chart). My chartdiv displays a graphic (everything done by Javascript) and onclick of the graphic I want to display other page. For that I put my graphic div (which is, chartdiv) inside other div (which is, chart) that allows to me click and open a new page. But my chart is always aligned to right and its not 100% correctly sized. Here is my code that I was refering: control2 code:

    The chart will appear within this DIV. This text will be replaced by the chart.

    code behind code: string IframeSrc = _urlHelper.HandleRootOperator("~/frm_statistic.aspx") + "?pubId=" + _pubId; chart.Attributes.Add("onclick", "callLinksPage('" + IframeSrc + "','" + "Detailed Statistics for:"+this.State.PublicationTitle + "','760','570');"); Can anyone tell me can't I click my grpahic and open a new page? Is my code works ? or Is there other way to do this. Thanks.

    T 1 Reply Last reply
    0
    • G gottimukkala

      Hi, I have an aspx page that contains a control1, which contains another control (I call it, control2). My control2 contains a div (chartdiv) inside other div (chart). My chartdiv displays a graphic (everything done by Javascript) and onclick of the graphic I want to display other page. For that I put my graphic div (which is, chartdiv) inside other div (which is, chart) that allows to me click and open a new page. But my chart is always aligned to right and its not 100% correctly sized. Here is my code that I was refering: control2 code:

      The chart will appear within this DIV. This text will be replaced by the chart.

      code behind code: string IframeSrc = _urlHelper.HandleRootOperator("~/frm_statistic.aspx") + "?pubId=" + _pubId; chart.Attributes.Add("onclick", "callLinksPage('" + IframeSrc + "','" + "Detailed Statistics for:"+this.State.PublicationTitle + "','760','570');"); Can anyone tell me can't I click my grpahic and open a new page? Is my code works ? or Is there other way to do this. Thanks.

      T Offline
      T Offline
      Taurian110
      wrote on last edited by
      #2

      It will be helpfull if you right click ur page and copy and paste the HTML so we can see how the page is being rendered.

      G 2 Replies Last reply
      0
      • T Taurian110

        It will be helpfull if you right click ur page and copy and paste the HTML so we can see how the page is being rendered.

        G Offline
        G Offline
        gottimukkala
        wrote on last edited by
        #3

        **

        Complete Traffic Statistic

        function LoadChart() { //alert(DataLink) var myChart = new FusionCharts(ChartLink, "myChartId", "198", "135", "0", "0"); myChart.setDataURL(escape(DataLink)); myChart.render("chartdiv"); } function getTimeForURL() { var dt = new Date(); var strOutput = ""; strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds(); return strOutput; }

        The chart will appear within this DIV. This text will be replaced by the chart.

        LoadChart()

        **

        T 1 Reply Last reply
        0
        • G gottimukkala

          **

          Complete Traffic Statistic

          function LoadChart() { //alert(DataLink) var myChart = new FusionCharts(ChartLink, "myChartId", "198", "135", "0", "0"); myChart.setDataURL(escape(DataLink)); myChart.render("chartdiv"); } function getTimeForURL() { var dt = new Date(); var strOutput = ""; strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds(); return strOutput; }

          The chart will appear within this DIV. This text will be replaced by the chart.

          LoadChart()

          **

          T Offline
          T Offline
          Taurian110
          wrote on last edited by
          #4

          I dont see the html tags i think its blocked by the editor. When you are posting HTML tags there is an option below the editor "Ignore HTML tags in this message (good for code snippets)" I think if you click that, it will allow you to post the HTML source code. HTH

          1 Reply Last reply
          0
          • T Taurian110

            It will be helpfull if you right click ur page and copy and paste the HTML so we can see how the page is being rendered.

            G Offline
            G Offline
            gottimukkala
            wrote on last edited by
            #5

            ** **Complete Traffic Statistic** function LoadChart() { //alert(DataLink) var myChart = new FusionCharts(ChartLink, "myChartId", "198", "135", "0", "0"); myChart.setDataURL(escape(DataLink)); myChart.render("chartdiv"); } function getTimeForURL() { var dt = new Date(); var strOutput = ""; strOutput = dt.getHours() + "_" + dt.getMinutes() + "_" + dt.getSeconds() + "_" + dt.getMilliseconds(); return strOutput; } The chart will appear within this DIV. This text will be replaced by the chart. LoadChart() **

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups