[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
hosting static content seperately  XML
Forum Index » Development general discussion
Author Message
craig

Initiate

Joined: 06/08/2007 16:50:46
Messages: 144
Offline

Why are some of image tags built using the img,tag and others are 'hard coded'? I can see that some images are part of content returned from javascript functions so maybe they can't use the img.tag.

The reason I ask is that I am hosting static content on a http server that is on a much faster link so I have to modify the img.tag and all of the hard coded image tags. Maybe I will replace all the hard coded image tags with img.tag so I only have to insert the static http server URL in one place?

Also I am using the AOL content delivery network for the javascript files. It seems to work well without firebug enabled but when I have firebug enabled it gives errors.


mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

tag:img is used as a convenience where possible (although it was added after the fact so there may be possible uses where it isn't).

I guess the right thing to do would be to add the static content prefix as an application context value (set in a property file) that would be inserted into URLs as necessary. This could be done for the audio, images, and resources directories. There are probably 500-600 code modifications to make.

Best regards,
Matthew Lohbihler
 
Forum Index » Development general discussion
Go to:   
Powered by JForum 2.1.9 © JForum Team