« first day (1215 days earlier)      last day (2902 days later) » 

Raj
6:33 AM
$(".b_approve").click(function(e) { // register business Approvements
e.preventDefault();
var b_id=$(this).attr('b_id');
var b_name_val=$(this).attr('b_name_val');
if (confirm("Do you want to Approve ?")){
$.post('ajax_actions-admin.php?act=approve_req&b_id='+b_id+"&b_name_val="+b_name_val,function(data){
alert(data);
location.reload();
});
}
});
 
1 message moved from JavaScript
 
Raj
6:47 AM
$('form#btn_update_business_info').unbind('submit').bind('submit',function(event) {
event.preventDefault();
var formdata = new FormData($(this)[0]);
$.get('ajax_actions-business.php?act=update_business_info&formdata='+formdata,function(data) {
alert(data);
});
});
 
1 message moved from JavaScript
 
 
3 hours later…
9:48 AM
One more question......is it okay to use two e.preventDefault() ?? I have code like this:
`$(document).ready(function(e){
$('elemnt').click(function(e){
e.preventDefault();
});
});`
 
1 message moved from JavaScript
 
```
$(document).ready(function(e) {
$('element').click(function(e){
e.preventDefault()
});
});
```
 
1 message moved from JavaScript
 
 
2 hours later…
11:39 AM
/cleanupHindi
/awake
 
@Shubhank I am awake!
 
/cleanupHindi
 
/notworking :P
 
giving me head ache :p
 
@Shubhank I am awake!
 
11:47 AM
7 messages moved from [[iOS][Android][ChaosOverFlow]](chat.stackoverflow.com/rooms/26424/iosandroidchaosoverflow)
 
 
9 hours later…
8:33 PM
console.history = [];
var oldConsole = {};
for (var i in console) {
if (typeof console[i] == 'function') {
oldConsole[i] = console[i];
var strr = '(function(){\
console.history.push({func:\'' + i + '\',args : Array.prototype.slice.call(arguments)});\
oldConsole[\'' + i + '\'].apply(console, arguments);\
})';
console[i] = eval(strr);
}
}

Should this work?
 
1 message moved from JavaScript
 

« first day (1215 days earlier)      last day (2902 days later) »