web-development

Web script to click some buttons and save some html pages

I am trying to go through a site with a bunch of links. I click on a link, save the page, click on a button, save a page. Then go back and repeat it for a huge number of links. I want to write a script to do that for me. I know C++ but I want to do Javascript for this, what is a good place to get me started? What would be a good IDE to u...

What are the most commonly use web development policies in software companies?

Having the best forum website among developers, I think I will find a very good consensus of what policies and best practices make good coding. I will put some of them here, so I give the idea, but I will like to hear your opinion and the votes will probably be the judge of the best policies around. Specific Indentation for coding be...

Which pattern would you choose for web application and why?

When you start a new web application, which pattern are you choosing between MVC and MVP and why? ...

Automatic jQuery Carousel triggering a FancyBox

Hello, I'm a web designer working on a project. I have an idea that would require jQuery. Since my experience with jQuery is fairly basic, I thought I would ask here what might be the best option for what I need. I have a section on the home page of the project. I would like to have a "wall" of images that would be equally spaced. When ...

Versatile Embedded Audio Player

Hi guys. I'm working on a web app that, among other things, needs to be able to take a variety of audio files and play them back via the web interface. I've been searching for two days for various embedded players to do this. I thought WMP might be enough, but it only plays some of what I need. Specifically, I run into problems tryin...

Re-running JQuery's selectors and actions after a programmatic insertion of new content.

Fellow JQuery hackers, hello :-) Suppose you have the following code: $('.links').click(function(){ //Do something } And I then insert dynamic content into a DIV's HTML content (Say, for example, after clicking a button, the new content gets inserted). This content has the "links" class. The problem is that the "click" button doe...

How do I escape ampersands in XML

How do I escape ampersands (&) in XML - I tried & but this isn't allowed. OK The question was poor, I wanted to escape it in such a way that it was rendered as & in the web page that used the XML output. So I had to do add an additional amp; to my output. ...

ASP.NET Page handling for CSS files.

I know ASP.NET can be configured to handle any file type in any way, but most of us have other work to do, even on weekends. I'm becoming very interested in an asp.net handling pipeline for, say, *.csx files, where I can do something like: .module-div h2 { margin-top: 5px; color: [css:Color runat="server" Selector-Include="h2" ...

web app data layer dis/advantages

I am wondering about the long term advantages (if any) of layering my web app by separating my business logic and data from my web forms. (ie a form, business logic, data not in the same file, but each in it's own class in another folder by itself or combined with other like classes). I like to make everything as modular as possible and...

Admin Log-In Development

I am developing the ability for administrators to log in and I'm to the point of creating the admin log-in page, but I'm somewhat torn as to where the best place to put it. For details, this is part of an MVC framework, and the administration portion is in it's own folder - /admin; so administration is completely separate from the publi...

How to capture user interaction with a website?

How can I capture user interaction on a website? How many links a user has clicked. From where user has come. I want to create my own logic. I don't want to use any statistics tool. How can I accomplish this? Thanks in advance ...

CloudFront - How to upload images

I have 3 questions related to Amazon CloudFront. How do I upload images? Can I use FTP? Does Amazon allow me to rsynch a local directory to CloudFront so that I have a replica directory and hierarchy on CloudFront? Thanks in advance ...

The jQuery treeview plugin doesn't work within a jQuery accordion plugin

I am currently using the jQuery accordion plugin, and I need to use the treeview plugin within the accordion. However this doesn't work, and it seems to be a known problem (try googling "jquery accordion treeview"). Are there any plugins that might replace treeview but provide me with a similar flexible tree-like navigation behaviour? (...

Managing a dev vs production environment for a web app?

I have finished developing the core of a web application I have been working on. Since I was the only developer I just developed locally (lamp stack) without using version control (probably stupid but anyway..). Now that it is getting close to production ready, I have a couple other developers working with me so I set up a repository f...

Why false is displayed on status bar of safari browser?

I am using safari 3.2 and 4.0.3. On the status bar, false is displayed. Even when my site is loading, the same message is displayed: false. Can anyone suggest what the problem might be and the solution as well. Thanks in advance ...

What is the easiest way to program a beta period into a site?

What is the easiest way to program a beta period into a site? I dont know if superuser works this way but is it to have code that runs on every page (toolbar perhaps) to check for a betaPassword cookie and to redirect you to a page if it isnt correct? Is there a better place to run the code rather then the toolbar? (IIRC the toolbar is ...

Web interface for SQL Server database

I have been working on VB6 database desktop programming, but now a client is asking for a simple web interface (some inserts into SQL Server db used by a desktop application). The question is: Which approach is better? 1)creating asp.net project, connected directly to the SQL Server database; 2)creating separate (simple) mysql datab...

Response.Redirect with virtual path (~) and IIS

I'm experiencing a strange error in my deployed web app. I dont have much control or insight into how IIS has been set up so I'm in the dark a bit. (When I tested I used virtual directories) It appears that when I call Response.Redirect("~/") from one page the domain of the page that is being redirected to changes e.g. when I call Res...

GWT or Servlet+JSP for a web-app java project?

I've developed a java program that stores entities (using jpa+hibernate) in a mysql database. The entities are users, and other kind of objects. Now I need to write the web side of the application: I need to let user register/login and browse entries that are stored in the db. I'm new to this kind of programming and I don't know what is ...

Calling .focus() on a text field during a jquery-ui dialog-with-tabs load breaks the dialog rendering.

If I use setTimeout(function{$('#myElement').focus()}, 10)` during the loading of a jquery-ui dialog containing tabs, the rendering of the tabs breaks! Specifically, their background images fail to appear which makes them look like garbage. This ONLY happens when I set a timeout on document ready to focus the first text input in the ...