Target list clickable?
Hi, is it possible to generate a dynamic link (to a page or an application) in the target list result ?
Thanks.
Hi, is it possible to generate a dynamic link (to a page or an application) in the target list result ?
Thanks.
If you make the target list menu a DW jump menu then you could do this. A jump menu is a regular select list with an onChange event to load the url for the selected item. The location is based on the value for the individual options. So if you make it so the items added to the target list have a URL for the value then this would work. Here is an example of what a jump list looks like in the code just for reference:
<select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
<option value="http://google.com">google</option>
<option value="http://amazon.com">amazon</option>
</select>
So long as you have this DW function defined on the page it will take you to the value:
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
Hi, Is it possible to change which address your map centers on (Pro Maps for Google) with a link in the target list result (Dynamic Dropdowns).
Thanks for the solution.
The locations that are displayed by the map are drawn in the order they come from the recordset, it is always the last listing that is centered on the map. It may be possible to adjust this with some custom js code based on a URL value after the page has loaded but it is not a technique that I have performed myself. Anyone else out there do any centering of the listed addresses based on a URL value?
My apologies for not looking around a little better before I posted. While it is not something I have implemented myself it is possible to center the location that is displayed with a link. We have a guide on doing this on the Pro Maps for Google support page:
pro-maps-for-google/
In the How Tos is a document that will guide you through making this change, it is basically just making a URL parameter that caries an instruction for the Google Map.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.