web-development

Source Code Control Systems in Web Development

We are just beginning the process of looking for a source code control system. I realize we are behind, but better late than never. None of the members on our team have experience with any systems in their past so I was hoping I could find out some basic things to look for as we begin investigating different tools. Here is a little backg...

JQuery: how to access multiple css classes using .attr()?

I have the following: <div id="unique" class="myclass xyz_345">...</div> Question: How do I access what # is after xyz_, given that I have 2 css classes being applied to it? (In the example above, it would be the number 345). I've tried the following, but it does work: var num_after_xyz = $('unique').attr("class").substring(4); ...

assign a class of current to the current page in the navigation when all headers are included via <?php include()?>

I have all the headers and the top navigation included in the page with PHP I want to assign a class to the <li class="current"> so i have a list of <li>'s and the current page should get a class of "current" and the body should get a class of the current page for http://www.mysite.com/home = the body should be <body class"home"> ...

Why they created a timeout

Hi if u add this to web.config, then if a page have gone through long process, the client will not have a timeout exception. <httpRuntime maxRequestLength="1024000" executionTimeout="36000"/> they are timing out things for a purpose, what is it?, I tried to create a website with two pages I make a button in default1.aspx wait for 5 ...

Successful projects using agile methods?

I have been interested in agile methods of late and have found a lot of prescriptions and minute descriptions of a lot of practices. Still, I remember my best projects as run-to-completion spikes followed by some debugging and minimal testing before going live. I have been asking myself, did Flickr use agile methods? Does Facebook pract...

Which is web.py killer app?

A killer app is an app that make a library or framework famous. I think web.py is quite famous, but I don't know any big, widely used app written in web.py. Could you point out any? I've head that the first version of youtube.com was coded using web.py but I'd like you to mention an open source one so I can see its code. ...

How to get FormValueProvider instance in a Custom Model Binder in ASP.NET MVC 2

I'm using the MVC 2 RC. I have a custom model binder that used to iterate over posted form values in MVC 1.0 like this: var values = bindingContext.ValueProvider.Where(x => x.Key.StartsWith("prefix")); foreach (var value in values) { /* do something */ } In version 2, I can't do this anymore. Apparently there are new implementatio...

How to defend excessive login requests?

Hi, Our team have built a web application using Ruby on Rails. It currently doesn't restrict users from making excessive login requests. We want to ignore a user's login requests for a while after she made several failed attempts mainly for the purpose of defending automated robots. Here are my questions: How to write a program or s...

Is there an easy way to add an API to a Seaside web app?

Is there an easy way to add an API to your Seaside web application, just something to allow users to submit a new record with a few plaintext fields for example? (REST would be ideal) ...

HTML - how to make an entire DIV a hyperlink?

How do I make an entire DIV a clickable hyperlink. Meaning, I essentially want to do: <div class="myclass" href="example.com"> <div>...</div> <table><tr>..</tr></table> .... </div> And whenever someone mouse hovers of the myclass DIV, I want the entire DIV it to be a clickable hyperlink. ...

How can I display the correct created and modified times in my webapp?

I'm working on a Rails application that's kind of like a blog. Users create Entries. I'm trying to work out how to handle time storage and display. I've read this writeup about Rails timezone support. It's great but it doesn't cover what my app needs to do. It only looks at cases where you want to convert stored time to the current logg...

I would like to interactively detect when an ActiveX component has been installed, and asynchronously refresh a portion of the page

Hello, I am working on a website, and I would like to refresh a portion of the page after an ActiveX component has been installed. I have a general idea of how to do this with polling, which I am working on getting going : function detectComponentThenSleep(){ try{ // Call what I want ActiveX for, if the method is available,...

Do I need to Refer to the Mit license on my website?

If my site uses jquery and jquery plugins, am I supposed to refer to the MIT license and give credit to the creators? Ordoes this only apply to software redistribution? ...

jquery - refresh the page when new data stored in to the table across the browser sessions

Environment : PHP/MySQL/Jquery I would like to refresh the page (ex: index.php) when new data stores in to the table (ex : new_entry_table) checking for every one minute. The same page will be opened in many machines(pc-browsers) at a time all should get refresh when new data arises. using jquery and database check i tried the followi...

Is REST a good choice for GUI web applications?

GUI based web applications could be build upon a GUI component, stateful framework like Wicket or they could build in a RESTful, stateless way with GUI status only on the client. From a technical point of view REST looks like the right way since it leverages the full power of http and leads to highly scalable applications. But that com...

Convert all video format to 3gp and mpeg4 video format?

Right now i stuck in my application because of this issue. anyone help to get out of this. Want source code to covert all video format to 3gp and mpeg4 format. i developed this applicatoin on asp.net using c# as a backend language. ...

How to create multiple language versions web?

Hey, my clients want me to create more language versions of already existing website and I'd like to make it the right way ... all I can think of is to create a folder named 'DE' for example and copy the website in there, but it seems hard to manege, if I had to change something in design and so on. How would you do it? ...

Gridview Refresh Problem

Hi there, I have a gridview in an asp.net page, and get the data by binding it to a SQL Server Table, I use C# and Stored Procedure in SQL server to bind the data. every thing works fine,except when I Delete multiple rows by using Stored Procedure, the gridview still shows the old data. actually I have couple of text boxes that the user...

Document viewer control?

We are creating a custom document management application that requires a viewer for the user to quickly move through various documents no matter the format (image files, .doc, .docx, .xls, .xlsx, .ppt, .rtf, .pdf). Is there a control out there that will handle this problem? If not, what approach would you recommend we use? We would ra...

Web portal architecture using a LOT of jQuery

A while back I overheard some very experienced web developer describe an ideal (in his mind) architecture for a portal. I remember hearing these layers: Database (Using stored procedures) Application Server (using SOAP or REST) Web Server (using jQuery to talk to the application server) The database and application layers made total...