NetTalk Central

Author Topic: Embedding dynamic image file on web page  (Read 3665 times)

mtabakin

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Embedding dynamic image file on web page
« on: March 19, 2013, 08:14:20 PM »
I have a NTWS application that has a login screen. After successful login the user is taken to a "welcome" page that is just a static html page plus a menu. I want to embed a jpg file on this page that the client can change with various "messages" to the end user of the site. I've tried using <!-- Net:f:FileName --> and even
<pre>
<!-- Net:f:mytext.txt -->
</pre>
But nothing is displayed. How do I embed the myfile.jpg onto a web page and where to I place the code to do it?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11300
    • View Profile
Re: Embedding dynamic image file on web page
« Reply #1 on: March 19, 2013, 11:10:08 PM »
<img src="whatever.jpg" height="something" width="something" />

ie, it's not a net: tag at all - it's simple html.

it _might_ be better to use

<!-- Net:f:something.htm -->

then they can edit the something.htm file (including adding an image as above) but they can also add text, links, and things like that. So this would be a lot more flexible for them. This is the approach I've used in cases like this.)

Cheers
Bruce
« Last Edit: March 19, 2013, 11:12:43 PM by Bruce »

mtabakin

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Embedding dynamic image file on web page
« Reply #2 on: March 20, 2013, 09:03:34 AM »
Thanks Bruce. doesn't pay to over think a problem!