#Creating pages with HTML/CSS/JS & probably PHP.

16 messages · Page 1 of 1 (latest)

thick cipher
#

basically I'm making this craft tracker, where you can create a new project through the click of a button. when you click this button its supposed to create a new HTML page that has a layout already, you can edit all attributes to it though. my question is, how would i get the JS, & PHP to make a ***seperate ***page on the users end and it saves to the users account?

Kinda like the website & app https://notion.so/

surreal kite
#

A separate JS page or HTML?

thick cipher
#

HTML

surreal kite
#

I think you would ultimately want to represent the page as JSON. That JSON can be saved to the users account. Then when they load up the website, you can loop through the JSON to populate all the pages. They don’t need to be real html files, you can create them with templates or even just the vanilla DOM api.

thick cipher
#

i see, do you know any places i could learn to do that (make the page as a JSON)

surreal kite
#

Here would work 🙂

#

Depends what you need help with specifically

thick cipher
#

well to simplify it, i just want the users using the website to create a page by clicking a button. then with that button they are redirected to a page saved on their account titled as "New Proj #" (# being a number like 1, 2, 3, so on so forth.), and they can edit this page to add percentages, inventory, math stats, files of their own (images, & pdfs mostly!).

surreal kite
#

Yeah got it! Do you have any code written yet?

thick cipher
#

yeah!

surreal kite
#

Looks like a cool project!

#

Let me try and make an example.

thick cipher
gloomy crystal
#

You did not know any PHP at all yesterday. Now you have a few lines of real PHP code. Have you set up a PHP server? You can't run PHP code without it.

An important question you haven't answered is if you intend to rely on client side or server side rendering. This will very significantly impact how the code is written, especially if the server uses PHP. The language used to do the rendering will be JS with DOM manipulation if it's client side and it will be PHP with string manipulation if it is server side.

thick cipher
#

ive got a server yes, and from my notes about this project, i was thinking client side