Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
XML
function newPopss(purchasedate, supplier, tranType, payable) {
//       //alert("A")
//           MyArgs = null;
//           MyArgs = window.showModalDialog('../../Transactions/Payments/frmPaymentdetail.aspx?ComIds=1&ComOthersIds=1&HrpNo=1&BillNo=1&PurchaseDate=' + purchasedate + '&Supplier=' + supplier + '&Payable=' + payable + '&salesId=1&Transact_Type=' + tranType, MyArgs, 'status:no;dialogWidth:850px;dialogHeight:550px;dialogTop=100,dialogLeft=100;dialogHide:true;help:no;scroll:yes;resizable:No;center:yes;');

//           return  true;
//       }

//       function validateControls() {
//            alert(document.getElementById("<%=HiddenField1.ClientID %>").value)
//           if (document.getElementById("<%=HiddenField1.ClientID %>").value == "0") {
//               alert("Please Select Asset Name using Search Button ");
//               document.getElementById("<%=HiddenField1.ClientID %>").focus();
//               return false;
//           }
//           else {
//               return true
//           }






//       }

//    function openPopup1() {

//        var ParmA = " ";
//        var ParmB = " ";
//        var MyArgs1 = null;
//        var MyArgs = new Array();

//        var confirmWin = null;
//        var Emp = document.getElementById("<%=txtAssetName.ClientID %>").value;
////        if (Emp == "") {
////            alert("Please enter part of the Asset name to search corresponding Asset");
////            document.getElementById("<%=txtAssetName.ClientID%>").focus();
////            return false;
////        }

//        //MyArgs = window.showModalDialog('../Transactions/PopupEmployee.aspx?Employee='+Emp+'','007registerWindow','anycontent',MyArgs,'menubar=0,resizable=yes,dialogWidth=200,dialogHeight=500,dialogTop=100, dialogLeft=100,scrollbars=yes')

//        MyArgs1 = window.showModalDialog('../Transactions/frmCommonSearch.aspx?PageCode=ASSETM&PageName=Asset Master', MyArgs, 'status:no;dialogWidth:500px;dialogHeight:500px;dialogTop=100,dialogLeft=100;dialogHide:true;help:no;scroll:no;resizable:No;center:yes;');
//        // alert(MyArgs1)
//        MyArgs = MyArgs1.split(',');
//        // alert(MyArgs);
//        if (MyArgs == null) {
//            window.alert("No Asset Selected from the List");
//            return false;
//        }
//        else {
//            //alert(MyArgs[1].toString());
//            document.getElementById("<%=txtAssetName.ClientID %>").value = MyArgs[1].toString();
//            document.getElementById("<%=HiddenField1.ClientID %>").value = MyArgs[0].toString();

//        }

//        return true;

//    }
Posted
Comments
StianSandberg 19-Jul-12 6:59am    
this javascript is quite easy to convert...

function newPopss(purchasedate, supplier, tranType, payable) {
}

will do just the same..
Seriously, you would have someone to convert a 100 line of code for you? Please ask a question, don't ask someone to work for you.

1 solution

I will do this for you. Here is the jQuery equivalent for the above javascript
JavaScript
$.newPopss=function (purchasedate, supplier, tranType, payable) {

  // Please note that I have skipped the rest of the code since it was COMMENTED in the original Javascript code

});
 
Share this answer
 
Comments
[no name] 19-Jul-12 9:03am    
Good one
bbirajdar 19-Jul-12 9:15am    
:) he he..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900