Results 1 to 1 of 1

Thread: DHTML Modal window v1.1-How to load record per ID for update form

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Modal window v1.1-How to load record per ID for update form

    1)Script Title: DHTML Modal window v1.1

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...dhtmlmodal.htm

    3) Describe problem:
    Not sure this is the right place for my question but would apprecaite if someone can help...
    I am loading an update form by using DHTML Modal window v1.1 script on click of a button. I am using ASP. There are 6 records on a page , how to make sure to load a different records on the form, on the basis of user slection. e.g if I click on record 1 , the detail of record 1 should show and so on...BUT as of now the last record is loading everytime I click each of the six records.below is my code.

    Code:
     <script language="javascript">
        
    	function openForm2(){
    	var val= <%=""&EventID&""%>
    	var val2 = <%=""&ESID&""%>
    	emailwindow<%=""&EventID&""%>=dhtmlmodal.open('Update Event', 'iframe', 'Update_Event.asp?event=' + val + '&SectorID=' + val2 , 'Update an Event', 'width=700px,height=565px,left=300px,top=10px,center=0,resize=0,scrolling=1')
    	
    	emailwindow<%=""&EventID&""%>.onclose=function(){
    		window.location.reload()
    		
    	}
    	return true;
    }
    	
       </script>
    Thanks.
    Last edited by kashifmalik; 11-19-2008 at 08:56 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •