web-development

Javascript validation is bad?

Hi, It has been long time since we have been validating our forms using javascript. I am sure this must be the case with most other developers. Question: What if the user (or probably a bad guy) disables javascript? You are lost !! Is javascript validation worth of it? Should we ever use it now? Are there any solutions to this? Cor...

Is there no scope for a Windows application now?

My boss has asked me to write a CMS for a web-application. A place from where the user can customize all the necessary details, upload images etc. I know PHP but not JQuery. So things became difficult for me. I am proficient in .NET Windows applications, but my boss says it;s an end to Windows-based apps. He is right I know, but I want...

Synchronize data between frontend and backend

Hi all: We're developing a browser based social game, and it is a MMORPG game. We are using html/javascript/css as the frontend tech(comparing with flash). when the user loads our game for the first time, a bunch of files will be downloaded(external js/css) and several ajax call will be requested. The whole page won't be loaded again un...

Using duplicate asp.net control IDs in different conditional blocks / validators

Hi, I have an asp page that renders controls based on a Request parameter. Simplified example: <% if (Request.QueryString["personType"] == "D") { %> <asp:TextBox ID="TextBoxName" runat="server" Text='<%# Bind("first_name") %>' /> <asp:TextBox ID="TextBoxSurname" runat="server" Text='<%# Bind("surname") %>' /> <% } else { %> ...

SVN setup on semi-dedicated server (Linux)

Hi, I'm going through the process of setting up SVN on my remote web server (Linux Centos), and I'm needing a bit of help to make sure I do it correctly. So far I've installed SVN and used svnadmin create to set up a repo at /home/repos. The plan would be to set up projects within /home/repos e.g /home/repos/project1 etc. I've also edite...

Problem with onsubmit in DashCode for iPhone web app

I'm new to the world of webdevelopment, but I'm giving it a try! I'm building an iPhone web app to acces your MobileMe Gallery. As I'm working with DashCode, I added a searchfield to enter a username, so if you enter your username and press return, he will open http://gallery.me.com/username. I used to do this using an onsubmit, but I c...

Java Message-Driven Bean does not use security settings when calling secured web service

Hi, Using Websphere 6.1, I'm attempting to call a secured web service (using a custom authentication token) from a message-driven bean. However, the call repeatedly fails because the required token is not added to the SOAP message being sent. The settings to call the relevant TokenGenerator are specified in the deployment descriptor of ...

How do I get started using Java for web development?

OK, here's the easiest question for the day for those of you who have ever done this. I'm learning Java and I heard that Java can be used to build websites. I am coming from a PHP background, so I would really appreciate using a strongly-typed well-designed language like Java for web development. However, either I can't get my search key...

Post to web page text box

Ive searched all of google and i cant seem to find the method for doing this when it seems so simple! All i have is a text box on a webpage, and given the text box id i want to write a value in it and press a button. So far i have: WebRequest request = WebRequest.Create("http://ps766677/TestWebApplication/Default.aspx"); WebP...

Design for Beginning Web Developer

Hello, I am interested in learning how to create attractive and user-friendly ASP.NET websites. I have done some ASP.NET programming, but would like to be able to design attractive and user-friendly web interfaces? Could anyone suggest some books on the design and interaction aspects of web sites that would help? What topics should I co...

how to stop numbers to be formatted as telephone number on a blackberry browser

Hi, I am developing web pages for blackberry 8700. I have few 5 digits or sometimes 10 digits numbers in my page. These number are displayed or formatted as mobile numbers and on click of the same a telephone call is initiated. Please let me know how to stop that and display that number as a string on the blackberry browser. Thanks in a...

jQuery UI range slider - grab the bar between the handles

Is there any way to modify a jQuery UI range slider so that you can grab the bar between the handles to slide the selected range? If you try to grab the bar, it jumps to one of the handles. This page has an example of the sort of behavior I'm looking for - it's at the bottom. ...

PHP echo duplicate rows when none exist

<html> <head> <title>Test</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <?php $username ="matt"; $pass = "bs12kfj"; $db = "mytest"; $tbl = "test2"; mysql_connect(localhost,$username,$pass); mysql_select_db($db) or die( "Unable to select database"); $res = mysql_query("SELEC...

Should I support all (6, 7, 8) IE versions?

I have FireFox, Opera and Chromium web browsers on my Ubuntu box and I manage to run cycles of development and testing pretty quickly (and happily). The best part is the small CSS files I mange to produce for all types of layouts. The problems always start when I decide to check how I am I doing with IE, and I have a few boxes just for...

Sending out a media-url served on a static server in django

Hi, I have a flash file which is on a separate media server and the relative path is /flash/as3.swf I want to pass this to the template so when it gets rendered it gives the absolute path i.e. http://myweb.site.com/flash/as3.swf but when I render it the url is always /flash/as3.swf Any ideas? ...

How should the SENDER header be used in Emails

Hi I've got a web app which I'm sending emails from. I want the emails to appear to come from users of the system, but guessing that these will appear as spoofed emails as they aren't coming from where they are saying they come from. I've looked around and it appears that the SENDER header fits the bill. Is this a good solution? Also ...

Web site aggregation with twitter widget SSL issue

Hello! I'm seeking for solution how to isolate widget included by partial to main site. Issue appear when user access site with https. Ie 6,7 shows security confirmation dialog (part of website resources are not in secure zone). First of all I download twitter widget on our side, also I download all CSS and pictures. Then I patched widg...

tornado - transferring a file to cdn without blocking

I have the nginx upload module handling site uploads, but still need to transfer files (let's say 3-20mb each) to our cdn, and would rather not delegate that to a background job. What is the best way to do this with tornado without blocking other requests? Can i do this in an async callback? ...

Query in Design implementation

I'm developing a site wherein i have top 5 sites which i visit frequently. What i do is I've the screenshot of these websites as images and whenever I visit the site the latest screenshot of the website comes and replaces the old image. I have written a program(in C#) which gets the screenshot of the website and displays the mage on my ...

Is it worth learning Python over Ruby and PHP for Web Development?

Is it worth learning Python over Ruby and PHP for Web Development? If so why? Thank you in advance. EDIT: Related on StackOverflow: Should I learn Ruby or Python? Django or RoR Rails or Django? (or something else?) Ruby on Rails versus Python What are the biggest differences between Python and Ruby from a philosophical perspective ...