Javascript Test

Associate
Joined
15 Oct 2009
Posts
579
Hey, im just looking for some people to test a script i've been working on for my company's new web page.

It's been about 2 weeks in production and allows users to design their own staircase on the net so then can then go on to order it, the design script is the only thing that needs testing at the moment so i created a basic test page that allows the user to change all aspects of the design that they will need.

This is only an early version of the script, so things like measurements and balustrading dont show at the moment, but it's a work in progress so i'm just making sure all bugs are ironed out before i progress onto the next stage and here seems to be the best place to test across a wide range of configurations before i continue ^^.

Some of the options wont appear to have any effect because they will be for different configurations (available to choose from at the top) and the 'Floor to Floor' measurement isn't working at all for the moment.

Just let me know if you come across any bugs e.g treads appearing in the wrong place, broken drawings, tread numbers incorrect etc.

Thanks!

>> CLICK HERE <<
 
All seems to work for me :)

The only thing I did notice though was that the layout for 'half landing' stays the same as the previous option selected, just without the stair number or lines - is that right?
 
All seems to work for me :)

The only thing I did notice though was that the layout for 'half landing' stays the same as the previous option selected, just without the stair number or lines - is that right?

Thanks for testing it ^^

I forgot to mention that the half landings still arn't implemented yet, thats something that's not needed for the moment so i havn't put any time into it.
 
Hi,

Seems mostly ok, only issue I had was with stair configuration single wind, turn type 4 blade and 90 degree rotation the numbers on the corner went the wrong way (was ok every other type of rotation and settings).

:)
 
Hi,

Seems mostly ok, only issue I had was with stair configuration single wind, turn type 4 blade and 90 degree rotation the numbers on the corner went the wrong way (was ok every other type of rotation and settings).

:)

Ah, nice spot, thanks! I'll hunt it down and fix it now.

[EDIT] - Fixed :)
 
Last edited:
Would be easier to have number of treads as a text input, rather than drop list. :)

Well the theory behind the drop lists is that it will be limited on the actual production site so that only a certain number of designs will be generated. Yes i could just change the value back to the limit and give a popup to the user to tell them they have reached the limit, but I just thought it would make things a bit simpler for the end user doing things this way. Thanks for your input ^^
 
Seems to work fine for me, I agree with Dj_Jester that the treads could be a text input though. You could also hide unnecessary fields such as 'Turn Direction' if a straight staircase is selected and only display them if needed. Looks good so far though, a nice interface without having to use Java or Flash to do it.

A side note, I was wondering what benefit JavaScript obfuscation offers? Surly it slows down execution as it has to be de-obfuscated every time the page is loaded and it doesn't actually protect the source code.
 
Seems to work fine for me, I agree with Dj_Jester that the treads could be a text input though. You could also hide unnecessary fields such as 'Turn Direction' if a straight staircase is selected and only display them if needed. Looks good so far though, a nice interface without having to use Java or Flash to do it.

A side note, I was wondering what benefit JavaScript obfuscation offers? Surly it slows down execution as it has to be de-obfuscated every time the page is loaded and it doesn't actually protect the source code.

Not much really - http://blog.strictly-software.com/2009/05/what-is-point-of-client-side-security.html

Seems a bit pointless to me. E.g. the I used a free onloine unpacking tool to get the full source of the staircase class (http://dalebuckley.com/test/StaircaseClassPACKED.js) - full source http://pastebin.com/f37a6d376
 
Not much really - http://blog.strictly-software.com/2009/05/what-is-point-of-client-side-security.html

Seems a bit pointless to me. E.g. the I used a free onloine unpacking tool to get the full source of the staircase class (http://dalebuckley.com/test/StaircaseClassPACKED.js) - full source http://pastebin.com/f37a6d376

It's more about crushing it down as much as possible so it's quick to download. To tell you the truth this is my first real attempt at Javascript so the code itself is pretty bad, but i plan on improving it and speeding it up over the following weeks as i get used to things a little more. (that's what the obfuscation was for, to hide the crappyness :P)

As i said in the OP, the page i've linked to is just a test page, it's just thrown together for simplicity when testing new bit's etc. The final interface will take into consideration building regulations etc which will automaticly change different options to reflect those regulations. I will take into acount your feedback about the text filed instead of the dropdown menu though, i'll test it and see how it feels on the final page :)
 
Last edited:
It's more about crushing it down as much as possible so it's quick to download. To tell you the truth this is my first real attempt at Javascript so the code itself is pretty bad, but i plan on improving it and speeding it up over the following weeks as i get used to things a little more. (that's what the obfuscation was for, to hide the crappyness :P)

As i said in the OP, the page i've linked to is just a test page, it's just thrown together for simplicity when testing new bit's etc. The final interface will take into consideration building regulations etc which will automaticly change different options to reflect those regulations. I will take into acount your feedback about the text filed instead of the dropdown menu though, i'll test it and see how it feels on the final page :)

As far as I know packing and minifying are different things. Whereas minifying will just limit the file to one huge line with no spaces, packing will do a similar thing require extra processing each time its read. Personally, I always just minify bits of javascript i have on websites and alwasy use minified versions of say JQUery and JQuery UI.
 
Back
Top Bottom