Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Verify!

Status
Not open for further replies.

conceptmgt

IS-IT--Management
Sep 12, 2001
45
GB
Hi,

I used Fireworks to create a pop-up menu. Below is one of the menu items that was generated for me. How could I call the function 'confirmSubmit' when this selection is selected.

Thanks

Gary

mm_menu_0211140722_0.addMenuItem(&quot;Clear All Email Lists&quot;,&quot;location.href='deleteAllEmails.asp?listnum=&quot;+<%=thelistnum%>+&quot;&curpage=&quot;+<%=curpage%>+&quot;'&quot;);

function confirmSubmit()
{
var agree=confirm(&quot;Are you sure you wish to delete this Newsletter?&quot;);
if (agree)
return true ;
else
return false ;
}
 
probably the quickest and easiest way would be to put the confirmation on 'deleteAllEmails.asp' =========================================================
if (!succeed) try();
-jeff
 
I would try to change the second function variable...

mm_menu_0211140722_0.addMenuItem(&quot;Clear All Email Lists&quot;,&quot;location.href='deleteAllEmails.asp?listnum=&quot;+<%=thelistnum%>+&quot;&curpage=&quot;+<%=curpage%>+&quot;'&quot;);

mm_menu_0211140722_0.addMenuItem(&quot;Clear All Email Lists&quot;,&quot;confirmIt('<%=thelistnum%>','<%=curpage%>')&quot;);

and write the function....

<script>
function confirmIt(listNum,curPage){
doIt = confirm(&quot;Are you sure?&quot;)
if (doIt){
document.location = &quot;deleteAllEmails.asp?listNum=&quot; + listNum + &quot;&curpage=&quot; + curPage
}
}
</script> Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
mwolf, i stand corrected. =========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top