Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    What kind of language does it use for this App?

    Based on following source code, it is very short, does anyone have any suggestions on what kind of language it uses for this App?

    Thanks in advance for any suggestions

    http://www.dukascopy.com/free/candelabrum/

    <!DOCTYPE html>
    <html>
    <head>
    <title>Candelabrum v2</title>
    <meta charset="utf-8" />

    <link rel="stylesheet" href="candelabrum.css" type="text/css" />

    <script type="text/vbscript">
    Function IEBinaryToArray_ByteStr(Binary)
    IEBinaryToArray_ByteStr = CStr(Binary)
    End Function

    Function IEBinaryToArray_ByteStr_Last(Binary)
    Dim lastIndex
    lastIndex = LenB(Binary)
    if lastIndex mod 2 Then
    IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )
    Else
    IEBinaryToArray_ByteStr_Last = ""
    End If
    End Function
    </script>

    <script type="text/javascript" src="candelabrum.js"></script>
    <script type="text/javascript">
    var candelabrum;
    window.onload = function() {
    candelabrum = new dc.candelabrum.Candelabrum();
    candelabrum.render(document.getElementById('candelabrum'));
    }
    </script>
    </head>
    <body>
    <div id="candelabrum" style="width:670px;">
    </div>
    </body>
    </html>

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    It uses three "languages"

    1 - The HTML markup language
    2 - Visual Basic script (vbscript) as seen in
    Code:
    <script type="text/vbscript">
    3 - Javascript as seen in
    Code:
    <script type="text/javascript">

  • #3
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Based on the coding, I don't see any coding to create the interface for selections.

    Do you have any suggestions on which coding to create the interface for selections?
    Thanks you very much for any suggestions

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,080
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Quote Originally Posted by oem7110 View Post
    Based on the coding, I don't see any coding to create the interface for selections.

    Do you have any suggestions on which coding to create the interface for selections?
    Thanks you very much for any suggestions
    What does create the interface for selections mean???

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    What does create the interface for selections mean???
    Does the application mainly come from this code candelabrum.js?
    when user makes any selections, do all selected variable go into this module?

    Does anyone have any suggestions?
    Thanks everyone very much for any suggestions

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,184
    Thanks
    80
    Thanked 4,451 Times in 4,416 Posts
    Yes, the JS code is creating all the HTML.

    Yes, it's very complex, probably to keep out prying eyes.

    No, it's not impossible to decode; just very tedious to do so and would take a long time.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    oem7110 (01-18-2013)

  • #7
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Old Pedant View Post
    No, it's not impossible to decode; just very tedious to do so and would take a long time.
    If it is possible to decode it, do you have any suggestions on any approach to do that?

    Based on previous working path using php as shown below, I think the structue for data keeps unchange, but it changes the interface only.
    http://www.dukascopy.com/freeApplets/exp/exp.php?fromD=02.17.2013&np=2000&interval=60&DF=m%2Fd%2FY&Stock=502&endSym=win&split=tz"

    Does anyone have any suggestions?
    Thanks everyone very much for any suggestions
    Last edited by oem7110; 01-18-2013 at 11:45 AM.

  • #8
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,184
    Thanks
    80
    Thanked 4,451 Times in 4,416 Posts
    Quote Originally Posted by oem7110 View Post
    If it is possible to decode it, do you have any suggestions on any approach to do that?
    Easy suggestions:

    If you are not an expert in JavaScript, the best suggestion is "don't try it."

    If you are an expert in JavaScript, then just take your time.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #9
    New Coder
    Join Date
    Dec 2011
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Old Pedant View Post
    Easy suggestions:

    If you are not an expert in JavaScript, the best suggestion is "don't try it."

    If you are an expert in JavaScript, then just take your time.
    In order to find out the corrected link to download files, do you have any suggestions on how to determine the internal structure within module on handling different variables? I think it will be impossible to guess the structure within module. Do you have any suggesitons on what kind of tools to do the guess work?

    Thanks everyone very much for any suggestions

  • #10
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,184
    Thanks
    80
    Thanked 4,451 Times in 4,416 Posts
    I would ignore the code, per se. I would just use a debugger and figure out where to set a breakpoint that will show me the name of the file that is about to be downloaded (or, when you ask for a chart, shown in another window).

    I would try to determine the PATTERN of the file names (URLs) use for various purposes.

    Then, if I only needed one or two *kinds* of files/URLs, I'd just build an interface to download only those.

    *ALL* of this assumes that they don't have some sort of heavy protection in their system that won't respond to requests that don't come from their own web site.

    Actually, they probably do have that. When you submit anything to server-side code, in the headers sent is something called the HTTP_REFERER that tells the server the full URL of the page that is making the request. Most servers are set up to reject requests from pages not from the same site and/or not a specific page on that site.

    Now, you *CAN* "spoof" that HTTP_REFERER. But not with just HTML and JavaScript. You have to be able to write some marginally complex server-side code that will do the spoofing.

    So, again, all of this likely depends upon your level of expertise in coding and your ability to "spoof" a site.

    On top of which, if that site has a legal "terms of service" agreement, you may well be breaking the law.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •