close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

User Admin Pages - Need to Add a Button

Thread began 3/22/2013 1:43 pm by greg401801 | Last modified 3/26/2013 2:49 pm by greg401801 | 962 views | 6 replies

greg401801

I copied the code and attempted to use it several ways. I was unsuccessful. First, I copied it as is. I pasted it between the second and third buttons. Here's what my code looks like:

<td class="WADAResultsEditButtons" nowrap="nowrap">
<input type="button" class="formButton ResultsPageButton unstyled DetailButton" id="sprytrigger1" onclick="document.location.href='plugins/users_detail.php?UserID=<?php echo($row_WADAusers['UserID']); ?>
<?php echo(isset($_GET["pageNum_WADAusers"])?"&pageNum_WADAusers=".intval($_GET["pageNum_WADAusers"]):""); ?>';" value=""/>

<input type="button" class="formButton ResultsPageButton unstyled UpdateButton" id="sprytrigger2" onclick="document.location.href='plugins/users_update.php?UserID=<?php echo($row_WADAusers['UserID']); ?>
<?php echo(isset($_GET["pageNum_WADAusers"])?"&pageNum_WADAusers=".intval($_GET["pageNum_WADAusers"]):""); ?>';" value=""/>

<href ="update-users-level.php?ID=<?php echo(isset($_GET['ID'])?$_GET['ID']:""); ?>"><input type="button" name="updateUserLevel" id="updateUserLevel" value="Update User Level" /></a>

<input type="button" class="formButton ResultsPageButton unstyled DeleteButton" id="sprytrigger4" onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($row_WADAusers['UserID']); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" value="" />

</td>


The button appeared on my dreamweaver page, but when I saved the page and clicked "Preview in ___" it didn't show up in the browser. I tried both Safari and Firefox.

When I use Dreamweaver's "Live View" the button DOES show up. However, when I click the button nothing happens. Well actually, what happens is a large chunk of code is highlighted - nearly 100 lines. The highlighted code starts with the </a> tag in the following:

<div class="WADAResultsContainer">
<a name="top" id="top"></a>
<?php if ($totalRows_WADAusers > 0) { // Show if recordset not empty ?>


and the highlight ends just before the last </div> tag below.

<div class="WADANoResults">
<div class="WADANoResultsMessage">No Results Found</div><wa:insertbutton>
<div>
<input type="button" value="Insert" class="formButton unstyled" id="Insert" name="Insert" onclick="document.location.href='plugins/users_insert.php';" />
</div></wa:insertbutton>
</div>
<?php } // Show if recordset empty ?>
</div>

I also tried placing the code for the button before the three buttons. I tried surrounding it with td tags.

I'm obviously doing something just a little off. Again, the button shows up in Live View but does not show up in the browser.

Any thoughts on what I am doing wrong?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...