jquery to prototype, ajax and slide
i am moving from jquery to prototype because of compatibility issue with IE6. basically, i have a multiple submits in one page and i want to submit the form via ajax and return the resu开发者_StackOverflowlt to associated div of each form.
this is what i have used in jquery for multiple submit
i am getting value of submit id and using that for div value.
$(".button").click(function() { var element = $(this); var Id = element.attr("id");
var dataString = $("#UpdateBond"+Id).serialize();
//alert (dataString); return false;
$("#flash"+Id).show();
$("#flash"+Id).fadeIn(400).html('<img src="images/ajax-loader.gif" align="absmiddle"> updating.....');
$.ajax({
type: "POST",
url: "index2.cgi",
data: dataString,
success: function(html) {
$('#flash'+Id).html(html);
}
});
return false;
});
another issue is slider. IE6 doesn't support jquery slider so i am kinda in dilemma. i was wondering if there is similar stuff in prototype. i am trying to learn prototype now.
I would say IE6 is really, really not worth changing technologies any more. I'm all for downward compatibility and supporting older systems but you have to draw a line somewhere. My 2 cents.
精彩评论