IE issue- ENTER does not work ?

IE bug- If your page has a Web Form with a single TextBox Web control, your user's visiting
with Internet Explorer won't be able to have the appropriate action be completed upon hitting
enter in the textbox.
Workaround -simply add another TextBox Web control to the Web Form. This will cause Internet
Explorer to send back the Button Web control's name/value pair upon hitting Enter. Of course,
you don't want the user to see two TextBoxes, so use a bit of CSS to hide the second one.
(Acknowledgement- http://aspnet.4guysfromrolla.com/articles/060805-1.aspx)

page refresh for javascript

1. To refresh the current page, use this code-

<a href=”JavaScript:location.reload(true);”>
Refresh this page
</a>

or just -(within javascript code)-
location.reload(true)

2. To compare 2 files, windiff is a great tool !

Issue with ‘onEnter’ on a formless text box

Recently, I had issues with a set of text boxes which were not within a form. The onEnter  (when pressed enter) on any of the text boxes would refresh the page as it was considered a submit by default.

This was causing problems in the page where I had an AJAX application.

So, we need to cancel the event trigger by ‘enter’.

This is done by  the following line- the ‘enter’ is code 13 on the keyboard – (in the element like text box)

onKeyPress=”return event.keyCode!=13″

Javascript, Photoshop & Animation skills

On Job training-

1. Very important – function and function() have different use & results -
Difference of function & function() on window.onload- function() gives the result immediately but function waits til the DOM is loaded.

2. For any progressive function, add the setInterval(adds time base to it) feature so that it does not finish quickly.

3. when the main container is centered, all elements will be centered too, So, you have to align the container specifically which you want to be left /right oriented esp. the progress bars or they will start progressing from the center.

4. To give a dimension to an empty div, put &amp;nbsp; in it.

5. IE does not accept negative margin. Use the position or the padding feature to achieve the same result.

6. When you are styling(putting style=’property:value’) by javascript, background-image becomes backgroundImage. In a nutshell, the name of the style might vary when you are putting it by Javascript.

Photoshop-

To copy any layer to another image, simply drag it over, it will get copied.

To make tilted addons to any image, first rotate the image of the subset image to any degrees, copy -paste it to the final image.

Make separate layer for each section so that you can edit each part flexibly.

AnimationShop3 by JASC software-

I used this product recently to make an animation . It was very easy to use, fast & simple.
Recommended for animation requirements!

IE6 issues – Learnings at Tacit

A couple of new web learnings at Tacit-

1. For IE6 issues, instead of using hacks(* or _), put the differential code for iE6,
as is given by Microsoft.

<!–[if IE 6]>
<style>
#selector,
#shield { position:absolute; }
</style>
<![endif]–>

3. “Float” does not work nicely in IE6. We need to put some workarounds for that.

4. For a check-box, you should have either checked=true or nothing at all. Having checked =false does not work in many situations

5. IE6 does not understand “position:fixed”. As a workaround, you have to play with the z-index of the container & its parent.

6. The z-index of the controls (drop down menu boxes ) are always higher than the pop-ups . So, they might show up.

7.when you make an image an anchor, there is a default border which shows up.
You should put a border:0 to make the border disappear.