client-side

Image Dark/Light Detection Client Sided Script

▼魔方 西西 提交于 2019-11-26 18:01:21
问题 Does anyone know if there is a script available to detect darkness/lightness in an image (html included) using a client sided script? I basically want to be able to detect the type of image (dark/light) used in the background and have CSS/HTML/Jquery/JS adapt the page based on a variable that is either dark of light (true of false). I know there are server sided script available but cannot use that for this particular development. Thanks in advance. 回答1: This function will convert each color

How to get client MAC address by a access on a website?

霸气de小男生 提交于 2019-11-26 16:12:53
问题 I have my website, and it records the number of visitors, IP and time of access... I want to identify each visitor... I think that this was possible recording IP Address... but when the IP is dynamic, my system fails. So I think that I can solve it recording MAC address... is possible? What language should use? PHP, ASP, Javascript? Thanks Edit: What I can use to identify each user without having login information (username & pwd). 回答1: The MAC address, by TCP/IP standards, is never

Client-side Javascript app - url routing with no hash tag

时间秒杀一切 提交于 2019-11-26 15:36:19
问题 I'm working on a new client-side only app with the latest version of Ember.js. There is a single PHP page which builds the scripts, css, template files, etc. and delivers it all into index.php. I'm using an htaccess directive so that all requests are rewritten to /index.php. The PHP is only there to conveniently package the Javascript, as far as I'm concerned. Currently, routes in the browser look like this and work just fine. /#/about /#/favorites /#/etc /#/posts/5/edit However, I would like

Accessing control client name and not ID in ASP.NET

眉间皱痕 提交于 2019-11-26 15:28:23
I want to fire a server-side ASP.NET button click event in JavaScript. I checked the page source and the button 's onclick in client side is: WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$LoginInfo1$btnliOK", "", true, "", "", false, false)); But I have to replace ctl00$LoginInfo1$btnliOK with something like <%= btnliOK.ClientName %> . Is there a way to do that? You can get it using the Control.UniqueID Property btnliOK.UniqueID UniqueID gives the on page rendered name ClientID gives the on page rendered id ID give's the id that you can use on code behind 来源: https:/

jqGrid client-side searching

微笑、不失礼 提交于 2019-11-26 15:27:25
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' that I would like to perform a search on looking for the string 'Test'. Here is what I have so far: var filter = { "field": "error_column", 'oper': 'eq', "data": 'Test' }; $("Grid2").jqGrid('setGridParam', { search: true, postData: { filters: filter} }) $("Grid2").trigger('reloadGrid'); When I click the button that this is bound to, nothing happens and it causes no errors. EDIT Here is the code

Client-side “Feature Tour” (tutorial/instructional) overlay system? [closed]

依然范特西╮ 提交于 2019-11-26 14:59:01
问题 Is there a system/framework in existence which focuses on providing tutorial / help like overlays in the browser? Example: You have a webapp which requires a certain level of instruction to the user. In this instruction process you wish to "highlight" (e.g. arrow, colour shading, pulsing border, etc) a certain element on the page, with an accompanied message. This would be a true overlay, so it would function only in absolute positioning, and not interfere with the existing layout. I'm

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

扶醉桌前 提交于 2019-11-26 14:47:49
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.Application"); activeXObj.ShellExecute("C:\\WINDOWS\\NOTEPAD.EXE", "", "", "open", "1"); but this doesn't work. Any suggestions? From Javascript? You can't. It's a security risk. Think about it - would you want every website to be able to run programs on your PC? DreamSonic You mean launch an external program thru a browser window using JavaScript? No way you can do that! That's a goddamn security black hole!

How to get client date and time in ASP.NET?

寵の児 提交于 2019-11-26 14:35:39
When I use DateTime.Now I get the date and time from the server point of view. Is there any way to get the client date and time in ASP.NET? What I'd do is create a hidden input field and then wire a Javascript routine to the onsubmit event for the form. This routine would populate the hidden field with the time on the client machine. The hidden field can used with ASP.NET by using the HTML control "HtmlInputHidden" class. You just give you input control a runat="server" attribute like any other server side control. The server can then read out this time when the form posts back. You could even

Can I use HTML5 to send a client-side email?

天涯浪子 提交于 2019-11-26 14:30:44
问题 I want to send an email in HTML5. I don't want to force the user to open a mail client, I want to send the email directly from the web page. On a side note, is there any way at all to do this in JavaScript? I know it's probably not possible, just wondering if there are any crafty ways to pull it off going completely through the client. 回答1: Yes it is possible. But not practical ** See Edit 2 Some HTML5 implementations include support for websockets, essentially a tcp connection to a server.

What client-side web scripting languages are there other than JavaScript and VBScript?

↘锁芯ラ 提交于 2019-11-26 11:24:16
问题 How many client-side scripting language implementations did you see except JavaScript and VBScript? Like: type=\"text/C++Script\" , text/CSharpScript , text/oberonScript , etc. How can I learn if my browser supports those languages? 回答1: The only languages I have ever seen supported by web browsers in <script> elements are: JavaScript / JScript (which is ubiquitous) VBScript (IE 10 and lower only) PerlScript (IE with a plugin from ActiveState only) Dart (in a nonstandard build of Chromium)