Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,608 members, 7,827,292 topics. Date: Tuesday, 14 May 2024 at 10:13 AM

Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server (1537 Views)

Who Needs A Google Developer Account? / Jquery Plugin For Nigeria States And Corresponding Lga / Phpbrowserbox Update - Google Chrome + PHP/MySQL Server In One! (2) (3) (4)

(1) (Reply) (Go Down)

Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nobody: 2:42pm On Jan 19, 2016

What am I looking at?
You are looking at a Google chrome plugin that allows you to send a message from your web server (directly by running a server script or making an ajax call) to your browser by using an HTTP Header.

Features
* Provides real-time messaging from your server to your browser without a server refresh.
* It allows you to debug ajax applications by dumping messages into your browser while debugging.
* It allows you to save the console messages to an HTML as backup

Installation and Usage
Download the plugin from google chrome extensions. Once you have installed the plugin (and it is enabled).

You can open your devtools console and click on “dhtmlconsole”.

Sending Messages
This depends on your server language.

Here is a PHP code snippet for sending a Hello World message to the console.

<?php
header('X-DHTML-CONSOLE-MSG: Hello World');
?>


Display a JAVASCRIPT Alert in the browser
<?php
header('X-DHTML-CONSOLE-MSG: alert:Hello World');
?>


For more, please check here.

1 Like

Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nmeri17: 10:03pm On Jan 19, 2016
omo! baba just dey oppress lipsrsealed
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nobody: 12:51am On Jan 20, 2016
Me keh? i just dey try small small ni o. You know say me i no too sabi like that now?
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by spikesC(m): 5:40pm On Jan 20, 2016
Can you send arbitrary JS codes to be run (just like your alert) or it has its own syntax
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nobody: 7:54pm On Jan 20, 2016
Keep in mind that my console is not limited to PHP - but to any server language that can create http headers (which is like everything).

So in essense, if you create a header called 'X-DHTML-CONSOLE-MSG' and the value is 'alert:Hello World'
then the console will execute alert('Hello World'); instantaneously!
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by spikesC(m): 10:41am On Jan 21, 2016
dhtml18:
Keep in mind that my console is not limited to PHP - but to any server language that can create http headers (which is like everything).

So in essense, if you create a header called 'X-DHTML-CONSOLE-MSG' and the value is 'alert:Hello World'
then the console will execute alert('Hello World'); instantaneously!

Yes, I understand that. My question is, can the value of that header be any javascript code or the plugin executes only the few you select, like the alert
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nobody: 11:06am On Jan 21, 2016
No way, there is no point in making it work like that - it will only display text (and javascript alert).
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nmeri17: 4:13pm On Jan 21, 2016
^^^ undecided undecided
Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by Nobody: 4:14pm On Jan 21, 2016
The code (like all google chrome and mozilla firefox plugins) is open-source, you can always modify it to whatever you want.

(1) (Reply)

Programmers, I Need Your Advice. / Abuja Programmers / Were Best To Learn Mobile App Development

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.