Experts Says:
“callback function throws an exception in IE8 mode. This means that even if your code is written defensively, it will get called and cause an error”.
the only solution is to remove call and use try/catch method to rectify this error.
This problem could also happened in jQuery.
Example:
<script>
function callback_create_error()
{
//some code;
}
</script>
<a href="javascript:void(0)" onclick="try{callback_create_error();}catch(e){alert(’error found!’)}">test</a>
[...]
fadeTo effect will customize your fading according to your required opacity.
fadeTo( speed, opacity, [callback] )
speed-denotes speed of fadeIn either as {’slow’,’def’,’fast’} or in milliseconds as {2000}.
opacity-starts from 0 to 1.
callback- function that will be executed after each and every animation.
Example:
<style>
div { margin:3px; width:180px; display:none;
height:80px; float:left; background-color:red;}
span { margin:3px; text-align:left; color:white;}
</style>
<script type="text/javascript">$(document).ready(function(){
[...]
Also filed in
|
|
simple way to use fadeIn fadeOut event in jquery
fadeIn( speed, callback )
speed-denotes speed of fadeIn either as {’slow’,’def’,’fast’} or in milliseconds as {2000}.
callback- function that will be executed after each and every animation.
same components used for.
fadeOut( speed, callback )
<style>
div { margin:3px; width:180px; display:none;
height:80px; float:left; background-color:red;}
span {display:none; margin:3px; text-align:left; color:white;}
</style>
<script type="text/javascript">$(document).ready(function(){
[...]
Also filed in
|
|
working with ajax in jQuery. Very simple and easy technique.
jQuery.ajax( options )
option may contain–>
type- type of data send {GET OR POST}.
url- location of file where data has to be send.
cache- if set to false then page is not cached by browser.
data- parameters passed to requested file.
success- what to do when request is succeeded.
$.ajax({
type: [...]
Also filed in
|
|