Changeset 1680


Ignore:
Timestamp:
Mar 29, 2011, 3:06:32 PM (6 years ago)
Author:
robert@…
Message:

Solving problems with HTML tags around plain text output

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/PublicationController.groovy

    r1570 r1680  
    180180
    181181            // Return the ID
     182                        response.contentType = "text/plain"
    182183            render publication.id;
    183184        } else {
    184185            response.status = 500;
     186                        response.contentType = "text/plain"
    185187            render "No pubMedID found in request";
    186188        }
  • trunk/web-app/js/studywizard.js

    r1679 r1680  
    330330function addPublication(element_id) {
    331331        /* Find publication ID and add to form */
    332         alert( "Sending: " + $("#" + element_id + "_form").serialize() );
    333332        jQuery.ajax({
    334333                type:"GET",
    335334                url: baseUrl + "/publication/getID?" + $("#" + element_id + "_form").serialize(),
    336335                success: function(data, textStatus) {
    337                         alert( data );
    338                        
    339336                        var id = parseInt(data);
    340337
Note: See TracChangeset for help on using the changeset viewer.