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

Rollover with Find & Submit

Featured Replies

Can rollovers be used with a find or submit action? If yes, what would the cdml code look like?

Thanks in advance - Sam

Yes they can.

You can use either a URL or a Form. If you use a Form you can submit it with something like this:

<a href="Javascript:document.myform.submit();" .....

All the best.

Garry

  • Author

Thanks for your answer, but I am not very familiar with javascript. Could you show me what it should look like in relation ship to my code?

<form action="FMPro" method="post" name="FormName">

<div align="center">

<input type=image name="-Find" src="buttons/home.gif" alt="" width="130" height="26" border="0"><input type=hidden name=-DB value="cases"> <input type=hidden name=-Lay value="dr"> <input type="hidden" name="-format" value="home.htm"> <input type="hidden" name="-error" value="search_error.htm"> <input type=hidden name=-max value="5"> <input type="hidden" name="-op" value="eq"><input type="hidden" name="dr_id" value="[FMP-Field: dr_id]"><input type="hidden" name="-Token" value="[FMP-Field: dr_id]"> <input type="hidden" name="-SortField" value="date_in"> <input type="hidden" name="-SortOrder" value="descend"> <input type="hidden" name="-Find" value=""></div>

</form>

Thanks again for you help

<form action="FMPro" method="post" name="FormName">

<input type=hidden name=-DB value="cases">

<input type=hidden name=-Lay value="dr">

<input type="hidden" name="-format" value="home.htm">

<input type="hidden" name="-error" value="search_error.htm">

<input type=hidden name=-max value="5">

<input type="hidden" name="-op" value="eq">

<input type="hidden" name="dr_id" value="[FMP-Field: dr_id]">

<input type="hidden" name="-Token" value="[FMP-Field: dr_id]">

<input type="hidden" name="-SortField" value="date_in">

<input type="hidden" name="-SortOrder" value="descend">

<input type="hidden" name="-Find" value="">

</form>

<a href="Javascript:document.FormName.submit();"><img src="buttons/home.gif"></a>

The image can have the regular rollover actions with "onMouseOver()" etc.

All the best.

Garry

<a href="Javascript:document.FormName.submit();">ROLLOVER CODE</a>

<a href="Javascript:document.FormName.reset();">ROLLOVER CODE</a>

in Dreamweaver:

<html>

<head>

<title>Rollover From Buttons</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

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

<!--

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;

}

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}

}

function MM_findObj(n, d) { //v4.01

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

}

function MM_swapImage() { //v3.0

var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

//-->

</script>

</head>

<body onLoad="MM_preloadImages('/images/SubmitOver.jpg','/images/ResetOver.jpg')">

<form action="The_Page" method="post" name="FormName">

<input name="txSomeField" type="text" id="txSomeField">

<a href="Javascript:document.FormName.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SUBMIT','','/images/SubmitOver.jpg',1)">

<img src="/images/Submit.jpg" name="SUBMIT" width="50" height="30" border="0"></a>

<a href="Javascript:document.FormName.reset();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('RESET','','/images/ResetOver.jpg',1)"><img src="/images/Reset.jpg" name="RESET" width="50" height="30" border="0"></a>

</form>

</body>

</html>

All the best!

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.