NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: mtabakin on March 19, 2013, 08:14:20 PM

Title: Embedding dynamic image file on web page
Post by: mtabakin 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?
Title: Re: Embedding dynamic image file on web page
Post by: Bruce 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
Title: Re: Embedding dynamic image file on web page
Post by: mtabakin on March 20, 2013, 09:03:34 AM
Thanks Bruce. doesn't pay to over think a problem!