client-side

Telerik RadCombobox not keeping state when using client side requestItems() to load

社会主义新天地 提交于 2019-12-11 07:24:46
问题 I'm using the Telerik RadComboBox control. I have two related combos and when the user selects a value in the first one I filter the second one. I use the code below to achieve this: localeCombo = $find("<%= ddlLocale.ClientID %>"); localeCombo.requestItems(item.get_value(), false); This works totally fine, but when I do a postback my filtered combo resets to the original non filtered list, although all other controls retain their state. I assume this is because the server side list of items

Safely searching elasticsearch from client-side?

…衆ロ難τιáo~ 提交于 2019-12-11 07:24:16
问题 If my elasticsearch could be called directly from jQuery it would be much faster and simpler. I currently have a proxy in the middle of my static site and ES cluster. I have been looking at Search Guard from another answer on here but many features of this wouldn't work e.g. IP blocking as if it was a jQuery script it would be called from my static site visitors IP. Likewise if I have a password and put it in a jQuery script the user would see it. I have also tried going further up the chain

RegisterClientScriptBlock confusion

ぃ、小莉子 提交于 2019-12-11 07:02:07
问题 My master web page contain JS code to override standard alerts with custom jQuery dialog boxes. <script type="text/javascript" language="javascript"> window.alert=function(alertMessage) { $.msgbox(alertMessage, {type: "info"}); } </script> In default.aspx web page onLoad method I am trying to register and display alert script Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "InvalidPassword", "alert(\"Your login attempt was not successful. Please try again.\");", true);

Parse page for checkboxes via javascript

孤街醉人 提交于 2019-12-11 06:43:22
问题 I have a bunch of checkboxes that are created dynamically on page load and written like so: <input type='checkbox' name='quicklinkscb' id='quicklinkscb_XX'/> where XX represents the id of the item from the database. I want to be able to parse the page via javascript for all checkboxes and: find their id and strip the 'quicklinksscb_' from it and: if(checkbox is checked) { add to add list } else { add to remove list } I can't do this via checkbox list and I want to do this all client side Can

WCF endpoint discovery from a client; Is it possible?

流过昼夜 提交于 2019-12-11 04:53:37
问题 I think my question is a simple one. Is it possible for a web client to discover what methods are available from a particular WCF service (by way of http://the.web.server/SomeWCFService.svc)? This is not something that we're trying to do but rather we're trying to discover how vulnerable our services are and we're looking into ways to make them a little more secure. Thanks in advance. 回答1: The following MSDN article should address your concern, as it clearly states that a client must have

How to detect if user has already opened an url and redirect to same if already opened?

ぐ巨炮叔叔 提交于 2019-12-11 04:39:22
问题 Can anyone please tell me how can I detect if user has already opened the link/url tab and is it possible to redirect a link to a active browser tab if the url is already opened? Eg: User clicks on the link and js code will open a new tab in browser.Now if user again clicks on the link I want him to redirect to the active session instead of opening a new tab. I read the below post but unable to implement my logic according to them: Java: ensure web application open only in one browser tab

Caching WCF client-side with .NET4

允我心安 提交于 2019-12-11 04:29:25
问题 I have a set of entities which which will be retrieved from service. Some of them are static, so i decided to create a client-side cache. But i can not find the point to insert caching. I have svcutil generated proxies and i need to enable caching for some of them (not all). My point is to make some mechanism, that will work in channelFactory/clientBase level and will cache all required entities. What i want: transparent caching without business logic changing (in common or at all)

Google News API gives an error Uncaught SyntaxError: Unexpected token ')'

感情迁移 提交于 2019-12-11 04:24:35
问题 Originally I wrote some code like this: var val="MSFT"; $.get('https://www.google.com/finance/company_news?q='+val+'&output=rss', function (data) { console.log(data); }); And that code is working fine locally. But when I am trying to call this same function from GitHub it is giving me an error about CORS. So, I am trying with the following client-side code: var nws_lbl = "MSFT"; var news_url = 'https://www.google.com/finance/company_news?q='+nws_lbl+'&output=rss&callback=? '; $.ajax({ url:

DevExpress: How do get an instance of a control client-side and access its client-side members?

南楼画角 提交于 2019-12-11 02:29:27
问题 I have a DateEdit control from DexExpress and need to get the date value from it using Javascript. Conceptually, I am looking for something like this: var d = $("dpEndDate").GetDate(); Their API reference indicates that .GetDate() is a member, but I just need to know how to acquire a client-side instance of the object that contains this member. 回答1: It is necessary to specify the ClientInstanceName property (for the ASP.NET WebForms) and the “Name” property (for the ASP.NET MVC) to enable

Digital Signatures of XML, PDF and Office Documents on every platform

南笙酒味 提交于 2019-12-11 02:08:25
问题 I'm trying to develop a website that performs digital signatures on client-side and then sent the signed document to the server-side. I want to do the signatures on client, due to the fact of not sending away the user's private key. This key (in theory) must be always with the user and it must not be sent to the web (even if protected with SSL, for example). I want that every platform may be able to sign the documents. I've already developed a Java Applet with the signing algorithms, but Java