var obj;
//First i must describe my variable life,
//describe each destination of my life
/*This function is used to onload my way and every memory of my life
//onload the behaviour for Allah
*/
function onload(){
obj = parent.window.dialogArguments;
doXMLValueToDocument(obj.getXML(),document);
InitForm();
document.getElementById("idIman").value = getStartFromRightNow();
document.getElementById("idIslam").value = setKeepIstiqomah();
document.getElementById("idIhsan").value = setAlwaysAndAlways();
}
/*When i click my button of life,
//it means i already to call all of my function life,
//life always have functions rite? ^^
*/
document.getElementById("btnSaveMyLife").onclick = function (){
saveMyLife();
}
//i already to call the function
//we should be already in every single day rite? @_@"
function saveMyLife(){
var dsid, objXml, strXml;
dsid = "DATABASE_HIDUPKU";
//Eittsss...I have d'database, dont forget to put my pray and personality tobe better and better
objXml = getXMLDOM();
strXml = Get_DataSchemeXML(dsid,document.getElementById("idIbadah").value,"","","",true);
objXml.loadXML(strXml);
controlToXML (document,objXml);
strXml = objXml.xml;
obj.setXML(strXml);
alert(obj.xml);
parent.window.returnValue = obj;
alert("Save Success!!"); //Amiinnn....Ya Rabb
window.close();
}
//Go..Go..cancel the BAD CHARACTER, dont disturb the good database, Bismillah
document.getElementById("idBtnCancel").onclick = function (){
alert("are u sure u want to cancel??"); //Yess..Yess
window.close();
//Alhamdulillah
}
//First i must describe my variable life,
//describe each destination of my life
/*This function is used to onload my way and every memory of my life
//onload the behaviour for Allah
*/
function onload(){
obj = parent.window.dialogArguments;
doXMLValueToDocument(obj.getXML(),document);
InitForm();
document.getElementById("idIman").value = getStartFromRightNow();
document.getElementById("idIslam").value = setKeepIstiqomah();
document.getElementById("idIhsan").value = setAlwaysAndAlways();
}
/*When i click my button of life,
//it means i already to call all of my function life,
//life always have functions rite? ^^
*/
document.getElementById("btnSaveMyLife").onclick = function (){
saveMyLife();
}
//i already to call the function
//we should be already in every single day rite? @_@"
function saveMyLife(){
var dsid, objXml, strXml;
dsid = "DATABASE_HIDUPKU";
//Eittsss...I have d'database, dont forget to put my pray and personality tobe better and better
objXml = getXMLDOM();
strXml = Get_DataSchemeXML(dsid,document.getElementById("idIbadah").value,"","","",true);
objXml.loadXML(strXml);
controlToXML (document,objXml);
strXml = objXml.xml;
obj.setXML(strXml);
alert(obj.xml);
parent.window.returnValue = obj;
alert("Save Success!!"); //Amiinnn....Ya Rabb
window.close();
}
//Go..Go..cancel the BAD CHARACTER, dont disturb the good database, Bismillah
document.getElementById("idBtnCancel").onclick = function (){
alert("are u sure u want to cancel??"); //Yess..Yess
window.close();
//Alhamdulillah
}
====================================
Alert Error at all line,
ur programme is so so so bad!!!!!!
Do Better!!!!
====================================
Kalo nemu error ini, itu artinya codingan kita masih kacau balau, hiruk pikuk, pecah belah, bin amburadul..
Ayoo, perbaiki syntaks2 hidup..biar program nya SUCCESS!!
No BUG !!, and No Error !!!
Bismillah,
-MF-
Ps: Ditengah2 kebingungan bersama js =_=" --> makanan apaaaa ini..
Tidak ada komentar:
Posting Komentar