Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #462057

    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

    #462309

    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

    #462485

    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

    • This reply was modified 9 years, 6 months ago by Freek.
    #462718

    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

    #462728
    This reply has been marked as private.
    #463153

    I figured it out.
    You can see the actual code on if you add the /show/ extension behind the URL.

    SO now i can copy the code into my WordPress page and this function works.
    THX Freek

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘User submitted URL’ is closed to new replies.