Click here to Skip to main content
15,886,518 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionAngular/Backbone/Knockout Security Question Pin
AnalogNerd22-Oct-13 3:17
AnalogNerd22-Oct-13 3:17 
Questionusing document.forms["MbrForm"].submit(); does not work - help! Pin
Member 860517720-Oct-13 4:53
Member 860517720-Oct-13 4:53 
QuestionDoubt in AJAX response obj Pin
Member 1013786815-Oct-13 0:19
Member 1013786815-Oct-13 0:19 
AnswerRe: Doubt in AJAX response obj Pin
thatraja15-Oct-13 5:20
professionalthatraja15-Oct-13 5:20 
QuestionScript running multiple times Pin
AnalogNerd10-Oct-13 10:49
AnalogNerd10-Oct-13 10:49 
AnswerRe: Script running multiple times Pin
DaveAuld13-Oct-13 21:38
professionalDaveAuld13-Oct-13 21:38 
AnswerRe: Script running multiple times Pin
Abhinav S13-Oct-13 23:48
Abhinav S13-Oct-13 23:48 
QuestionJS/JSON 'Desktop Notifications' Pin
Member 103209557-Oct-13 7:02
Member 103209557-Oct-13 7:02 
I am no coding expert in any way, but I have coded a neat little thing to tell if a Node is up/down, I use some PHP script and chuck it into a table (It can be seen below, and yes , I know it is probably very messy, but I am new to this). I am now looking to add desktop notifications to tell the user when a Node pings back as down, and I understand that I will need to use JSON for this? But that is what I am stuck on. Do bear in mind that I already have a permissions code to ask for permissions to Enable Notifications :) www.samaustin.nn.pe/nitrostatus.php


XML
<?php

$connection = @fsockopen("IPHere", "PortHere", $errno, $errstr, "2");

if(!$connection) {
echo '<tr class="danger">
        <td>1</td>
        <td><i class="icon-remove-circle"></i>  Node Down! We are working on this!</td>

      </tr>';
} else {
    echo '<tr class="success">
        <td>1</td>
        <td><i class="icon-ok-circle"></i>  Node Up!</td>

      </tr>';
}


?>

Questiondropdown check for same values Pin
01karan6-Oct-13 22:05
01karan6-Oct-13 22:05 
AnswerRe: dropdown check for same values Pin
DaveAuld13-Oct-13 21:46
professionalDaveAuld13-Oct-13 21:46 
AnswerRe: dropdown check for same values Pin
Abhinav S13-Oct-13 23:50
Abhinav S13-Oct-13 23:50 
GeneralRe: dropdown check for same values Pin
Sunasara Imdadhusen21-May-14 23:53
professionalSunasara Imdadhusen21-May-14 23:53 
Questionjavascript Date Issue Pin
wasim khan1-Oct-13 2:20
wasim khan1-Oct-13 2:20 
AnswerRe: javascript Date Issue Pin
Kornfeld Eliyahu Peter6-Oct-13 10:43
professionalKornfeld Eliyahu Peter6-Oct-13 10:43 
GeneralRe: javascript Date Issue Pin
Sunasara Imdadhusen21-May-14 23:54
professionalSunasara Imdadhusen21-May-14 23:54 
QuestionJquery datepicker display for multiple forms Pin
Member 1025344226-Sep-13 22:07
Member 1025344226-Sep-13 22:07 
AnswerRe: Jquery datepicker display for multiple forms Pin
AsWorks1-Oct-13 0:40
AsWorks1-Oct-13 0:40 
Questionhow to get first and last date from selected month from dropdown selected value using javascript Pin
Srinivas Uttareshwar19-Sep-13 2:39
Srinivas Uttareshwar19-Sep-13 2:39 
AnswerRe: how to get first and last date from selected month from dropdown selected value using javascript Pin
jkirkerx20-Sep-13 12:47
professionaljkirkerx20-Sep-13 12:47 
QuestionConnecting/saving to ms sql 2005 database and querying the ms sql database Pin
Otekpo Emmanuel16-Sep-13 14:07
Otekpo Emmanuel16-Sep-13 14:07 
AnswerRe: Connecting/saving to ms sql 2005 database and querying the ms sql database Pin
Richard MacCutchan16-Sep-13 21:04
mveRichard MacCutchan16-Sep-13 21:04 
GeneralRe: Connecting/saving to ms sql 2005 database and querying the ms sql database Pin
Otekpo Emmanuel17-Sep-13 0:29
Otekpo Emmanuel17-Sep-13 0:29 
GeneralRe: Connecting/saving to ms sql 2005 database and querying the ms sql database Pin
Richard Deeming17-Sep-13 1:38
mveRichard Deeming17-Sep-13 1:38 
GeneralRe: Connecting/saving to ms sql 2005 database and querying the ms sql database Pin
Richard MacCutchan17-Sep-13 1:57
mveRichard MacCutchan17-Sep-13 1:57 
GeneralRe: Connecting/saving to ms sql 2005 database and querying the ms sql database Pin
Richard Deeming17-Sep-13 4:28
mveRichard Deeming17-Sep-13 4:28 

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.