server-side

extjs4 server side validation,how to?

一世执手 提交于 2019-12-25 02:16:32
问题 i have a form in extjs and i need to do some validation tests on it on server side and return a message error but i have no clue how to do this! i need to verify if the new added ip adress already exists i also need to verify if it is actually a valid adress (i have a c# function that can do this) if these conditions are ok it can be added. if not, i'd like to show an error message to the user saying what is the problem now when i call my save button submit,i do these tests on my c# before i

Server side printing in PHP 5

不想你离开。 提交于 2019-12-25 01:33:13
问题 How can i print my html file via php script? I just want to run it in background without any prompt. I have read other posts regarding this but still didnt find anything working. I tried this one : <?php $dir = "temp"; // the folder that you are storing the file to be printed $file = "file.html"; //change to proper file name $file_dir = $dir.$file; $server = "home_computer"; //name of the computer you are printing to on your network $printer = "HP"; //printers shared name $command = "print

What is the difference between client-side and server-side programming?

陌路散爱 提交于 2019-12-25 00:25:58
问题 I have this code: <script type="text/javascript"> var foo = 'bar'; <?php file_put_contents('foo.txt', ' + foo + '); ?> var baz = <?php echo 42; ?>; alert(baz); </script> Why does this not write "bar" into my text file, but alerts "42"? NB: Earlier revisions of this question were explicitly about PHP on the server and JavaScript on the client. The essential nature of the problem and solutions is the same for any pair of languages when one is running on the client and the other on the server

getting client to automatically send data to server

老子叫甜甜 提交于 2019-12-24 22:18:02
问题 i am running a server side application which receives data of ping done from client side to certain ip addresses. Currently a person goes to these clients and does the ping manually. Can i automate this process of client running the ping program through javascript or any client side language ? I want to make the client automatically ping a few ip addresses, then extract the data from the ping request and then feed this data to the server so it can be recorded. Is this possible ? 回答1: i want

“Column Index” on a server-side processed DataTable

喜夏-厌秋 提交于 2019-12-24 15:18:31
问题 Does anyone know how to add a column index to a server-side processed DataTable? Basically like http://www.datatables.net/examples/api/counter_columns.html, but this example builds the index by client, which is not supported by using the common server-side version. The author Allan gave three hints, but actually I don't get it: Modify the data at the server (the ideal solution) Modify the data as it comes back from the server Edit the draw callback function to take into account the page start

NOT PHP vs JS Comparison: Can I do anything in PHP that can be done with JS?

醉酒当歌 提交于 2019-12-24 10:48:49
问题 I've now got some very good understanding of (X)HTML and CSS, and plan to move on. My next choices are PHP and JS (and don't know if I'll ever end up learning one of them, but I would love to). So, I need to choose one of them. I have learnt that PHP is server-side programming and JavaScript is client-side programming, and I am NOT asking you to compare the two of them for me. What I would like to know is, can I do anything (or most of) in PHP that can be done with JS? (or put it this way,

How to manage server-side processes using MySQL

徘徊边缘 提交于 2019-12-24 05:49:11
问题 I have a perl script which takes in unique parameters (one of the parameters being --user=username_here ). Users can start these processes using a web interface I am developing. A MySQL table, transactions , keeps track of users that run the perl script id user script_parameters execute last_modified 23 alex --user=alex --keywords=thisthat 0 2014-05-06 05:49:01 24 alex --user=alex --keywords=thisthat 0 2014-05-06 05:49:01 25 alex --user=alex --keywords=lg 0 2014-05-06 05:49:01 26 alex --user

Server Side Includes vs. ASP.NET Techniques is there a performance difference?

走远了吗. 提交于 2019-12-24 02:04:40
问题 I was recently hired to update an ASP.NET 1.0 site, created before master pages were available. Hence the pages have server side includes (ssi) like <!-- #include file="footer.html" --> . I was about to update the *.aspx pages with a master page that contained the markup previously in the ssi's. I'm convinced this is the right thing to do, especially from a maintainability perspective. However a co-worker firmly believes performance would suffer as supposedly ssi's are a very 'lightweight'

How to grab HTML elements in aspx.cs file (checkbox) C#

孤街醉人 提交于 2019-12-23 16:05:55
问题 Let's say I have I have something along the lines of (in my aspx file): <input name="chk" id="cbox1" type="checkbox"> <input name="chk" id="cbox2" type="checkbox"> <input name="chk" id="cbox3" type="checkbox"> <input name="chk" id="cbox4" type="checkbox"> How would I be able to get the value of each element inside the .aspx.cs file? Can I call something like GetElementsByName in C#? 回答1: No, you can't, unless you will mark this controls as runat="server" . This is because in ASP.NET all

Problems with Server-side Includes

那年仲夏 提交于 2019-12-23 12:55:25
问题 I desperately want to use server-side includes in a project I'm working on because I just have some HTML that repeats and I need to get it on several pages. Must I use ascx or some other include technology... I mean, will lightning strike if I use server-side includes? My client -- the middle-person -- says "do what's easiest, this will probably be redone in a CMS soon anyway." Can I not use server-side includes? It's ASP.NET 2.0. Note: I feel this has been asked before, but I couldn't find