Vugen Ajax Click and Script (273 Views)
Honored Contributor
David Campeau
Posts: 1,069
Registered: ‎04-12-2007
Message 1 of 2 (273 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?





Please use plain text.
Occasional Contributor
Posts: 6
Registered: ‎07-16-2013
Message 2 of 2 (219 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);


Please use plain text.
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