Click here to Skip to main content
15,888,610 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
OriginalGriff31-May-17 22:48
mveOriginalGriff31-May-17 22:48 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
OriginalGriff31-May-17 22:48
mveOriginalGriff31-May-17 22:48 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
Richard Deeming31-May-17 8:24
mveRichard Deeming31-May-17 8:24 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
Richard MacCutchan31-May-17 22:35
mveRichard MacCutchan31-May-17 22:35 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
OriginalGriff31-May-17 22:49
mveOriginalGriff31-May-17 22:49 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
Richard MacCutchan1-Jun-17 1:01
mveRichard MacCutchan1-Jun-17 1:01 
GeneralRe: IT developer for a bank needs opinions about my Javascript for online banking OTP Pin
OriginalGriff1-Jun-17 1:16
mveOriginalGriff1-Jun-17 1:16 
QuestionExport canvas.js chart to pdf and excel Pin
prog.sidra30-May-17 7:51
prog.sidra30-May-17 7:51 
<script src="js/canvasjs.min.js"></script>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <div class="panel-title-box">
                        <h3>Login Statistics</h3>
                        <%--<span>Visitors (last month)</span>--%>
                    </div>
                    <ul class="panel-controls" style="margin-top: 2px;">
                        <li><a href="#" class="panel-fullscreen"></a></li>
                        <li><a href="#" class="panel-refresh"></a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"></a>                                        
                            <ul class="dropdown-menu">
                                <li><a href="#" class="panel-collapse"> Collapse</a></li>
                                <li><a href="#" class="panel-remove"> Remove</a></li>
                            </ul>                                        
                        </li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"></a>                                        
                            <ul class="dropdown-menu" id="changeGraph">
                                <li id="line"><a href="#">Line Graph</a></li>
                                <li id="pie"><a href="#" >Pie Chart</a></li>
                            </ul>                                        
                        </li>                                        
                    </ul>
                </div>
                

                <script type="text/javascript">
                    var myLink = document.getElementById('changeGraph');
                    $("#changeGraph li").click(function(){
                        var ids=this.id;

                        var loginChartType= this.id;
                        var loginToday = 9;
                            var loginWeek = 20;
                        var loginMonth = 30;
                        chartScriptFunc(loginChartType);
                    }
                    );
            </script>

                <script>
                     function chartScriptFunc(loginChartType) {
                   // window.onload = function () {
                        var chart = new CanvasJS.Chart("divLoginStats", {
                            title: {
                                text: "Login Statistics"
                            },
                            data: [
                            {
                                // Change type to "doughnut", "line", "splineArea", etc.
                                type: loginChartType,height:600,width:150,
                                dataPoints: [
                                   { label: "Today", y: 9 },
                                { label: "This Week", y: 20 },
                                { label: "This Month", y: 8 }
                                ]
                            }
                            ]
                        });
                        chart.render();

                    };
                </script>
                  <div class="panel-body padding-0">
                    <div id="divLoginStats" style="height: 200px; width: 100%;">

                    </div>
                      <script>
                          var canvas = $("#divLoginStats .canvasjs-chart-canvas").get(0);
                          var dataURL = canvas.toDataURL();
                          $("#exportButton").click(function () {
                              var pdf = new jsPDF();
                              pdf.addImage(dataURL, 'JPEG', 0, 0);
                              pdf.save("download.pdf");
                          });
                      </script>
                      <button id="exportButton" type="button">Export as PDF</button>
                      
                </div>
            </div>

QuestionRe: Export canvas.js chart to pdf and excel Pin
ZurdoDev30-May-17 8:10
professionalZurdoDev30-May-17 8:10 
QuestionJavaScript to Store GridView Text box value before PostBack Pin
VinKot29-May-17 20:27
VinKot29-May-17 20:27 
QuestionRe: JavaScript to Store GridView Text box value before PostBack Pin
ZurdoDev30-May-17 8:23
professionalZurdoDev30-May-17 8:23 
QuestionTrouble working with php generated inventory Pin
hexcypher24-May-17 11:40
hexcypher24-May-17 11:40 
AnswerRe: Trouble working with php generated inventory Pin
ZurdoDev30-May-17 8:15
professionalZurdoDev30-May-17 8:15 
Questionthis.submitForm - Help with Custom Subject Line Pin
Member 1322073224-May-17 9:40
Member 1322073224-May-17 9:40 
AnswerRe: this.submitForm - Help with Custom Subject Line Pin
F-ES Sitecore24-May-17 22:17
professionalF-ES Sitecore24-May-17 22:17 
GeneralRe: this.submitForm - Help with Custom Subject Line Pin
Member 1322073225-May-17 6:02
Member 1322073225-May-17 6:02 
GeneralRe: this.submitForm - Help with Custom Subject Line Pin
F-ES Sitecore25-May-17 6:07
professionalF-ES Sitecore25-May-17 6:07 
GeneralRe: this.submitForm - Help with Custom Subject Line Pin
Member 1322073225-May-17 6:51
Member 1322073225-May-17 6:51 
Questionjson array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
LOKENDRA YADAV23-May-17 1:33
LOKENDRA YADAV23-May-17 1:33 
RantRe: json array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
Richard Deeming23-May-17 1:42
mveRichard Deeming23-May-17 1:42 
GeneralRe: json array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
LOKENDRA YADAV23-May-17 3:59
LOKENDRA YADAV23-May-17 3:59 
RantRe: json array is not getting the value from jsonOBject. i mentioned the line in index.jsp where json value is not getting Pin
Richard Deeming23-May-17 4:12
mveRichard Deeming23-May-17 4:12 
Questionjson object result not showing in jsp?? Pin
LOKENDRA YADAV22-May-17 17:15
LOKENDRA YADAV22-May-17 17:15 
Answeri also tried with this code Pin
LOKENDRA YADAV22-May-17 17:47
LOKENDRA YADAV22-May-17 17:47 
GeneralRe: i also tried with this code Pin
Richard MacCutchan22-May-17 21:57
mveRichard MacCutchan22-May-17 21:57 

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.