client-side

node.js executing server side function from client side

谁都会走 提交于 2019-12-08 07:28:51
问题 I have the server.js file on server side and the index.html on client side. I need to call a function from the server side through maybe a button or something on the index.html and get a feedbak on the index.html that the function was executed. In the future I would also like to pass over a variable to the server side from client side. I'm rather new to node.js. Hopefully someone can help me on this. 回答1: Node.js is no different than any other server side technology: it's not client side. If

Get Asp control id using jQuery

此生再无相见时 提交于 2019-12-08 06:25:54
问题 I know that this question has been asked several times but I'm not able to solve this problem. My problem is simple how we get asp dropdown id using jQuery. ASP <asp:DropDownList ID="ddlNewPortfolioName" Width="150" runat="server" AutoPostBack="True"></asp:DropDownList> JS alert($("[id$='<%=ddlPortfolioName.ClientID %>']").val()); This logic not work for me it show undefined value, whether there are some value available in dropdown and out of these first one is selected. Please help me on

Image cropping/resizing before sending to a server

霸气de小男生 提交于 2019-12-08 04:43:30
问题 I am searching for a solution that will allow a user to upload an image, crop the image, and then send the updated image to the server. Basically, I would like to handle all the editing client side and only send the new, smaller, thumbnail to the server. How can I do this? I have seen this is possible with Flash, but I am looking for alternative solutions. 回答1: Are you restricted to certain browsers? Using HTML5, here is a proof of concept from Anand Venkataraman. Demo is here. 来源: https:/

Client Side Encryption - Any recommendations / best practices - Point me in the right direction?

℡╲_俬逩灬. 提交于 2019-12-08 04:26:34
问题 We have a requirement to encrypt data client side to ensure a 'secure' channel exists between our client's browser and a vendor. Basic premise is: Vendor generates a public / private keypair: VendorPub and VendorPriv Our clients enter sensitive data. On submit the javascript on the form encrypts the sensitive portions of the data, what gets submitted to our server is VendorPub(SensitiveData). We submit that package to our vendor as VendorPub(SensitiveData), only they can make use of that data

Image cropping/resizing before sending to a server

和自甴很熟 提交于 2019-12-08 04:21:27
I am searching for a solution that will allow a user to upload an image, crop the image, and then send the updated image to the server. Basically, I would like to handle all the editing client side and only send the new, smaller, thumbnail to the server. How can I do this? I have seen this is possible with Flash, but I am looking for alternative solutions. Are you restricted to certain browsers? Using HTML5, here is a proof of concept from Anand Venkataraman. Demo is here . 来源: https://stackoverflow.com/questions/5492736/image-cropping-resizing-before-sending-to-a-server

How to localise static website text from translations stored in a database?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 02:54:17
问题 I need to design a translation mechanism/strategy for the static text in my (scalable) web applications - which are based on HTML, JQuery/JavaScript in an ASP.NET environment (but no server side controls) with dynamic data loaded from asynchronous jQuery calls to http handlers. I have successfully localised numbers, dates, etc using Globalize, however now need to sort out the text translation. Translated text is stored appropriately in a database (maintained by native partners in another

Sign SOAP request on client-side with Spring

[亡魂溺海] 提交于 2019-12-08 01:42:57
问题 I have read the Spring doc regarding Securing your Web services with Spring-WS but it looks for me as if the article is just regarding server side and not client side. Indeed, it is working fine for server side with Wss4jSecurityInterceptor but I need to sign a request to an external Web service. So, first question. Am I right and chapter 7 of Spring Web Services documentation just apply to server side? Second. It is possible, to add security, like signed headers, to SOAP requests on client

Asp.Net Validation - Clientside And/Or Serverside?

末鹿安然 提交于 2019-12-08 01:34:24
问题 The validator controls that can be used for asp.net input validation... requiredfieldvalidator regularexpressionvalidator etc Do they perfrom validation on the client side AND server side or do I need to have seperate validation in my codebehind to validate on postback (ie to prevent POST injection)? 回答1: They perform both. The validation framework that has been implemented in asp.net was designed to work both client and server side. If you have used these validators, you do not need to write

document.getElementById not working

耗尽温柔 提交于 2019-12-07 22:56:27
问题 I have 2 chekboxes on a page. There are wrapped in a table cell each within their own row. Doing a document.getElementById('chk1_FEAS~1005') returns the element but document.getElementById('chk5_STG2~1005') is null. For what reasons could this be happening? (I'm testing in IE 8). <input id="chk1_FEAS~1005" value="JobStages###StageCode~JobCode###FEAS~1005" onclick="addRemoveRow(this.value,this.checked)" style="border-width:0px;padding:1px;margin:0px;height:14px;" type="checkbox" /> <input id=

Can the server use a file from a client without uploading it to the server? ASP.NET

只愿长相守 提交于 2019-12-07 14:24:36
问题 I was wondering, at the moment, the client uploads a file to a directory on the server where the server can then use the file (csv file) to update a SQL database. Is that the only way the server can use that file? For it to first be uploaded to the server? Or can you use that file without uploading it to a directory of the server? (using visual studio 2012, C# and asp.net) Code update--- asp Uploading the file. (I know the code can be cleaner an written better, but my testing code is never