Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Java Script Prompt Delete Function

Featured Replies

Hello FM people + php people,

I am looking for help . I am developing fm solution that linked to web site via php. this task is 97% completed. the place i am stuck with delete function.

How it works.

This is Agenda Book. So users will update there agenda system from web site (01 or 2 uers will use it). I grab the delete code function from google search and i paste it before body tag. the code is

</style>

<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

</head>

<script language="javascript">

<!-- Hide from non-JavaScript Browsers

function ConfirmChoice()

{

answer = confirm("Do you want to delete this appoinment ?")

if (answer !=0)

{

location = "deleteapp.php?id=<?php echo $found_records_row->getRecordId(); ?>"

}

}

//Done Hiding-->

</script>

<body>

** Records will display on table view (5 records per page)

The Problem , When ever i delete the record it does not delete the record that i select, it delete the some other record. (snap shot attached)

fmforums.mov

Question - when you actually render this page in a browser, how does the line deleteapp.php?id=<?php echo $found_records_row->getRecordId(); ?> actually come out looking?

  • Author

Hello Webko, Many Thanks for replying.

This is the result of when deleteapp.php load

http://127.0.0.1/atlantixbro/deleteapp.php?id=128. This is Get record id.

Note: I also create the text link called ("Delete") (Right down the delete icon red colour "X" ). When i click that text link it perfectly works. only the problem outcome when i try to pass the parameter from javascript.

Question: Is this Problem something related with Record Set ?

  • Author

Can any one help me please

  • Author

I managed to fix it via other method, i used page redirect function to fix the issue.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.