473,807 Members | 2,856 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DHTML and C communication

10 New Member
Hi All,

I am a newbie to DHTML.

Is there any way to communicate from C to DHTML and vice-versa?. Like Swig which will communicate from C to PHP and vice-versa.

Awaiting for the replies.

Regards,
Malar
Nov 25 '09 #1
17 4178
Dormilich
8,658 Recognized Expert Moderator Expert
I don’t know what you need that for, but I think you would have to make an AJAX call to a script, where you can run C in.
Nov 25 '09 #2
MalarN
10 New Member
Hi Dormilich,

I am using a web server where the DHTML pages will be placed and on demand the pages will be rendered dynamically. The functionality is coded in C. I want to communicate the result from the C to the DHTML pages.

Is it possible with ajax call ???

Regards,
Malar
Nov 25 '09 #3
Dormilich
8,658 Recognized Expert Moderator Expert
@MalarN
could you explain that a little more? if it only is server to client communication, the matter could simplify a lot.
Nov 25 '09 #4
MalarN
10 New Member
Hi Dormilich,

I have to place my DHTML pages and the C code in the embedded linux. When ever a request is made from the client, C code will get the necessary details and have to give the details to the DHTML pages.

Also the details from the client i.e., from the DHTML pages have to reach the C code and necessary changes have to happen.

Regards,
Malar
Nov 25 '09 #5
drhowarddrfine
7,435 Recognized Expert Expert
I'm not sure what you mean by dhtml pages having to reach the c code except, perhaps, you mean you need to interface some language like php or python to some c code elsewhere. Most scripting languages like those have a c interface but you'd have to look at the documentation for your language.

If, otoh, you are trying to create dynamic (dhtml) web pages using C then, yes, I do it all the time.
Nov 25 '09 #6
Dheeraj Joshi
1,123 Recognized Expert Top Contributor
What MalarN wants is, the Target device is some embedded device running on Wind river OS. The device functionality is written in C. Now they want to provide the web interface for that device. So they were hoping to do that using PHP. But to serve the pages PHP(Parser) need to be in that device along with some web server, to achieve this cross compiling the PHP source is necessary, So to avoid it they are thinking of achieving it using dynamic HTML....

@drhowarddrfine
Interesting.... How you do that...I want to learn.....?

Regards
Dheeraj Joshi
Nov 25 '09 #7
drhowarddrfine
7,435 Recognized Expert Expert
Dynamic HTML means the page are created on the fly as they are being served so some programming language will be required no matter what. As far as servers go, you wouldn't need Apache but he could use something lighter like lighttpd or even lighter ones like thttpd and others.

Or avoid server software altogether and program straight to sockets.

Creating web pages using C is not significantly different than any other language. The compiled executable is placed in the bin directory of the server and it gets called like any scripted program. I've even done it in assembly before.
Nov 25 '09 #8
Frinavale
9,735 Recognized Expert Moderator Expert
Thanks Doc :)

I was thinking about a hypothetical device that would service webpages that report the status of the device (along with other self diagnostics details) and also lets users change the status of the device (and do some other basic, low-level functions)....p retty much develop a "thin-client" for the device.

I was curious to see what types of embedded HTTP servers were out there to help with the task.

Although I'm not sure if this is going to be the best approach for my system requirements... I'm going to look into your recommendations .

-Frinny
Nov 25 '09 #9
drhowarddrfine
7,435 Recognized Expert Expert
Then you'll love this.
Nov 26 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1646
by: Frances Del Rio | last post by:
please, can you go to http://www.francesdelrio.com/dhtml/ when you click the name of the character the font color for all the lines of that character should change.. this is a simple DHTML memo... but I find that none of the JS or DHTML code is working at all on page... if I download page and view it locally the JS & DHTML code work fine, I don't understand this.. I'm very anxious b/c I just submitted this page as a demo for a...
5
6276
by: sonic_soul | last post by:
Hello, I am finishing up creating a fairly complex page that is very rich in DHTML. In addition to updating it self every couple of seconds, various components on it support sync and async communication with various web services. The problem is that if a user tries to click on any JS driven content before the page is fully loaded, it will not work properly since it relies on many onLoad scripts that initiate webservices etc.
2
2002
by: mr_burns | last post by:
hi there, i would like a book that will explain concepts of javascript and dhtml instead of, for example, ten tutorials on how to do specific things in js or dhtml. ideally a book thats can explain from the basics of javascript, to more complex things such as dhtml and dom onto things like creating javascript objects (if that is possible, but u get the idea). rather than this is how you make a drop down menu tutorial; this is how you
1
1745
by: Steve | last post by:
Hi; I have heard about a few very good books on DHTML, but the most modern ones seem to have been published in 2002. Have any _significant_ changes in DHTML or the standard DOM happened since then or will those "best of the dhtml books" still do the job? If not, is there a place on the web that documents DHTML, well, in its latest greatest form?
2
7324
by: | last post by:
Hello All, Could some one send me information on DHTML tutorials where I can leand the differences between html and dhtml. Thanks, ------------------------------------------------------------------------ IT Interview Questions : http://www.geekinterview.com <br> Tutorials and Articles : http://www.geekarticles.com <br> Free Training : http://www.exforsys.com
3
43236
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically receive one of these IBM.Data.DB2.DB2Exception messages: ERROR SQL30081N A communication error has been detected. Communication protocol being used: ‘TCP/IP'. Communication API being used: ‘SOCKETS'. Location where the error was detected:...
9
5323
by: ninhovid | last post by:
Hi... i'm new at dhtml, and i want to use it in help windows (instead of window.open() of javascript)... i'm done it... but it works only in internet explorer.. in firefox 2 and 3 it opens the dhtml modal window but in the background of my main page... what do i have to correct so it opens up in front as it does in internet explorer? i'm using c# and ajax... it's an asp.net app... in masterpage i have this: <link rel="stylesheet"...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5547
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.