Hyperlink popup from a database?

Last post 05-19-2009, 3:44 PM by dpfield. 4 replies.
Sort Posts: Previous Next
  •  06-13-2006, 9:05 AM 20064

    Hyperlink popup from a database?

    Hi
    Can the hyperlink popup be programmed to pick up pagelistings from the database rather than a folder?
    I am creating a mini CMS system and I have all the pages stored in the database. So when the user wants to link a page it will be nice to list pages from this database.
     
    Thanks a bunch
    AJ
     
  •  06-13-2006, 1:22 PM 20075 in reply to 20064

    Re: Hyperlink popup from a database?

    AJ,
     
    Yes. You can.
     
    Please following the steps below:
     
    1. Open Tag_A.ascx file. And change the following code
     
    <button id="btnbrowse">[[Browse]]</button>
     
     to:
     
    <button id="btnbrowse" style="display:none">[[Browse]]</button>
     
    2. Add your own browse button.
     
    <button id="mybrowsebtn" onclick="myfunction()">[[Browse]]</button>
     
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  01-21-2009, 1:26 PM 47934 in reply to 20075

    Re: Hyperlink popup from a database?

     
     
    Hi, I'm trying to implement the same functionality, where I populate the hyperlink popup "url browse" on add/edit from database.
     
    where do I implement my myfunction() method which is triggered on browse click button?
     
    Note: I'm building a cms, what i'm trying to accomplish is once the url browse button of hyperlink popup is clicked, i would query db for available web page ids and display to user for selection.
     
    Once user selects a certain page, i would write result to the url textbox, value of textbox would be something like showpage.aspx?webpageid=1
     
    Is this doable? Also In order to implement this do I have to purchase the Source code license?
     
    Much Thanks for your help
  •  01-22-2009, 10:56 AM 47959 in reply to 47934

    Re: Hyperlink popup from a database?

    >>where do I implement my myfunction() method which is triggered on browse click button?
     
    <head>
    <script language="JavaScript" type="text/javascript" >
       function myfunction()
       {
      ......
       }
    </script>
    </head>
     
    In the above funtion, you can open a dialog. In the dialog window, you load links from your DB. The return value will be the selected URL.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-19-2009, 3:44 PM 52326 in reply to 47959

    Re: Hyperlink popup from a database?

    Adam,
     
    I modified tag_a.ascx to open a new window to select a page to create a link for.
    In IE7 when I set the values for inp_src and inp_title from the window, the editor is updated with the link.
    In Firefox the editor is not updated nor is it updated when OK is clicked.  The editor is only updated if something is updated on the link dialog.
     
    Is there a work-around for this?
     
    Thanks.
View as RSS news feed in XML