Using wildcards in URL variables (very simple question, i know)

Hi all!
Pulling my hair out over this... How do I use wildcards in URL variables? I have this code in compositionReady (which is working):
var myurl = "http://www.mydomain.com/sub1/sub2/pagename";
var currenturl = window.location
if(myurl == currenturl) {
    sym.getSymbol("symbolname").play();
It simply makes the symbol "symbolname" play when the current URL matches the variable 'myurl'. However, I want the symbol to play on ALL subpages to http://www.mydomain.com/sub1/sub2/ and therefore it seems logical to put in a wildcard like:
http://www.mydomain.com/sub1/sub2/* or something similar, but I just can't seem to make it work??
Any help will be greatly appreciated!
Best,
Thomas

What about this ?
var mysubdomain = "http://www.mydomain.com/sub1/sub2/";
var currenturl = window.location.toString();
if(currenturl.indexOf(mysubdomain) === 0) {
    sym.getSymbol("symbolname").play();
-Dharmendra

Similar Messages

  • Very simple question, how do you configure windows 8.1 to use a SF card as the default install location for software applications?

    Very simple question, how do you configure windows 8.1 to use a SD card / external drive as the default install location for software applications? Primarily interested in apps installed from the windows store. This should be available in the settings
    charm within the windows store. This must have been overlooked in the development of windows 8.1 or is a bug.
    Regards, Bill
    * update
    I've tried modifying this key and the path:
    “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx”
    http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/how-do-you-install-apps-in-windows-8-from-the/c4fbe2a8-fd3d-41c1-b9a6-6f881eed374f
    Also tried using symlinks as detailed here:
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral

    Here's some links I've used to try to figure this out:
    http://social.technet.microsoft.com/Forums/windows/en-US/2dfc0cd9-7d1b-41de-abce-e03fb6a5a383/metro-apps-not-working-in-windows-8-pro-x64-after-moving-users-and-programdata-folders?forum=w8itproinstall
    http://social.technet.microsoft.com/Forums/windows/en-US/8eee52c2-db0f-4032-8c72-7cd999e8b41a/windows-8-apps-installing-to-secondary-drive?forum=w8itprogeneral
    http://social.technet.microsoft.com/Forums/windows/de-DE/f5e33ac9-beab-4b99-b3ca-7cb5e6f415e4/how-do-you-change-metro-apps-default-install-location?forum=w8itprogeneral
    Regards, Bill
    The registry method does not work with 8.1.  I found this out the hard way.  Doing it on 8.1 will leave you reinstalling the OS if you didn't do a SRP beforehand.

  • HT4753 I have a very simple question: how do I view where Lion has autosaved my current version to (without the convoluted route of using finder)? In days gone by i'd simply use the save as function to see where it was being saved.

    I have a very simple question: how do I view where Lion has autosaved my current version to (without the convoluted route of using finder)? In days gone by i'd simply use the save as function to see where it was being saved.

    It's actually even easier than using Save As to see the full path to the currently open document. Just do a "Secondary click" on the document title in its window's title bar.
    Like you, I relied upon Save As my whole life to check a file's location and considered it a must-have capability. Turns out it's even faster to use the single-click method to reveal the full path to the open document. It displays the entire path to the current document starting from the level of your Mac, and works for files stored on drives as well as iCloud.
    If you're not sure how to do a secondary click, go into System Preferences, select Trackpad, Point & Click to find the current preference for secondary click on your Mac. If you happen to have a mouse with more than one button, it's probably the right button. As a trackpad user, I check the box to "Click or tap with two fingers," so a simple two finger tap on the title of an open document reveals its full path. This feature actually has been around for a very long time.
    Note that this is not the same thing as the Autosave and Versions menu, which is exposed using a little drop down triangle to the right of the title. There is no visual clue for the presence of this feature - you just have to know it's there, probably because this feature goes all the way back to pre-OS X days.

  • A very very very simple question

    Hi guys,
    I have a very simple question and standard but I cant find anywhere...
    I have two dateTime variables, i need to calculate difference between this dates in days, thats it.
    I tried all functions and tried without success a Java Embed task but I couldnt retrieve this objects as java.util.Date so I couldnt calculate exactly the difference in days like this pure java code:
    (dataVencimento.getTime() - dataReferencia.getTime()) / 86400000L)
    can you help me this?

    Hi Jose
    Just see if these alternate approaches works. I know there may be lot like this and you may be lucky to find out simple out of box solution itself. If you want to solve this issue and move ahead, gives these approaches a shot.
    1. Create a very simple standalone WebService that takes 2 input date elements (can be of Date type or String type. If string type, convert to date in your java code). Create a simple operation like getDaysBetween(firstDate, secondDate). In the generated webservice impl class, use the java code apis (refer earlier link for usage), and get the difference. Return this value. NOW, invoke this WebService in your BPEL Process, and pass your 2 inputs (if the bpel payload elemetns are date object or string objects of date), and get output, and then use this output in your continuing bpel process.
    2. This approach, I did a long back. When we insert any expression using XPath, in that editor window on bottom right side, we see many categories and for each category we see list of functions we can use, like for String, we can use concat etc. I vaguely remember reading somewhere, that we can add our own custom functions also in this section. So explore this direction and see if you can add your own function and then use that fucntion with your 2 input dates.
    I have not given solution to your problem, but may be these directions can help you move ahead. Or something along these lines.
    Thanks
    Ravi Jegga

  • A very simple question..Very Urgent

    HI,
    I have a very simple question.I am able to set up the client authentication as well as server authentication. Now do i need to authenticate (both server as well as client auth.) for every request i send to the server on https...i think it should be like that it should authenticate only for the first time and for the next upcoming requests in same session should not require any server or client authentication.. i think as it happens in browsers..
    what is the fact actually??..can somebody put some light...right now in my case it is authenticating for every requests..
    This is what i have done..
    /****constructor part********/
    // and tm are arrays of keymanagers and trustmanagers for client keystore and truststore
    sslContext.init(km, tm, null);
    HttpsURLConnection.setDefaultSSLSocketFactory(ssf);
    HttpsURLConnection.setDefaultHostnameVerifier(new MYHostNameVerifier());
    /****Method to send the request and response*********/
    urlConn = (HttpsURLConnection)url.openConnection();
    urlConn.setDoInput(true);
    urlConn.setDoOutput(true);
    OutputStream os = urlConn.getOutputStream();
    ObjectOutputStream oos = new ObjectOutputStream(os);
    oos.writeObject(someobject);
    oos.flush();
    InputStream is1 = urlConn.getInputStream();
    ObjectInputStream ois = new ObjectInputStream(is1);
    SomeObject retObj = null;
    retObj = (SomeObject)ois.readObject();
    ois.close();
    System.out.println("Get String>>>>> "+retObj.getString());
    I am creating the object of this class..and calling the method again and again for sending requests and response..so i think handshake everytime i call the method...what i want is that handshake should happen for the first time and for the next requests no handshake or certificates should be checked or processed..
    is it possible ..how..what i need to do for that..
    please help me in this..
    Akhil Nagpal

    Hi,
    how could I achieve SSL Session Resumption using HttpsURLConnection.
    Thanks.

  • This is a very simple question,but I don't know.Please me.Thank you!

    I am a Chinese student in a university.I have a very simple question to ask.
    I have writed a EJB module,and I have deployed to Weblogic8.1 successfully.
    1.Now I want to write a client program.Is it necessary that the client program is packaged in the EJB package.For example ,the EJB package is Beans,is "package Beans " or "import Beans.*" necessary in my client program.
    2.If I only know the EJB interfaces,that means the EJB module is writed by other programer.I want to know how I can write the client program.How can I call EJB module's method writed by other programer.Could you give me a simple example?
    Thank you very much.

    I have writed a EJB module,and I have deployed to
    Weblogic8.1 successfully.:-)
    1.Now I want to write a client program.Is it
    necessary that the client program is packaged in the
    EJB package.For example ,the EJB package is Beans,is
    "package Beans " or "import Beans.*" necessary in my
    client program.You need not package your client with the EJB. It can be a JSP/servlet or a stand-alone application.
    2.If I only know the EJB interfaces,that means the
    EJB module is writed by other programer.I want to
    know how I can write the client program.How can I
    call EJB module's method writed by other
    programer.Could you give me a simple example?
    import java.util.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    import examples.*;
    class TestEJBHello {
        public static void main(String[] args) {
            Context context   = null;
            Object object     = null;
            // Hashtable for environment properties.
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            env.put(Context.PROVIDER_URL, "t3://localhost:7001");
            HelloHome home            = null;
            HelloWorld hello          = null;
            try {
                context     = new InitialContext(env);
                object      = context.lookup("HelloWorldTest");
                System.out.println(" JNDI Looked up >>> " +object);
                home        = (HelloHome)PortableRemoteObject.narrow(object, HelloHome.class);
                hello       = home.create();
                System.out.println(hello.hello());
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                close(context);        // Closes the initial context.
        private static void close(Context context) {
            try {
                context.close();
                System.out.println("*** Context closed. ***");
            } catch (NamingException namingException) {
                namingException.printStackTrace();
            } catch(Exception exception) {
                exception.printStackTrace();
    }Here's a sample client app code I use for a HelloWorld EJB. You need to have a EJB client JAR containing the home and remote interfaces in the classpath during compile time and runtime.
    x

  • VERY SIMPLE QUESTION REGARDING UML DIAGRAMS IN JDEVELOPER

    Hello there,
    I have a very simple question. I want to know how I can convert a class diagram that I have created in jdeveloper into a jpg image so I can put in word. When I try exporting it only has the uml to xmi option
    Does anyone have a suggestion?

    Hi,
    Right mouse click on the class diagram,
    than click publish diagram on the context menu
    and save as jpg where ever you want...
    Boris

  • Can anyone answer a very simple question for me ive heard the apple was giving a free iphone 4 or 4s bumper away is there any truth to that?

    can anyone answer a very simple question for me ive heard the apple was giving away iphone 4 or 4s bumpers is there any truth to that?

    Not any more, no. There was a free bumper program back when the iPhone 4 originally came out. It has long since expired.

  • HT1386 hi - i have recently upgraded to an iphone and find that when i open my MS Outlook on my computer, the emails that were on the iphone get wiped out. Has anyone got a solution to this problem? I'm sure it's very simple when you know the answer! Than

    hi - i have recently upgraded to an iphone and find that when i open my MS Outlook on my computer, the emails that were on the iphone get wiped out. Has anyone got a solution to this problem? I'm sure it's very simple when you know the answer! Thanks.

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • Very simple question from a rookie

    Hi,
    I don't know how sequences work in OWB.
    I have a very simple mapping:
    1 (not empty) source table, 1 (empty) target table, 1 sequence.
    Source and destination are connected.
    The sequence.nextval is connected to the primary key. sequence.currval is not connected.
    When I run the debug mode an error occurs: "Could not find data for all sources and target ...". The "Test Data" shows that OWB has not found data for the sequence.
    Help!

    I use 10gR2 and OWB 10.2
    The tables and the sequence are deployed. They are in the database.
    There's something strange about this:
    Starting ("Start...") works.
    The debugging does not work.
    Problem nearly solved ...
    Message was edited by:
    user517859

  • Very simple question from a beginner

    I am currently doing a little exercise, but I ran into a problem. I have written a class that supports operations on rational number. The fields are two long variables, one each that stores the numerator and denominator.
    I have made add, subtract, multiply, and divide methods...
    1. what I need help in is: beingh able to store the rational number in reduced for, with the denominator always positive
    2. constructing a toString method, equals method, and compareTo method.
    3. it also says "make sure the toString method correctly handles the case in which the denominator is zero by throwing an exception.
    I have been working on this for a long time now, an I am stuck at this point.
    I know this will be very simple for you guys and gals, but I am a beginner. Please offer some input, advice, and/or some code to help me get past this problem.
    Thanks so much,
    Jason

    ok, here is what I have so far
    public class Rational {
         public long num, den;
         public Rational(long n,long d) {
              this.num = n;
              this.den = d;
         public static void main(String args[]) {
              Rational r = new Rational(1,2);
              Rational s = new Rational(3,4);
              Rational rmuls = r.multiply(s);
              Rational rdivs = r.divide(s);
              Rational radds = r.add(s);
              Rational rsubs = r.subtract(s);
              r.print();
              s.print();
              rmuls.print();
              rdivs.print();
              radds.print();
              rsubs.print();
         public void print(){
              System.out.println(this.num+ "/" +this.den);
         public Rational multiply(Rational t){
              long n;
              long d;
              n = this.num*t.num;
              d = this.den*t.den;
              Rational answer = new Rational(n,d);
              return answer;
         public Rational divide(Rational t){
              long n;
              long d;
              n = this.num*t.den;
              d = this.den*t.num;
              Rational answer = new Rational(n,d);
              return answer;
         public Rational add(Rational t){
              long n;
              long d;
              n = (t.den*this.num)+(t.num*this.den);
              d = t.den*this.den;
              Rational answer = new Rational(n,d);
              return answer;
         public Rational subtract(Rational t){
              long n;
              long d;
              n = (t.den*this.num)-(t.num*this.den);
              d = t.den*this.den;          
              Rational answer = new Rational(n,d);
              return answer;
         //public int compareTo (Rational t)??????

  • Very simple question about webapp list layout.

    Hi Everyone!
    I am having a very simple issue. I have created a web app and it has a default list layout looks like:
    <table><tbody><tr><td>{tag_counter}. {tag_name}</td></tr></tbody></table>
    I have placed web app module (using {module_webapps,14273,a} ) in one of my page. In front-end it has show every thing fine except it shows table tag for each item:
    <table>
        <tbody>
            <tr>
                <td>1. <a href="/lot/lot-101">Castlepoint Lot 101</a></td>
            </tr>
        </tbody>
    </table>
    <table>
        <tbody>
            <tr>
                <td>2. <a href="/lot/efg-lot">EFG Lot</a></td>
            </tr>
        </tbody>
    </table>
    <table>
        <tbody>
            <tr>
                <td>3. <a href="/lot/some-lot">Some Lot</a></td>
            </tr>
        </tbody>
    </table>
    <table>
        <tbody>
            <tr>
                <td>4. <a href="/lot/some-other-lot">Some Other Lot</a></td>
            </tr>
        </tbody>
    </table>
    When I delete table and tbody tags from list view, it stop showing table related tags instead it start showing it without any tag.
    How to correct this issue? Please help!!!

    Here is what you can do:
    -edit the webapp list layout via FTP or via the "alpha" File Manager. The WYSIWYG editor will attempt to "correct" your HTML code. Enter something like this:
    <tr>
    <td>
    {tag_counter}. {tag_name}
    </td>
    </tr>
    -on the page you need the listing placed on enter this code:
    <table>
    <tbody>
    {webappmodule here}
    </tbody>
    </table>
    When the page renders you will get the desired result:
    <table>
    <tbody>
    <tr><td>1</td><td>Item1</td></tr>
    <tr><td>2</td><td>Item2</td></tr>
    <tr><td>3</td><td>Item3</td></tr>
    <tr><td>4</td><td>Item4</td></tr>
    </tbody>
    </table>

  • A very simple question (I think)

    My school has purchased some mac minis to use in our science lab, and now I want to get some very cheap monitors as we have a limited budget. I have some very basic questions that some experienced users could help me with:
    1. Could I use a TV monitor and connect via the HDMI input?
    2. What are the drawbacks when connecting a VGA monitor via the HDMI or mini connector?
    3. Would spending a bit more and getting a DVI capable monitor connected by the supplied "dongle" be best?
    4. What are the best brands of monitor?
    Many thanks,
    Geoff

    Well...
    1. If the TV has HDMI input, absolutely. Your main concern is the level of compatibility with a 'computer type' HDMI input, to avoid overscan/underscan issues.
    2. You can not connect VGA to HDMI without a device converting the signal from digital to analog, and such would cost much more than its worth. The only way to connect VGA avoiding compatibility issues is via the Mini Displayport with the correct dongle from Apple.
    3. I don't see any special advantage to getting a DVI capable computer monitor, over using an HDTV with HDMI or a computer monitor with HDMI. Basically you just need to find whatever display supports the input best as you need, at the best price.
    I won't really answer 4 because there's a lot of opinion in that.

  • A very simple question, please help.

    How would I output/print out a string in color rather then the standard black?
    If anyone can help me or point me in the right direction would be greatly appreciated.
    For example for extra clarification, if I want to print out a string "Hello World", how can I print it out in different colors such as in blue or red.
    Output to a JApplet ( TextArea)
    Thanks!
    Edited by: ff4930 on Nov 30, 2007 9:18 AM

    You can change the colour of all the text in a JTextArea by setting its foreground property:
    yourComponent.setForeground.setColor(Color.RED);If you just want have multiple colors in one JTextArea, that's not possible. You will have to use a more advanced component, like JEditorPane or JTextPane:
    http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
    In basic cases, if the text doesn't have to be editable by the user, you can use a JLabel and pass it simple html:
    String text = "<html><font color='red'>red text</font> " +
    "<font color='green'>green text</font> " +
    "<font color='blue'>blue text</font></html>";
    yourLabel.setText(text);

  • Very simple question: using XWS to generate static data

    Hi,
    I'm testing interop for JWSDP and a soon-to-be-released RSA Security, Inc. product that will also provide WSS as well as XML signatures, XML encryption, ...
    I have already used JWSDP -- xmldsig -- to generate a bunch of XML docs that were signed using JWSDP (all varieties of KeyInfo, signing algos, ...).
    I need to do something similar for WSS -- using xws-security.
    Do I need a Web container in order to be able to do this? (Again, recalling that all I want to do is generate thousands of encrypted, signed, encrypted & signed, signed & encrypted SOAP messages (using UsernameTokens, X509Tokens, ...))
    Do you have any examples that might save me some time?
    I have looked through all of the examples in the "interop" and "simple" subdirs of the "samples" subdir of "xws-security" and most of these presume that there's some RPC going on, which doesn't really fit the model of what I'm trying to do here. Got any ideas? Even basic ones? Even big ones?
    TIA.
    Liz

    I've kinda answered my own question in part:
    SecurableSoapMessage ssm = new SecurableSoapMessage(soapMessage);
    ssm.setFilterParameter(FilterParameterConstants.BINARY_SEC_TOKEN,new X509SecurityToken(ssm.getEnvelope().getOwnerDocument(),cert));
    ExportCertificateTokenFilter estf = new ExportCertificateTokenFilter();     
    estf.process(ssm);
    ExportSignatureFilter esf = new ExportSignatureFilter(new DirectReferenceStrategy(cert));
    esf.process(ssm);
    that transforms the soap message, adding the wsse xml, then I try to sign it:
    SignFilter sf = new SignFilter(new X509IssuerSerialStrategy(cert));
    sf.process(ssm);
    and this fails saying I don't have a privatekey, which makes sense. I need to create a DefaultSecurityEnvironmentImpl probably, define the key in there and then attach that to the SecurableSoapMessage? The problem is, I have the cert and privake key stored on files, how do I go about loading that into the SecurityEnvironment? Would this SecurityEnvironment handle cert chain validation then, since it can be constructed with a trusted keystore?

Maybe you are looking for

  • How can I force Firefox to override javascript when opening links with ctrl+click?

    There are certain sites that always open up a link in the active window despite said links being opened by ctrl+clicking it. Basically what happens is that a java script on the site forces the active window to load the link while at the same time Fir

  • Remove Child and Event.SOUND_COMPLETE not working inside movie clip. What's the problem?

    I have a movie clip that is called to the stage. The user then clicks a button and music plays. As the music starts, another movie clip is called, a simulation of  an equilizer. There are several things that should happen: 1) When the user closes the

  • Help for a thick one

    I have inherited a Nokia 6630 from my Son and although I can connect it through a Dongle I cannot Sync it as I am running isync 1.5. Q. is there any way of upgrading 1.5 to 2.2 with out purchasing a completely new OSx package. please help as I would

  • Sharing podcasts between pc & a mac.

    I listen to a majority of my podcasts on my 21 inch Imac.  Is there a way to share podcasts to ICloud & laptop pc?  I'd like to listen to the same podcasts on my laptop. 

  • Unit Conversion in BEx BI7.0

    Hello all, Im working with BI7.0 and I have been reading the posts about the quantity conversion and In order to use the unit conversion in BEX (not in transformation), I can apply the sugestion described in https://www.sdn.sap.com/irj/sdn/go/portal/