web-development

How to build a web site which gives a sub-domain dynamically to every registered user?

Possible Duplicate: Create subdomain upon user registration Suppose i have a site and i wish to give a sub-domain for each registered users. like my site http://site.com/ and the test-user is a user registered on my site and site want to make sub-domain for that user. Like http://test-user.site.com Like http://test-user1.s...

ASP.NET MVC - Views location Problem : The view 'Index' or its master was not found

Hi all, I've create an asp.net MVC 2 project, it works fine!! I've been asked to integrate the project in an existing web project in classic asp.net (I've add the folder containing the source, and not make a new project, because they have to bee in same project) I've configured my web.config file <pages pageBaseType="System.Web.UI.P...

Javascript: How to filter object array based on attributes?

I have the following JavaScript JSON array of real estate home objects: var json = { 'homes' : [ { "home_id":"1", "price":"925", "sqft":"1100", "num_of_beds":"2", "num_of_baths":"2.0", }, { "home_id":"2", "price":"1425", "sqft":"1900", "num_of_beds":"4"...

Browser Preview Utility

Hello everybody, Are there any programs that render websites from the point of view of different browsers? In other words, I'd like to be able to open and view websites as if it were Internet Explorer, Firefox, Chrome, Safari, etc. It would be a bonus if the utility has a paned interface that lets you view pages side by side. Thanks!...

What browsers' Back button doesn't generate request to server

I need to test my web application against a browser for which back button doesn't generate request to server. Could you give me examples of such browsers? ...

IE 8 issue where window.close() is not occuring after winword.exe is fired to print a document

In my web application, a popup page is called using window.open javascript. There is a Print button on the page that has an onclick event that calls a printchecks() function. The code in the printchecks() function is function printchecks(){ window.print(); window.close(); } Issue is that the window.print brings up the prin...

URL breaking at special character

Hello All- I'm having trouble with a URL string in my Web Application. It's using a UNC path similar to \\houtestmachine\common\File1.pdf My problem is when it encounters files that have a # character. I tried doing a string newstring = originalstring.Replace("#", "%23"); but the # is still there in URL (target of a hyperlink) at run...

Is it possible to modify an iframe contents in a classic ASP page after it has loaded

I have a classic ASP page which is loading an ASP.net page through an iframe inside the ASP page. This is working great except for the fact that it takes a while to load the ASP.net page. The user is left here with unfavorable experience because all they say is an empty blank page until the page is finish loading. What I would like ...

JQuery: How does Gowalla perform it's "slide" effect?

How does Gowalla.com perform it's slide effect on the frontpage? What JQuery effect can mimic that functionality of the sliding down effect? ...

The data types text and nvarchar are incompatible in the equal to operator

Hi there. this is my code ProductController.cs public ActionResult Details(string id) { product productx = productDB.products.Single(pr => pr.Product1 == id); return View(productx); } Details.aspx <td> <%-- : Html.ActionLink("Edit", "Edit", new { id=item.Id }) % --> <%: Html.ActionLink("Details", "Deta...

JQuery: How to text insert HTML ascii character?

I have the following JQuery code: $(this).text('Options &#x25B4;'); However, the ascii code isn't showing up on my web page. All that shows up is on the webpage is Options &#x25B4;. What am I doing wrong? ...

JQuery: Push Effect?

I'm currently using the JQuery slideDown/slideUp effect and am not accomplishing what I want. Essentially, I want to create an action where I "push" a div off the top of the browser window. Something similar to the following push effect example. How can I do this with JQuery? The problem with just using slideDown/slideUp is that the ...

What is "ctr" file extension?

What is "ctr" file extension? Recently I found one site with a file named "create.ctr", what language is that? ...

How to share memory buffer across sessions in Django?

I want to have one party (or more) sends a stream of data via HTTP request(s). Other parties will be able to receive the same stream of data in almost real-time. The data stream should be accessible across sessions (according to access control list). How can I do this in Django? If possible I would like to avoid database access and use...

Team development environment

Hello Stackoverflow I have been given the task to team mange a total refactoring of a webpage, build in PHP. I'm only the student worker :( so my experience in a team development environment is limited. Well my question here is how do we best manage the development of the website? At the moment do we use a SVN for version control, wher...

What web-development platform should I use considering Time-To-Market?

I have been looking at a few differend platforms for my coming web-development project. I would like to hear what web-development platform is recommended when considering Time-To-Maket. Suppose that I already know the programming language well, but not the web-framework. The OS will be Linux. My requirements and priorities: Time-To-Ma...

image protection in rails

Hello, I am looking for ways to protect my product images and I don't know if there's anything out there better than what I've already found: disable right click, use a transparent image in front of your picture and watermarking. Obviously none of them is perfect but I was curious if someone came up with a better solution to this proble...

Alternatives to HTML for website creation?

Hello It seems the most common aproach to web design is to use HTML/XHTML & CSS in conjunction with other technologies or languages like Javascript or PHP. On a theoretical level, I'm interested to know what other languages or technologies could be used to build an entire site without using a single HTML tag or CSS style for styling/p...

Webfaction apache + mod_wsgi + django configuration issue

A problem that I stumbled upon recently, and, even though I solved it, I would like to hear your opinion of what correct/simple/adopted solution would be. I'm developing website using Django + python. When I run it on local machine with "python manage.py runserver", local address is http://127.0.0.1:8000/ by default. However, on produc...

Shortest way to compare 2 dates in dd/mm/yyyy format

Hi, can anyone suggest the neatest way to do this comparison? I need to test if a date provided in dd/mm/yyyy format is less than a fixed date, e.g 01/05/2009 - I know I can convert these to unix time format using strtotime, then make the comparison, but I'm curious if there is a quicker way to do it - many thanks, just looking for a hin...