Can I load a new URL based on a dropdown list

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
alan_sh
 
 
Posts: 1870
Joined: Tue Jan 01, 2019 5:50 pm

Can I load a new URL based on a dropdown list

Post 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
User avatar
Pablo
 
Posts: 23469
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

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

Post 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.
alan_sh
 
 
Posts: 1870
Joined: Tue Jan 01, 2019 5:50 pm

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

Post 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
Post Reply