Subject: | Re: I thought I was finished
| Date: | Thu, 1 Dec 2016 21:32:08 -0500
| From: | Jim Moseley <jim@mapson.triptracker.com>
| Newsgroups: | pnews.paradox-web
|
Joe,
If the PNG is in the base path, then I think you want the img src to be:
<IMG Alt="JCT" src="http://jct.consoftonline.com/jobcosttools.png">
With your server app running, open Internet Explorer or Chrome and put
this in as the URL - what happens? I just tried it and got a bluehost
404 page. This leads me to believe that your app is not waiting on port
80. Is it waiting on a different port? If so, your URL would be:
http://jct.consoftonline.com:999/jobcosttools.png
where '999' is the port number.
In fact, I got your default web page, and it shows a URL of
http://70.57.226.41:11500/
This should really not show your IP address.
Are you using an Apache webserver or IIS? What 'middleware' is between
your modem and the CWS web server app?
When I use this as the URL, I get your PNG:
http://70.57.226.41:11500/jobcosttools.png
HTH,
Jim Moseley
On 12/1/2016 9:20 PM, JI wrote:
> Jim.
> it's http://jct.consoftonline.com
>
> and the base path is C:\cso-jct\theServer\
>
> jobcosttools.png is in that folder
>
> Joe
>
>
>
>
>
> On 12/1/16 3:57 PM, Jim Moseley wrote:
>> JI,
>>
>> When you use '.\mylogo.png' or whatever, it will look in the browser's
>> local directory (somewhere under 'Temporary Internet Files' probably).
>>
>> You have to specify a 'universal' URL - one you could copy/paste into a
>> web browser's URL and have it display your image.
>>
>> If you want any static files served to your users, they should be in the
>> Base Path folder or one of its sub-folders. You can find the Base Path
>> in the CWS OCX:
>> - Switch your app's webserver form to Design mode
>> - Right-click the ocxServer control
>> - Select 'Properties...Corel Web Server Control'.
>> - Then, click on the PAGES tab.
>> - The top field should be Base Path.
>>
>> For example, if your Base Path is C:\mydatafiles\pages, you can have an
>> 'Images' subfolder and refer to:
>>
>> http://mywebapp.com/images/jobwhatever.png
>>
>> which will find the file
>>
>> c:\mydatafiles\pages\images\jobwhatever.png
>>
>> Also, what is the URL that you use to get to your app's original
>> homepage?
>>
>> HTH,
>> Jim Moseley
>>
>> On 12/1/2016 5:40 PM, JI wrote:
>>>
>>> Jim,
>>>
>>> The landing page, index.HTML, is in a folder named C:\AAA-job cost
>>> tools. Index.htm contains a Login button which, when pressed, goes
>>> through a Paradox verification script and generates a Paradox-built main
>>> menu. That is not an html file that resides on disk. It's created on the
>>> fly.
>>>
>>> The jobcosttools.png image is the one I want on the main menu. That .png
>>> image is everywhere on the server.
>>>
>>> In the root (C:\),
>>> In the C:\AAA-job cost tools folder)
>>> In the working directory (:WORK:)
>>>
>>> The snippet I posted was a test using the sample-created code to try to
>>> locate the PNG file.
>>>
>>> I even created an Images submenu for the file with jobcosttools.png in
>>> it.
>>>
>>> I tried it with this statement as you suggested.
>>>
>>> <IMG Alt="JCT"
>>> src="http://jct.consoftonline.com/images/jobcosttools.png">
>>>
>>> It just displays the JCT
>>>
>>>
>>> This issue is no different than the one I posted 3 years ago and had no
>>> success with implementing images in spite of everyone's best advice.
>>>
>>>
>>>
>>> On 12/1/16 2:20 PM, Jim Moseley wrote:
>>>> JI,
>>>>
>>>> Think of this from your user's perspective. They don't have a
>>>> jobcosttools.png file on their computer. You need to fully qualify the
>>>> name, pointing it to some location that is available over the web.
>>>>
>>>> Note that this could be your own webserver. For example, if your home
>>>> webpage is http://mysite.com/index.htm
>>>>
>>>> You could store your png file in a subfolder called 'images' off your
>>>> :WORK: folder. You would then have this as your <img src:
>>>>
>>>> src="http://mysite.com/images/jobcosttools.png"
>>>>
>>>> HTH,
>>>> Jim Moseley
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>> On 12/1/16 2:20 PM, Jim Moseley wrote:
>>>> JI,
>>>>
>>>> Think of this from your user's perspective. They don't have a
>>>> jobcosttools.png file on their computer. You need to fully qualify the
>>>> name, pointing it to some location that is available over the web.
>>>>
>>>> Note that this could be your own webserver. For example, if your home
>>>> webpage is http://mysite.com/index.htm
>>>>
>>>> You could store your png file in a subfolder called 'images' off your
>>>> :WORK: folder. You would then have this as your <img src:
>>>>
>>>> src="http://mysite.com/images/jobcosttools.png"
>>>>
>>>> HTH,
>>>> Jim Moseley
>>>>
>>>> On 12/1/2016 3:21 PM, JI wrote:
>>>>> In a Paradox table, I have this code which generates a Corel Web
>>>>> Server
>>>>> webpage.
>>>>>
>>>>> <!DOCTYPE html >
>>>>>
>>>>> <HEAD>
>>>>> <meta content='text/html; charset=utf-8'
>>>>> http-equiv='Content-Type'>
>>>>>
>>>>> </HEAD>
>>>>>
>>>>> <body>
>>>>>
>>>>>
form tag removed
<!--- form action=AddGlAccount method=post>
>>>>>
>>>>> <img alt="JCT" src="../jobcosttools.png" height='300' width='240'>
>>>>>
>>>>> </form>
<!--- --->
>>>>> </body>
>>>>> </html>
>>>>>
>>>>>
>>>>> Whatever I assign as the source of the image doesn't work.
>>>>> The working directory is assigned as C:\CSO-JCT\theserver. That is
>>>>> also
>>>>> the base path in the Web Server's properties section.
>>>>>
>>>>> The image 'jobcosttools.png' is in the working directory.
>>>>>
>>>>> I've tried...
>>>>>
>>>>> src="/jobcosttools.png"
>>>>>
>>>>> src="..jobcosttools.png"
>>>>>
>>>>> src="\jobcosttools.png"
>>>>>
>>>>> src="../jobcosttools.png"
>>>>>
>>>>> src="..\jobcosttools.png"
>>>>>
>>>>> No luck. I only display "JCT", the alt name, and no image.
>>>>>
>>>>> Help if you can.
>>
>
|