Relative path to image in contentfolder
Hi,
In Configurator 1.0 I was able to put an image/logo in the content folder and use the SWF/Image Loader to show that image just by typing the images name in the URL field.
I can't get that to work with Configurator 2.0 !?
Do I have to type a special path to the image?
Regards Brian
Hi
The image must be in your YourPanelName.assets
Verify if your image is at this path :
Photoshop / Plug-ins / Panels / yourPanelNameFolder / content / YourPanelName.assets
In the "Location ( URL)" of Configurator set the name of your image ( e.g. image.png)
Similar Messages
-
Relative paths for images upset by forwarding requests
Hello World.
I am using a web app deployed in Weblogic 5.1 with service pack 8.
I have hit a problem which puzzles me. When I forward a request from
one JSP to another (say from A to B) the web server seems to take the
URLs of the images on the served file (B) relative to the path on the
calling file (A). Here's a detailed explanation...
Suppose I have a the web app structured as follow
/oddApp/launch/A.jsp
/oddApp/B.jsp
/oddApp/images/tick.gif
Page A simply stores its request URI and forwards its request to page B
<jsp:forward page="/B.jsp" />
Page B displays its requestURI, contextPath and servletPath. It also
attempts
to show three images
<img src="images/tick.gif">
<img src="../images/tick.gif">
<img src="/images/tick.gif">
When I invoke page B directly, the first image is shown, the others are not.
When I invoke page A, it forwards to B and the second image is shown, the
others are not.
In each case the URI, contextPath and servletPath are correctly displayed
with regard to page B.
URI = [oddApp/B.jsp]
contextPath = [oddApp]
servletPath = [B.jsp]
The URI in A.jsp is also correct (i.e. /oddApp/launch/A.jsp).
The search for the images seems to be relative to the original URI (i.e. not
the URI used to forward), which strikes me as daft. It means that page B
must be aware of where it is being called from. It is perfectly plausible
that
relative paths which suit when called from one location are incorrect when
called from another.
I had thought that including the leadling slash (as shown as the third
image)
would cause the search relative to the document root (/oddApp/), but this
appears not to be the case. The search is done relative to the root of the
server not the web app.
Adding jsp mappings in the deployment descriptor of the web app does not
help (I had thought it a long shot anyway).
Does anyone have any thoughts on this?
PHiL
i face the same problem (WinNT, WLS6.0): my wep app has a contextRoot " root " which makes it react to the URL: http://host:port/root /: it is this folder which will be used as a basis by the Web server But in the jps I use a relative URL for images: / images/toto.gif : it works very well when I deploy my jsp out of a Web-app by setting a document.root to the weblogic web server.On the other hand, once deployed in a Web-app, images are not found because the default path of the browser is http://host:port, without the context root of the Web-app! In other words, my war has images/*.gif in its root but when /images/toto.gif is resolved in a jsp, as the relative URL is not prefixed by my context-root, the image is not search in the war! actually, if I type http://host:port/root/toto.gif, my image appearsany clues? an alias on the web server? a setting in web.xml/application.xml and their weblogic equivalent files?
-
Relative path to Images ?
I recently migrated from Win XP to a new PC Win 8. Moved all the files & D.W. related apps... all went relatively seamless. But I noticed the Relative path to any Image that created in Photoshop still has the old path
i.e.
Original (old) file:///C|/Documents and Settings/My Documents/PMF Web Design stuff/Menu_Button_Home_2013.psd
New file:///C|/Documents/PMF Web Design stuff/Menu_Button_Home_2013.psd
Is there a file in my D.W. site that has these paths ???If so I could do a global update ... I have dozens of these type entries... would hate to do all 1 by one.
THANKS in advanceGuess I did Not explain my dilemma correctly. My site worked fine after I migrated to the new PC... all the SOURCE Images were in my root folder... What I could not find (up until now) was where the ORIGINAL .PSD files were referenced. D.W. keep sync information with Photoshop, if/when the Original gets updated... D.W. notifys you. Please see scrnshot GREEN arrow below.
After several hours of P.D. I figured it out for future reference.... the ORIGINAL file is referenced in a sub-folder of your Image Folder... called _NOTES each & every image has an associated .JPG.MNO file.
Simple example Home_Button.JPG resides in Image folder... Home_Button.JPG.MNO resides in _notes.
Down near the bottom of Home_Button.JPG.MNO is a record that points to the ORIGINAL Parent file.
Looks something like: <infoitem key="FilePathSrc" value="file:///C|/Users/Documents/PMF_Design_PSD/Home_Button.psd" />
I had hundreds of these that need updating... I used the D.W. Find & Replace feature... took a few tries to get all the options set correctly. But it saved me several hours.
Hope this helps someone in the future migrate to/from PC's, -
Problem defining relative path ofr images in struct tiles
hi
I have a jsp pages in which i am setting the layout using tiles . To display an image
i am using < img src= "./../images/abc.gif" />
this doesnt seem to work.
but if i give absolute path like src="C:\myDoc|....\abc.gif" it works.
As i have to deploy it so i cant give absolute path.
One solution i found is to use request.getContextPath()
<img src="<%=request.getContextPath()%>/tutorial/images/abc.gif" works.
is there any way we can give relative path like ?
< img src= "./../images/abc.gif" />Hi , I have found the solution.
<c:url value='/javascript/menuscript.js'/>"{code} can be used to avoide the absoulte path . The c:url tag takes default value as Webcontent . so you need to give only path after the webContent -
Hi All -
I have a strange situation with relative paths. When I use a relative path in cfinclude it works. But when I use a relative path is "src" attribute of <img>, it does not work. Can anyone suggest why could this be happening?
ThanksAdam Cameron. wrote:
Because you're expectation is that apples work the same as oranges.
CF relative paths are relative to the CF file the path is in; HTML relative paths are relative to the URL browsed to.
Remember CF code is run on the CF server; HTML is rendered on the browser.
Adam
The beauty of relative pathing is that it plucks them from the tree and calls either fruit. -
Relative path for images in RTF templates
Hi everybody!
When I insert an image in a RTF template, I put its path into the web dialog, in order to see correctly the picture when I open the report from the xmlp server, in this way: url:{"http://servername/analytics/res/Images/image.bmp"}
How can I make this path relative, in order to see the images even if the server name changes?
Thanks so!
FrancescoHi Tim,
I am using BIP 10.1.3.3.2. I am able to access system variable CURRENT_SERVER URL.
Steps:
<?param@begin:CURRENT_SERVER_URL?>
<xsl:value-of select="$ CURRENT_SERVER_URL"/>
CURRENT_SERVER_URL is getting printed in BI Publisher. Value displayed is http://xx4697.xxx.co.in:9704/xmlpserver.
Now we are importing xsl into RTF template. File aaa.xsl is stored at [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app]
We have hardcoded the path for XSL in RTF. The path is <?import: http://xx4697.xxx.co.in:9704/aaa.xsl?>
As we want to set dynamic path we changed hardcoded xsl path to <?import: {$CURRENT_SERVER_URL}/../aaa.xsl?> but it is not working. Sometimes BIP is taking local path of MyDocuments folder and sometimes Desktop path. If I put that XSL file in MyDocuments folder or Desktop, it is working fine. But ideally it should refer [BIP_Installation_Directory\oc4j_bi\j2ee\home\default-web-app] path...
Thanks,
Amit D -
How to specify relative path for background image in xsl
Hi,
I am generating a PDF from Apcahe FOP. I have an xsl for that, in the xsl fo:block I am displaying a background image. When the image path is absolute like..C:\image\logo.png it works fine. But I want to have the image in my WebContent\images folder and my xsl file is in WebContent\xsls folder. So when I try giving the relative path as ../images/logo.png, the image is not displayed.
Can anyone tell how to do this???
Thanks,
Sanjeev.I have a fo:block like this :
<fo:block border-style="solid" border-width="0.2pt" text-align="left"
background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
font-size="8pt" font-weight="bold" color="white" padding-top="1pt"
padding-bottom="1pt">
<xsl:value-of select="tr/td/span" />
</fo:block>In the above code you can see that the the background-image="url('http://localhost:8080/Project/images/table_header_center.png')"
has been given as absolute. The images folder is in my WebContent directory. I want this path to be relative to the context of my application , something like background-image="url('../images/table_header_center.png')".
Thanks.
sanjeev. -
Reference Images in Relative Path
Captivate 2 allows you to export the background images out
and then link them in so it is easier to update the images, but the
paths seem like they have to be absolute only. Is there a way to
use relative paths instead of the absolute path? I have several
projects that need to be localized into different languages and
this is one of the things that is not allowing us to effectively
use Captivate 2 for the project. Any help would be greatly
appreciative.Hi again Hyp30
Okay, I have to ask you (and others) for a huge favor here.
You have hit upon something I strongly feel should be part of the
next version of Captivate. That typing layer. You are absolutely
correct that this item cannot be changed. Not only that, but if you
make a typo, Captivate also records that! Sooo, in my not so humble
opinion, what would be
MUCH more useful to us is if the developers created a very
basic and very simple text animation we could use. Simple typing
text. Notice all the animations we have. 88 of those puppies I
think! Why we have fish nibbling characters away, letters flying
here and there. Yet no simple typing text. If that were available,
we could forego the typing layer and simply use an animation.
So, if anyone else feels as strongly about this as I do,
please submit a request by
clicking
here. I suggest this because until the development team hears
from enough folks, it's not likely to happen.
Now, for a suggestion. I'm not sure I'd simply reuse the same
movie for different localizations. If it were me, I'd maybe have a
project folder where the projects are stored. Then a folder for
each main project. Then I'd click File > Save As and have
multiple flavors of each project so I could keep the localizations
separated.
Cheers... Rick -
Screen Painter Image Button cannot set relative path
Hi,
I am using screen painter to create a UI form and i put image into each button. The form can run properly in my PC due to the image path is under my local path. However, the button is gone when i install the UI form in other PC. When using button object in screen painter and it not allow me to set the relative path. Anyone can help??
Cheers,
AnnaHi Gianluigi,
Thanks for your reply. However, i did try to rename the .srf file to .xml file and change the path to the following
<b><specific image=".\test3.jpg" /></b>
But the program didn't work. But if i change it to <b><specific image="c:\test3.jpg" /></b>, give it the exact path then the program work again.
Do you have any idea on it?
Anna -
Is Image File path of Menus element support relative Path?
hi,all
absolute path is OK!
but relative path no support!
how to support it?
thanks
tonyHi Tony,
The image file does support relative path but it requires a little coding.
Please have a look at this thread:
https://forums.sdn.sap.com/click.jspa?searchID=3854863&messageID=1041573
Kind Regards,
Owen -
After forward, relative paths images are not displayed
Hi,
I have two web archives (war1.war, war2.war) and a jar with
common code (jar.jar). war1.war contains jsp1.jsp and
servlet1.class, jar.jar contains common.class, and war2.war
contains jsp2.jsp.
The user brings up jsp1.jsp in a browser and clicks a button
which invokes servlet1.class (via post). In turn, servlet1.class
invokes method forwardTo(...) of the common.class which brings
up jsp2.jsp in user's browser. In the forwardTo(...) method I am
using the servletContext for war1.war to get a dispatcher on
which I then apply forward.
The problem that I am seeing is that the images (.gif) in
jsp2.jsp are not displayed at all. They are defined in the jsp
file using a relative path as img="images/img.gif". It is as if
the web server gets confused and does not know that the images
should be based in the war2 application and is looking for them
in the war1 application.
I do not want to store the absolute path in the definition of
the image (i.e., img="war2/images/img.gif").
I am using WLS6.0sp1. What could be wrong?
Thanks,
Vladimir
maybe try this
instead of
img="images/img.gif"
try
img="<%=request.getContextPath()%>/images/img.gif"
"Vladimir" <[email protected]> wrote in message
news:[email protected]...
>
> Hi,
>
> I have two web archives (war1.war, war2.war) and a jar with
> common code (jar.jar). war1.war contains jsp1.jsp and
> servlet1.class, jar.jar contains common.class, and war2.war
> contains jsp2.jsp.
>
> The user brings up jsp1.jsp in a browser and clicks a button
> which invokes servlet1.class (via post). In turn, servlet1.class
> invokes method forwardTo(...) of the common.class which brings
> up jsp2.jsp in user's browser. In the forwardTo(...) method I am
> using the servletContext for war1.war to get a dispatcher on
> which I then apply forward.
>
> The problem that I am seeing is that the images (.gif) in
> jsp2.jsp are not displayed at all. They are defined in the jsp
> file using a relative path as img="images/img.gif". It is as if
> the web server gets confused and does not know that the images
> should be based in the war2 application and is looking for them
> in the war1 application.
>
> I do not want to store the absolute path in the definition of
> the image (i.e., img="war2/images/img.gif").
>
> I am using WLS6.0sp1. What could be wrong?
>
> Thanks,
> Vladimir
>
-
How to give a relative path from a button in the master page header?
so I have this code in the header of my Master page in RoboHelp:
<input type="image" value="View graphics legend"
onclick="window.location.href='Graphics_legend.htm'"
src="Images\graphic legend.png" name="image1"
title="View graphics legend" style="width: 118px; height: 21px;" />
i need to call the 'Graphics_legend.htm' file which is sitting in the root folder. When i try this it works fine for the html file which are in the root folder as well, but anything with is in a sub directory , the button stops working.
It might be just to add a realtive path ,but i am failing to understand how to make a relative path for 'Graphics_legend.htm' ,.. ?Hi there
Relative paths are relatively simple once you get the hang of them.
For example, if you want to refer to something that is one folder above where you are, you prefix things with ../
The ../ is HTML shorthand meaning one folder level above where I am. If you wish to go two folder levels up, ../../
If you need to drop into a folder that is at the same level as where you are, ../FolderName
From what you have written it would seem that RoboHelp isn't seeing your code and properly calculating the path. That's really not too surprising because you are using the Button element.
If you are using CSS and linking to a style sheet you likely have a simple way to calculate what the relative path should be. Just examine the source code of the topic and note what prefixes the CSS file name. Assuming your CSS is in the project root (and it should be) then you could use the same prefix.
Hopefully this helps... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Frame 12 converting relative paths to absolute paths
Hi all,
We recently upgraded to Frame 12 and now have a persistent issue with relative paths to referenced images becoming absolute. These paths do not traverse a drive and so I believe Frame should be maintaining a relative path for these. In most cases -- perhaps in all, although I have not done exhaustive testing -- the problem paths are for images on a master page.
Any idea why this might be occurring and what we can do to fix it? Our docs team shares files checked out from a server, and each time one of us opens a document, it has an absolute path to a location on another writer's computer. We each maintain the exact same directory structure for all Frame/image files, and again, the path to the problem images is local and does not traverse the C drive.
Thanks in advance,
ShelleyMay or may not be relevant, but do the affected relative paths need to traverse the root directory of the logical drive?
I seem to recall, in experiments some years ago on FM7.1, that the final /../ needed to be at least one level down. -
Flash CS5 - document class relative path & package location
It seems I have no trouble pointing an FLA's document class to my project's class package when the FLA is at the same root level as the package's top-level directory. However, if the FLA is nested in a sub-directory, then relative paths to a class nested in the package will not work.
example package & class location : com.company.project.ClassName
Case1 :
Package location : \MyProject
FLA location : \MyProject
where document class path is : "./com/company/project"
Case 2 ( does not work ) :
Package location : \MyProject
FLA location : \MyProject\MySubFolder
where document class path is : "../com/company/project"
If someone can provide an explanation as to why nested FLAs can't point to custom packages in parent-level directories, OR demonstrate how this can be done, it would be much appreciated.
Now that I think on, both paths are relative, which makes this more confusing.
Thank you.You are correct.
I'm setting the "Document class" of an FLA file to a custom Class.
The class is embedded/nested in the package directories of my project.
The FLA is nest not at the same level as the root of the package, but in a sub-directory.
Therefore, I need a relative path to point to the parent directory, then to the package.
The occurs in both Win and Mac.
I'm almost expecting someone to say FLAs can only point to packages in the same directory, but does not seem correct. Application-level classpaths can reference anywhere on your system, but are global. Document-level classpaths should be able to point to relative paths since a project needs to be portable, right? See attached image for example. -
Why cant I use relative paths in Netbeans
Why cant I use relative paths in Netbeans to files on my PC.
I want to be able to copy my project folder between different drives and pcs dont want to edit the code everytime I do.
BTW I didnt know where on the forum to post this. Just in case this is the wrong place.When I use relative paths it doesnt see the files. Like when I want to add an image to a panel. If I use '../image.jpg' it wont work but if I use 'd:\javafiles\images\image.jpg\ it will work.
Cant seem to fix it.
Maybe you are looking for
-
Backup/save/restore voice memos iPhone 5c and iTunes 11.4
In the music tab I have it checked to include my voice memos but I can't find them in iTunes. I search by name; nothing. No playlist, no section in music. They are nowhere. I can use iBrowse to grab them, but they are all just a bunch of numbers
-
I recently bought a WRT54G wireless router along with a W...
I recently bought a WRT54G wireless router along with a WUSB54GC compact wireless adapter and set up both products as directed.I get a message saying connected to the access point but cannot find internet. While connecting to my internet directly,(us
-
Pixelated Images on Web Gallery - Help!
We have been receiving complaints from our clients that our web gallery images are pixelated - and indeed they are to the point that you cannot recognize the person in the image! I have tried to upload different resolutions - high (3000 pixels or mor
-
I've been able to make a quicktime skin without a problem. I've even been able to get play, stop, fast foward, rewind, ect buttons to work. The one thing I can't figure out and have not been able to find info on is, how to get the close button to clo
-
Rebate provision based on Invoice Varification
Hi This is regarding rebate provision and settlement based on Invoice Varification (MIRO). In agreement type we have selected time of update as Invoice Varification. but still system recording provision and settlement entries based on goods receipt (