Help Desk Software & Beyond
May 22, 2012, 12:59:50 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: [INFO] Need Help with stylesheets for new tickets page  (Read 4157 times)
ati
Newbie
*

Karma: 0
Posts: 25


View Profile
« Reply #15 on: January 07, 2009, 06:47:52 PM »

What happens when you insert the absolute paths?

src="/cgi-bin/tkt/images/header.png"

It still fails to locate the images even with the absolute paths. What's weired though is that when I right-click on the "x"ed image icon (the browser's icon to show a broken link to a file path) and choose "copy image location" just out of curiosity when I paste that in a txt editor I get the following:

When using my original reference <src="/images/header.png"> I get this http://www.mywebsite/cgi-bin/tkt/images/header.png

But when I use absolute path as you mentioned <src="/cgi-bin/tkt/images/header.png"> I get this http://www.mywebsite/cgi-bin
/tkt/cgi-bin/tkt/images/header.png

The first link should have worked but it didn't. The second link is incorrect but I am not sure why it's duplicating the "/cgi-bin/tkt" part.
Very odd indeed!
« Last Edit: January 07, 2009, 06:56:02 PM by ati » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #16 on: January 07, 2009, 06:53:35 PM »

"copy image location" just out of curiosity when I paste that in a txt editor I get the following:

When using my original reference <src="/images/header.png"> I get this http://www.mywebsite/cgi-bin/tkt/images/header.png

But when I use absolute path as you mentioned <src="/cgi-bin/tkt/images/header.png"> I get this http://www.mywebsite/cgi-bin/tkt/cgi-bin/tkt/images/header.png

Very odd indeed!

You do realize those two links you posted contain invalid domain names.  I have no idea what you're trying to show me.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #17 on: January 07, 2009, 06:57:09 PM »

Very odd indeed!

Not odd.  That's how browsers handle all links... the domain name is added and you can see the full path.

If you're image links are still broken then you're not allowed to do what you're trying to do.  Are you allowed to run CGI scripts outside the cgi directory?  If so, I'd put all TTX stuff in one place.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #18 on: January 07, 2009, 07:03:24 PM »

This is getting confusing... don't edit your posting AFTER I've already responded to it... how could anyone follow a conversation that way?

If the correct URL back to the image, when loaded in a browser, is still showing a broken link, then you need to correct something wrong on your server.

Code:
http://www.mywebsite/cgi-bin/tkt/images/header.png

Not allowed to serve up images from the cgi directory I suspect.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
ati
Newbie
*

Karma: 0
Posts: 25


View Profile
« Reply #19 on: January 07, 2009, 07:07:08 PM »

Quote from: Sparky
You do realize those two links you posted contain invalid domain names.  I have no idea what you're trying to show me.

Yes, I am aware of that. The domain name I wrote "mywebsite" is just a dummy txt that I added to illustrate a point. Sorry I didn't put the correct domain because the website is still under construction. My point was that when I follow the link of the broken file path it shows a correct path if I use my original link <src="/images/header.png">  but it shows an incorrect one when I use the absolute path <src="cgi-bin/tkt/images/header.png"> .. in other words this [http://www."mywebsite"/cgi-bin/tkt/images/header.png]  exists and should have shown the image but it didn't.

I'll try to put all the ttx stuff in one place as you suggested.

Thanks again for your help.
Logged
ati
Newbie
*

Karma: 0
Posts: 25


View Profile
« Reply #20 on: January 07, 2009, 07:09:11 PM »

sorry for the late editions .. I didn't expect a fast response which, by the way, I really appreciate!
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #21 on: January 07, 2009, 07:18:06 PM »

Yes, I am aware of that. The domain name I wrote "mywebsite" is just a dummy txt that I added to illustrate a point. Sorry I didn't put the correct domain because the website is still under construction.

I get it now.  Your original posting was unclear.

My point was that when I follow the link of the broken file path it shows a correct path if I use my original link <src="/images/header.png">

That's an absolute path because of the leading "/"  ("absolute", meaning "from the www root")

"www. yourdomain. com"  +  "/images/header.png"

... should end up being "www. yourdomain. com/images/header.png"

If not, check out how the server is setup.

but it shows an incorrect one when I use the absolute path <src="cgi-bin/tkt/images/header.png"> .. in other words this [http://www."mywebsite"/cgi-bin/tkt/images/header.png]  exists and should have shown the image but it didn't.

That is not an absolute path because it does not start with a leading "/"

"www. yourdomain. com" + ? + "cgi-bin/tkt/images/header.png"

... will end up being something else depending on which page it was called.

Since the URL was called from this location:  "/cgi-bin/tkt/ttx.cgi", then the path will not work at all...

"www. yourdomain. com" + "/cgi-bin/tkt/" + "cgi-bin/tkt/images/header.png"

... and there is your balled up URL.

I'll suggest a basic review of absolute vs. relative URL structure and terminology.
« Last Edit: January 07, 2009, 07:23:22 PM by Sparky » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
ati
Newbie
*

Karma: 0
Posts: 25


View Profile
« Reply #22 on: January 07, 2009, 07:36:43 PM »

Yes, you are right about the relative vs absolute paths .. that was part of the problem. The other part turned out as you suspected "Not allowed to serve up images from the cgi directory".

Thanks for all your effort. It's really appreciated.
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #23 on: January 07, 2009, 07:38:27 PM »

Very good... glad you got it all worked out.    Cheesy
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.03 seconds with 18 queries.