web-development

Transitioning from an oldschool web framework to a more modern mvc based one?

At work we currently use a pretty outdated (php) "framework" that doesn't really make use of all the cool new stuff like spl autoloading, mvc, pretty much all the new stuff that came out for PHP in the last 2-3 years. I'm trying to transition this framework slowly into a more modern mvc based one but I don't want to jump the gun and com...

How to convert Byte[] to sql image

I have sql data type image to store the state of the webparts but in .Net it is Byte[]. How do I convert Byte[] to sql image for insert and other operations. ...

How closely can a Website be Copied without violating Copyright?

I have a client that is interested in having the homepage of their website look almost exactly like that of website ABC. They love everything about it. However, they either do not want to ask for or would not receive a license from ABC to copy their site. My question is: how closely can a website be copied without violating copyright. ...

How to transition from OO development to Web-Development?

I just graduated last year and I landed a job in the CRM space, specifically with Salesforce.com and its respective platform. My problem is that there are 2 languages used to do things on this platform one is relatively similar to java and is OO the other is a web-development language similar to js, but not quite. I come from a java ba...

What is the best way to contextualise a large number of Css style definitions?

We are developing a Html widget using Css as the styling mechanism. The widget needs to be self-contained such that it doesn’t interfere with any other component on the host webpage. We have a single Css file with a large number of style definitions in it. In order to contextualise them, every single one starts with the name of the main...

Where to create a web-site map for developers

Hi! Imagine a web-designer built several mock-up html pages. Now it is time to start development according to these mock-ups. First of all I would like to know that all mock-ups are there, i.e. every link has corresponded mock-up page. I can't just click hyperlinks, because they are empty ('#' url). And secondly, I would like to have...

A library that allows to add footnotes to a web page

I would like to add in my web app ability to add comments to a specific word in the page. Something like the LaTex footnotes. The UI I had in mind is, each word would be highlighted when the mouse hovers over it (or that the space after it is being highlighted), and when the user clicks, a textbox to enter the comment pops up near the p...

Back button refresh page

There are a few similar questions posted here but none that really addresses my needs. I have a list of items on one page, lets call it masterlist.aspx. If I click on one these list items another page appears, i.e. details.aspx?id=something. The page that appears has a formview control in edit mode. If the user wants to edit the data...

Entity Framework 1 Vs. Normal SQL app.

Does anyone know if there's a speed difference between a query with Entity Framework instead of SQL normal application? With entity Framework, we must manualy handle joins between tables and to my eyes, it seems like a fairly complex query. Given a customer with many joins on State/Province, Orders, Gender, Comments, favorites products,...

Good resources for cross browser ASP.NET website development

Does anyone know of any good resources for learning about cross-browser development in ASP.NET? Specifically, what causes a page to look different in FF/Chrome/IE, what are the gotchas when developing, how can this issue be addressed in a new project etc. ...

Preventing an embedded applet from launching immediately?

Due to timing issues, I'm trying to prevent an applet from loading until a page is completely loaded ($(document).ready(...);). However, I'm using the java deployment toolkit to launch the applet, which naively uses document.write to push data to the browser. Obviously, this breaks horribly if I attempt to run the applet after the is wr...

Closing popups on session expiry

Here is the thing : my webapp has loads of popups and my boss wants 'em closed on session expiry, coz when session expires and an user presses refresh on a popup, he is being shown the logon page -> user logs on -> user is directed to the dashboard. Now, a dashboard screen in a popup is totally uncool. Here is where google got me: Have...

passing session to another web application

let say in tomcat application server we deployed 2 web applications , web application A, web application B. How to pro-grammatically sync session from web application A to web application B . In other words, as long as user login to web application A, he is already login to web application B. As well when he log out. ...

What is the best website/web-app upgrade process

We have a great process for upgrading our clients' websites as far as updating html/js code and assets is concerned (by using Subversion) that we are very happy with. However, when it comes to upgrading databases, we are without any formal process. If we add new tables/fields to our development database, when it comes to rolling it ou...

Browsers not updating code changes?

While working on HTML I and testing offline, you know changing the code and refreshing the browser, nothing is happening anymore. Both Firefox and Safari seem to not care about refreshing to reflect the changes. But Opera does... Even if I upload the new file to the server and refresh in FF it is not showing the new code styles, I have ...

how can i access dynamically added html tags?

hello, i am self-studying asp.net and was trying some small projects to help understand the concepts better. i am creating a simple e-learning website using html and asp.net(c#), that has a fixed number of multiple choices questionnaire on one of its pages, i create the questionnaire by choosing random questions, out of a database tabl...

how to change html background dynamically

I have a page which has a style like this in a css file: body { background: #000000 url(images/back_all.gif) repeat-x top; font: 12px Tahoma, Arial, Helvetica, sans-serif; color: #666666; } and I have either a javascript which is loaded after window.onload and causes page to be expand vericaly and so the rest of my page wi...

Where can I catch up on event bubbling in web programming(Esp. RE: the YUI)?

Dear Stackoverflow; Can you provide some good reading material on event-bubbling, especially in regards to the Yahoo User-Interface libraries (YUI) ? ...

Design of database to record failed logins to prevent brute forcing

There have been a couple of questions about limiting login attempts, but none have really discussed the advantages or disadvantages or different ways of storing the record of login attempts (most have focused on the issue of throttling vs captchas, for instance, which is not what I'm interested in). Instead, I'm trying to figure out the ...

Ajax, back button and DOM updates

If javascript modifies DOM in page A, user navigates to page B and then hits back button to get back to the page A. All modifications to DOM of page A are lost and user is presented with version that was originally retrieved from the server. It works that way on stackoverflow, reddit and many other popular websites. (try to add test com...