web-development

best way to handle read-/write-only properties in scriptable browser-plugin

Writing a embeddable cross-browser plugin that is scriptable via JavaScript i am unsure how to handle read-only and write-only properties the best way. Is it more common or intuitive to discard values silently on write for read-only and return dummy value for write-only or to indicate failure to the browser, most likely resulting ...

Example of a school website (college and highschool) which is functional and accessible

I'm looking for good example of school websites that I can get some inspiration it could be Highschool or College. I'm planning to build a template or platform of a school website; And I want to provide a good solution for a school which don't have website yet. I want to get some Ideas how school website pages being structured and what...

How to create Google Wave-like scrollbars?

How can I make the scrollbars like in Google Wave? They save a lot of space and look nice.I would like to put the scrollbars on a div like how google wave does it. ...

Web based development for the C language

I am a C programmer and new to web development. Which web-C-technology (open source) suits me to learn quickly for web-development? Update: my question is based on both client and server technologies. ...

Single Codebase multiple websites

Hi all, We have developed a system that uses a single code base, consisting of 4 visual studio projects. with an admin website, and customer facing website. (each system has its own MS SQL database) This has been working great as all new websites (including admin) reference the same code base projects, from within SVN, therefore any ch...

Is using absolute paths for images/scripts a good idea?

Hi, I have a website which I am updating the URLs for i.e. rewriting to be more SEO friendly. By doing this, it has broken a lot of the links to scripts/images on the various pages. The only way around this (from what I can tell) is to use the absolute path to the scripts/images on the pages. Now unless I am mistaken (or missing someth...

How can I create an HTML drop-down menu from a CSV file in Perl?

I'm creating a web page to select some options from a CSV file: CSV File Sample: Time,h1,h2,h3,.... 00:00:00,n1,n2,n3..... .....so on h -> header n -> numbers Below is the Perl code subroutine I have written to filter the header and values and return: sub TimeData { use Text::CSV; my @time; my @data; my ($csv_file,...

Can I show both Simplified Chinese and English in the same web page?

I'm not a bad web developer but it happens that I've never had to support more than English in my web applications. Now it seems that I need to add support for Chinese for some folks in Shanghai. I was thinking, "I guess I'll just change my SQL database fields to nvarchar and I should be almost there." After doing some research, this ...

Can changes in an element's width modify another element's font-size using jQuery?

Hi folks, I have a container whose width is fluid (depending on the size of the browser window), though it has a max-width of 950px. The container has a nested header h1 element which has some text as a strapline. I want to somehow make this header text get smaller as the container gets narrower (using jQuery). I think it'll work some...

Totally custom logins in google app engine

Can I use the login:required feature of app.yaml when I create a totally google separate user login? How? (Google App Engine) ...

spring mvc: detect if an exception has been thrown while loading the context

I have a spring mvc application and we run tests with it using jetty. Sometimes the loading of the context totally fails, because bad xml or because Class Not Found exception or because a bean throws an exception in the constructor, setter or init method. In such a case I would like to to stop the application with System.exit(1) or tak...

How to isolate a remote PHP Stack Server on Virtual PC for dev environment

I would like to create a php stack server on Virtual PC and access from host pc. Any tutorial to do this especially how do I configure network on virtual pc to be able to reach the server from a browser in host pc ? ...

How can I get the current document area size in javascript in IE, Firefox, Webkit?

I need cross-browser compatible Javascript code that will return me the height and width of the current document area in all three browsers (IE, Firefox, Webkit [Chrome/Safari]). I don't need the entire window size (as it is on the desktop) but the height and width of the document as it pertains to CSS layout. Thanks ...

What rights do I have running my own website?

Me and a couple buddies are working on a website that involves heavy user commenting, feedback, opinions, etc. We expect some posts to have content that we do not want. We are wondering: by running this website, what rights do we have? Is there some kind of guideline available? ...

What happens if you use a <script> tag with the same "src" attribute multiple times within a single HTML document?

Although I am almost certain the answer to this question will be browser specific, do any of the browsers define behavior for when multiple <script> tags are used and have the same src attribute? For instance... <script src="../js/foo.js"></script> ... <!-- what happens here? --> <script src="../js/foo.js"></script> The reason I ask...

How to wrap the click event with some custom function

I have a button called 'create project', when user click the button, i want 2 things to happen an ajax call to check if the user is allow to create a project if allowed, then execute the button as normal, if not, then pop up a modal dialog saying he is not allowed to create a new project. I have the following code $('.create_proje...

How to automate by Firefox browser for functionality testing?

Hi all, i have to automate the firefox application to do a functionality testing, kindly help me which testing tool i can use thanks ...

How to implement a login page without code duplication

I am currently making a dvd browsing system using JSP / Java Servlets and am having trouble figuring out a way to make my login page a bit more efficient. My current login system does this: When a user submits the correct email/password combination, a servlet checks to see if the combination is correct and they are redirected to a lobby...

What's the biggest website served by JBoss?

My "normal" development is based on java (1.6), a database (db2, oracle, mysql) and an application server (JBoss). I wonder if there is a limit of concurrent users that I can handle with this configuration. I think running a site like google.com would'nt be possible this way. But where is the limit? If things get bigger, do I have to...

appfuse vs roo - what would you use

Appfuse vs. Roo, what would you use and why? What are the sweet spots of each. ...