Page 1 of 1

Can I load a new URL based on a dropdown list

Posted: Fri Mar 29, 2019 12:08 pm
by alan_sh
If you look here http://www.penninescouts.org.uk/events.html, you can select a different calendar view (actually a different URL) depending on the result of a pulldown list from the dropdown above. It uses some HTML code to update a document frame.

<script>
$(document).ready(function() {
$('#combo_1').change(function () {
$(this).next('iframe').attr('src', this.value);
});
});
</script>

How would I do something similar in WYSIWYG?

Alan

Re: Can I load a new URL based on a dropdown list

Posted: Fri Mar 29, 2019 12:14 pm
by Pablo
WYSIWYG Web Builder also supports inline frames, so you can use the same code.
Or use a go menu and set the link target to the inline frame.

Re: Can I load a new URL based on a dropdown list

Posted: Fri Mar 29, 2019 3:38 pm
by alan_sh
The Go menu works perfectly and means I don't have to faff around with code.

Is there anything you haven't thought of?

Thanks

Alan