Vugen Ajax Click and Script (355 Views)
Honored Contributor
Posts: 1,159
Registered: ‎04-12-2007
Message 1 of 2 (355 Views)

Vugen Ajax Click and Script

Here lately I've been using a lot of Ajax click and scipts, and on one particular screen the customer would like to be notified if a certain name doesn't show show.


On Web/HTML scripts I use the following to find a word or phrase (below). However, on the Ajax script this doesn't seem to be working.







Question is, I remember reading somewhere that web_reg_find may not be supported with Ajax scripts. Is this correct? If so, is there a work around or another way of trapping for text on a page?





Occasional Contributor
Posts: 7
Registered: ‎07-16-2013
Message 2 of 2 (301 Views)

Re: Vugen Ajax Click and Script

I have used the following in Ajax Clcik & Script and it worked fine.

Pleas ebe sure to place web_reg_find function before you load the page to check


  "Text/IC=you are signed into XXXXX",

some code here






      if (atoi(lr_eval_string("{Login_Cnt}")) > 0){

        lr_output_message("Log on to XXXXX successful.%s",lr_eval_string("{Login_Cnt}")  );
       lr_end_transaction("XXX_Login", LR_PASS);



        lr_error_message("Log on to Quantim failed.%s",lr_eval_string("{Login_Cnt}") );
        lr_end_transaction("XXXXX_Login", LR_FAIL);


The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.