Click here to Skip to main content
15,915,160 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: MCTS Certification Pin
The Man from U.N.C.L.E.17-May-10 7:34
The Man from U.N.C.L.E.17-May-10 7:34 
Question">" problems in PHP statement Pin
SNArruda15-May-10 6:06
SNArruda15-May-10 6:06 
Questionwebsite ads Pin
mnemonic6913-May-10 10:17
mnemonic6913-May-10 10:17 
AnswerRe: website ads Pin
T M Gray19-May-10 12:04
T M Gray19-May-10 12:04 
QuestionReading a client-side INI into javascript Pin
bill bradley11-May-10 16:45
bill bradley11-May-10 16:45 
AnswerRe: Reading a client-side INI into javascript Pin
enhzflep11-May-10 18:05
enhzflep11-May-10 18:05 
Questionworking with weather.com free html applet Pin
bill bradley11-May-10 16:41
bill bradley11-May-10 16:41 
QuestionClient-Side Start-Up Script Pin
bill bradley11-May-10 16:36
bill bradley11-May-10 16:36 
Writing a controlled program which, in turn, calls a client located HTML page which feeds additional content to the program.

I modified a function that checks internet status when the client-side html page (main.html) is accessed:

/* window.onload = checkOnline();*/

var netStatus=""

function checkOnline() {

if (navigator.onLine) {
netStatus = document.createTextNode("Internet is UP");
}
else {
netStatus = document.createTextNode("Internet is DOWN");
}

netstatusSpan = document.getElementById("mynetstatus");
netstatusSpan.replaceChild(netStatus, netstatusSpan.firstChild);

setTimeout("checkOnline()", 3000);
}


The script is intended to check there is an active internet connection.

If there is, it calls the hosted web page.

If there is not, it calls html content (either within the same Main.html or a second client-side html) that displays reduced content and the message that the internet is off-line. In addition, this client-side html continues to periodically test for internet connectivity every xxx seconds. When internets test positive, it launches the hosted html page.

What I am having difficulty with is the syntax to do this. (My example above simply displays a message)

I think I am trying to do a windows.open(http...) command in an If ELSE structure.

How to I issue the command to open the client-side html page when the internet is off-line. Complicating matters is I need to read a Windows system var which will have the path where the html file is located.

Thank you in advance for your assistance.
QuestionFREE php jquery forms with recaptcha Pin
Yoingco11-May-10 11:42
Yoingco11-May-10 11:42 
QuestionWebsite not granting access to its files Pin
fjparisIII9-May-10 14:52
fjparisIII9-May-10 14:52 
AnswerRe: Website not granting access to its files Pin
Peace ON9-May-10 21:03
Peace ON9-May-10 21:03 
GeneralRe: Website not granting access to its files Pin
fjparisIII10-May-10 3:46
fjparisIII10-May-10 3:46 
GeneralRe: Website not granting access to its files SOLVED Pin
fjparisIII10-May-10 15:33
fjparisIII10-May-10 15:33 
QuestionMoving website from 32-bit to 64-bit Pin
Gregory Gadow7-May-10 6:34
Gregory Gadow7-May-10 6:34 
AnswerRe: Moving website from 32-bit to 64-bit Pin
Peace ON7-May-10 21:28
Peace ON7-May-10 21:28 
GeneralRe: Moving website from 32-bit to 64-bit Pin
Gregory Gadow10-May-10 4:16
Gregory Gadow10-May-10 4:16 
QuestionImplementing multiple checkboxes with their own actions Pin
calivw787-May-10 4:48
calivw787-May-10 4:48 
AnswerRe: Implementing multiple checkboxes with their own actions Pin
Not Active7-May-10 5:01
mentorNot Active7-May-10 5:01 
GeneralRe: Implementing multiple checkboxes with their own actions Pin
calivw787-May-10 5:13
calivw787-May-10 5:13 
GeneralRe: Implementing multiple checkboxes with their own actions Pin
Not Active7-May-10 6:57
mentorNot Active7-May-10 6:57 
Questiononly default controller is loading for all request - Critical Pin
Jayapal Chandran5-May-10 21:39
Jayapal Chandran5-May-10 21:39 
AnswerRe: only default controller is loading for all request - Critical Pin
User 17164925-May-10 22:04
professionalUser 17164925-May-10 22:04 
GeneralRe: only default controller is loading for all request - Critical Pin
Jayapal Chandran6-May-10 23:31
Jayapal Chandran6-May-10 23:31 
GeneralRe: only default controller is loading for all request - Critical Pin
User 17164927-May-10 7:48
professionalUser 17164927-May-10 7:48 
QuestionHow do I develop on Microsoft Dynamics CRM 4.0 without working on the server? Pin
Nada Adel5-May-10 2:46
Nada Adel5-May-10 2:46 

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.