no-framework

MVC tutorial that doesn't rely on a framework?

I want to learn MVC "architecture pattern" but I don't want to jump into a framework like Rails or Django just yet. I want to understand the concept first and write some simple code in my currently familiar environment, which happens to be php/html/css/mysql. I don't necessarily need a tutorial that is based on php, as I do understand ...

Why does my custom drag and drop script fail?

Hi all, I am currently trying to code my own JS drag and drop script (out of sheer curiosity and boredom, I know it would be much easier with a framework). My aim is a fully working FF3 version , IE can wait for now. I just got stuck on a weird bug. When I drag the div for the first time, it works ok. When I drag it for the second tim...

JavaScript range slider / dual slider exist withOUT using a framework

I'm looking for a JavaScript control that is a Range Slider (dual knob) that: does NOT use an existing JS framework (e.g. dojo, jquery, etc) - unless you can roll/create your own sub framework where I can compile in just the components I need. works in all major browsers An example a Range Slider is below, but of course this uses JQu...

JavaScript tree functionality without framework

I'd like to display a tree on a Facebook page with JavaScript. Therefore there can be no dependencies on frameworks such as jQuery or Ext which won't run on Facebook, at least as far as I know when I last worked on that platform (April 2009). Can anybody recommend a "framework-free" JavaScript/tree library? I have ported some fairly c...

MVC large websites, use one controller...or many?

I have a pretty large site, and I am looking for the most time efficient way to manage it (I am the sole coder). I am trying to devise a very simple MVC structure (i don't want to use a framework) to help keep all my code in order. For a huge site, is it better to have only one controller to handle all the pages, or is it better and ea...

What is an efficient way to set CSS class for each cell in a given table row?

I have a problem setting the CSS class for each cell in a given table row. Initially I thought setting the parent row CSS would affect the style properties of cells, but that doesn't work. Instead I have to loop through all the cells in a given row to updated the CSS class. However this is not efficient. And it took a lot of time. Cons...

Javascript: Fade element from specidied opacity to specified opacity?

I am trying to find a function that can fade an element from a specified transparency to a specified transparency. For example from 0 to .7 but everything I can find just fades either from 0 to 1 or 1 to 0. I can't find anything that lets you specify from what to what. My attempts of reverse engineering the functions I have found have al...

window.open specify content size not window size?

When you do a window.open() you can specify the size of the new window. well depending on a lot of things (like browser, toolbars, etc.) the viewport can vary in size. For example if I have an image that is 500x400 in size, and I want to open a new window to show exactly that image with no access white space, and no need for scrolling. ...

List of All Background Images in DOM

What's the best way to find all of the background images on a given page using javascript? The ideal end result would be an array of all of the url's. ...