Forums
This topic is locked
Parent Paths (ie. ../images)
Posted 15 Apr 2004 21:44:39
1
has voted
15 Apr 2004 21:44:39 David Stoltz posted:
Is there a way to make DWMX2004 use the full (absolute) path, instead of document relative paths (parent paths)...
In other words, when an image is placed on a page, I want the img src to be:
<img src='www.myserver.com/images/mypic.jpg"
instead of:
<img src=../images/mypic.jpg"
Any ideas?
Thanks!
MMCP
Replies
Replied 16 Apr 2004 00:16:56
16 Apr 2004 00:16:56 Phil Shevlin replied:
Find and replace is the only way I know of.
Replied 16 Apr 2004 00:32:16
16 Apr 2004 00:32:16 Jeremy Conn replied:
I agree with wglide... when I am designing a page that needs absolute URLS (newsletter, etc.) I always code it normal, than simply 'Find & Replace' to add the full URL.
<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB
<b>Connman21</b>
www.conncreativemedia.com
<b>DEVELOPMENT SETUP</b>
DWMX 2004 Studio
Web Server: IIS5
DB: Access2003/SQL2000
OS: XP Pro
Language: ASP/VB
Replied 16 Apr 2004 04:34:36
16 Apr 2004 04:34:36 Dave Thomas replied:
nivce to see you back talking connman
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 16 Apr 2004 14:53:43
16 Apr 2004 14:53:43 David Stoltz replied:
Ok - cool....just making sure I wasn't missing something...
MMCP
MMCP
Replied 16 Apr 2004 18:37:25
16 Apr 2004 18:37:25 Vince Baker replied:
you can however make the link site relative rather than document relative like you have.
i.e.
<img src=/images/mypic.jpg"
which will pick up from the root of your site rather than the position of the image in relation to you document.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
i.e.
<img src=/images/mypic.jpg"
which will pick up from the root of your site rather than the position of the image in relation to you document.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 16 Apr 2004 18:40:27
16 Apr 2004 18:40:27 David Stoltz replied:
That's useful - is there a way to tell DWMX2004 to use root relative for ALL links?
The reason I ask about all this is I read a few places that using "parent paths" can be, that is "can be" - a security problem (due to automatic scripts that use ../ and cd .. to move up to the root)....
Does anyone think that's a legit concern?
-Thanks!
MMCP
Replied 16 Apr 2004 18:58:30
16 Apr 2004 18:58:30 Vince Baker replied:
Yes, when you insert an image, link or something else that uses a path you have a drop down option to allow you to select document relative or site relative, this must be set to site relative for your needs.
As for security risks, the way my hosts servers are set up (standard practice i think) is that I place the whole site (web pages) into a directory called htdocs which is the root of my www.mysite.com.
My database resides in a private folder that is next to the htdocs in file structure. This means that the security on the actual server will protect my database and I have no issues with clients browsing anything in the htdocs directory. You should not have anything that is not a page image etc inside your main site root directory.
Hope that answers your security question.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
As for security risks, the way my hosts servers are set up (standard practice i think) is that I place the whole site (web pages) into a directory called htdocs which is the root of my www.mysite.com.
My database resides in a private folder that is next to the htdocs in file structure. This means that the security on the actual server will protect my database and I have no issues with clients browsing anything in the htdocs directory. You should not have anything that is not a page image etc inside your main site root directory.
Hope that answers your security question.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 16 Apr 2004 19:06:38
16 Apr 2004 19:06:38 David Stoltz replied:
Yeah...
I really don't have a security issue I guess, since my database is SQL on an entirely different server...
The dropdown menu allows you to select root relative, but what about when you drag an image onto the design view? Is there a way to change it's "default" to root relative?
Just curious...
Thanks for your replies...
MMCP
I really don't have a security issue I guess, since my database is SQL on an entirely different server...
The dropdown menu allows you to select root relative, but what about when you drag an image onto the design view? Is there a way to change it's "default" to root relative?
Just curious...
Thanks for your replies...
MMCP
Replied 16 Apr 2004 19:22:07
16 Apr 2004 19:22:07 Vince Baker replied:
Not sure,
Try changing it by adding a link in the normal browse mannor and see if this changes the drag method. If not, I am sure there will be something in the 'Edit' - 'Preferences' option.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Try changing it by adding a link in the normal browse mannor and see if this changes the drag method. If not, I am sure there will be something in the 'Edit' - 'Preferences' option.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 03 Oct 2007 02:48:14
03 Oct 2007 02:48:14 West Chase replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Not sure,
Try changing it by adding a link in the normal browse mannor and see if this changes the drag method. If not, I am sure there will be something in the 'Edit' - 'Preferences' option.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Not sure,
Try changing it by adding a link in the normal browse mannor and see if this changes the drag method. If not, I am sure there will be something in the 'Edit' - 'Preferences' option.
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 03 Oct 2007 02:51:14
03 Oct 2007 02:51:14 West Chase replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
In other words, when an image is placed on a page, I want the img src to be:
<img src='www.myserver.com/images/mypic.jpg"
instead of:
<img src=../images/mypic.jpg"
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
In Dreamweaver 8, it seems as though you should first publish your images to the web server. Then, as the SRC value for the image, enter: www.myserver.com/images/mypic.jpg" and it will remain that way in your final email newsletter html.
Let me know if your experience is otherwise.
In other words, when an image is placed on a page, I want the img src to be:
<img src='www.myserver.com/images/mypic.jpg"
instead of:
<img src=../images/mypic.jpg"
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
In Dreamweaver 8, it seems as though you should first publish your images to the web server. Then, as the SRC value for the image, enter: www.myserver.com/images/mypic.jpg" and it will remain that way in your final email newsletter html.
Let me know if your experience is otherwise.