any good ideas for disabling links?
i have sort of an odd problem...
i have some display pages that include links (when clicked, javascript confirm box pops up) and when they are clicked and confirmed, i would like to disable the links. i know that if they were buttons it would be fairly straightforward; however due to the overall design and code making them buttons would be a poor design choice. i'll note that the javascript is being output into the page by PHP.
so is there a way to use the javascript to display the HTML for the link, and then upon confirm, re-displaying it to not be a link? or some other way? for the sake of completeness i've included the code for the links below. any ideas would be a huge help!
thanks in advance,
mike
$title = CLICK_TO ."${action}". " ". THE_LOWERCASE ."${servername}". SERVER;
println(" <td class=\"$class\"><div class=\"${action}button\"><a href=\"${filename}?appID=${appID}&action=${action}&mode=${mode}&servertype=${servertype}\" title=\"$title\"");
println(" onClick=\"return confirm('". ARE_YOU_SURE_YOU_WISH_TO ."$laction $servername?')\"");
println(" onMouseOver=\"javascript:window.status='". $title ."';return true;\" onMouseOut=\"javascript:window.status=''; return true;\">". $action ."</a></div></td>");
|