File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes HTML functions(Urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTML functions(Urgent)" Watch "HTML functions(Urgent)" New topic

HTML functions(Urgent)

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi All,
I have created HTML page in my C language file.I used like following.
char defaultWebPage[] = "<html>\n<title>\nKonica\n</title>\n"
"<body bgcolor=\"#E9F92B\">\n<font size = +2>\n<hr>\n"
"<h2 align=\"center\">function VID(){VID2 = (unsigned long *) (DP_VID + ((2-1)*4));}\n";

I can see following result on browser.
function VID(){VID2 = (unsigned long *) (DP_VID + ((2-1)*4));}
DP_VID is pointer to our shared memory of NIC.My purpose of using this formula to pull out the value directly from Shared memory of NIC card. and display only value on my browser.
How Can I implement function in a way that should calculate value and assign to VID2 and I can only see value of VID2 on my browser.
Thanks in advance,
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
Is this a javascript function that you want to write or is this a C function that you want to be processed and then the answer sent to the browser.
If it is a javascript function, you are missing the <script> tags so that is why you see the function written as it is.
If this is to be processed by C (which I don't know C so I can't be of much help there) then you are enclosing it it quotes so it looks like it treats it as part of the char array.
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi bill,
thanks for your response.
It's C function.
I agree. Here's the link:
subject: HTML functions(Urgent)
It's not a secret anymore!