Javascript Help

RVFmal

Expert Member
Joined
Oct 27, 2004
Messages
2,172
Reaction score
214
Can anyone help with the following.

A few years ago I had to incorporate an Excel spreadsheet with a bucket load of formulae into a clients website.

Someone assisted me with this by encoding the spreadsheets in Javascript, but also encrypted it for security reasons.

The rates have now changed and I have to make the same changes to the Javascript code so that the calculations put out by the webpages are correct. I cannot however get hold of the person who helped write the code (he is in the UK).

Can anyone recommend how I go about un-encrypting and changing the Javascript to reflect the new rates?

ANY help would be greatly appreciated.
 
Ok. There aren't many JavaScript encryption methodologies - at least not anything serious. The chances are the person probably "munged" the code, meaning they made it more 'human unreadable'. If there is an encryption routine being applied, then there must be some sort of function that decrypts the code then "evaluates" it as JavaScript. At this point the only way I (or someone else) can help you out is if we see a snippet of code. If you don't want to post it here, PM me.
 
Bobbymac

Thanks for the reply. One thing that I have ascertained is that even if I do manage to unencrypt the code, I have no idea of what to change in terms of the rates as I am not that proficient in Javascript as it is.

Apparently it has been encrypted using Hexcodes.

Will send the code through to you via PM.
 
Bobbymac

Thanks for the reply. One thing that I have ascertained is that even if I do manage to unencrypt the code, I have no idea of what to change in terms of the rates as I am not that proficient in Javascript as it is.

Apparently it has been encrypted using Hexcodes.

Will send the code through to you via PM.
Ok, I suspect that it is a Java applet that is being used and not JavaScript, which would mean that you need the Java source code for the applet from the person lost somewhere in the UK. Difficult to say more without access to the html source of the webpage.
 
Ok, I suspect that it is a Java applet that is being used and not JavaScript, which would mean that you need the Java source code for the applet from the person lost somewhere in the UK. Difficult to say more without access to the html source of the webpage.

And so it becomes more complicated ;)

Can provide the HTML code for both pages (2 quotes pages with different rates.).
 
Top
Sign up to the MyBroadband newsletter
X