That's odd. Open the page in Chrome, right-click, view the source, and
paste it here. I want to see what your ASP.net code is outputting.
On Tuesday, November 5, 2013 5:13:39 AM UTC-5, Missy wrote:
>
> Hi,
>
> Thank you so much for your response.
>
> I cannot seem to find any errors in the console developer window. I have a
> attached a image file, showing the blank client side and blank developer
> console window.
>
> I'll try again and get back to you, if I get something.
>
> I really appreciate your help and time.
>
> On Monday, November 4, 2013 6:28:34 PM UTC, asgallant wrote:
>>
>> Open the page in Chrome and look in the developer's console. You should
>> see one or more error messages there, what are they?
>>
>> On Monday, November 4, 2013 11:47:12 AM UTC-5, Missy wrote:
>>>
>>> Hi asgallant,
>>>
>>> *Thank you so much for reply and help. I apologies for the late
>>> response. I manage to make changes to my code and I added an search filter
>>> on the server-end of the code,*
>>> *but I am still unable to render the charts to display on the client
>>> end. *
>>> *I can not seem to figure out what I am missing out. *
>>> *
>>> *
>>> *default. aspx*
>>> *
>>> *
>>> *
>>> <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master"
>>> AutoEventWireup="true"
>>> CodeFile="Default.aspx.cs" Inherits="_Default" %>
>>>
>>> <asp:Content ID="HeaderContent" runat="server"
>>> ContentPlaceHolderID="HeadContent">
>>>
>>>
>>> <script src="//
>>> ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"
>>> type="text/javascript"></script>
>>> <script type="text/javascript" src="//www.google.com/jsapi
>>> "></script>
>>> <script type="text/javascript">
>>> google.load('visualization', '1', { packages: ['corechart'] });
>>> </script>
>>> <script type="text/javascript">
>>> /*$(document).ready(function ()*/
>>> $('#Button1').click(function () {
>>> $.ajax({
>>> type: 'POST',
>>> dataType: 'json',
>>> contentType: 'application/json',
>>> url: 'Default.aspx/GetData',
>>> data: "{name:'" + $("#SearchText").val() + "'}",
>>> success:
>>> function (response) {
>>> drawVisualization(response.d);
>>> }
>>>
>>> });
>>> return false;
>>>
>>> })
>>>
>>> function drawVisualization(dataValues) {
>>> var data = new google.visualization.DataTable();
>>> data.addColumn('string', 'Column Date');
>>> data.addColumn('number', 'Column Value');
>>>
>>> for (var i = 0; i < dataValues.length; i++) {
>>> data.addRow([dataValues[i].Date, dataValues[i].Value]);
>>> }
>>>
>>> new
>>> google.visualization.LineChart(document.getElementById('visualization')).
>>> draw(data, { title: "" });
>>> }
>>>
>>>
>>> </script>
>>>
>>> </asp:Content>
>>> <asp:Content ID="BodyContent" runat="server"
>>> ContentPlaceHolderID="MainContent">
>>> <h2>
>>> Visual Search Testing with 'iFrame
>>> </h2>
>>>
>>>
>>> <asp:Label ID="Label1" runat="server" Text="Name/Ids"></asp:Label>
>>> <asp:TextBox ID="SearchText" runat="server"
>>> ClientIDMode="Static"></asp:TextBox>
>>> <asp:Button ID="Button1" runat="server" Text="Search"
>>> onclick="Button1_Click" ClientIDMode="Static" />
>>>
>>> <div id="visualization" style="width: 600px; height: 400px;"
>>> runat="server"></div>
>>>
>>>
>>> </asp:Content>
>>>
>>>
>>> default.cs
>>>
>>> using System;
>>> using System.Collections;
>>> using System.Configuration;
>>> using System.Data;
>>> using System.Linq;
>>> using System.Web;
>>> using System.Web.Security;
>>> using System.Web.UI;
>>> using System.Data.SqlClient;
>>> using System.Text;
>>> using System.Collections.Generic;
>>> using System.Web.Services;
>>>
>>>
>>> public partial class _Default : System.Web.UI.Page
>>>
>>>
>>> //public partial class _Default : Data
>>> {
>>> protected void Page_Load(object sender, EventArgs e)
>>> {
>>>
>>> }
>>>
>>> [WebMethod]
>>> public static List<Data> GetData(string name)
>>> {
>>> List<Data> dataList = new List<Data>();
>>>
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 77, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 0, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 78, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 82, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 425, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 79, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 80, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 57, "Oct"));
>>> dataList.Add(new Data("CLAVS 2007-1 M2A", 77, "Oct"));
>>> dataList.Add(new Data("ACCDO 11A B", 2, "Sept"));
>>> dataList.Add(new Data("ACCDO 11A B", 2, "Sept"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 96.89, "Sept"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 95, "Sept"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 95, "Sept"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 96, "Oct"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 97, "Sept"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 95, "Oct"));
>>> dataList.Add(new Data("AELIS 2013-IRAR C", 85, "Sept"));
>>>
>>> return dataList.FindAll(r => r.ColumnName.Contains(name));
>>>
>>>
>>>
>>>
>>> //return dataList;
>>> }
>>>
>>>
>>>
>>> protected void Button1_Click(object sender, EventArgs e)
>>> {
>>>
>>>
>>> }
>>> }
>>>
>>> *
>>> *
>>> *
>>> *So, any help or guidance would be very much appreciated. *
>>> *
>>> *
>>> *Many thanks. *
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.