Need help with add text to url function

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Need help with add text to url function

    Could anyone help me to get this working? Im kinda of noob and im trying to get
    a form to add [url]http://www[/url]. in front of a text submition form and .com as suffix
    to the text, my code looks like this:

    <form name="openlocation">
    <input type="text" name="href" value="">
    <input type="button" onClick="location.href=document.openlocation.href. value;;
    " value="Go To" href="http://www.<input type='button' value='Go To'
    onClick='location.href=document.openlocation.href. value;; '>.com">
    </form>

    FotografistRobin Guest

  2. Similar Questions and Discussions

    1. URL Function in Rich Text Editor
      I have grabbed Philippe Maegerman's and am trying to adjust it to allow for the user to specify a url and apply it to the input text (like on the...
    2. 3d text function is not working
      Hi, I am trying to use 3d text function. But it does not work. instead of 3d text, some sort of boxes appear. Any help? Thanks
    3. Problem with adding text to emails using the date function
      Hi, using the folling line fo code i am trying to add some text to an email: $subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",...
    4. calling a function from text.
      simply, I am making a 3d game. You have a weapon. It shoots stuff, which reacts differently. I want a system where I can call a function based on...
    5. Text Replace function
      Hi - I'm using the replace function to hilite search words in text which is returned. However, as the text which is being searched also includes...
  3. #2

    Default Re: Need help with add text to url function

    Try this:

    <form name="openlocation">
    <input type="text" name="href" value="">
    <input type="button" onClick="location.href = 'http://www.' +
    document.openlocation.href.value + '.com';">
    </form>

    HTH,
    Randy


    FotografistRobin wrote:
    > Could anyone help me to get this working? Im kinda of noob and im trying to get
    > a form to add [url]http://www[/url]. in front of a text submition form and .com as suffix
    > to the text, my code looks like this:
    >
    > <form name="openlocation">
    > <input type="text" name="href" value="">
    > <input type="button" onClick="location.href=document.openlocation.href. value;;
    > " value="Go To" href="http://www.<input type='button' value='Go To'
    > onClick='location.href=document.openlocation.href. value;; '>.com">
    > </form>
    >
    Randy Edmunds Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139