jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From madhu sekhar <madhuvchand...@gmail.com>
Subject AjaxCalls
Date Mon, 18 Jun 2012 15:33:17 GMT
Hi Team,

Here, i am trying the capture the *dojopreventCache *value using Post
processor method.

In source code i found its related URL as *javascript:addSelectedTerm('
http://10.226.32.31/SA/addSearchTerm.do?SID=21h2G3i439a86@E7h5@&product=WOS',
'CTR THEORET CHEM', 'term_box'. *Which returns *dojopreventCache
value*internally.
*
**
*

For Reference(Javascript) : "
http://10.226.32.70:9000/current/javascript/components/SA/SearchAidApp.js"


addSelectedTerm( url, term, targetId ) {



                var myTerm = term.replace("|", "'");

                myTerm = encodeURIComponent(myTerm);

                var targetNode = dojo.byId(targetId);

                var myURL = url + "&term=" + myTerm;



     //The parameters to pass to xhrGet, the url, how to handle it, and the
callbacks.

     var xhrArgs = {

         url: myURL,

         handleAs: "text",

         preventCache: true,

         load: function(data) {

             targetNode.innerHTML = data;

         },

         error: function(error) {

             targetNode.innerHTML = "An unexpected error occurred: " +
error;

         }

     }



     //Call the asynchronous xhrGet

     var deferred = dojo.xhrGet(xhrArgs);

}



function exitSearchAid( form, action ) {



                var action_hidden_el = form.elements["action"];

                action_hidden_el.value = action;

                form.submit();

}




*Method is*:  addSelectedTerm(var1,var2,var3)



where var1=url

      var2= term

      var3= term_box



Could please suggest me how to write Regular expression to make it as
dynamically forever.


Thanks & Regards,
Madhu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message