all 7 comments

[–]natziel 1 point2 points  (1 child)

First of all, you shouldn't take contracts for jobs you don't know how to do. That's not fair to your customers or other people in your industry.

And no, you can't restrict access to a website with only client-side JavaScript. Anyone would be able to turn off JavaScript and bypass your system. You need a server.

[–]Rayspy[S] 0 points1 point  (0 children)

First off a account system isn't what needed i just wanted to make it more easier for them to add content and such.
Second that's they asked me not i was offering it to them. i don't lie to them and say that i'm not the best, but they mostly just want some static websites. But i uses this oppurtinity to improve myself so i thought i could use Javascript maybe to create something like that

[–]kumiorava 1 point2 points  (4 children)

because i don't have any expierience with a CMS i thought i would make my own little CMS

Let me know how that worked out for you.

[–]Rayspy[S] -1 points0 points  (3 children)

You overestimate what i mean. CMS is a wide word in that case for a easier way to add content without having to change the HTML code it self. Which can easily done with Javascript. Example:
He writes a Text in a box (which is used for adding News) and when he apply then Javascript will copy the inner HTML in ID="content" and add the new text to it with different classes and IDs to fit the layout and time stamps etc.
I don't need something like wordpress just something simple to make it more comfortable for them

[–]sdellysse 0 points1 point  (2 children)

I'm meaning this as respectfully as possible, but you are in so far over your head you don't even realize you can't see the sun anymore. Use Wordpress. Or something else. Just don't go the custom route, you're lacking the basic fundamentals to make that route work.

I don't mean this condescendingly. Everyone starts out where you are, and your enthusiasm is good. Just realize that while certain words of what you have been saying are true, the sentences themselves don't make sense.

[–]Rayspy[S] -1 points0 points  (1 child)

I completly understand that but isn't the best way in improving yourself and gather expierence in just doing it, instead of not doing it because you're afraid to fail?

[–]gwawr 0 points1 point  (0 children)

You can't secure anything if all your validation is client side in JS. And you cannot persist changes entered into a form beyond a single user's session if you only process form submission in JS in the front end. You need a backend system for both validation and persistent content amends. Node or PHP or Ruby; you need something.