Copy link to clipboard
Copied
Bonjour,
J'utilise la fonctionnalité dans Dreamweaver CC au menu FORM/SELECT pour faire des redirection de page selon le choix dans le drop menu, je mets mes liens pour chaque variable et cela ne marche pas...est-ce que je fais de quoi de pas bien ?
The option under Form > Select Menu is not the same as the Jump Menu from previous versions of Dreamweaver. The actual "Jump Menu" option has been removed from the Insert Window entirely. However, you can still create a Jump Menu with it...
1. Open the Behaviors Window under Window > Behaviors (or Shift + F4)
2. Insert the Form > Select Menu item
3. Click the Select Menu in Design View
4. Click the + in the Behaviors window and select Jump Menu from the options there
5. Click the + icon, and fill
Copy link to clipboard
Copied
Here are a few things to check that might help troubleshoot the issue:
1. Correct Syntax: Ensure that the syntax for the `FORM/SELECT` menu is correct. For example, the `SELECT` element should look something like this:
<select name="redirect" id="redirect">
<option value="link1.html">Option 1</option>
<option value="link2.html">Option 2</option>
</select>
2. JavaScript Handling: Make sure you have JavaScript to handle the form submission and redirect the user based on the selected option. For example:
<script>
document.getElementById('redirect').addEventListener('change', function() {
window.location.href = this.value;
});
</script>
3. File Paths: Verify that the paths to the target pages are correct and that the files exist in the specified locations.
4. Browser Compatibility: Test the form in different browsers to ensure compatibility. Sometimes, certain browsers might handle JavaScript differently.
If you've checked all these and it's still not working, could you share a bit more about your code setup? That way, we can provide more specific guidance.
Copy link to clipboard
Copied
The option under Form > Select Menu is not the same as the Jump Menu from previous versions of Dreamweaver. The actual "Jump Menu" option has been removed from the Insert Window entirely. However, you can still create a Jump Menu with it...
1. Open the Behaviors Window under Window > Behaviors (or Shift + F4)
2. Insert the Form > Select Menu item
3. Click the Select Menu in Design View
4. Click the + in the Behaviors window and select Jump Menu from the options there
5. Click the + icon, and fill in the "Text" and "When selected, go to URL" fields for as many links as you want
6. Hit "OK"
The Jump Menu Behavior will automatically choose to be "OnChange" so it will push your viewer to the link without the need of a <form> tag or Form > Submit button being added. All necessary scripting will be written by DW into a <script> tag the <head> of the page. Though archaic, it should still function correctly in all browsers.