Questions tagged [client-side]

The term "client-side" refers to that portion of a web application which runs in the user's browser. Client-side code is most commonly written in Javascript, HTML and CSS. The counterpart of "client-side" is "server-side", i.e., the part of a web application running at the web server.

There are other many client-side techniques, in addition to used in the user's browser such as:

See also:

2357 questions
1096
votes
22 answers

How to create a file in memory for user to download, but not through server?

Is there a way to create a text file on the client side and prompt the user to download it without any interaction with the server? I know I can't write directly to their machine (security and all), but can I create the file and prompt them to save…
Joseph Silber
  • 214,931
  • 59
  • 362
  • 292
771
votes
31 answers

How to export JavaScript array info to csv (on client side)?

I know there are lot of questions of this nature but I need to do this using JavaScript. I am using Dojo 1.8 and have all the attribute info in array, which looks like this: [["name1", "city_name1", ...]["name2", "city_name2", ...]] Any idea how I…
Sam007
  • 8,397
  • 4
  • 24
  • 34
568
votes
3 answers

What is the difference between client-side and server-side programming?

I have this code: Why does this not write "bar" into my text file,…
deceze
  • 510,633
  • 85
  • 743
  • 889
289
votes
3 answers

Pass request headers in a jQuery AJAX GET call

I am trying to pass request headers in an AJAX GET using jQuery. In the following block, "data" automatically passes the values in the querystring. Is there a way to pass that data in the request header instead ? $.ajax({ url:…
Cranialsurge
  • 6,104
  • 7
  • 40
  • 39
248
votes
3 answers

Catch all JavaScript errors and send them to server

I wondered if anyone had experience in handling JavaScript errors globally and send them from the client browser to a server. I think my point is quite clear, I want to know every exception, error, compilation error, etc. that happens on the client…
Olivier Girardot
  • 4,618
  • 6
  • 28
  • 29
215
votes
11 answers

Single Page Application: advantages and disadvantages

I've read about SPA and it advantages. I find most of them unconvincing. There are 3 advantages that arouse my doubts. Question: Can you act as advocate of SPA and prove that I am wrong about first three statements? ===…
VB_
  • 45,112
  • 42
  • 145
  • 293
176
votes
13 answers

Is it worth hashing passwords on the client side

When I want to put a login system in place, I always compare the MD5 of the given password with its value in the users table on the server side. However, a friend of mine told me that a "clear" password could be sniffed by a network software. So my…
Zakaria
  • 14,892
  • 22
  • 84
  • 125
163
votes
8 answers

Image resizing client-side with JavaScript before upload to the server

I am looking for a way to resize an image client-side with JavaScript (really resize, not just change width and height). I know it's possible to do it in Flash but I would like to avoid it if possible. Is there any open source algorithm somewhere…
geraud
  • 1,633
  • 2
  • 11
  • 4
150
votes
5 answers

AngularJS: Understanding design pattern

In the context of this post by Igor Minar, lead of AngularJS: MVC vs MVVM vs MVP. What a controversial topic that many developers can spend hours and hours debating and arguing about. For several years AngularJS was closer to MVC (or rather one…
133
votes
10 answers

Getting query parameters from react-router hash fragment

I'm using react and react-router for my application on the client side. I can't seem to figure out how to get the following query parameters from a url like: http://xmen.database/search#/?status=APPROVED&page=1&limit=20 My routes look like this…
130
votes
3 answers

Best practice for localization and globalization of strings and labels

I'm a member of a team with more than 20 developers. Each developer works on a separate module (something near 10 modules). In each module we might have at least 50 CRUD forms, which means that we currently have near 500 add buttons, save buttons,…
user1968030
129
votes
8 answers

Removing elements with Array.map in JavaScript

I would like to filter an array of items by using the map() function. Here is a code snippet: var filteredItems = items.map(function(item) { if( ...some condition... ) { return item; } }); The problem is that filtered out items…
118
votes
9 answers

Sending emails with Javascript

This is a little confusing to explain, so bear with me here... I want to set up a system where a user can send templated emails via my website, except it's not actually sent using my server - it instead just opens up their own local mail client with…
nickf
  • 537,072
  • 198
  • 649
  • 721
87
votes
14 answers

Getting the text from a drop-down box

This gets the value of whatever is selected in my dropdown menu. document.getElementById('newSkill').value I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked…
Teifion
  • 108,121
  • 75
  • 161
  • 195
84
votes
6 answers

Why does page not update after refresh when .cshtml changes

I am trying out Blazor and i do not understand why when changing a component after refreshing the browser page it does not update ? Shouldn't the client update itself similar to how angular does? It only refreshes when i restart the blazor…
Bercovici Adrian
  • 8,794
  • 17
  • 73
  • 152
1
2 3
99 100