can browser-enabled form execute client-side code? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

can browser-enabled form execute client-side code?

Last post 06-12-2007 02:07 PM by davidair. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-27-2007 04:39 AM

    • dmitry
    • Not Ranked
    • Joined on 04-24-2007
    • Posts 6

    can browser-enabled form execute client-side code?

    hi

    I need to execute jscript code from browser-enabled form.

    Can I do it?

    thanks

  • 06-12-2007 12:26 PM In reply to

    • jdogan
    • Not Ranked
    • Joined on 01-15-2007
    • USA
    • Posts 9

    Re: can browser-enabled form execute client-side code?

    Not that I've seen. There isn't even an option for doing something as simple as displaying an alert box. In my experience, this is the biggest hole in the browser-enabled form approach. Maybe they'll figure out a way in a future release?

     

    Jason

  • 06-12-2007 02:07 PM In reply to

    Re: can browser-enabled form execute client-side code?

    The only way to write business logic for the browser-enabled forms is by doing it in .NET (it will get executed on the server). Forms developed this way will seamlessly work both in the Forms Server and the rich InfoPath client.

    However, although there is no direct way to run Javascript from a browser-enabled form, you can host your form in a custom ASPX page and you can run your script there.

    Note that interacting with the form in Javascript is not supported so your options of what you can do are pretty limited. Here is a blog post on hosting your form in a custom page:

    http://blogs.msdn.com/infopath/archive/2006/10/21/hosting-infopath-forms-in-a-custom-aspx-page.aspx

     

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.