Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jul 2008
    Posts
    80
    Vote Rating
    0
    ajmPal is on a distinguished road

      0  

    Default Textarea carriage return line feed

    Textarea carriage return line feed


    I have a form that includes a text area
    Code:
    {xtype: 'textarea', id: 'queryTerms', fieldLabel: 'Query Terms', width: 200, height: 200, labelStyle: ''width: 120px;', stateful: true}
    When I retrieve the data from the textarea in javascript:
    Code:
    var queryTerms = document.getelementById("queryTerms").value
    I get multiple lines including carriage return /n and line feed /r

    When I try to get the same value using the Form in Struts, I only get the first line of data
    Any suggestions ?

    Tony Mariella
    Raytheon Company

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,862
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    What do you see if you use getValue()?

    Scott.

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    80
    Vote Rating
    0
    ajmPal is on a distinguished road

      0  

    Default


    I see the same values using getValue()
    Code:
    var queryTerms = Ext.getCmp("queryTerms").getValue()
    or
    var queryTerms = document.getelementById("queryTerms").value
    In javacsript, I can see all carriage returns and data.

    In struts, I get the data from the request. I only see the first line of data in the request, anything after the carriage return doesn't come through.

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,862
    Vote Rating
    438
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Are you encoding the string?

    Scott.

  5. #5
    Sencha User
    Join Date
    Jul 2008
    Posts
    80
    Vote Rating
    0
    ajmPal is on a distinguished road

      0  

    Default


    How would I encode it ?

Thread Participants: 1