Merging web (HTTP/HTML) and Ajax - Click & Script - Possible (320 Views)
Reply
Valued Contributor
Deb_1
Posts: 136
Registered: ‎09-01-2010
Message 1 of 2 (320 Views)

Merging web (HTTP/HTML) and Ajax - Click & Script - Possible

Hi Experts,

 

I have developed two different business processes - one in Web Http/Html and Other one with Ajax - Click & Script and they run individually fine.

Now I have a situation where I want to run both scenario. As I don't want to create two different scenarios in Controller, so thought of merging two scripts in to two actions in the same script.LookingattheAjaxcodewhichonlyconsistofweb_URLandweb_custom_request, IthoughtofcopyingallactioncodesintonewactioncreatedinmyWeb (HTTP/HTML) scriptshouldwork.

ButwhilerunningIamgettingCcompilationerror - unidentifiedsymbol !! 

 

Any idea whether is it technically possible to merge both these different type  scripts?

Thanks
Deb
HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 2 of 2 (283 Views)

Re: Merging web (HTTP/HTML) and Ajax - Click & Script - Possible

Hi
That will not work, copy paste code from one script to another will break the DOM integrity, besides this, if the code comes from 2 different protocols it is not expected to work.

Hope this helps
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.