Using wildcard characters in the URL variables (very simple question, I know)

Hi all!

Pulling my hair out over this... How to use wildcard characters in the URL variables? I have this code in compositionReady (that works):

var myurl = " " http://www.mydomain.com/Sub1/Sub2/pagename ";

var currenturl = window.location

if(MyURL == currenturl) {}

sym.getSymbol("symbolname").play ();

}

It is simply the symbol "NomSymbole" play when the current URL corresponds to the variable 'myurl '. However, I want the symbol to play on all subpages of http://www.mydomain.com/sub1/sub2/ , and therefore, it seems logical to put in a wildcard as:

http://www.mydomain.com/Sub1/Sub2/ * or something similar, but I can't seem to make it work?

Any help will be greatly appreciated!

:-)

Best,

Thomas

What of it?

var mysubdomain = "http://www.mydomain.com/sub1/sub2/";

var currenturl = window.location.toString ();

If (currenturl. IndexOf (MySubDomain) = 0) {}

sym.getSymbol("symbolname").play ();

}

DIA-

Tags: Edge Animate

Similar Questions

  • How to use wildcard characters in the filter REMAINS for subscription items

    I've followed this documentation:

    String columns filters

    Support the % operator (started by).

    Support * operator (contains).

    Can't stand (trimmed) operator.

    Examples:

    Name = service *.

    Name = * g *.

    Name = * g - unauthorized

    URL OF THE REST:

    http:// /RequestCenter/nsapi/serviceitems/serviceitemsubscription /=

    I can get the filters to work without wildcards, but have had no success in using ' *' or '%' characters  Please provide an example encoded URL appropriate for

    ServiceItemTypeName starting with "virtual".  I was not able to get all the data returned when using wildcard characters in a filter.

    Here is what I tried:

    ServiceItemTypeName = instant virtual server

    http://10.8.0.46:8080/RequestCenter/NSAPI/serviceitems/serviceitemsubscription/ServiceItemTypeName=virtual%20Server%20Snapshot

    answer: 200

    literal works as expected

    ServiceItemTypeName = virtual %

    http://10.8.0.46:8080/RequestCenter/NSAPI/serviceitems/serviceitemsubscription/ServiceItemTypeName=virtual%25

    Request-Type = application/xml

    answer: 200

    expected result not returned

    ServiceItemTypeName = virtual *.

    http://10.8.0.46:8080 / RequestCenter/nsapi/serviceitems/serviceitemsubscription/ServiceItemTypeName virtual = *.

    Request-Type = application/xml

    500

    Internal error: invalid parameter values specified or an unexpected error.

    fails with the error response

    Hi Dan,.

    I don't think you can use wildcards here.

    Please see the integration Guide to 9.4. Section: "REST API-> Quick Reference.

    You will find a table of what features are supported for resources exposed by the API. There you will find a line for "All Service elements", and you will see that: get all the, sorting, paging and all filters are supported; Search for names of wildcards are not...

    When I came across this situation, I guess I'm trying to do a generic name search here... and it is not supported. This, however, works for the other columns (Designer if created), which is what, in my view, that documentation is trying to describe. (Although, personally, I feel that it is a bug).

  • Using wildcard characters in the Script Map

    Hi everyone, im new in FDM and I have some doubts on mapping scripts.

    I have to recreate this translation in FDM Hyperion rule:

    ACC_SAP tm_sap Reverse sign UD4
    N21099Z300 {NULL} FAKE CD1
    D31199Z000 {NULL} FAKE CD1
    ???? 99 * FAKE CD

    ACC_SAP is the account of the source
    TM_SAP will be loaded UD5 (as looking up)

    How can I manage with a similar mapping?

    I guess the use of the script, but im not sure how to use wildcards wildcard in scripts, is - it possible?

    Another related issue, in an explicit mapping, how can I manage with NULL values if I want to assign [none] value, what I have to insert the value NULL into the field source th?

    BR and thanks

    As long as you're using wildcards in the source and them pointing to a single account, you can do all that you have demonstrated. All this is done directly in the similar table. No script is needed.

    ??? 99 * goes to the HFM_99 or whatever your target.

  • Open the file by using wildcard characters

    Anyone know how to open a file by using wildcard characters in the name.

    For example, a certain folder will contain a number of files, with the name built as follows:

    CALDB_ then a serial number with 6 digits and then 14 characters, which could be ANYTHING.  so it might look like this

    CALDB_123456_33KA1234567890.txt

    or

    CALDB_123457_33KA1234567890.txt

    The key part of the file name is the serial number of 6 digits that is unique and the CALDB_ which is always the same.

    I would like to use a command file with the name of the file as something like CALDB_123456_*.txt, but it doesn't seem to work.

    Can anyone help?

    Thank you

    Hi Dylan,.

    Along our forum, I searched and found a similar question for the use of wildcards in file selection. An active user (unclebump) has responded to this request with a VI, with which you can select a folder on your computer that is scanned for some files. I adjusted this VI to select CALDB_ files *. You will find this file (zipped), including my attached test folder.

    Maybe it will be useful for your application.

    Best regards

    Peter Schutte

  • by the way the characters in the URL

    Hi all

    Just wondering if there is a way to get passed by the way specific characters in the URL...

    On my music website I found that if a song a # or & or (or "in the title, the link does not work...

    for example if you go to the funeral of exit named on the link below and click on any song of the symbol # in the title, it just won't...



    Here's the linky link

    Thank you very much

    You must use URLEncodedFormat() to properly encode the variables in the link

    > Song_sng.id_sng = #id_sng.id_sng # WHERE

    The error seems to occur on this line. If #id_sng.id_sng # is a string, you must use single quotes around the value or use cfqueryparam

    WHERE song_sng.id_sng = ' #id_sng.id_sng # '.

  • lose the url variable after the notation in the session

    I have a coldfusion helpdesk application that is secured by a system of connection application.cfm.  Once a ticket is submitted, it sends an email with a link to view the ticket.  The link contains a variable to url for the link between it and the correct ticket.  If the user is not connected, the url variable is naked after the connection process.  Is it possible to prevent this?

    From your description, at least 2 applications are involved. A single application takes the user not authenticated to the login page. As well as the URL variables. I imagine that a second request then takes him - without variables URLS! -from the login form to the page of the form of action, where his letters of credence are validated.

    If so, then this is the expected behavior. You can replace it as follows. Enable session management and implement the following on the login page:

    This translates into ColdFusion, storing the value of each variable to the URL as a variable of the same name in the scope of the session. Thus, the values of URL.x, URL.y, etc. will be stored, respectively, as SESSION.x, SESSION.y, etc... You could then transfer of respective session values in URL field in the links in the subsequent pages.

  • Given the file name or path contains Unicode or DBCS characters. Retry using ASCII characters for the file name and path whatever that means? This happens when I publish an OAM

    Given the file name or path contains Unicode or DBCS characters. Retry using ASCII characters for the file name and path

    What does that mean? It happens when I try to publish an OAM for Dreamweaver.

    Also: How can I specify the onboard browser animate? It's just going as far. Are there no preference to animate it dashboard?

    BTW. Just call him edge. Seriously. You call Illustrator draw? Photoshop editing?

    No, my file name is mainContent.oam

    My project name is mainContent.an

    This error occurs when I try to import into Dreamweaver. Sorry, I was unclear about that earlier.

    I thought maybe it was because I had saved my image as a png image. So re-saved as an svg, still get the error.

    Should I have a setting is CC of Dreamweaver that will not? I should try this in Dreamweaver CS6? I might try that next.

    Why is this so difficult program? I know that Flash. I know that After Effects. I can work the chronology part simply awesome. He's still export I have problems.

    On a MacPro, 10.7.

    You are a person of Adobe or simply a beautiful assistance program?

  • How can I add two very simple Questions to a slide?

    Hello

    I would like to be able to add two very simple questions to a slide, but don't know if (or how) this can be achieved. I've explained this more in detail below:

    ====================================================================================

    Scenario of

    The slide must contain two questions:

    Question 1: with two check boxes for the options Yes and No

    Question 2: with five check boxes for options 1 2 3 4 and 5

    A button (for example named Submit) to verify the responses from users by triggering a tip Action that verifies the radio buttons that have been selected.

    ====================================================================================

    The checkbox Widget looks like it could work for this scenario, because it allows each value to be assigned to a variable. However, when you try to put in place the tip Action I couldn't see all the variables I named in the checkbox Widget.


    If anyone has done this kind of thing before and can offer advice on the best way to create custom questions, I'd appreciate any help.


    For reference, I use 8 Captivate.


    Thank you


    Ross

    I indeed used interactions of checkboxes or radio buttons many times for this kind of slides. That's why I'm confused and I first want to know if you want an answer to the second issue as well? For the first question, it is clear that you need an interaction of option buttons, I don't know if you want to allow more than one choice for the second question. Only when you need to allow more than a choice will you have the interaction of check boxes, in the other scenario, option buttons will do the trick. It makes a big difference, because the radio button widget has only one associated variable that will store the selected element. For the widget checkboxes, you need a variable for each choice.

    Maybe my blog could help clarify, you can also download a descriptive table with all interactions of CP8 training

    Advice - Training interaction - Captivate blog

    BTW, I moved this thread to the Quizzing subspace.

  • Possible to use wildcard characters in passwords of pdf?

    I'm working on a pdf using Acrobat 9 for Mac portfolio.  Is it possible to set the password for the portfolio and the individual PDF within the portfolio to accept wildcard characters?

    For example:

    Password = 1234 X

    ensure that 12344, 12345 or 1234 some would work.

    As - is - it possible to have it ignore integers passed the password?

    Thanks in advance.

    None of these scenarios are possible with the passwords to Acrobat.

  • Referring to the url variable in cfquery that contains the sign #.

    I use CF 9 and cannot figure out how to reference a url variable in my cfquery that contains a character ' # ' as part of the channel name (that is, http://somepage.cfm?variable_name=tom#h.)

    When I try to run the query, it shoots only 'tom' due to the sign #.  I tried up to double the sign # (#) but that no longer works.

    < cfquery NAME = "qryGraph".
    DATASOURCE = "DB2".
    USERNAME = #Request.UserName #.
    Password = #Request.Password # >

    SELECT THE DATE

    TABLE
    WHERE NAME = ' #variable_name #

    < / cfquery >

    Any help would be appreciated!

    Tom

    http://somepage.cfm?variable_name=tom%23h.

    And it should work without any other change.

    If you compile this code into your CFML, you can use the function urlEncodedFormat().

  • Show all results with the URL variable database?

    Hello

    I use PHP MySQL

    I have a database that is ordered alphabetically. I am trying to create a dynamic page that will only show A, B, C,... and so on. I got this by creating links, named after the letters of the Alphabet. I have a recordset that filters the table using a URL variable that uses the Type. Unfortunately, when I click the link it only shows the first record that contains an A. not all records that contain A.

    For example:

    I have a link which is just 'A '. His link is? Type = A. In the database table there are 3 folders that contain A according to Type, but when I click on it a single record containing A is displayed. I hope that you follow it.

    If you want a direct reference to what I do pass:

    http://cwhazzoo.com/gamelinktesting.php

    That's how my database is designed:

    ID (primary key) Name Letter
    0001Example AA

    I want to be able to only show the selected letter of the recordings using only a single page. Thank you!

    > Use the repeat region?

    Yes. That's what it's for.

  • Search by wildcard characters in the data store

    I'm trying to search with a wildcard in a PDO data store.

    This produces a result:

    Back EMF Date: time 2012-08-20: 14:16:04

    But that does not

    Return *.

    How can I use wildcards in a search for data store?

    I guess that all of the following conditions must create correct results

    Dim query: query set = store. CreateQuery
    query. ReturnType = "measure".
    query. Conditions.Add 'Measure', 'name', 'is', ' back. "
    store. Search (Query)

    store. GetElementList ("Action", "name = % rear", true)

    store. GetElementList ("Action", "name = back *", false)

    store. GetElementList ("Action", "name = back *")

    Please take into account the fact that the PDO does not support case-insensitive query.

    I assume you are using an AVL Puma. You may need to set a switch in advanced the PDO connection dialog box. 'Use as instead of GAME'.

    In the connection setting, it appears as

    YES

  • Dreamweaver still encodes special characters in the URL - Bug?

    6 Dreamweaver is still encoding my special characters when I enter a URL through the control panel AND press ENTER. When I paste the link in code view or just paste in the control panel link field without hitting Enter, no formatting occurs.

    I the setting under Code Rewriting preferences set on "do not encode special characters", but without worrying reformatting occurs whenever I hit enter in the link field in the control panel.

    For example:

    The link I'm stick in is dynamic and has the value % DC %

    If I just paste the link in the Control Panel then click elsewhere the link is defined, and no formatting occurs. If I stick in there, then press on the URL change to %u %

    Is this a bug or I do something wrong?

    @rmercd: thanks for reporting this isue we. Take us a look at this problem and you will keep

  • Get the URL Variable

    I have two relevant pages-

    The first a lookup in HTML, and allows the user to select a. After the selection, a variable is passed to the URL for the second page. (? = foo Installer)

    The second page contains the Flash animation. How can I enter the variable from the currently loaded page?

    Thank you!
    3cl3c71k0r

    Thanks for your help, David. After testing your file, I discovered that the method worked on my local machine, my own hosting account personal and NOT my business hosting account. We now understand why. I'm guessing this has something to do with our content management system. Sucks a bit to try to fix your alignment when a tire is flat.

    Thanks again for your help!

  • Very simple question about Mac and find out which version of the player

    Hi, really quick here for Mac or Mac users familiar question: How can I find which version of Reader is installed on a Mac? It should be of Mac OSX. I'm just so incompatible Mac (and the guy using it is not fine with it) and I don't know where to look?

    Thanks a bundle

    Mac does not come with Adobe Reader, they come with a program called Preview. The best way to know which version is on a given computer is to ask the owner! If the owner does not know that they can select the file and then on the file menu or by typing the command - I they can activate the command read information that will produce a window with the version information and much more.

Maybe you are looking for