Dynamic Web Dialogs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gary K

    Dynamic Web Dialogs

    I am writing code for web parts, but seeing as they are just glorified web controls & VB.NET is slightly older, I'm hoping that my query can be answered in this group. (Although I am posting this to the Sharepoint Developers group as well. Hope I'm not violating protocol.

    I would like to have a link on my control that will popup a modeless dialog, but unlike the standard functions I will need to 'create' the HTML code for the dialog on-the-fly. Basically, I want to show information that will be in a property of my control, and this information could be changed for any implementation of the control. So I won't be able to reference a static URL, nor do I know how to have a HTML page refence a property of the current instance of the control

    Has anyone tried this before? Is it actually possible, or am I trying to stretch things too far? Thanx in advance.
  • Cor Ligthert

    #2
    Re: Dynamic Web Dialogs

    Hi Gary,

    I am not sure if I understand you, however is this something as you mean?

    TextBox1.Attrib utes("onblur") = "javascript:ale rt('Hello! Focus lost from
    text box!!');"

    Cor


    Comment

    • Cor Ligthert

      #3
      Re: Dynamic Web Dialogs

      Hi Gary,

      I am not sure if I understand you, however is this something as you mean?

      TextBox1.Attrib utes("onblur") = "javascript:ale rt('Hello! Focus lost from
      text box!!');"

      Cor


      Comment

      • Gary K

        #4
        Re: Dynamic Web Dialogs

        Close but not quite. I've gone through the DHTML reference, and realised that the closest thing to what I want is the createPopup method of the window object. I am after something that allows me to create a usercontrol/webpart that can have a link/button on it that when clicked will bring up a web dialog similar to windows update download/install dialog, but with content that is created during the event but before display. I'm not too sure if there is anything apart from the createPopup method, and even if I do end up using it, it will require a lot of client-side code, so I would be very apreciative if someone knows a better way of doing this.

        Comment

        Working...