All Questions

339
votes
4answers
26750 views

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

I have this code: <script type="text/javascript"> var foo = 'bar'; <?php file_put_contents('foo.txt', ' + foo + '); ?> var baz = <?php echo 42; ?>; aler...
553
votes
16answers
246919 views

Create a file in memory for user to download, not through server

Is there any way I can 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 a...
296
votes
19answers
285670 views

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", ...
119
votes
7answers
140909 views

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

I would like to know if it is technically possible to resize an image at a client-side with JavaScript (really resize, not just change width and height). I know it's possible to do it in Flash but I w...
175
votes
3answers
255432 views

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 head...
53
votes
1answers
29133 views

ASP.NET MVC 3 client-side validation with parameters

Following on from this post Perform client side validation for custom attribute I am trying to get my head around how to do this, passing additional parameters to the client-side script As I underst...
77
votes
9answers
47615 views

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" passw...
25
votes
5answers
10920 views

In IndexedDB, is there a way to make a sorted compound query?

Say a table has, name, ID, age, sex, education, etc. ID is the key and the table is also indexed for name, age and sex. I need all male students, older than 25, sorted by their names. This is easy in...
3
votes
1answers
18467 views

jqGrid client-side searching

I would like to manually apply searching to my jqGrid via JavaScript. I have tried a guide here, but can't seem to get it completely working. In the grid setup I have a column with name 'error_column'...
6
votes
7answers
51836 views

How can I run a program or batch file on the client side?

How can I run a batch file on the client side? An exe file? Just to open pre-installed program in client side? [Edit] Regarding ActiveX, I tried var activeXObj = new ActiveXObject("Shell.Applic...

Previous Next