Hi,
I would like my users to have an input field where they fill in an URL and with a submit button an new tab opens with the user filled in URL.
Is this possible and how do i do this?
THX Freek
Hi Freek!
Thank you for using Enfold.
Are you trying to open the submitted url in another tab or window? I’m sorry but that’s not possible in the theme without creating a custom javascript. Please hire a freelance developer or do something like this: http://jsfiddle.net/Gv5bq/10/
Best regards,
Ismael
The last suggestion works for me. I changed it and it executes just the way i want.
How do i embed this in mijn Enfold page.
I made one codeblock with the following code:
<script type="text/javascript">
$("#btn").click( function() {
var url = "http://www.mydomain.nl/klantsite/" + $("#text").val()+"/index.html";
window.open(url);
});
</script>
and one codeblock with the htmlcode:
<input type="text" id="text" />
<input type="button" id="btn" value="Verzenden" />
It shows the input field and submit button, but the javascript will not execute.
Any idea?
THX Freek
Hi!
Could you provide us with a link to the site in question so that we can take a closer look please? We might need a temporary admin login as well, you can post the details here as a private reply.
Regards,
Rikard