web-development

Why Silverlight?

My question is that why more and more business applications are being built in Silverlight? When I say business applications, I mean day to day data entry applications. Back office kind of applications where there is more data entry and emphasis is on usability rather than rich UX. Does it make sense to invest in Silverlight for sake o...

Can I cut and paste structured data in Browsers via Javascript?

My users work with a dozen web applications. Over some I have complete control over others only limited via templates and Javascript (e.g. Zendesk). Between these Applications I want my users to be able to copy and paste structured data. With structured date I mean for example an address encoded as vcard/hcard. So when somebody "copies"...

HTML form w/ method = "get" VS. JQuery $.get

I have an embedded application running httpd for a web server. On the main page I have two buttons. One uses JQuery to add a click event with the following code: $.get("example.cgi"); The other button is the submit button for a blank form (i.e. other than the form tags and the input with type = "submit" the form contains no fields)...

CSS style for ARBONNE text

I'm making a website for a friend and he wants the text font to be AR BONNIE. Does anyone know the CSS for this? I can't seem to find the font anywhere. ...

Checklist for going the Unicode way with Perl

I am helping a client convert their Perl flat-file bulletin board site from ISO-8859-1 to Unicode. Since this is my first time, I would like to know if the following "checklist" is complete. Everything works well in testing, but I may be missing something which would only occur at rare occasions. This is what I have done so far (forgiv...

Content fade-in as user scrolls browser window

I'm discovering more websites that perform this visual trick where as you scroll down the browser window, the content fades into view. I'm wondering how this trick is done and (more importantly) why? I'm guessing that for exceptionally long pages, the content isn't fetched until you actually reveal that div, image, whatever therefore s...

Serving login form via 401 Unauthorized

Suppose an unauthenticated user tries to get the page which only authorized users can see: /profile/preferences Is it a normal practice to reply to this with 401 Unauthorized along with the content of the login page or is it better to serve 302 Found redirect to the login page and then send the user back to /profile/preferences? What a...

ASP.NET 4 VS2010 Web Application Deployment

I must be missing something quite basic here... Trying to release my site to a test server... click on the publish option... and off it goes. The site is 'successfully' to the webserver... the odd thing is none of the code behind files have been copied. Should they be there? Why aren't they? What have I done wrong!?? I've looked for ...

Looking for a website with a help system/tooltips

Hey, basically I am looking to gather ideas. I am making a help system for a website. jQuery tooltips and all. I just wanted to see how others have done it to get a better direction. The only problem is I cannot think of any sites off hand that have a help system or a tooltip system. Any suggestions? ...

jQuery evangelists!

I'm absolutely digging what I've been able to do in jQuery. From my perspective there isn't a lot jQuery can't do. I'm working on a new project and my plan is to use jQuery heavily with JSON,Ajax and Webservices inside of a ASP.net project. Before I go spouting my opinion about how great jQuery is, I thought I might ask if there are...

jQuery $ is not a function in Firefox, works in Chrome and works with $(document).ready()

Hello, I'm implementing jQuery in a site and am getting the "$ is not a function" in Firefox when I try to use a selector, but $(document).ready() works perfectly right before it. My code looks like this <script> $(document).ready(function(){ alert("hi") }); // Works fine function showDiv(){ $("#trad...

How do I get an asp.net 3.5 textbox input into JavaScript?

Looking at many forums this seems to be the solution, however, it doesn't seem to work for me: function update() { alert("hello world"); var test = document.getElementById("<%=InCL.ClientID%>").value; alert(test); } and the asp/html is: <asp:TextBox ID="InCL" runat="server" Text="" value="" onchange="u...

How safe is it to accept a pre-defined set of non-harmful HTML tags from a request?

Hi guys, One of the first things I learned as a web developer was to never ever accept any HTML from the client. (Perhaps only if I HTML encode it.) I use a WYSIWYG editor (TinyMCE) that outputs HTML. So far I have only used it on an admin page, but now I'd like to also use it on a forum. It has a BBCode module, but that seems to be inc...

Detect if no system activity from browser (including activity outside the browser)

I need to detect if the is no user activity in the system (e.g. what screensaver does) - all from a web browser. As far as i'm aware it is not achievable using pure JavaScript. There is a library for detective idle input within a browser though: jquery-idletimer-plugin For system idle events I'm thinking ActiveX control or SilverLight....

Are there any web applications to merge small images into a single one?

Is there any application to merge small images into a single one in a web application in order to make less HTTP request and have the page load faster? GWT does this automatically and makes proper images + CSS styles to show those images. When I have a plain HTML + CSS is there a helper application which given HTML + CSS + a bunch of s...

Syncing events with Google Calendar

I'm writing a service that needs an up-to-date information on a user's calendar. However, I have yet to find a way other than regular polling to receive updates from GCal. Is it possible to set up some kind of push notification or an event list diff transmission? ...

Can Javascript be replaced with another language?

Possible Duplicate: Alternatives to JavaScript Hi there, As there are many programming languages, and you have options, that which ever language you want to work on, like you if you use C# then you have option that you can use VB.NET or C++ etc further you we have Java which can replace C# or C# that can replace Java. So we h...

How can I define fieldset border color?

I want to set border color of field set. I am using class but this is not working properly because i want to remove fieldset default border color. so how can I use fieldset border color. <fieldset class="field_set"> <legend>box</legend> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> ...

Connecting the same database from two different web applications(GXT) using Hibernate

I am working with two different web applications built upon GXT. But the problem is that both the applications are accessing the same database and the hibernate is not allowing to do so when we tried to deploy together in Apache Tomcat and then access them simultaneously. Can you tell me how can we access the same database using hibernat...

Should my clients expect their websites to work on iPhone without paying for a mobile version?

I make websites. Should my clients expect their websites to work on iPhone/iPad without paying for a mobile version? ...