|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Image links broken when space in filenameI have received a web site that I am about to put some active 4D links into
from a web designer - he was displaying the site perfectly on his web site. I have placed the .htm pages and the images folder in the web folder and moved the Active 4D shell into my database Active 4D 402, 4D Server 2004.7, Windows XP, Firefox, Safari and Internet Explorer I can navigate around the site and it all displays except the images that have a space in their filename. If I remove the space from the filename and adjust the image source accordingly then the image displays correctly. What do I have to do to make the images with spaces in the filename display correctly? Thanks in advance. Ian _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Image links broken when space in filename> I can navigate around the site and it all displays except the images
> that > have a space in their filename. If I remove the space from the > filename and > adjust the image source accordingly then the image displays correctly. > > What do I have to do to make the images with spaces in the filename > display > correctly? The HTML specification requires that all embedded URLs be URL encoded. Spaces in image filenames should be converted to %20. And I do hope that the designer actually put double quotes around the img src attribute... And finally, I am now recommending that all static content be put in the "decoy" web folder so it can be served directly (and cached) by 4D's web server. Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Image links broken when space in filenameAparajita,
Thanks for your reply - I have advised the web designer that he should URLs should be URL encoded - however unless it is an option in his Namo Webeditor he probably can't change. He did put double quotes around the source attribute. Placing the images folder in the web_decoy folder means the images are correctly displayed. Your documentation (see below) suggests that "Use the 4D Web cache" be unchecked. Table 4: Web/Advanced Preference Pane Option Value Use the 4D Web cache [unchecked] Inactive Web Process Timeout [as necessary] Options [unchecked] Use Passwords [unchecked] If I have the static files in the web_decoy should I check the "Use the 4D Web cache" option. Thanks, Ian > -----Original Message----- > From: active4d-dev-bounces@... [mailto:active4d-dev- > bounces@...] On Behalf Of Aparajita Fishman > Sent: Saturday, July 12, 2008 5:36 PM > To: active4d-dev@... > Subject: Re: [Active4d-dev] Image links broken when space in filename > > > I can navigate around the site and it all displays except the images > > that > > have a space in their filename. If I remove the space from the > > filename and > > adjust the image source accordingly then the image displays correctly. > > > > What do I have to do to make the images with spaces in the filename > > display > > correctly? > > The HTML specification requires that all embedded URLs be URL encoded. > Spaces in image filenames should be converted to %20. > > And I do hope that the designer actually put double quotes around the > img src attribute... > > And finally, I am now recommending that all static content be put in > the "decoy" web folder so it can be served directly (and cached) by > 4D's web server. > > Regards, > > Aparajita > www.aparajitaworld.com > > "If you dare to fail, you are bound to succeed." > - Sri Chinmoy | www.srichinmoy.org > > > _______________________________________________ > Active4D-dev mailing list > Active4D-dev@... > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Image links broken when space in filename> Your documentation (see below) suggests that "Use the 4D Web cache" be
> unchecked. I am now recommending that static content be put in web_decoy (which I now call web_static) and that the cache be turned on. Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Image links broken when space in filenameHi,
that is interesting, but I have several applications running, mapped through the virtualhost.ini in different Folders. So I have a folder and inside I have a pictures Folder. Now how to do this with the web_static? best wishes Norbert Am 12.07.2008 um 22:44 schrieb Aparajita Fishman: >> Your documentation (see below) suggests that "Use the 4D Web cache" >> be >> unchecked. > > I am now recommending that static content be put in web_decoy (which > I now call web_static) and that the cache be turned on. > > Regards, > > Aparajita > www.aparajitaworld.com > > "If you dare to fail, you are bound to succeed." > - Sri Chinmoy | www.srichinmoy.org > > > _______________________________________________ > Active4D-dev mailing list > Active4D-dev@... > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Image links broken when space in filename> that is interesting, but I have several applications running, mapped
> through the virtualhost.ini in different Folders. > So I have a folder and inside I have a pictures Folder. Now how to > do this with the web_static? You have to create your own folder structure within web_static and then reference the images/css/javascript from there. If your dynamic folder structure is like this: site1 images css js site2 images css js web_static change it to this: site1 site2 site3 web_static site1 images css js site2 images css js So your <img> tags would be like this: <img src="/site1/images/logo.gif" /> <img src="/site2/images/logo.gif" /> and so on. Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
|
|
Re: Image links broken when space in filenameAparajita,
I´ll give it a try Thank you Norbert Am 13.07.2008 um 13:34 schrieb Aparajita Fishman: >> that is interesting, but I have several applications running, >> mapped through the virtualhost.ini in different Folders. >> So I have a folder and inside I have a pictures Folder. Now how to >> do this with the web_static? > > You have to create your own folder structure within web_static and > then reference the images/css/javascript from there. If your dynamic > folder structure is like this: > > site1 > images > css > js > site2 > images > css > js > web_static > > change it to this: > > site1 > site2 > site3 > web_static > site1 > images > css > js > site2 > images > css > js > > So your <img> tags would be like this: > > <img src="/site1/images/logo.gif" /> > <img src="/site2/images/logo.gif" /> > > and so on. > > Regards, > > Aparajita > www.aparajitaworld.com > > "If you dare to fail, you are bound to succeed." > - Sri Chinmoy | www.srichinmoy.org > > > _______________________________________________ > Active4D-dev mailing list > Active4D-dev@... > http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev > Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ _______________________________________________ Active4D-dev mailing list Active4D-dev@... http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/ |
| Free Forum Powered by Nabble | Forum Help |