close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

DataAssist Search Page Multi Submit Buttons

Thread began 8/17/2009 10:23 am by Intrigue25 | Last modified 8/21/2009 3:59 pm by Intrigue25 | 3698 views | 10 replies


DataAssist Search Page Multi Submit Buttons


I have a DataAssist Search page i created with a dropdown box and I am viewing the results on the same page. I needed to modify the code to have 2 buttons on the form. 1 to display the results ( on the same page as the dropdown search box) the other to send the varaible to a export page that allows my client to export the selected database into a excel spreadsheet. I have everything working fine except the search page is not refreshing the results after i choose from the dropdown box.

I am using the Javascript below to activate the two buttons.

<script language="Javascript">

function OnButton1()
document.bListSearch.action = "search.php"
document.bListSearch.submit(); // Submit the page
return true;
function OnButton2()
document.bListSearch.action = "export.php"
document.bListSearch.submit(); // Submit the page
return true;

Here is the form....

<form name="bListSearch" method="post">
<table cellpadding="2" cellspacing="0" border="0">
<td align="right"><label for="birthdayMonth">Keywords</label></td>
<td><select name="birthdayMonth">
<option value="June">June</option>
<option value="August">August</option>
<td align="center" colspan="2">
<INPUT type="button" value="Submit" name=button1 onclick="return OnButton1();">
<INPUT type="button" value="Export" name=button2 onclick="return OnButton2();">

Any help would be appreciated

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





Ease of use


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...