Avatar of capturetheflag
capturetheflag
 asked on

Make 'Edit' button dynamic for dashboard

Hello,

I am creating a dashboard with several boxes of information.  Each box has an edit button.
Please see the attached swf file prototype.  I need the edit button to be dynamic. So when you click on item 1 and then click the edit button you see a pop up window with item 1 information and so on.  Please review this code in the tof-asp file.  Thanks for the help!
<script type="text/javascript">
// - jQuery onClick functions
$(document).ready(function(){
	//select Disaster Radio
	$('#tof_radio_1').click(function() {
		$.ajax({cache:'false',type:'post',url:'includes/ajaxhandler.asp?huboption=1'});
		//change the url for Edit and New based on which radio button is checked
		//$('#editURLbox1').attr({'href':'disaster_entry.asp','title':'Edit Disaster Entry'});
		//$('#newURLbox1').attr({'href':'disaster_entry2.asp','title':'Create a New Disaster Entry'});
		$('#hubList').load('includes/ajaxhandler.asp?huboption=1');
		$('input[@name=tof_radio]:checked').val();
	return false;
	});
	
		$('#hubDis li').click(function() {
			var disId= $(this).attr('rel');
		$('#editURLbox1').attr({'href':'update_disaster_entry.asp?edit='+disId,'title':'Edit Disaster Entry'});
		$('#newURLbox1').attr({'href':'disaster_entry2.asp','title':'Create a New Disaster Entry'});
		});

Open in new window

FilteredRows-TOA-v10.swf
tof-asp.txt
ASPAJAXJavaScript

Avatar of undefined
Last Comment
capturetheflag

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott Fell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Guy Hengel [angelIII / a3]

I've requested that this question be closed as follows:

Accepted answer: 500 points for padas's comment #a39726836

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
capturetheflag

ASKER
Thanks Padas for the help, sorry for the late reply.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy