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

Similar Messages

  • How to update data in database from different region of the same page

    Hi,
    I have pepared two regions of tabular form based on the same table,each region is selecting different columns of the same table.
    I want to update the values from different regions in the database using single submit button.
    Regards
    Shashi

    I presume that the two regions are working fine with their individual buttons and your issue is how to make them both save with one button.
    Here is how
    a. You will have 2 ApplyMRU and 1 ApplyMRD processes for each of the regions. Right? Lets say you have 2 "Save" (i.e. label=Save) buttons, one has name SUBMIT and the other SAVE ( SUBMIT and SAVE being the requests that will be sent when they are clicked , respectively)
    b. Make the Display condition on one of the buttons 'Never'. Now it won't show when you run the page. Lets say you made SAVE's conditional Display 'Never'
    c. Go and change the condition on all ApplyMRU and ApplyMRD processes from "When Button Pressed" to "Request is contains in Expression1". In Expression1 enter SUBMIT,SAVERegards

  • How do I get a track from iTunes to match the master tempo of my project?

    I have a project open and I am adding a track from iTunes, but it does not line up with the tempo, making it impossible to play loops over it.  Is there a way to make the tempo of the track match the master tempo of the project?

    benfrommason wrote:
    so is there a way to mix songs together that aren't the same tempo?
    Yes. You have to decide which song is the "master" song that you match the other to. This song has to have the "follow tempo and pitch" option unchecked, the other song has it checked. Then you can use the tempo slider to match the songs to each other.
    (I even did it with "Sympathy for the Devil" which has an irregular beat - it gets faster as the song progresses, the folks didn't record with a metronome back then. Using a tempo curve, I was able to match it to a modern, steady-beat song.)

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • How can I write relative path in File, ImageIcon objects

    I have downloaded examples from
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html
    but for some reason images are invisible until I write absolute paths?(I use windows) How can I write relative path in File, ImageIcon objects?

    Hello;
    I've found a lot of complaints about this through the Forte forum as well as on Dejanews. I'm just curious as to whether any of you ended up finding a solution to this problem.
    There was one posting about setting up the subdirectory as a URL rather than a String and then using that as the source of the ImageIcon ... but this didn't work for me.
    Any help whatsoever would be appreciated.
    Thanks!

  • How can I script moving paths from one file to another?

    Hello. I have 1 image with various color correction layers. The other is the exact same size but only contains paths. How can I script moving paths from one file to another? Thanks, in advance, for any help you can offer. Thanks!

    Thanks! This one actually worked for me. Thanks for your help.
    http://forums.adobe.com/message/3305389#3305389

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • Links to PDF files with relative paths from a Captivate 4 project

    I'm creating a presentation in Captivate 4 (I'm making an exe file) with some links to PDF files; the links are buttons with the 'open URL or file' set. The presentation will be distributed in CDs and obviously the links will not work for they point to an absolute path in my PC. Is there another way to display external files? thanks

    "file:\file folder\filename" is not a relative path.  It's still an absolute path because you're specifying the path all the way from the root drive, whether you used a drive letter or not.
    A relative path shows where to find the other file in relation to the file that is calling it.
    Relative paths look like this:
    myDoc.doc (if the file is in the same directory as the file calling it)
    folderName/myDoc.doc (if the file is inside a folder in the same directory as the file calling it)
    ../myDoc.doc (if the file is located in the parent directory above the file that is calling it)
    ../../myDoc.doc (if the file is located two levels above the file that is calling it)
    etc
    Here's a tutorial that explains it better: http://www.communitymx.com/content/article.cfm?cid=230ad

  • How can i print double sided from my macbook? The option is not highlighted., how can i print double sided from my macbook? The option is not highlighted.

    How can I print double sided from my MacBook? The option is not highlighted,
    shazmina2

    This function is related to the printer driver and the printer you use. If you do not give details, nobody can suggest a solution. Usually, the correct driver solves the issue.

  • How can I log onto iCloud from my iPad when the option is in grey and therefore not available

    How can I log onto iCloud from my iPad when the option is in grey and therefore not available. I deleted my account as it was showing up with an old Id ( I'd changed my email) but now I've done that it won't give me the option of logging back on. Do I have to do this on another device Or computer linked to iTunes first?
    THanks

    Hi Kate, have you perchance enabled restrictions on your device. (Settings > General > Restrictions)

  • How do I erase all images from a card in the Cannon Rebel t3

    how do I erase all images from a card in the Cannon Rebel t3

    Hello debrusso,
    I would just like to give some quick advice that you all may already know but I was just told this countless of times that I thought you all would like to know. \
    I have been told by numerous of photography professors that it is always best to try to format your camera every now and then. Because your memory card is not really deleting the photos but rather hiding it somewhere. This is a problem because it still takes space from your card. The solution to this is to FORMAT because it is one of the safest ways for your camera to erase images. It also sets up properly for your camera like new. But make sure to save your images before doing formatting. I have had many silly accidents this way. Lol.

  • How can i autoforward that mail from SAP INBOX to the outlook

    Hi ,
    My Requirement is that,
    I have to send an email to outlook, whenever PO Created in SRM System
    I have created  custom workflow, i have added a sendmailtask step, i given the SAP userid to send SAP Mail to the user.
    It is sending SAP Mail to the User to his inbox perfectly.
    Now, how can i autoforward that mail from SAP INBOX to the outlook. This is has to work for all users.
    Please give some suggestions. ot it can be achived any other way.
    Note: This is Email Message not a workitem.
    I have doubt that RSWW program will work only for workitems.*
    Thanks & Regards,
    Suresh.

    Hi ST,
    what I understand from your requirement is that you are able to send messages using SendMail Step to SAP Inbox and now you want it to be sent to users Outlook.
    Here you need to create a container which would store users email address of Outlook (which would be stored in SU01 or in a ztable), use this container in your Send Mail step and in the Recepient Type as email.
    Hope it helps.
    Aditya

  • How can I prevent breadcrumbs from being used on the first page?

    Hi,
    I'm using the latest version of the technical communication suite to produce a WebHelp
    layout from a framemaker book. Thanks to all the help I've received so far it's proceeding
    well, although slowly.
    II have an initia l'home'  page, that isn't present in the TOC, just with a program logo, a company
    logo and a helpdesk address. How can I stop breadcrumbs from appearing on this page?
    I'm happy for this to be the Home page and to keep the word Home, and it is a separate
    document in the linked framemaker book.
    Has anyone got any ideas as to how I can do this?
    Thanks in advance for your help.
    Best wishes,
    Karen

    Hi Karen
    To each his or her own. Jeff's approach certainly will work but will require you to repeat the process each time you generate. With the approach I outlined you would only need to do things once.
    As for the breadcrumbs not appearing at all, it depends on *WHERE* in the Master Page you elected to add them. In order for the approach I outlined to work, you need to ensure you add the placeholder *OUTSIDE* the Body placeholder. Then you should see breadcrumbs on the pages you have associated with the Master Page.
    Cheers... 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

  • How can I transmit an iDVD from my macbook to the apple tv?

    How can I transmit an iDVD from my MacBook to the Apple TV?

    iDVD is software for DVD authoring. What are you trying to view? Find the movie file, make sure it's in the correct format and import into iTunes. Then you can stream to ATV

  • How do I move my files from my PC to the Cloud?

    How do I move my files from my PC to the cloud?

    i use a Photo Sync... Buy at AppStore... $2.99 only 
    Very easy to transfer photo from iPhone to Pc or from Pc to iPhone. That awesome!

Maybe you are looking for

  • Updating the Adobe Creative Cloud App via AUSST

    Recently I began rolling out the full CC suite to my mac users pointing to an AUSST server which seems to run fine for updating some of the CS5/etc products. My primary reason to roll things this way is so I can set scripts to automate their updating

  • Error message when trying to transfer/sync video from itunes to ipod

    I have never had this problem before, but I just purchased a couple music videos from itunes and then was trying to manually transfer/sync them to my ipod and then I receive the error message "Attempting to copy to the disk failed. The disk could not

  • Bad file name or disk name error

    I have a wedding DVD with 3 tracks and 4.6GB of info. I have the last chapter end jumps on each track returning to the main menu. when i go the Build and format( i am burning the image to the hard drive) it goes almost all the way and then fails with

  • Syncing iTunes across Different Platforms (Windws & PC) - Windows Version

    Im not sure where to put this questions so I'm adding it to the iTunes for Mac secion as well. I have an iTouch that I have been using on my Windows platform iTunes. In addition to music, I also use iTunes to sync up my contacts and calendar list fro

  • OS X, SMB and offline files

    Hi all! I'd like to ask how you handle the following with OS X Mavericks: Assume you have a hierarchical storage management (HSM) system (also called "file system archiving" by some people) and OS X clients access this via, say, the SMB protocol. Now