Div inside another div not sizing correctly in the user control
-
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.
-
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.
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.
-
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.
**
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()
**
-
**
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()
**
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
-
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.
** **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() **