Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. unwanted javascript behavior

unwanted javascript behavior

Scheduled Pinned Locked Moved Web Development
javascripthtmlhelptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harinath
    wrote on last edited by
    #1

    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:-------------------------------------------------------------------------------- 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 fnDelete</x-turndown>

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups