in

InfoPath Dev

Open an Url from a button

Last post 09-10-2008 06:17 AM by micky_maccaff. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-28-2006 08:36 AM

    Open an Url from a button

    I know this is probably very simple to do.

    If anyone could show me how to open an URL by clicking on a button, it would be much appreciated.

    Thanks
    Michael
  • 11-29-2006 12:26 AM In reply to

    Re: Open an Url from a button

    Hi Michael,
    Why not just encode the URL in the form as a link and have them click on that? You can have a text field and bind a Hyperlink control to that and make it read-only. That will allow the user to click on it and navigate to the URL it references.
    Patrick Halstead / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 11-29-2006 01:13 AM In reply to

    Re: Open an Url from a button

    Hi Patrick,

    I can do what you said OK, but I am looking to hide the link after it has been selected. Can this be done the way you have said, I know I can do this if I use a button.

    Thanks for your Help

    Micky
  • 11-29-2006 05:27 PM In reply to

    Re: Open an Url from a button

    Hi Micky,
    That's a good point. Hmmm. Thinking. Why not just use the taskpane? The other thing you could do is add an HTML dialog that pops up when the button is pressed and they click a link in that but that's clunky. Very interesting problem. I'm still thinking about it .... you could always use some code.... thinking more ....
    Patrick Halstead / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 11-30-2006 06:09 AM In reply to

    Re: Open an Url from a button

    What I ended up doing was binding the hyperlink to a section.

    It's not perfect, but it looks ok on my form.

    Was able to hide the Section (hyperlink) when a submit button was activated to send the form as an email.

    It works for our purposes.

    Thanks for your help Patrick
  • 09-10-2008 06:17 AM In reply to

    Re: Open an Url from a button

    Getting back to this... To open an Url by clicking a button, use the following code onclick:

    var oApp = new ActiveXObject("InternetExplorer.Application");

    oApp.visible = true;

    oApp.Navigate("http://The URL you require");

     

    Filed under:
Page 1 of 1 (6 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.