Jump to content

Result Page In A Pop Up Window


Recommended Posts

  1. Create your search and result pages in two different pages as described here http://howto.caspio.com/tech-tips-and-articles/parameters/how-to-separate-search-page-and-results-page-into-two-different-webpages/

 

  1. In Configure Fields screen of the search page add Hear/Footer to create your customized button using the code below in the Footer:
<input type="button" value="Search" onClick="gotoreport();">

<script language="javascript" type="text/javascript">

function gotoreport() { var URL =  "URL OF THE REPORT PAGE?PARAMNAME=" + document.getElementById('FIELD ID').value + "& PARAMNAME=" + document.getElementById('FIELD ID').value;
          newwindow=window.open(URL,'name','height=200,width=150');
          if (window.focus) {newwindow.focus()}
          return false;
}
</script>

You need to replace URL OF THE REPORT PAGE with URL of the report page and PARAMNAME with the parameter name you are receiving in the report page in Configure Filtering Fields screen as described in the tutorial. Also FIELD ID with the real field ID.

 

To hide the original submit button you can either add display:none; to .cbSubmitButton in the style you are using for this page or add a Header to the page and use:

<style>
#Submit{
display:none;
}
</style>
Link to comment
Share on other sites

  • 4 years later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...