web-development

Why use 'href="javascript:void(0);"' instead of something more user friendly?

I'm new to web-design and javascript, and I don't understand why it's common for web designers to use the void(0) syntax below: <a onclick="this.blur();return false;" href="javascript:void(0);" class="btn"> Since this actually shows itself in the lower left hand corner of the browser, why not come up with a way to make it more user f...

What free CMS can do the following

I'm looking for a CMS I can embed inside an already existing php website. Basically I just want something that I can make blog posts from and then those blog posts will show up inside my website's content div. I'm really not looking ...

If Chrome and Safari are both based on WebKit, does that mean I don't have to test both browsers?

If Chrome and Safari are both based on WebKit, does that mean I don't have to test both browsers? ... or are there certain situations where I should explicitly test both Chrome and Safari? ...

How to edit/create the main page layout in Jifty?

How do i create the main pages layout in jifty? I did not find that information in the documentation. I guess there has to be a Template::Declare reference that is used to wrap the page content. Where do i find that wrapper code or where do i create a template to override it? ...

Sinatra hangs seemingly without a reason

I have a strange problem with sinatra... In my app the login form is checking with AJAX live whether a nickname is already taken or free... This works fine 90% of the time... But sometimes, randomly, I get no response from the given route anymore... in the console log all new requests to this route are missing as if I haven't sent anyth...

Visual Tree (graph) generating

I'm trying to find a piece of software or some API / technology that would allow me to do the following.... I'm looking to generate a family tree based on input I was to feed into a piece of software. I'd like each child of the tree to be clickable and for me to embed it into a website somehow. ...

How to replace Flash movie with QuickTime movie?

How do I replace a flash movie on a website with a quicktime movie? I don't even know where to begin. ...

JavaScript - Encapsulation ?

A long time ago, I saw someone encapsulate their entire javascript block with code something like the code below: <html> <body> ... <script> (function(){ ... })(this); </script> </body> </html> Questions: Is the code above correct? What benefit is there to encapsulating the entire javascript block like denoted above? ...

What Python framework would you choose for a new web application and why?

Possible Duplicate: Choosing a web application framework in python If you were to create a new web app in Python from scratch now, which web framework would you choose and why? If Django is your favorite for example, why do you prefer it over others? For what kind of web apps is it suitable or unsuitable? What are the advant...

Tools for understanding HTML layout

Are there any tools other than Firebug that can help me figure out why my HTML is layed out the way it is? If you list any tools, please add what they can do which Firebug can't. ...

C#: Correct project template for REST API library?

I want to consume a series of REST services from a provider. But there are a lot of functions I can call and send to the server, so I think it would be a good idea to create a separate library that my C#/MVC2 project can reference and call. In VS2010, what is the correct project I should select to create this new library? Just plain old...

Unobtrisuvely ask user for details

Hi, I am trying to figure out the best way to acompish "unobtrusive" forms for a user (within a web app). The purpose: keep user on the site by not asking to fill unnecessary form in. Ask for the details as only when such are needed. The requrements are: User should provide additional details only when it is required (email to recei...

Why doesn't IE display this requested background image?

Here's an odd rendering difference between IE and other browsers. Internet Explorer 8 Firefox 3.5 Chrome 5 See the difference? That vertical line suddenly stops in IE8. That's because IE8 refuses to display a certain background image. Here's a relevant snippet of CSS code: td#leftbar { background: url(img/leftbar.gif) repe...

testing mobile on local network

I have run into a difficult situation. I do not want to do my development based on an emulator, so I want to be able to have my phone (Android), to connect to my local PC to make sure what I am developing comes out the way I want it to. Issue #1 - I need to be able to connect to my network, not internet, I can't have my PC internet fac...

So I want to create a browser-based interactive realtime animation of the Earth and the other planets going around the Sun...where do I start?

Hello. I would like to create a browser based, interactive, realtime animation, showing the Earth as it goes around the sun, depending on the time of day and time of year. This animation should also (eventually) show the other planets in the solar system and the user should be able to pan around the solar system and see it from differen...

when to use the observer pattern when developing websites?

Hi, i need some practical examples of cases when i could use the observer pattern when developing a website.. (using php) I have one "when a user publishes an Article (subject), the class RSS and the class EMAIL (the observers) will modify the rss and send an email to the admin", but i'm not even sure if this is a good example.. wher...

Which attacks are possible concerning my security layer concept?

Despite all the advices to use SSL/https/etc. I decided to implement my own security layer on top of http for my application... The concept works as follows: User registers -> a new RSA Keypair is generated the Private Key gets encrypted with AES using the users login Password (which the server doesnt know - it has only the sha256 for a...

php - using shorter tag won't work

I'm reading the book "PHP for absolute beginners" and I got to the part which says that this peace of php code: <?='Weird'?> yields the text inside quotes. But this isn't the case for me and I'm not sure why. Anyone knows the problem? I'm using Apache/mySQL (XAMPP) and Eclipse. ...

What are the best practices to display tables on mobile? (Web development)

I have to redesign a website that relies heavily on tables and I can't find a good way to display them, I'm mostly interested in displaying the tables correctly on Blackberry, iPhone and Android. ...

PHP: Prevent XSS with strip_tags() ?

I have a PHP web applications. I do NOT want to allow users to post HTML to my site. If I simply run strip_tags() on all data prior to saving into my database, will strip_tags() be enough to prevent XSS? I ask because it's unclear to me from reading the documentation of strip_tags if XSS is prevented. There seems to be some bug with br...