Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

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.

Require an Edit Button

Featured Replies

I am working on a small basic quick to load Web page designed to be used for reference (contact numbers, email addresses, etc).

 

I would like to add two functions;

  1. Add button
  2. Edit button

Right now, I am focusing on the edit button but if you're feeling generous please advise for both.

 

Regarding the edit button I want there to be an edit button at the end of the cell I am changing, when clicking it it will display a text box for me to input the text I wish to replace with. It will then modify the source file with this new value, replacing what was previously there. The edit button edits the adjacent cell.

 

So where Example displays 0110 000000 > I then edit it to 0110 000001, which stays - even after closing the page.

 

Hopefully I explained this clearly, if not, I apologise and please ask.

<!DOCTYPE html>
<html>
<head>
<title>Homepage - Contacts</title>
<link rel="icon" 
      type="image/ico" 
      href="images/favicon.ico">
<style>
	body {
		color: #003366;
	}
	a:link {
		color:#3366CC;
		text-decoration:none;
	}
	.navi {
		font-size: 130%;
	}
	.navi a:visited {
		color: #3366CC;
		text-decoration:none;
	}
	.navi a:hover {
		text-decoration: underline;
	}
</style>
</head>

<body>
	<table class="navi" width="100%" align="center">
		<tr>
			<td><a href="index.html" title="Return to homepage."><img src="images\logo.png" /></a></td>
			<td width="14%"><a href="contacts.html">Contacts</a></td>
			<td width="14%"><a href="resources.html">Resources</a></td>
			<td width="14%"><a href="links.html">Links</a></td>
			<td width="14%"><a href="credentials.html">Credentials</a></td>
			<td width="14%"><a href="info.html">Info</a></td>
		</tr>
	</table>
	<table align="center" cellpadding="6" width="100%">
		<tr style="font-weight:bold;font-size:110%">
			<td>Contact Name</td><td>Number</td>
			<td>Contact Name</td><td>Address</td>
		</tr>
		<tr>
			<td>Example</td><td>0110 000000</td>
                         <td>EDIT BUTTON HERE</td>
			<td>Example 2</td><td>0110 00000</td>
                         <td>EDIT BUTTON HERE</td>
		</tr>
	</table>
</body>

</html>

Edited by jas0nr

  • 3 weeks later...

Says you are a system admin and you might not know anything about html/php/jsc, If this is the case send the responsibility to someone in your firm that knows what they are doing or start your adventure in to PHP and form/data handling at W3schools Form Handling

 

things to think about are (note e1 and e2 refer to example 1 and example 2)

  • you'll need to use variables for the two values((e1)0110 000000, and (e2)0110 00000)
  • when the page is loaded it will have to retrieve the actual current values from a file somewhere and then print them in the form
  • when the user clicks the (edit) button the page changes focus to the variable value field that the (edit button) belongs to.
  • once the user types in the data and hits <enter> key
  • first the value is validated to make sure it is
  • the write type of data
  • any special validation need per value set
  • secondly, the PHP then updates the variable field with the new value
  • and also writes the new value to the file so as to be the new current value when the page is loaded.
  • repeat for (e2)edit button

edit: sorry perceptions(s) or assumption(s) are fine and all but mine is not necessary to answer the question in such a general way

:p sorry.

Edited by drt_t1gg3r

Create an account or sign in to comment

Account

Navigation

Search

Search

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.