client-side

ASP.NET MVC 2: Dynamically enabling/disabling client side validation

Using MicrosoftMvcValidation.js for client side validation, is there an easy way of programatically (in javascript) turning the validation off and on for particular fields? Is it possible for example to use jquery to bind/unbind the events? ...

Detecting remote client name using PHP or Javascript

Hi. I need the remote client name (aka computer name) to save it into a database, I was looking into $_SERVER variables but it doesn't exist. How can I get this just using another PHP's function or even javascript if it is necessary. ...

Which component should i use?

I am using the <a> element to increase the font size in my webpage. <a href="javascript:increaseFontSize();">+</a> The problem with it is that i cannot set a background image. So what component should i choose from the VS2008 toolbox that has OnClientClick property and does not post-back? For examaple, i set the OnClientClick proper...

*Discussion* Client side page permissions - Javascript / jquery / cookies / other?

TLDR Using plain HTML / Javascript. Want to block access to some pages (doesn't have to be super secure just to stop some peeking eyes). I would like this to be a discussion preferably on different ways of doing this? If anyone has any other ideas than using cookies or differeny ways to do this. I thought of simply doing this by sett...

Json, Timer, Ajax, What is faster (for shared Chronometer) ?

Hi everybody, I'm developing an application using ASP.Net. For first the idea: "My WebApp needs an chronometerto be shared by users and all users will se the same value in cronometer. When a user clicks on a button, the cronometer needs to be restarted and all users will need to see that!" All right, now I'd like to know what's the ...

Cross domains sessions - shared shopping cart cross domains

Hi, we are solving the problem with eshop (php, mysql). The client want to have the same eshop on two domains with shared shopping cart. In the shop customer can do the shopping without users account (can't be logged in). And there is the problem, how to make the shared shopping cart cross domain. The data from cart is stored in sessi...

Hide formulas in Javascript used for generating graphs with Flot

As I mentioned in an earlier post, I will be using flot for an upcoming project to generate graphs for a user. I would like to protect the formulas used to generate these graphs, so that someone can't simply copy the javascript. Is there a way to do this and still calculate the values on the fly with the ability for a user to change th...

How can I run an .exe on a server, but show output and interact client-side?

Hi, I want to run an .exe (Halo to be specific) on a server and then be able to view and interact with it through a browser, similar to a remote desktop. Is this even possible? I want to do this because we have nothing left to do in the last few days of school, and we wanted to play a Halo LAN, but are not allowed to install anything on ...

Client-side Twitter API method using XMLHttpRequest?

Does (or did) Twitter ever have a method in their API that allowed client-side HTTP requests without producing any cross-domain issues? I have a site that used the following url: http://search.twitter.com/search.json?q=from%3adaleyjem&amp;rpp=3&amp;page=1&amp;callback=? It once worked, but now it doesn't. Is there something else I shou...

Open files on client side from ORACLE Forms

I'm trying to put a code on a button so that the user would be able to open a specific excel file whenever he pressed it , unfortunately the code i was using ( AppID ) happened to be opening the file on the server side not the client side ; please find the code below : DECLARE AppID PLS_INTEGER; BEGIN AppID := DDE.App_...

Apache CXF Client for Dynamic Endpoints

I'm now using Apache CXF as a web services client for a .NET service to get around NTLM authentication. It works great, but I'm wondering why I can't seem to be able to set the web service target endpoint. CXF seems to want the WSDL at runtime for some strange reason - not sure. It takes the physical endpoint from the WSDL, which work...

server-side java applet...how to create?

How would you create a server-side java applet? ...

Upload and preview image in client side without posting back

I need to upload an image and then preview it without posting back as i need to have a file upload control(even HTMLinputfile or ASPfileupload) then the user will browse to select image after selecting (browsing) there will a button(HTMLInputButton) that will save the uploaded image and preview it. I have the following code : <div> ...

401 error when consuming a Web service with HTTP Basic authentication using CXF

I'm trying to consume a remote Web service that uses HTTP basic authentication, using Apache CXF, within a JUnit test. The error I am getting is: javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://localhost:8080/services/MyService?wsdl. It failed with: Server returned HTTP response code: 401 for URL: http://lo...

Capture client side text change event for asp:TextBox

I have a form that contains a TextBox. A pop up window will return a value and put it into the TextBox. when this happens, i need to populate another control. I tried tried "OnChange" but it was not triggered . How this can be achieved? ...

Dropdown client-side validation in IE7, using Html.ValidateFor() helper

I have a weird issue regarding validation of dropdowns on my form. One drop down is a list of states and is decorated with RequiredAttribute: [Required(ErrorMessage="State is required.")] Inside the view, the dropdown and its validation are defined as: <%: Html.DropDownListFor(m => m.State, new SelectList(BusinessLayer.UsStates.GetL...

Does Eclipse upload 3rd-party GWT libraries to GAE?

One of the tips for lowering your app's cold-start latency is to use/upload as few JARs as possible. I'm wondering what can I do to prevent 3rd-party GWT libraries (like gwtquery.jar etc.) from being uploaded to GAE? (Once the app gets compiled these become useless, so it would be quite unfortunate should they attribute to the latency.) ...

ASP.NET MVC 2 Validating A Strongly Typed Model List With Data Annotations Exception When Using EnableClientValidation()

Here is the buddy class used to add data annotation validators to a Entity Framework model: [MetadataType(typeof(Result_Validation))] public partial class Result { } [Bind(Include = "Title,Description")] public class Result_Validation { [Required(ErrorMessage = "Title is required")] public string Title { get; set; } [Requ...

Using PHP to retrieve information from a different site

Hi everyone, I was wondering if there's a way to use PHP (or any other server-side or even client-side [if possible] language) to obtain certain pieces of information from a different website (NOT a local file like the include 'nav.php'. What I mean is that...Say I have a blog at www.blog.com and I have another website at www.mysite.co...

What are things which cannot be done via server side language and only possible with JavaScript?

Is it possible to avoid JavaScript these days for small business websites, blogs etc ? and is it wise idea? What are things which cannot be done via server side language and only possible with JavaScript? Or is everything possible except animation with server side languages which is possible with JavaScript? What are reasons in favor o...