Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,758,627 members, 6,557,464 topics. Date: Tuesday, 26 October 2021 at 04:54 PM

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 (1393 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
[img]http://www./ow_userfiles/plugins/base/25-screen1.png[/img]
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)

Pls Whats The Best Computer Professional Course To Do . ORACLE OR CISCO. / To programmers in Nigeria and in the world, I sincerely need your help. / Need Help With Server-side Script

(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 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 44
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.