client-side

How to change form background color on focus loss when text is entered?

落花浮王杯 提交于 2019-12-13 23:05:37
问题 First I would like to point out that all of this is client side, not web based whatsoever. I need to have the form boxes change to green after focus loss when text has been input. The form boxes start out white, turn purple on focus, and i need them to turn green on a loss of focus when text is input. <!DOCTYPE html> <html> <head> <title>Login - Powered By Skyward</title> <link rel="icon" href="skyicon.gif"> <meta name="viewport" content="height=device-height, initial-scale=1.0"> <script type

Client-Side vs. Server-Side Scripts to Process Order [closed]

佐手、 提交于 2019-12-13 22:04:08
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I am designing a website to allow the user to pick the size of their pizza and the toppings they put on it. Based on these choices, I want to write scripts to: 1. calculate the cost for that pizza when the form is submitted 2. Process payment (validate Credit Cards, etc )

Includes without local server?

假装没事ソ 提交于 2019-12-13 18:11:16
问题 I'm making a website, and I like testing everything offline instead of having to upload files with every change I make. The problem is I can't use includes, so when I do upload, I'm going to have to change a lot of the file structure. I'm not looking to install a local server like WAMP when I just want to use includes. Is there any way? 回答1: Not really. You could process includes statically (e.g., write yourself a Makefile to create the actual HTML files you view locally). There are plenty of

What JavaScript library to use for client-side form checking?

☆樱花仙子☆ 提交于 2019-12-13 17:34:03
问题 Over the years, I've dabbled in plain JavaScript a little, but have not yet used any JavaScript/AJAX libraries. For some new stuff I'm working on, I would like to use a js library to do client-side form validation, and want to know which would be best for that. By best, my criteria would be: quick and easy to learn, small footprint, compatible with all popular browsers. Edit: Thanks for the ASP suggestions, but they're not relevant to me. Sorry I didn't originally mention it, but the server

Save JSON File Locally

风格不统一 提交于 2019-12-13 12:10:05
问题 I am designing an HTML5 website that allows you to create and position shapes with several attributes. The shapes are created as divs of class="shape" and the attributes are stored to each shape div using the data method. I'd like to be able to save the position and attributes of the shapes, in a JSON file, with a user defined name. Currently, I am using ajax and php to generate the JSON file and save it on the server. Any ideas or thoughts on how it should be done? Bonus points for libraries

Is JQuery secure? [closed]

六眼飞鱼酱① 提交于 2019-12-13 10:15:28
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Like we know that javascript is insecure as it is a client side script. Does JQuery is also insecure? If yes, than why we are seeing blogs on "JQuery replaces AJAX" and if not,than how it is different from

Calculate sum of textboxes inside nested grid

点点圈 提交于 2019-12-13 06:37:49
问题 I have two nested grids in a GridView . Both nested grids have different number of controls ( TextBoxes ). I want to calculate sum of nested grid textboxes and put in a relevant textbox of relevant row parent grid. I want to do this using jQuery. Following is the source of grids: <table cellspacing="0" rules="all" border="1" id="gvSPActivities" style="width:100%;border-collapse:collapse;"> <tr class="donorh1" align="left" style="height:35px;"> <th scope="col" style="width:40px;">#</th><th

Using Global Variables between multiple functions in JQuery?

两盒软妹~` 提交于 2019-12-13 05:19:10
问题 I want to dynamically load an image using jQuery like this: main.js var slidersrc=""; //try to define global variable - not sure if this is correct jQuery(document).ready(function() { jQuery("#sliderimg").attr('src', slidersrc); }); jQuery("#selection1").click(function() { slidersrc='wp-content/themes/*****/slide1.png'; }); So the first time user access my website, the slider is empty. After user clicks on one of the selection areas, I set the global variable value. Then if user continues to

Print the contents of a text file on the client's printer using asp.net

天大地大妈咪最大 提交于 2019-12-13 04:29:22
问题 I am having a text file uploaded on the server. When a User Clicks on print button I want the file to be printed using his/her printer. Currently I am using the below code, but it is for the server side printing. Protected Sub btnPrint_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPrint.Click Dim fileName As String = "" For x As Integer = 0 To FileImageList.Count - 1 If FileImageList(x).parent.backcolor = Drawing.Color.Orange Then fileName = FileNameList(x).text End If

Moving from Page A to Page B in Asp.Net. What is the “Best” way?

这一生的挚爱 提交于 2019-12-13 03:59:38
问题 I have a user on what we will call PageA.aspx. This user needs to get to PageB.aspx. The obvious way is have a hyperlink that simply sends them to PageB.aspx. That got me thinking about the other ways to get between pages. One could use javascript to do a client side jump. There is also the seemingly bulky server side redirection. What I would like to know is what, if any, are the performance hits between these different methods. I am going to assume the server side is a bit more heavy weight