• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML functions(Urgent)

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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";
"</h2>\n<hr>\n</f>\n</html>\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,
Angela
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Bill
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi bill,
thanks for your response.
It's C function.
Thanks,
angela
 
money grubbing section goes here:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic