Click here to Skip to main content
15,920,633 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: html text wrapping Pin
harinath7-Apr-04 22:03
professionalharinath7-Apr-04 22:03 
GeneralHttpRequest in Opera browser Pin
MurthyPL5-Apr-04 5:39
MurthyPL5-Apr-04 5:39 
GeneralRe: HttpRequest in Opera browser Pin
John Kuhn9-Apr-04 17:41
John Kuhn9-Apr-04 17:41 
GeneralUpdating of SQL Database with JavaScript/VBScript in .NET Pin
ebirien4-Apr-04 23:15
ebirien4-Apr-04 23:15 
GeneralEmailing a Form and Post Data to Access Pin
eyespike14-Apr-04 4:27
eyespike14-Apr-04 4:27 
GeneralTemp Internet Files Pin
3-Apr-04 7:29
suss3-Apr-04 7:29 
GeneralRe: Temp Internet Files Pin
hxxbin6-Apr-04 4:42
hxxbin6-Apr-04 4:42 
Generalunwanted javascript behavior Pin
harinath3-Apr-04 3:34
professionalharinath3-Apr-04 3:34 
Hi, all

here is a case which is hurting me for the last couple of days..

the following html code is a part of my project.

there are some buttons in the form.

when i click "addproduct" it will pop up a child window

but the problem is.


when we close the window using X (close) button of the browser window,

after that clicking on other button "update status" is again poping up one more window.

actually i am not writing any code to pop up window for this button.

y it is happening..
i dont want this behavior.

how to get rid of this?

any suggestions?

the code is here



code:--------------------------------------------------------------------------------






<title>






function fnSubmit(actionCode)
{

if(actionCode==1)
{
if(validateLoyaltyAdminForm(document.loyaltyAdminForm))
{
document.loyaltyAdminForm.actionCode.value="1";
document.loyaltyAdminForm.submit();
return;
}
else
{
return;
}
}
}
function openViewWindow(jobId)
{
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '5';
document.forms['loyaltyAdminForm'].JobDescriptionId.value = jobId;
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnEditProduct(productId)
{
document.loyaltyAdminForm.productId.value=productId;
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addProduct.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '2';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnEditAward(awardId)
{
document.loyaltyAdminForm.awardId.value=awardId;
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addAward.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '3';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnDeleteProduct(productId)
{

document.loyaltyAdminForm.productId.value=productId;
document.loyaltyAdminForm.actionCode.value="2";
document.loyaltyAdminForm.submit();
}
function fnDeleteAward(awardId)
{
document.loyaltyAdminForm.awardId.value=awardId;
document.loyaltyAdminForm.actionCode.value="3";
document.loyaltyAdminForm.submit();
}



function ParentReload()
{
self.location.href = self.location.href;
return;
}
function openAddProductWindow()
{

// var d;
// d =window.open(" request.getContextPath()/addProduct.do","Product"," width=500,height=300,scrollbars=yes,status=yes,res
izable");
// d.moveBy(10,20);
// document.forms['loyaltyAdminForm'].actionCode.value = '1';
// alert(document.forms['loyaltyAdminForm'].actionCode.value);
// d.focus();
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addProduct.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '1';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function openAddAwardWindow()
{
// var d;

// d =window.open(" request.getContextPath()/addAward.do","Award"," width=500,height=300,scrollbars=yes,status=yes,res
izable");
// d.moveBy(10,20);
// document.forms['loyaltyAdminForm'].actionCode.value = '1';
// alert(document.forms['loyaltyAdminForm'].actionCode.value);
// d.focus();

var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addAward.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '1';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function logout(obj){
document.location.href="/internaladmin/iaLogin.do";
}

function updateStatus()
{
document.forms['loyaltyAdminForm'].action="loyaltyAdmin.do";
document.forms['loyaltyAdminForm'].actionCode.value = '4';
document.forms['loyaltyAdminForm'].submit();
}

function disableProperty()
{

if(document.loyaltyAdminForm.onOff[0].checked)
{
document.loyaltyAdminForm.loyaltyPercentage.value="";
document.loyaltyAdminForm.loyaltyPercentage.disabled=false;
}
else
{
document.loyaltyAdminForm.loyaltyPercentage.value="";
document.loyaltyAdminForm.loyaltyPercentage.disabled=true;
}

}

function disableConversionProperty()
{

if(document.loyaltyAdminForm.conOnOff[0].checked)
{
document.loyaltyAdminForm.loyaltyPoints.value="";
document.loyaltyAdminForm.loyaltyPoints.disabled=false;
}
else
{
document.loyaltyAdminForm.loyaltyPoints.value="";
document.loyaltyAdminForm.loyaltyPoints.disabled=true;
}

}
function back(obj){
history.go(-1);
}





<




































Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
GeneralRestricting User to View page after log out Pin
Kuldeep Bhatnagar2-Apr-04 21:22
Kuldeep Bhatnagar2-Apr-04 21:22 
GeneralQuerystring.Request using JavaScript or VBScript on an HTML page Pin
rdewell2-Apr-04 5:44
rdewell2-Apr-04 5:44 
GeneralRe: Querystring.Request using JavaScript or VBScript on an HTML page Pin
hxxbin6-Apr-04 4:33
hxxbin6-Apr-04 4:33 
GeneralOptimization matter?! Pin
benqazou2-Apr-04 4:50
benqazou2-Apr-04 4:50 
GeneralRe: Optimization matter?! Pin
Hesham Amin4-Apr-04 20:54
Hesham Amin4-Apr-04 20:54 
GeneralChanging the value of an image, when uploading to a server Pin
rdewell1-Apr-04 23:29
rdewell1-Apr-04 23:29 
GeneralRe: Changing the value of an image, when uploading to a server Pin
hxxbin2-Apr-04 3:08
hxxbin2-Apr-04 3:08 
GeneralModify Request Object Pin
Vivek Jain31-Mar-04 22:29
Vivek Jain31-Mar-04 22:29 
GeneralRun a javascript by appending to URL Pin
Vivek Jain31-Mar-04 16:47
Vivek Jain31-Mar-04 16:47 
GeneralRe: Run a javascript by appending to URL Pin
alex.barylski1-Apr-04 18:18
alex.barylski1-Apr-04 18:18 
General4 dynamic dependent drop down lists in asp/javascript Pin
Calvin_00730-Mar-04 9:07
Calvin_00730-Mar-04 9:07 
GeneralDelegate and User web control Pin
Anonymous30-Mar-04 8:34
Anonymous30-Mar-04 8:34 
GeneralSaving Results from Excel OWC Pin
Mike Murphy30-Mar-04 6:33
Mike Murphy30-Mar-04 6:33 
QuestionIP Adresse? Pin
matthias s.30-Mar-04 1:00
matthias s.30-Mar-04 1:00 
AnswerRe: IP Adresse? Pin
Steve Obbayi30-Mar-04 1:43
professionalSteve Obbayi30-Mar-04 1:43 
GeneralADO (not ADO.NET) documentation Pin
matthias s.30-Mar-04 0:14
matthias s.30-Mar-04 0:14 
GeneralRe: ADO (not ADO.NET) documentation Pin
Roger Wright30-Mar-04 4:06
professionalRoger Wright30-Mar-04 4:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.