client-side

Server side doesnt see changes on client side

随声附和 提交于 2019-12-12 02:54:40
问题 I'm wondering if it's normal. I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event. And the HTML is all correct after I add the option. Is it a coding problem or I don't understand something? :P $(selectCourant) .append($("<option></option>") .attr("value",$(dropdown).val()) .text($(dropdown + " option:selected").text())); Thank you ASP.NET And vb.net 回答1: Yes you did not understand something. What's happens on

How the javascript event function can prevent server side event function (button click)

[亡魂溺海] 提交于 2019-12-12 02:13:49
问题 If I have, say, an .aspx page that has a button called "btnProcess": asp:imagebutton id="btnProcess" onmouseover="src='siteart/addpayment2.gif'" tabIndex="13" onmouseout="src='siteart/addpayment1.gif'" Runat="server" Width="88" Height="22" ImageUrl="siteart/addpayment1.gif" AlternateText="Add Payment Button (CTRL + Plus(+))" With jQuery, if I wanted to link a function to that button when it's pressed, I could write something like this: $(document).ready(function () { $('#btnProcess').click

Multiple jquery Selectors

孤者浪人 提交于 2019-12-12 00:37:30
问题 Thanks to karim79 i am able to click on the ImageButton and apply the Jquery highlight effect to a different div $("#btnFavorite").click(function() { // selector for element to highlight $("#theDiv").effect("highlight", {}, 3000); }); Now i would like to extend the question as follows. I add the ImageButtons to the webpage dynamically, and i would like to apply the effect on the div for every ImageButton click. <asp:ListView ID="ListView1" runat="server"> <layouttemplate> <asp:PlaceHolder id=

Implementing a server side push for a small number of clients

£可爱£侵袭症+ 提交于 2019-12-11 23:09:01
问题 For an web application I am working on I have the following requirements: Clients need to be able to log in via a web brower. After logging in, they will be able to change configurations (normal request/response) will be able to receive alarms sent by the server (a server side push) Now, the question is how to implement the alarms. I first thought of using some long polling approach (Comet), but as the amount of clients will definitely belimited to 5-10, I'm now thinking to go with a simpler

Security modifing app state from javascript

天涯浪子 提交于 2019-12-11 18:41:32
问题 I have a question about how to develop my web application security. Assuming that all the javascript code is public and that anyone can make any AJAX call directly, with parameters that seem convenient, then any call that directly modify the status of the database is highly dangerous. That is, calls as "changePoints" or "updateUserState" allow a malicious user to break the logic of, for example, a game and obtain unlimited money or points. My intuitive solution to this problem is to desing

Problems with public directory when deploying Node.js app with Heroku

╄→гoц情女王★ 提交于 2019-12-11 18:07:30
问题 I've been working on an app which will feature a Timelinejs (open source js library) element on the client side. I copied the Timelinejs library into my public/javascripts/ directory of my app. Then I linked it in my html header. When I serve my app up locally everything works fine with the timeline. However, I noticed that when I deployed my app to Heroku it wasn't loading my timeline. Using chrome js console I discovered that it didn't find my files in the public/Javascripts/Timelinejs

Localization and globalization file translate tool client side - javascript

江枫思渺然 提交于 2019-12-11 17:03:22
问题 I'm a member of a team with more than 20 developers. Each developer works on a separate module. In each module, We load data only for the desired language. For this purpose we save data to a separate files for each language. Example Module 1: locale (root folder) en en.js pt pt.js fr fr.js en.js is, define(function() { var label = { "name" : "Name", "age" : "Age", "location" : "Location" } var message = { "save": "data saved", "update": "data updated" } return { label: label, message: message

Download PDF file from Web location and Prompt user SaveAs box on client in web-Application ASP C#

旧城冷巷雨未停 提交于 2019-12-11 16:22:26
问题 I have link of a PDF file located on a website e.g. (https://www.mysite.com/file.pdf). What I need is prompt the user (on Client side) the SaveAs box to choose the file location to save the file. I tried the SaveFileDialog , but got know that it is only for Windows Forms. and my application is web based. C# Code var fileNumber = lblFileNumber.Text; string fileDownloadLink = "http://www.mysite.com/" + fileNumber + ".pdf"; string fileName = fileNumber + ".pdf"; bool exist = false; try { var

.net activeX equivalent

。_饼干妹妹 提交于 2019-12-11 15:29:53
问题 Is there a pure .NET replacement for ActiveX? I'm asking if there is a way for me to write a thick client side control to be loaded and interacted with in a web page in .NET, with NO com. Edit: I don't want ActiveX in pure .NET, I want a .NET alternative to ActiveX. 回答1: I'm afraid there is no perfect managed only equivalent of ActiveX. Mostly for good reason. ActiveX is a dangerous technology security wise and duplicating it's effects in many ways would require duplicating the lack of

How can I send some initial data to the bot before the user start chatting with my bot?

拟墨画扇 提交于 2019-12-11 14:51:57
问题 My problem is, How can I send some data on behalf of user to the bot before user start chatting. because different client will have different endpoint, I would like bot to get this endpoint first and save it as UserState, then use this endpoint for making API calls later. I'm using "https://github.com/microsoft/BotFramework-WebChat" this web chat as my client side, it create the directline using the secret, is that possible i add a post activity in the html file below to send some data? Thank