
Asked by Gina a design student
how do i write code in javascript or html.. for..when i click on the image , the image shoud enlarge
Asked by Frank Peterson a design student from New York
How do I get the current position of the cursor in a TEXTAREA using Javascript? I’ve only found scripts on inserting at the current position but not on returning the number of the cursor’s position.
“This site (http://shop.uppercasegallery.ca/) has a shopping cart the likes of which I’ve never seen before. It’s pretty slick; it slides in and persists at the bottom of the screen, unless the user closes it. With my limited knowledge of the newer technologies of the web, I’m assuming it employs JavaScript and maybe a little bit of Ajax.”
It is indeed a nice shopping cart application, but it actually uses a 3rd party provider called Shopify made by Jaded Pixel. While I don’t want to do a product review or endorsement you can set Shopify to work on your domain and even have control of the interface. They’ve even released their templating language called Liquify as open source for Ruby on Rails applications (similar to Smarty on PHP).
You have options to leverage JavaScript frameworks to build something similar such as the shop module in script.aculo.us. Many JavaScript frameworks offer a combination of drag-n-drop/Ajax that can be used to build similar functionality. Unfortunately, code samples are impractical in this example, because it varies on what framework utilized and programming language.

asked by Dion Davis, a student in Phoenix
Maintaining page validation while embedding flash can be a pain for anyone. Most people try to drop the swf onto their page in dreamweaver, in this case dreamweaver will try its best to write a little code for you to make it work. The problem is that it doesn’t validate. In my opinion the easiest way to accomplish this is use the SWFObject JavaScript.
asked by Caustic Dave from Michigan
Private variables can be created by using the ‘var’ syntax before defining the variable.
That limits its scope to within the object it was created in.
Example
function fName(){ //functions are objects in javascript var firstname = “steve”; // firstname is a private variable for the object fName } lastname = “albridge” ; // lastname is a global/public variable
Additional Reference
OOP in JS, Part 1 : Public/Private Variables and Methods
Private Static Members in Javascript
Private Members in JavaScript - Douglas Crockford

asked by Jake, a Web Developer from New York
The lack of proper error reporting in IE is daunting for new developers, but there are some add-ons that can help manage javascript errors for IE6.
(more…)
OR follow on Twitter
Twitter.com/DeDestruct