Hi,
I have to read a file from server side . Obtained its contents stored it in a list and sent it to template
Now, My question is how to access this list so as to display the contents of files line by line .
I am using ajax and jquery to obtain the data on client side
def showfiledata(request):
f = open("/home/tazim/webexample/test.txt")
list = f.readlines()
return_dict = {'list':list}
json = simplejson.dumps(list)
return HttpResponse(json,mimetype="application/json")
I've searched many places and haven't get found the answer to this, I suspect I'm missing something either fundamental or basic (maybe both)
I'm using the chef-client::windows_service recipe and trying to set the interval and can't seem to sort it out.
I've tried at the role level with:
{
"defaults": {
"chef_client": {
"interval":15
}
},
"overrides":{
}
}
and at the node level with:
{
"chef_client": {
"interval":25
},
"tags":[]
}
but the interval on the node is still 1800 (default)
In an ASP.net MVC 2 app that I have I want to return a 204 No Content response to a post operation. Current my controller method has a void return type, but this sends back a response to the client as 200 OK with a Content-Length header set to 0. How can I make the response into a 204?
[HttpPost]
public void DoSomething(string param)
{
// do some operation with param
// now I wish to return a 204 no content response to the user
// instead of the 200 OK response
}
I plan to use java.util.zip to compress http post data when sending it from a java client to the server(java servlet in this case).
is this the best approach for reducing data load?
should I use gzip as the compression alg?
Hi,
I am looking for a python SOAP 1.2 client but it seems that it does not exist . All of the existing clients are either not maintainted or only compatible with SOAP 1.1:
suds
SOAPpy
ZSI
Hi all I am new to .net remoting. I am planning to execute an application at client side and perform operation on that application and need to return the results to server. So, I am confused which one ll do the exact task.
In my db I have saved every links in the form:
www.example.com or http://www.example.com
Is there a way to turn this text links into HTML links at the client side ( e.g. javascript ) with tag and parameter like this ?:
<a href="http://www.example.com" rel="nofollow">www.example.com</a>
I'm from MySQL background and am new to Oracle. I want to know
What is meant by Oracle Client?
What is its use?
What is its equivalent in MySQL ?
Thanks
Is is applicable to use Apache FileUpload lib to to upload files to Glassfish v2 server using standalone client? If yes, what are the differences for this purpose?
Hello,
how would I develop an Email client in Ruby-on-rails taking Gmail as an example? I would be especially interested in the send email functions
Thanks for any pointers
I'm currently developing a small Database Management System for a local company. How would you go about explaining how the system you have designed to a client? If they are non-technical and have no understanding of programming, how would you go about showing what the system will do and how it will do it? I guess some sort of visual representation of the system but this seems very patronising to me.
I have an XSD document that I need to communicate with an endpoint (client side only) - is there this functionality built into spring? I have been using JAXB, but was wondering if spring has some sort of wrapper. Thanks.
What happen if web.config gets updated while ASP (ASP.NET 2.0) server still process client request?
- Will the process be killed?
- If not, will the process read the updates in web.config.
thanks for any input
I have some validation JS code on client, that must be executed befor PostBack.
If this validation code return 'false', postback is needless.
How it can be disabled?
I want to enable comment posting on my page, so i need to execute some html encoding before post is sent and inserted into a database.
What is the ideal side for this?
Sever side(I work with asp.net) or client side (javascript)?
i need to save an image file to client side ,, with out prompting the save,open,cancel dialog , or any similar thing , after long searching i heard that will this will be done only by ActiveX.
please note that the website is on minimum security and its LocalSite and trusted site
Hello, I have a web application. On the client side I basically need to get the values of some fields and turn them into JSON and then send them to the server in an AJAX kind of way.(asynchronous)
How would you do that? I also am using jQuery
When getting data from the server to the client side in GWT application we need to refresh every period of time to get updates for data, I think this is not a good method because if consume lot of time and resources, just thinking about another method is amazing :), any one get a good and effeciant idea ??
On the client I have setup the bus with ImpersonateSender(true)
My server is configured AsA_Server, which by default should have ImpersonateSender(true)
I'm now trying to retrieve the WindowsIdentity, from inside a Handler
var windowsIdentity = WindowsIdentity.GetCurrent(true);
But this is giving me null.
What am I doing wrong?
I wanted to create an application which can be a web service client on Android cell. Any recommendations how to do that. I can send SOAP requests to the server
Thanks cell
Hi,
Not sure if I'll explain this properly but here goes. I having written an asp.net app using C# for the code behind. After the user makes some selection and hits the "run" button I pass off the processing to a dll written in C# but what I want is a way to periodically send information back to the client so they can see what's going on like how many records have been processed and things like that. How can I accomplish this?
thanks
Hi I want to know if there is a way using C# to get the Current Silverlight Version a user is running when opening a client of an app im developing.
Its for logging purposses.
I want to know if they are using silverlight 3 or 4 on their browsers