Questions tagged [client-side-scripting]

Client-side scripting generally refers to the class of computer programs on the web that are executed client-side, by the user's web browser, instead of server-side (on the web server). It is used to create dynamic web pages, Most popular client side scripting language is JavaScript.

Client-side scripting generally refers to the class of computer programs on the web that are executed client-side, by the user's web browser, instead of server-side (on the web server). It is used to create dynamic web pages, Most popular client side scripting language is JavaScript.

This type of computer programming is an important part of the Dynamic HTML (DHTML) concept, enabling web pages to be scripted; that is, to have different and changing content depending on user input, environmental conditions (such as the time of day), or other variables.

Client-side scripts are often embedded within an HTML or XHTML document (hence known as an "embedded script"), but they may also be contained in a separate file, which is referenced by the document (or documents) that use it (hence known as an "external script"). Upon request, the necessary files are sent to the user's computer by the web server (or servers) on which they reside. The user's web browser executes the script, then displays the document, including any visible output from the script. Client-side scripts may also contain instructions for the browser to follow in response to certain user actions, (e.g., clicking a button). Often, these instructions can be followed without further communication with the server.

179 questions
4
votes
2 answers

How To Send Streaming Video And Audio Data To The Server?

I am trying to build a video chat web api using html and javascript. So far I found this code that accesses the microphones and webcam on the client's device and displays the video and audio on that client's screen. Here is that code:…
3
votes
1 answer

Detect USB key/drive using PHP (client side installation)

first of all, I want to be clear on this point, the PHP script will run on the client side (not server side, I know it's impossible!). How can PHP detect USB key/USB drive when it is plugged on the USB port? Or, how can it detest USB when running…
Jeremy Dicaire
  • 4,615
  • 8
  • 38
  • 62
3
votes
2 answers

When to "use strict" in Javascript?

I'd appreciate your lessons learnt through experience on when to and when NOT to, "use strict" in Javascript. IMHO, "use strict" is good in server-side javascript code but NOT client-side, because not all (even modern) browsers support this feature.…
karthiks
  • 7,049
  • 7
  • 47
  • 62
3
votes
0 answers

ClientScriptManager loads scripts later, after the client script is loaded

I am creating a custom webcontrol, in that control's OnPreRender registering the Jquery script like this clientScriptManager.RegisterClientScriptResource(typeof(mycontrol), "jquery") in my aspx script i am using the jquery function.
BalaKrishnan웃
  • 4,337
  • 7
  • 30
  • 51
2
votes
2 answers

How can the client side encoding be bypassed in XSS

I hear everyone saying Output encoding has to be done client-side instead of server-side. My question is: doesnt it vary with context? Are there cases where client-side output encoding is good enough and cant be bypassed? If I use a client side js…
2
votes
1 answer

How to implement web-based Anonymity-Tests?

I recently came across some websites that demonstrate which information can be obtained from a user's system and show how 'anonymous' one is. For example these two sites here: http://ip-check.info/?lang=en or http://www.leader.ru/secure/who.html .…
Pedro
  • 4,100
  • 10
  • 58
  • 96
2
votes
1 answer

How to control or edit text that is copied from a web page (for good, not evil reasons)

My web application allows members of the university to lookup and display their university ID number. It displays that number in an agreed upon format 99999-9999 which was picked to help distinguish it from, say, a Social Security Number, and to…
2
votes
4 answers

Backbone.js button click event is fired for all instances of the button instead of just the one that is clicked. Why?

I am learning backbone.js and am quite new. I have a view that acts as a button: simpleButton = Backbone.View.extend({ template: "", el: $("body"), events: { "click": "onClick", …
Vlad Nicula
  • 3,577
  • 6
  • 32
  • 50
2
votes
1 answer

tinymce with asp.net, ValidateRequest=false in page, is it dangerous?

I am using tinymce editor in asp.net page. It was configured fine but when I tried to write soem text in editor it raised error "A potentially dangerous Request.Form value was detected from the client with timymce" I searched and came to know it was…
user576510
  • 5,777
  • 20
  • 81
  • 144
2
votes
0 answers

Plotly Dash - not fully understanding the extendData feature with stacked barplot

I've created a stacked barplot in a dash app that updates the number of data points in a trace according to input from a slider, as shown: Two different states: Unfortunately, the updates on the image are painfully slow (note that the update mode…
bandwagoner
  • 115
  • 6
2
votes
1 answer

Using primary keys with grid data and jQuery Templates

What is the best way to associate a primary key with a table row when using client-side templates, like jQuery Templates? Should I do some kind of data binding or something? Or should I embed and hide the id in the table like this:
Homer
  • 7,594
  • 14
  • 69
  • 109
2
votes
1 answer

NetSuite Client Script pulling credit card information

I have a client side script that I'm trying to get to access the ccnumber field on transactions. I'm using nlapiGetFieldValue('ccnumber') which pulls the number with everything but the last 4 digits hidden. I have been searching the developers guide…
kayduh
  • 308
  • 1
  • 5
  • 22
2
votes
2 answers

Can Javascript be replaced with another language?

Possible Duplicate: Alternatives to JavaScript Hi there, As there are many programming languages, and you have options, that which ever language you want to work on, like you if you use C# then you have option that you can use VB.NET or C++ etc…
2
votes
1 answer

Do duplicate script tags cause multiple runs?

If I have multiple
Flimm
  • 136,138
  • 45
  • 251
  • 267
2
votes
1 answer

Handling RadioButtonList with client-side scripting

I have an ASP RadioButtonList that I want to handle client-side. The web page contains a form with a radio button group and an associated GridView. When the user selects one of the radio buttons, I want to hide or show rows on the GridView. (The…
1
2
3
11 12