web-development

Can you get more information about the online file ?

I have a online file: http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe ,please donot download it, i want to determine the software version whether is changed, so i want more information about it. for example, using python,i can get this: import urllib2,urllib req = urllib2.Request('http://dl_dir.qq.com/qqfile/tm/TM2009Beta_chs.exe') ...

Dynamically Show/Hide Radio buttons of a Radio button group using JavaScript

Hi, I am looking for a way to Show/ Hide some of the Radio buttons of a Radio button group using JavaScript. How can this be achieved? Thanks ...

how to add a file to Java EE projects?

I want to add a xml file to my Java ee project and use it in my code but when I address the file from src directory it does not understand my address and search for file in bin directory of tomcat. My project is using wicket framwork and JavaEE. does any one know how to address the file or where should I place the file to access is from ...

Please suggest me a J2EE book

Hello everyone, I'm a developer pretty much experienced in web development (HTML, JavaScript, PHP, Django, Ruby on Rails). I have just recently taken on Java (read "Core Java" and the SCJP 6 book) and I now want to start with J2EE. I need a book that will go through the most important aspects (EJB/JSF/etc., I know the buzzwords :) ) of ...

Development Environment for Jquery and javascript

What develepment environment do you use when you need to work on javascript?What options have as an Asp.net developer for working with javascript or jQeury in order to have possibilities to test,develop in realtime? I tried to set up the intellisense to make it work the jquery documentation,but that's not working. Right now i'm using Fir...

How to release web applications?

I don't really know how to perform deployment from offline development to live webserver correctly in web development. I mostly resort on intuition, but this is more or less what I did until now: I have a web application in python, or php, and I am hosting it on a live webserver. I use an offline development version whose source is under...

Flash elements problem with Internet Explorer

I have two flash object hidden behind my web applications main element. These flash objects are hidden, because I need to save flash as picture and flash must be "visible", because otherwise I cannot save image. My flash objects are Open Flash Chart 2 charts. Saving images works perfectly in Firefox and other browsesrs, but in IE image...

How does SQL query parameterisation work?

I feel a little silly for asking this since I seem to be the only person in the world who doesn't get it, but here goes anyway. I'm going to use Python as an example. When I use raw SQL queries (I usually use ORMs) I use parameterisation, like this example using SQLite: Method A: username = "wayne" query_params = (username) cursor.ex...

Allowed characters in submit forms (including UTF-8)

Hi, Suppose I allow my users to submit a form containing some text fields (I'm not talking about passwords). My users would occasionally use non-ASCII characters like Russian, Chinese, etc. so I use UTF-8 charsets in my database. The question is, should I really allow all of the possible UTF-8 characters? I had a look at the ASCII table...

Why does Safari let you set cookies over 4kB?

I set up an A/B test which required a fairly large amount of data to be stored in a cookie temporarily. While testing my code, I managed to get the cookie over 4kB. Safari set the cookie. On the subsequent page load, Apache returned an error since the cookie was too large. I tested this on Firefox as well and it simply ignores the cooki...

Source code of well designed functional web apps?

What are examples of well designed functional (as opposed to object oriented) web apps that make their source code available? I am currently studying the Hacker News source but I'd like to see some other non-trivial examples, ideally in clojure. For MVC there are lots of Rails and PHP apps, frameworks, and tutorials to study - what is t...

Obtain search engine query-string from a servlet

Hi all, I want to improve my site usability by providing users some kind of "related search" funcionality if they are coming from a search engine. It is possible, from a servlet, to obtain if a visitor of my site is coming from search engine results page? If yes, is possible to obtain the query string? Thanks in advance EDIT: Thanks...

Career: Web developer without Flash knowledge

How important would you say it is to know how to develop Flash applications (not games) if you're looking for a job as a web developer today? The essentials are of course HTML, CSS and JavaScript. A few years ago virtually everyone (as in every non-programmer) wanted Flash on their home page, possibly even with intros with broken "skip ...

How to select table rows in ASP.NET MVC

Hi all, I'm struggling to figure out the correct way to do something in MVC which wouldn't be difficult in WebForms, and I'm hoping someone will be able to point me in the right direction. Basically, I am displaying a table of data and the user should be able to select zero or more rows. When they press submit I want my controller to ...

Linking a button to a movie clip... gotoAndPlay() doesn't work!

I have a button, "pb". I have a movieclip, "pm". I want the clip to play certain frames when I press the button. I have a layer on top of every other layer, with only one frame. In the ActionScript for that frame, I have put: stop(); pb.addEventListener(MouseEvent.CLICK, onMouseClick); function onMouseClick(event:MouseEvent):void ...

JavaScript Not Working in Internet Explorer

I'm currently styling my username/password inputs on a webpage. They are working as intended in Firefox/Safari, but Internet Explorer throws the following error: Line: 7, Char: 2, Objected required It happens when I give focus to my inputs. This function is called onfocus: function InputFocused(InputID) { var InputObject = documen...

Are there any view engines for ASP MVC that are 'designable'?

Here's my problem: I am disturbed by the "impedance mismatch" between what graphic/web designers actually produce, and what is needed by the standard ASP MVC view engine. Basically there is no way to visually design a view i.e. the output of an action. No WYSIWIG designer. The only way to go from a static HTML design to an MVC app is b...

What is the best framework for web-development to start with?

I want to get into web-development and trying to pick a framework to playground with as well as a develop complex web-app. I am considering the following: C# with ASP.NET MVC. Ruby on rails Tomcat/servlets/jsp For now, I am planning to run it on windows, yet might migrate it to Linux. I want to his framework to be fairly intuitive t...

How do I get started developing for a web using Scala?

Now, I am familiar with Scala language and ready to do web development. The only framework I came across is Lift and don't know anything about it. How do you approach web development using Scala? ...

Fetching HTML into a <div> and overwrite content.

Hello everyone, I have a website with a top panel and a body part. The top panel can be toggled between hidden and shown. The body part should contain the actual content of the website. As I don't want to hard-code every single site, I would like to stay with the panel and only reload the content. This seems to can be done using AHA...