Merging web (HTTP/HTML) and Ajax - Click & Script - Possible (451 Views)
Valued Contributor
Posts: 136
Registered: ‎09-01-2010
Message 1 of 2 (451 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?

HP Expert
Posts: 669
Registered: ‎04-06-2011
Message 2 of 2 (414 Views)

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

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.