web app Start up with validating using webservice

2882
3
08-11-2015 12:20 AM
KumarHarish
New Contributor III

Hi Expert,

A web app is created using developer addition and deployed in IIS. It is working fine.  I'd like to locate logic in my application start-up to call a web service and authenticate a user on that service.  If the user is OK then finish app start up.  If not OK then show message, stop loading and clean-up.  I have  followed the below thread Web App Start-up with Validation and Bailout if Need Be. That link doesn't tell where to place the  control on index.html. Would appreciate your help.

Thanks

Kumar

0 Kudos
3 Replies
LarryStout
Occasional Contributor III

Kumar,

I placed it near the end of index.html like this:

    <script src="env.js"></script>
    <script type="text/javascript" src="simpleLoader.js"></script>
    <script type="text/javascript" src="preProcess.js"></script><!-- lcs - This file runs one or more processes before the application loads. -->
    <script type="text/javascript" src="init.js"></script>

Hope this helps.

Larry

0 Kudos
KumarHarish
New Contributor III

Larry,

In your reply,  the attachment/text which you wanted to put is missed.  Would appreciate  if you could add again.

Thanks

kumar

0 Kudos
LarryStout
Occasional Contributor III

Kumar,

Sorry.  Not sure how that happened.  Let me try again.

<script src="env.js"></script>
<script type="text/javascript" src="simpleLoader.js"></script>
<script type="text/javascript" src="preProcess.js"></script><!-- lcs - This file runs one or more processes before the application loads. -->
<script type="text/javascript" src="init.js"></script>

Larry

0 Kudos