|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
ASP code not working
I have an ASP code that has to delete records based on a user response. I update a log table for the delete.
If Action = "Delete" Then sSQL = "udpate MylogTable set cust_id = " & Session("custid") & " WHERE ref_id IN ........... End If The page displays a link which the user has to click, to delete a record - <A HREF="javascript:MyDel_func()"> In the javascript function MyDel_func, I have the following code: resp_val = window.showModalDialog("MyAsp.asp","","dialogWidth:300px; dialogHeight:200px; scroll:auto; center:yes; status:no; help:no"); if(resp_val == "delete"){ document.form1.Action.value = "Delete"; document.form1.submit(); } The MyAsp.asp is actually a confirmation window. In this I have a button as follows. <INPUT TYPE="button" NAME="DeleteButton" VALUE="Delete" onClick="MyDelete();" In the MyDelete function I have the following two lines of code. window.returnValue = "delete" window.close(); Now the problem is: 1) Using AOL Version 9.1 After clicking the delete link the user got the window to confirm the deletion. He hit delete in this window and it went away, but the entry remained and was never deleted. 2) Using IE version 7 The user didn't even get the window to confirm deletion. So he was not able to delete the entry. The OS on the user's machine is Windows XP. Could someone tell me why the delete button is not working? |
|
#2
|
||||
|
||||
|
ASP code not working
AOL Version 9.1 ... WHY???
now as for AOL i beleive that previously AOL had a "FEATURE" that when browsing it would change ur IP address after a given number of pages, hense users who where using VPN's had a nightmare. I don't use AOL but there should be some config option's that you need to look at for the browsing options. what i think ur going to have to do is first in ur javascript check the browser used by the user and then action different code depending on the browser. can you post the code for the whole page so we can see and advise you accordingly.
__________________
Hope this advise helps. ![]() If so please show your appreciation by adding reputation points (clcik gauge image on top right of this post).
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > ASP code not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
![]() |
|