server-side
Using JQuery Server side datatables in ruby app and pagination shows blank page after 1st page
Using JQuery Server side datatables in ruby app and pagination shows blank page after 1st page
Does JSONP require server modifications?
Yes, JSONP is slightly different when it renders, so your server needs to support it. JSON looks like this: { “name”: “value” } Whereas JSONP looks like this: functionName({ “name”: “value” }); If whatever you’re using supports it you’re covered, but it’s not the same as supporting just JSON. When the server gets a request, … Read more
How to generate sitemap with react router
For simple ReactJS sitemap integration with React Router, you should check out the react-router-sitemap package. It’s fairly configurable as well, as you can see in the docs, so if you need to include change frequency or things like that, you should be able to do it no problem. Or were you looking for a way … Read more
Server Side Javascript: Why?
It goes like this: Servers are expensive, but users will give you processing time in their browsers for free. Therefore, server-side code is relatively expensive compared to client-side code on any site big enough to need to run more than one server. However, there are some things you can’t leave to the client, like data … Read more
Client-side vs. server-side templating (which one?)
UPD: do it only if you really need it (4 years and 2 isomorphic enterprise apps later) If you’re required to do SSR, fine. If you can go with a simple SPA – go with it. Why so? SPAs are easier to develop, easier to debug and cheaper and easier to run. The development and … Read more
How to handle multiple submissions server-side
One really effective way is to submit a token along with the request, and keep a list of used tokens. If the token is not valid, or the token has already been processed, then abort. The token can be as simple as an incrementing integer, stored in a hidden text field, or you can encrypt … Read more
Why is client-side validation not enough?
Client-side validation – I assume you are talking about web pages here – relies on JavaScript. JavaScript powered validation can be turned off in the user’s browser, fail due to a scripting error, or be maliciously circumvented without much effort. Also, the whole process of form submission can be faked. Therefore, there is never a … Read more
url with multiple forward slashes, does it break anything?
HTTP RFC 2396 defines path separator to be single slash. However, unless you’re using some kind of URL rewriting (in which case the rewriting rules may be affected by the number of slashes), the uri maps to a path on disk, but in (most?) modern operating systems (Linux/Unix, Windows), multiple path separators in a row … Read more
How to store session data in server-side blazor
Note: This answer is from December 2018 when an early version of Server-side Blazor was available. Most likely, it is no longer relevant. The poor man’s approach to state is a hinted by @JohnB: Use a scoped service. In server-side Blazor, scoped service as tied to the SignalR connection. This is the closest thing to … Read more