Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-17-2013, 05:19 AM   PM User | #1
oem7110
New Coder

 
Join Date: Dec 2011
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
oem7110 is an unknown quantity at this point
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>
oem7110 is offline   Reply With Quote
Old 01-17-2013, 07:01 AM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
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">
devnull69 is offline   Reply With Quote
Old 01-17-2013, 09:52 AM   PM User | #3
oem7110
New Coder

 
Join Date: Dec 2011
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
oem7110 is an unknown quantity at this point
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
oem7110 is offline   Reply With Quote
Old 01-17-2013, 01:02 PM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,036
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
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.
Philip M is online now   Reply With Quote
Old 01-17-2013, 03:56 PM   PM User | #5
oem7110
New Coder

 
Join Date: Dec 2011
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
oem7110 is an unknown quantity at this point
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
oem7110 is offline   Reply With Quote
Old 01-17-2013, 09:42 PM   PM User | #6
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,187
Thanks: 59
Thanked 3,995 Times in 3,964 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
oem7110 (01-18-2013)
Old 01-18-2013, 07:14 AM   PM User | #7
oem7110
New Coder

 
Join Date: Dec 2011
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
oem7110 is an unknown quantity at this point
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..
oem7110 is offline   Reply With Quote
Old 01-18-2013, 09:09 PM   PM User | #8
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,187
Thanks: 59
Thanked 3,995 Times in 3,964 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is offline   Reply With Quote
Old 01-18-2013, 09:30 PM   PM User | #9
oem7110
New Coder

 
Join Date: Dec 2011
Posts: 11
Thanks: 2
Thanked 0 Times in 0 Posts
oem7110 is an unknown quantity at this point
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
oem7110 is offline   Reply With Quote
Old 01-18-2013, 09:50 PM   PM User | #10
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,187
Thanks: 59
Thanked 3,995 Times in 3,964 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:12 PM.


Advertisement
Log in to turn off these ads.