/    Sign up×
Community /Pin to ProfileBookmark

Design Idea

I’m starting off with a new website administration design.

I was going to have an index page and have a menubar at the top.

All content, forms, pages etc will be loaded via fetch methods and other vanilla JS.

My JS file is already long and there’s challenges managing PHP errors and JS errors correctly.

My question is, is this approach recommended or is one better going back to individual pages and just post the forms themselves via JS fetch.

Using the school, class student model.

Have a classroom pages for add, edit, delete and just fetch update these
Have a student pages for add, edit, delete just fetch update these

Vs

fetch the classroom index, further fetch add form, further fetch save add etc.

Makes sense?

to post a comment
Full-stack DeveloperHTMLJavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@orbancurtNov 18.2021 — Did you solve this situation?
×

Success!

Help @kiwis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...