Using a variable as part of a url

Hi
Thanks for checking in!. I am trying to define one folder in
a url as a variable
//Here is what my code looks like before I try to use a
variable as part of the url. And this works just fine.
var nextImage:String = "events/1.jpg";
this.loaderTarget_mc.loadMovie("loader.swf")
//But when I try define the events folder as a variable I am
having no luck.
var gallery:String = "events";
var nextImage:String = "(gallery)/1.jpg";
this.loaderTarget_mc.loadMovie("loader.swf")
I am hoping what I am doing wrong here will be obvious to
someone who knows more than I do. Any ideas?
Thanks again
Scott

Using variable inside a String Delimeter will make it as
String. So put the variable out side the double code.
var nextImage:String = gallery + "/1.jpg";

Similar Messages

  • Using a variable to insert into a URL for redirecting clients

    I got a good one, can anyone help on this?
    Using RoboHelp Version 8.02.208.
    My company uses MicroStrategy to deploy several web-based data analysis products.
    Each of these data products (there are 5) are deployed on different servers.
    I have set up a single source WebHelp project and use build tags for product specific help output.
    (I also have to modify the Start Page, TOC and Default Topic settings prior to generating each product help)
    Everything on this works fine and is not a problem.
    We have just implemented an Excel add-in for one of the products.
    That add-in uses a locally installed CHM file for its help.
    In order to provide customized help that can be updated without forcing the clients to reinstall the CHM help file locally, the source for the CHM file has one dummy topic. In that topic, I have used HTML code to redirect the client to the WebHelp for the product and have integrated the Excel add-in help to that product’s customized help. The result is that the CHM file is opened locally in the HTML help viewer. Inside the HTML help viewer window, I open the WebHelp.
    The redirect HARD CODES the URL with the product specific server name and Start Page help topic.
    That works fine and is not a problem for ONE PRODUCT.
    We are in the process of adding this Excel add-in to other products.
    Now here is where I cannot get this to work with my implementation.
    The URL for each product is different and to make matters worse, the Start Page is different for each product as well.
    So, I am working on options for implementation of multiple products and here is my question:
    (1)    The following is an example of the redirect in the single topic of the CHM file:
    <meta http-equiv="refresh" content="0;URL=https://server.com/ProductName/WebHelp/StartPage.htm#mergedProjects/ExcelPlugIn/ Overview.htm" />
    (2)    The red portion of the URL above will need to be modified to support each individual product with a custom server, product name and start page HTM file name.
    Is there a way to:
    (1)    Add a variable in this HTML code
    (2)    Once the product is identified, update the variable with the product specific URL content
    (3)    Integrate the variable into the target URL of the HTML code that does the redirect
    I think this is either not possible or more work than needed. My other option is to provide standalone Excel add-in help on a server and just have the Excel plug-in go to that (right now it is integrated into the product specific help and the client has access to the plug-in help AND the application help all at the same place).
    Thanks to all in advance for any help/suggestions.
    Michael F Weart
    [email protected]

    Thanks for the feedback - here is more informtion on the challenges of this implementation:
    I can only distribute one CHM file to cover all 5 web-based products that can be accessed through the Excel plug-in.
    Regardless of which of our 5 products is used to install the plug-in on the client's local hard drive, the same installer is used.
    That one CHM file is installed locally on the client's hard drive.
    (The out of the box CHM file for the plug-in only has general plug-in help content the locl install causes problems for updating the content).
    We needed to be able to easily update the help without inconveniencing the clients.
    So, I am not creating 5 different CHM files for each installer, since there is only one installer regardless of how many of the 5 products they have.
    The plug-in has a server setting and web service setting for each product and the client must choose which they are accessing when they fire up the plug-in.
    They may be accessing the plug-in for any of our 5 web-based products they have subscriptions for.
    Which means, the one CHM file must be able to:
    (1) determine the product they are accessing
    (2) direct to one of the 5 servers with the online help.
    Each of the 5 online helps are deployed on separate servers with different URL links (and the helps have all different URL links as well).
    These online webhelp outputs have some identical content but also some customized content for the specific product they are actually accessing.
    My original approach was pretty much the same as William's above. Have a variable in the CHM help, determine the server they are accessing from the plug-in and insert the customized portion of the URL to access the appropriate webhelp.
    Keep the ideas/suggestions coming.
    I also have a development person looking into how to update a variable on the CHM side to populate the URL.
    Michael F Weart
    [email protected]

  • Not using Blog Entry as part of the URL

    hi all,
    When I publish my iWeb site containing a blog to a folder, I noticed that some of the folder is using my bolg entry/topic as part of the folder name.
    Is it possible to get iWeb not use this.
    thanks in advance.

    Here;s an entry on Kyn Drake's site that might help you:
    http://ww2.makentosh.com/tipsfromtheiceberg/Blog/Entries/2008/6/22A_ShortURL.html

  • Using 'A Variable' in "Help URL" instead of file path

    Hi,
    When we edit 'Title' Tab of analysis we get options such as:
    1. Title
    2. Logo
    3. Subtitle
    4. Started Time
    5. Help URL
    In "Help URL" we can refer a file from an exposed directory (bydefault it's analyticRes). Syntax for refering a file is as follows:
    fmap: Filename OR
    fmap: Custom Folder Name/Filename
    But, I want to check if A Variable (eg: Repository) can be used instead for giving path of the file?
    Regards,
    Jitendra

    Not Possible..why don't you use the subtitle box instead of help url?

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • Set "url" in HTTPService using String variable

    Hi,
    How can I set "url" in HTTPService using String variable (see below). I've tried different formats of string & variable concatenations.
    privtate var myurl:String = "http://localhost/";
        <mx:HTTPService id="post_submit_service"
            url="{myurl+'test.php'}"
            method="POST"
            resultFormat="text"
          result="result_handler(event)"
          fault="fault_handler(event)">
            <mx:request xmlns="">
          </mx:request>
        </mx:HTTPService>
    Thanks,
    ASM

    try following:
    url="{myurl}test.php"

  • Pass current url as report prarameter while using report viewer web part

    hello everybody
    is there a way to
    pass current url as report prarameter while using report viewer web part
    thanks in advance
    Sergey Vdovin

    Hi Evolex,
    Per my understanding that you want to get the current url and create an parameter to add this URL as its value, right?
    gernerally, we can use some code to get the current url but it almost impossible for us to get it automatically as value of the report parameter.
    In your senario, i suggest you to copy the url and specify values when creating parameters.
    Thanks for your understanding.
    Regards
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Content query webpart use a part of the URL as filter

    Hey,
    I have on root site in the site collection a list. Now I like to build up a site template (from which the user can create sub sites form the root site in the site collection.
    In this site template I like to bring on the homepage a content query webpart. The content query webpart has to show one item from the list on the start site.
    How can I configure that the content query webpart use a part of the URL as filter?
    Url is like:
    http://Server/SiteCollection/ID/home.aspx
    The ID must be the filter criterion in the content query webpart. How can I do this?
    Thanks for your help
    Stefan
    Viele Grüße Stefan
    Kontakt unter [email protected]

    Hi Stefan,
    You can create your own CQWP by subclassing the default one.
    Then you can override the CAML query to add criteria found in the URL.
    Here is more information and sample:
    http://www.andrewconnell.com/blog/archive/2008/02/18/Subclassing-the-Content-Query-Web-Part-Adding-Dynamic-Filtering.aspx
    http://msmvps.com/blogs/laflour/archive/2008/05/29/subclassing-content-query-web-part-to-override-caml-query.aspx
    Regards,
    Ludovic Caffin

  • Whenever i upload my website using ftp, the site name ends up being part of the url, Can this be fixed?

    Whenever i upload my website using ftp, the site name ends up being part of the url, Can this be fixed?

    Publishing to a local folder is shown here...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    ... and how to upload the files here....
    http://www.iwebformusicians.com/Search-Engine-Optimization/Upload.html

  • Using a Variable in HttpService url attribute

    I have a dynamic url defined below
    public var forecastURL:String = "
    http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
    + latitude + "&lon=" + longitude +
    "&format=12+hourly&startDate=" + todaysDate +
    "&numDays=" + numberDays + ""
    I would like to use the var without the {} bind. The compiler
    complains if the url is not surrounded in quotes. This should be
    simple? How can I use a var within the url attribute without the
    bind brackets?
    <mx:HTTPService
    id="forecastRequest"
    url = "{forecastURL}" result="resultHandler(event)"
    />

    Not Possible..why don't you use the subtitle box instead of help url?

  • Use of variable passed with url

    hi ,
    i am new user for this forum.
    i have one problem. i call the html page resides in
    coldfution directory from the another web server. now my problem is
    that how can i get the variable which are passed with URL ? for
    example i call page x.x.x:8500//temp/test.html?id=2 from other
    windows web server ie x.x.x.//temp1/test1.php.
    now my problem is that is there any facility in coldfusion to
    get the value of the variable which are passed with URL . in this
    case it is ID

    Hi
    do you mean accessing the URL varialbes in CF?
    if it is you can say #URL.varname#.

  • Error in using System Variable

    Dear all,
             I want to use System Variable 225 ( VAT percent (per VAT code) ) which is used in one of document i.e. "VAT Only Invoice".
    When I used it in my Invoice document the following error occurs:
    Printing Error : Invalid Variable number (RPT -6300)(Field:F_XXX) Variable 'XXX'
    Please help me to use this System Variable in my Invoice.
    Note: I have already read "How To Use the PLD Variables File in Release 2007 A" .pdf file.
    can any one tell the meaning of folowing which is in the sheet "vars utilisation" of PLD_Vars_march2007 xls file
    " it means that this variable can be used only under certain repetitive area exclusive numbers (109, 126, 132, 135, 139, 148, 149, 309, 316, 427, 502, 509, 686)
    Regards,
    Ghazanfar
    Edited by: Ghazanfar Ahmed on Jun 18, 2009 12:16 PM

    Hi,
    It is a special variable available for the VAT summary part, not to be used in the rows but in a separate repetitive area.
    To display the respective VAT rates in each row, create a database field instead: Tax Definition - Rate%. It will populate the VAT percentage for you.
    Regards,
    Nat

  • Using a variable as a value in jsp:param

    I was wondering, I have a String variable, vid_1, and want to use a jsp:include and pass that in as one of the parameters. How can I do this? I have to do some testing to make sure vid_1 is valid and set a default if not. It contains a number referring to which video needs to be displayed.
    Is there anyway I can get this value to be used in jsp:param value?
    John

    RahulSharna wrote:
    Well,First thing you haven't pharsed your question properly.
    Anyways as per my understading.
    The first thing is make use of in this case as your defined requirement states you need to make use of variables of both the JSP's which need compile time include not at the runtime.use of
    <%@ include file="url" %>would be more appropriate as you want to use the variable of parent jsp to the child one.
    Anyways if you are thinking to apply a solution using <jsp:include/>
    <jsp:include page="url">
    <jsp:param name="paramName" value="<%=stringVariable>"/>
    </jsp:include>and extract the paramName's corresponding value as a request parameter in other JSP.
    Hope that might answer your question :)
    REGARDS,
    RaHuLRaHul,
    Thanks for the reply. The second example you gave is what I was trying to do. I thought I did exactly what you have there and it was not working. I will check it over again and post back on here when I have a chance.
    For now I was trying to use c:set to save the variable in the request and then using the EL expression ${requestScope.variable} to put it in the <jsp:param> element. I had some things working and others not when I quit. Hopefully tomorrow I can give you a full report and we can get this worked out.
    Maybe my problem is something else? Look at this post of mine:
    http://forum.java.sun.com/thread.jspa?threadID=5236252&tstart=10
    Thanks so much for the help.
    John

  • Using a variable in Struts config, to redirect

    In the struts-config file,
    to redirect to a different site, I can use
    redirect="true"
    and mention full path, in my <forward path=
    variable.
    1. Is there a better way to do it?
    2. Since I have to do it in multiple places, is it possible to use a variable? I mean, something like this
    <forward
    name="success"
    path="URL/abc.html" />
    Where URL is a variable name that the site path? This way, I can reuse the variable to redirect to other pages too (xyz.html, for example)

    Hi there,
    I don't know...is there only one URL you are using ore are there more than one? Because if it's the same path everytime you can try using this:
    <forward
    name="success"
    path="./abc.html" />
        ./               // This is the shortcut for the directory you are currently using.
        ../              // This is the shortcut for the directory above the one you are currently using.This code should do it. If not, try to create a var named for example "vpath" and put it like this:
    <forward
    name="success"
    path=vpath+"abc.html" />Try and tell if it worked ;)
    X--spYro--X

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

Maybe you are looking for

  • When i try to consolidate my itunes library it says error disk can not be read or written to.

    i want to clear out my hard drive and reload my softwear but i want to keep my itunes and cant find a way to do it without consolidating my library but it wont let me its comes up with disk error disk cannot be read or written to.

  • "Add Hyperlink" not working in Mail

    Edit/Add Hyperlink used to work just fine. Recently it stopped working. It appears to have done its thing by changing a selected word, URL or e-mail address to blue with an underscore. I even get the little glove when I roll the cursor over it. But i

  • How to register a DataSource in JNDI

    I'm having a great deal of difficulty getting JNDI to work properly. I'm attempting to use Quartz scheduler in a test program using a Derby database to store the scheduled events. In order to do this, I must pass Quartz the JNDI name of the data sour

  • Printing problems in black & white

    I have an HP3180 all in one printer which wont copy or print in black & white for photos. It prints txt fine but photos come out purple/ new black ink cartrige. Please help

  • RD020 Current Business Baseline for Cash Management

    Hi, am asked to do a Current Business Baseline (RD020) for Cash Management. Am quite 'at a loss' as to the contents of my report. Aside from the Bank Reconciliation and Forecasting processes, are there any processes that I can or should include?