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)
IE issue- ENTER does not work ?
September 29, 2008 at 9:28 pm (Learning at Tacit)
Tags: ENTER, IE issue
page refresh for javascript
August 21, 2008 at 7:23 pm (Learning at Tacit)
Tags: javascript reload
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
July 18, 2008 at 6:39 pm (Learning at Tacit)
Tags: form elements enter refresh
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″
IE6 issues – Learnings at Tacit
May 14, 2008 at 11:30 pm (Learning at Tacit)
Tags: IE6 issues float position
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.