RSS Forums RSS
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 896 | Replies: 1
Reply
Join Date: Oct 2006
Posts: 7
Reputation: nickclarson is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
nickclarson nickclarson is offline Offline
Newbie Poster

Help Javascript functions problem

  #1  
Mar 18th, 2007
<script language="JavaScript">
<!--
function restore(what){
if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) {
window.location = "backups.php?action=restore&file=" + what;
}
}

function delete(what){
if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) {
window.location = "backups.php?action=restore&file=" + what;
}
}
//-->
</script>


I am calling the functions with a link:

<a href="javascript:delete('filename')">Delete</a>

Why doesn't this work?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Javascript functions problem

  #2  
Mar 20th, 2007
Try poofreading it. It seems that both do the same thing.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:17 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC