Skip to main content
August 4, 2012
Answered

Link only outputting 109 chars

  • August 4, 2012
  • 1 reply
  • 681 views

Hi all

For some reason this link only outputs 109chars and cuts off before the width and height attributes, why is this I am not closing something? Cheers

<cfformitem type="html" width="90"

bind="<a href=""javascript:void(window.open('http://www.google.com/search?hl=en&q={COMPANY.text}+telephone+us+{DEPARTMENT1.text}','mywindow','width=400,height=250'));"">Telephone</a>">

    This topic has been closed for replies.
    Correct answer BKBK

    Use {COMPANY} and {DEPARTMENT1} in place of {COMPANY.text} and {DEPARTMENT1.text}. You might also have to ensure that the case matches that of the input field names.

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    August 4, 2012

    Use {COMPANY} and {DEPARTMENT1} in place of {COMPANY.text} and {DEPARTMENT1.text}. You might also have to ensure that the case matches that of the input field names.

    August 5, 2012

    Thanks bkbk I tried that and got some weird results, I finally worked it out by getting rid of the mywindow, width, and height text now it works:

    <cfformitem type="html" width="90" 

    bind="<a href=""javascript:void(window.open('http://www.google.com/search?hl=en&q={COMPANY.text}+us+{DEPARTMENT1.text}'));"">Telephone</a>">

       </cfformitem>