Click here to Skip to main content
15,914,409 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: watermark val coming in IE11 Pin
Kornfeld Eliyahu Peter25-Feb-14 6:10
professionalKornfeld Eliyahu Peter25-Feb-14 6:10 
GeneralRe: watermark val coming in IE11 Pin
nitin_ion25-Feb-14 15:48
nitin_ion25-Feb-14 15:48 
QuestionObfuscated script (likely malware) Pin
Bernhard Hiller23-Feb-14 4:41
Bernhard Hiller23-Feb-14 4:41 
AnswerRe: Obfuscated script (likely malware) Pin
Kornfeld Eliyahu Peter24-Feb-14 4:12
professionalKornfeld Eliyahu Peter24-Feb-14 4:12 
GeneralRe: Obfuscated script (likely malware) Pin
Bernhard Hiller24-Feb-14 20:34
Bernhard Hiller24-Feb-14 20:34 
GeneralRe: Obfuscated script (likely malware) Pin
Nicholas Marty25-Feb-14 4:17
professionalNicholas Marty25-Feb-14 4:17 
GeneralRe: Obfuscated script (likely malware) Pin
Bernhard Hiller25-Feb-14 20:51
Bernhard Hiller25-Feb-14 20:51 
AnswerRe: Obfuscated script (likely malware) Pin
DragonHeart33525-Feb-14 1:07
DragonHeart33525-Feb-14 1:07 
QuestionRe: Obfuscated script (likely malware) Pin
Kornfeld Eliyahu Peter25-Feb-14 2:13
professionalKornfeld Eliyahu Peter25-Feb-14 2:13 
AnswerRe: Obfuscated script (likely malware) Pin
DragonHeart33525-Feb-14 3:27
DragonHeart33525-Feb-14 3:27 
AnswerRe: Obfuscated script (likely malware) Pin
Kornfeld Eliyahu Peter25-Feb-14 3:30
professionalKornfeld Eliyahu Peter25-Feb-14 3:30 
GeneralRe: Obfuscated script (likely malware) Pin
DragonHeart33525-Feb-14 3:56
DragonHeart33525-Feb-14 3:56 
GeneralRe: Obfuscated script (likely malware) Pin
jkirkerx1-Mar-14 18:00
professionaljkirkerx1-Mar-14 18:00 
GeneralRe: Obfuscated script (likely malware) Pin
Bernhard Hiller2-Mar-14 20:15
Bernhard Hiller2-Mar-14 20:15 
QuestionStore form page in csv format Pin
abmanish7122-Feb-14 2:30
abmanish7122-Feb-14 2:30 
AnswerRe: Store form page in csv format Pin
Abhishek_RK2-Mar-14 20:51
Abhishek_RK2-Mar-14 20:51 
QuestionGoogle Chart error Pin
miss78620-Feb-14 6:13
miss78620-Feb-14 6:13 
AnswerRe: Google Chart error Pin
Richard Deeming20-Feb-14 8:36
mveRichard Deeming20-Feb-14 8:36 
GeneralRe: Google Chart error Pin
miss78624-Feb-14 6:15
miss78624-Feb-14 6:15 
GeneralRe: Google Chart error Pin
Richard Deeming24-Feb-14 8:47
mveRichard Deeming24-Feb-14 8:47 
GeneralRe: Google Chart error Pin
miss78628-Feb-14 0:39
miss78628-Feb-14 0:39 
Dear Richard,

Thank you so much for your help with the prior issue and using your advice, I manage to show couple of charts functionality on the client-side. Thank you. =D

I am trying to add date field to data and get the line chart to read datetime type variables. However I am currently experiencing - Uncaught Error: Invalid type: dateTime -- error, when i debug the code using inspect browser.

It maybe my declaration for the date parameter is incorrect? if so, is their another type i should be using or would it be advice able to convert the datetime field to string?

C#
public class test
{
    public string ColumnName = "";
    public float Value = 0;
    public string Type = "";
    public DateTime Date = DateTime.Now;

    public test(string columnName, float value, string type, DateTime date)
    {
        ColumnName = columnName;
        Value = value;
        Type = type;
        Date = date;
    }


[web method]
C#
    var yesterday = DateTime.Today.AddDays(-1);
    string cmdstr = "select top 500 Name, [Decimal price],Cover, UploadDate from [dbo].[database]";
    SqlCommand cmd = new SqlCommand(cmdstr, conn);
    SqlDataAdapter adp = new SqlDataAdapter(cmd);
    adp.Fill(ds);
    dt = ds.Tables[0];
    List<test> dataList = new List<test>();
    string cat = "";
    float val = 0;
    string typ = "";
    DateTime dat = DateTime.Now;

    //dat.ToString("ddmmYYYY", System.Globalization.CultureInfo.InvariantCulture);

    foreach (DataRow dr in dt.Rows)
    {
        try
        {
            cat = dr[0].ToString();

            val = Convert.ToInt32(dr[1]);

            typ = dr[2].ToString();

            dat = (DateTime)dr[3];

        }
        catch
        {
        }
        dataList.Add(new test(cat, val, typ, dat));
    }
    return dataList;
}


Many thanks for your support and time.
GeneralRe: Google Chart error Pin
Richard Deeming28-Feb-14 1:11
mveRichard Deeming28-Feb-14 1:11 
GeneralRe: Google Chart error Pin
miss7867-Mar-14 3:52
miss7867-Mar-14 3:52 
Questiondatetime can't be change other format? Pin
pkarthionline17-Feb-14 2:11
pkarthionline17-Feb-14 2:11 
SuggestionRe: datetime can't be change other format? Pin
Richard MacCutchan17-Feb-14 2:43
mveRichard MacCutchan17-Feb-14 2:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.