web-development

How to redirect from Application_Error in ASP.NET MVC 2?

I want to show a custom error page if a user tries to upload a file larger than the maximum request length. With no code at all, I get a very mysterious "The page cannot be displayed" error when uploading a large file (not the famous yellow ASP error page) -- the same sort of browser error you get when you're offline. This strikes me as...

A question about duplicating Drupal installation on another server

Hello, I have hired a programmer overseas to develop a Drupal website for me and he has done a very good job (the site is installed at his server). I payed him and he sent me the Drupal files and the database .sql file. Here is what I have done so far: 1- I have created a database on my server named something different from the databa...

Strange behavior of Chromium browser after apache configuration

I have tried mod_fcgid from this source then before finishing steps I changed it back to mod_php by reversing what I did aptitude purge apache2-suexec libapache2-mod-fcgid php5-cgi then enabled php5 a2enmod php5 then diseabled following modules a2dismod suexec a2dismod include a2dismod fcgid After than when ever I pointed out Chromi...

How can we calculate the HTTP request made by each web page of my website

can any one please help me to count how many HTTP request has to be made when i open my website Cricket News I am trying to increase the performance and better loading on all browsers. 1 more questions 1) How many Http Requests is better for better performance? ...

Can a CDN be beneficial over a DEDICATED SERVER when there seems to be no CDN in our region?

I am considering trying out Amazons CloudFront CDN, which utilizes their S3 service for file storage and springs data to servers closest to the browser, however, we have a dedicated server in South Africa, Johannesburg to be exact, so my question is this: Amazons CloudFront seems to give you the option to have your base server in EU, Am...

Show jQuery slider on HTML page when html request came from computer , hide it when request came from mobile device?

Is there a way to show the slider when a computer access the page and hide it and to instead select display when mobile device (iphone) access throught mobile-safari? ...

API's on website

I have never used an API as part of a website, I have always coded things myself, but I am now thinking about maybe looking at starting to use some, I mean why re-invent the wheel!? So, my question is, where do you start, how do you integrate, how do they work, what do I do, will they fit seamlessly into my site/design? Any pointers, a...

Tracking subscriptions originating from Google Adwords campaigns

Hi, We'd like to implement a tracking system that logs which trial version signups to our website are originating from which google adwords campaign. I know that theres a glcid parameter if auto-tagging is enabled. But how can I reverse-lookup some info on the gclid that was used? For example, it would be very useful to know the searc...

Charge users trough their phonebill.

Do anyone know how to charge people through their phone bill? I send out sms's from my webapp I pay for. So I want to be able to charge a price per sms is 1 DKK + regular sms price. I know a lot of radio stations and television shows are doing this. Is it possible to do this for a relatively small traffic webapp? ...

Accessing Office Word object model through asp.net results in "failed due to the following error: 80070005 Access is denied."

I have developed a website that allows users to upload office documents then uses the office object model to convert the document to an HTML file that it then displays in an iFrame. I have, of course, included references to Office.interop.word, and the site works fine on my development machine. When I uploaded it to my production ser...

jQuery - Find any input with a given class that has no value

Hi All, I have a (very) basic validation script. I basically want to check for any inputs with class .required to see if there values are a) blank or b) 0 and if so, return false on my form submit. This code does not seem to return false: function myValidation(){ if($(".required").val() == "" || $(".required").val() == 0){ $(this)...

How does Google Drawing work?

just wondering what is behind the major functionalities used in Google Drawing. Does it use jQuery? ...

Difference in Application performance running in IIS and Apache Tomcat

I have a web application that works fine in IIS 6.0. I have modified to make it work in Apache Tomcat also. Will there be any visible changes in performance between the 2? Are there any specific advantages or limitations. ...

Best practice for warning the user they will lose data.

I have a site which uses a lot of JavaScript (mainly jQuery) and I need a nice global way to let the user know that they will lose unsaved changes when they navigate away from a particular page. At the moment I have an onchange event placed on the inputs and wrap my main navigation in a function which will display the warning when click...

How can I Make a dynamic website with Google App Engine

Recently I've been very interested with GWT and Google App Engine. Although I know little of the latter, I think I have a basic understanding of what is it. From what I've read (and using my novice computer science comprehension) I've come up with: Google App engine is a service that allows you to host your code on Google servers. Once...

Get the first jquery element in a deep search and break traversal

Is it possible to force jquery find() to only return the first matched element and not the childs of that element. Something that would be called "nearest"... ...

Order of operations - web development / web design

Hi, So I'm starting to get fairly proficient at coding my site(s). But I'd like to take some meta-steps and begin to get down best practices and workflow kind of stuff. And I was wondering, I've heard that it is always important to finish html markup before adding css. Does this extend farther? I'd think that the order would be some...

Seeking advice on js library for building a dynamic form generator.

Hi- Today, I'm building a little form generator for my firm. It would ask for someone to Add a Field, choose the field type (text field, checkbox, etc), name it and then add another and another if they want. I'd like to achieve this without having to go server side for each element. In other words, I want to take this opportunity to b...

Sharepoint GetListItems function returns non-matching items

I have the following code, which is a modified version from MSDN's website, to test getting all list items where the field "UserID" matches the value specified: Dim xmlDoc = New System.Xml.XmlDocument() Dim ndQuery As XmlNode = xmlDoc.CreateNode(XmlNodeType.Element, "Query", "") Dim ndViewFields As XmlNode = xmlDoc.Crea...

.ajax posts and gets response on local server, no response on web host

Hi, I'm using an ajax call to do a minor calculation then return the value and display it in the page same page where the form is submitted. In Firebug it says it calls the function, however doesn't get a response. (I have a similar form that writes to a database that works fine, seemingly because it doesn't need a response - firebug ...