web-development

Version Control for a Production Website Environment

Does anyone have any experience using version control with a production website? Would it be a terrible idea to run a website from a repository? I just found a related article but I would like to hear your thoughts/comments. ...

How to align columns in multiple GridViews

How can I get several GridViews on a single page to share the same Column widths? I have four GridViews with (essentially) the same columns in each. They have unique headers and represent data from different queries. I want to maximize readability by allowing the columns to be dynamically sized based on the data but I don't want each ...

How To Collapse Just One Field in Django Admin?

The django admin allows you to specify fieldsets. You properly structure a tuple that groups different fields together. You can also specify classes for certain groups of fields. One of those classes is collapse, which will hide the field under a collapsable area. This is good for hiding rarely used or advanced fields to keep the UI clea...

Disregarding speed and compatibility, why not use only classes and never use IDs in HTML/CSS ?

I use only classes and never use IDs. Many people like to use IDs for different reasons. I've seen many questions regarding IDs vs classes on stackoverflow, but no one addressed pure code organization point of view disregarding compatibility and runtime performance. From code organization point of view, I think that using IDs is bad ju...

Ideas for web development practical jokes?

I am a web developer for a Django-based site for a student organization, and I have the opportunity to make the website temporarily absurd for a day of general campus-wide debauchery and chaos (long story, doesn't matter.) What are your best ideas for web development practical jokes (that you could never use in the real world)? For exa...

The next step & technology towards web services.

Hi, My name is Dennis and I am pretty ambitious of creating the next big thing for the web. I have ideas but now I gotta get to work to learn the tools. I am learning Javascript. I don't know if next step for me to take is PHP or some suggests RUBY on Rails. What are the pros and cons. With your experience, I wish you could hint me ...

What's the best place to run a reccuring task for a website you host yourself?

In the ASP.Net application I am writing I need to be able to have it send various faxes out. My fax server allows me to send the fax via an HTTP POST and returns to me an ID for the submitted fax. I need to be able to know if each fax ultimately sends OK or fails for some reason. The fax server allows me to query the status of a fax by ...

What is the best practice to decouple GUI design from server-side development when developing modern web applications?

We are currently developing a few web applications and are letting our designers convert signed off paper prototypes into static web pages. In addition to having hyperlinks between pages the designers have started adding jquery calls to update elements on the pages by fetching data from static json files. Once the designers are finished ...

amp is included in url struts tag

Hi, In my web application, I use strust2 url tag to pass parameters like id etc., For example, I use a link to delete an entity and I use param to pass the id of the entity to be deleted. And I follow this throughout my web app for adding, editing, deleting an entity. During run time, sometimes, I don't get the params to be stored in ...

Conditional if in struts2 tags

I have the following code. <s:push value="#session['person']"> <s:if test="%{admin=='y'}"> <a class="add" href="/projit1/project/addProject.jsp">Create a Project</a> </s:if> </s:push> I am trying push an object person from session map to valuestack and check one of its properties admin's value. If...

How to inform users that webapplication does not support IE6

I have web application and I do not really care about IE6 users. However I would like to have some kind of feature that would inform users that they are using IE6 and that their browser is not supported. I was thinking about two possible solutions: pop-out window (probably Javascript) with text informing the user on every page he visit...

ASP.NET 4.0 Session Fixation Exploits

Does ASP.NET 4.0 have any improvements as to inbuilt ptotection against session fixation attacks? ...

What is the way(best practice) to deal with XSS ?

I am using ASP.NET and on ASP.NET page has validate attribute which checks for the XSS validations. However i would like to know that is it really sufficient ? I have visited some of the related post on stackoverflow and that helped me but i am looking to understand how to plan for XSS when developing web sites ? Do we have to check XS...

Web application: keep DB cursor or recreate?

Hello, Should I initialize the database cursor once per each Apache thread, or should I initialize one in every function available to HTTP clients? What happens when the client terminates the connection (i.e. user closes the browser tab)? Does the server-side function that was processing the request continue normally until it returns, ...

Newbie Programmer needs Motivation

Hi, I'm starting to teach myself computer programming. I am interested in developing a website using PHP but I don't know what kind of concept I should develop. Please advise me on any good ideas for how I can improve my programming skills. Many Thanks. ...

Using GET instead of POST to delete data behind authenticated pages

I know you should use POST whenever data will be modified on a public website. There are several reasons including the fact that search engines will follow all the links and modify the data. My question is do you think it is OK to use GET behind authenticated pages in something like an admin interface? One example would be a list of pr...

JQuery ready event and its shortcut

Hello, In most of the videos, I see expert JQuery developers writing complete code for the ready event eg: $(document).ready(function(){ //..... }); rather than its shortcut: $(function(){ //..... }); Is there any particular down side to using shortcut method? Edit: Jquery documentation says: shortcut not recommended That'...

Drawing rectangles on a grid in a web browser

I would like to create an online, simple WYSIWYG drawing editor allowing people to draw rectangular shapes. I'm thinking of a grid which the lines and points can snap on to, ensuring that the lines are strictly vertical or horizontal. I will be parsing the rectangular shapes to obtain some area calculations and compute certain things. H...

Automatic web form testing/filling

I recently became lead on getting an inordinate amount of testing done in a very short period of time. We have many different web forms, using custom (Telerik) controls that need to be tested for proper data validation and sensible handling of the data. Some of the forms are several pages long with 30-80 different controls for data entry...

Does anyone know of a good free bulk upload tool for web apps?

I have a web application in which a user has to upload images to a gallery. At the moment they need to upload one image at a time so it's pretty tedious. I'd like to implement a system where they could potentially drag and drop files into the browser, or select a folder to upload. Any ideas? Thanks in advance! (By the way; it's a .Ne...