Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ajax = function(el){
- var varis = el.attr('alt');
- var vars = varis.split('|');
- var txtBox = $("#"+vars[0]);
- var value = txtBox.val();
- var devam = true;
- if(el.hasClass('delete')) {
- devam = $areyousure(el);
- }
- if(devam) {
- $.ajax({
- url:'/root.php/ajax/'+vars[1],
- type:'POST',
- data:'value='+value+'&id='+vars[2]+'&key='+vars[3],
- success:function(msg){
- var gettedData = jQuery.parseJSON(msg);
- if(gettedData.type==='complete'){
- eval(vars[4].replace('msg','gettedData.msg'));
- //@todo IE kontrol et.
- }else{
- alert(gettedData.msg);
- }
- }
- });
- }
- }
Add Comment
Please, Sign In to add comment