Opening INTRANET HTML Page

I did a small software to print an HTML Page.
But now I have to make it to work on my Office
in a intranet environment.
For the http://www.homepage.com/ I used plane String.
But now I have to use in a intranet. Someone know
the changes that I have to do to make it work?
I read I small code the uses the class URL and
uses Properties props = System.getProperties(); to set up
proxys data. It is the way? Someone has passed for the
same trouble?
Angel Portal

I did the source based on the Java HomePage source.
Take a Look!
import java.applet.Applet;
import java.awt.Dimension;
import java.awt.Event;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.HeadlessException;
import java.awt.Button;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.geom.Point2D;
import java.awt.print.PageFormat;
import java.awt.print.Pageable;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
import java.io.IOException;
import javax.swing.JComponent;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JScrollPane;
import javax.swing.KeyStroke;
public class AppletPrintHTML extends Applet {
     private static final long serialVersionUID = 1L;
     private Button buttonPrint = null;
     private EditorPaneHTMLViewer MyPanel;
     public AppletPrintHTML() throws HeadlessException {
          super();
          // TODO Auto-generated constructor stub
     * This method initializes this
     * @return void
     public void init() {
          this.setSize(75, 33);
          this.add(getButtonPrint(), null);
     * This method initializes buttonPrint     
     * @return java.awt.Button     
     private Button getButtonPrint() {
          if (buttonPrint == null) {
               buttonPrint = new Button();
               buttonPrint.setLabel("Imprimir");
               buttonPrint.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent e) {
                         System.out.println("Botao Imprimir");
                         // TODO Auto-generated Event stub actionPerformed()
                         MyPanel = new EditorPaneHTMLViewer ("http://10.15.1.26/");
                         add (MyPanel);
          return buttonPrint;
     public class EditorPaneHTMLViewer extends JFrame {
     * @author Angel Portal
          * Inicializa��o das Vari�veis Globais ao Sistema
     private JComponentVista vista;
     private String path;
     private JEditorPane mainPane;
     PrinterJob printJob = PrinterJob.getPrinterJob();
     PageFormat landscape_portrait = printJob.defaultPage();
          private JMenu menu = new JMenu("File");
          private JMenu menu01 = new JMenu("Op��es");
          private JScrollPane content;
          private int FrameSizeY=550;
          private int FrameSizeX=750;
          private static final long serialVersionUID = 1L;
          private JScrollPane createScrollPane() {
               JScrollPane editorScrollPane = new JScrollPane(mainPane);
                    editorScrollPane.setPreferredSize(
                              new Dimension(700,500));
               return editorScrollPane;
          * Carrega a P�gina HTML
          private void loadStartingPage() {
          try {
               System.out.println("Conectando a "+ path);
               mainPane = new JEditorPane(path);
               } catch (IOException e) {
                    System.err.println("N�o Pode Conectar");
                    System.exit(1);
          * Construtor do EditorPaneHTMLViwer
          public EditorPaneHTMLViewer(String url) {
          super("Pagina Aberta no Painel do JAVA");
          path = url;
          loadStartingPage();
          JMenuBar mb = new JMenuBar();
          JMenuItem item01 = new JMenuItem("Exit");
          JMenuItem item02 = new JMenuItem("Imprimir");
          JMenuItem item03 = new JMenuItem("Retrato");
          JMenuItem item04 = new JMenuItem("Paisagem");
          item01.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X,Event.CTRL_MASK));
          item02.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_I,Event.CTRL_MASK));
          item03.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R,Event.CTRL_MASK));
          item04.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P,Event.CTRL_MASK));
          item01.addActionListener(new ActionListener()
                              public void actionPerformed(ActionEvent e01) {
                                   // TODO Auto-generated method stub
                                   System.out.println("Saindo");
                                   System.exit(0);
          item02.addActionListener(new ActionListener()
                              public void actionPerformed(ActionEvent e02) {
                                   // TODO Auto-generated method stub
                                   printJob = PrinterJob.getPrinterJob();
                                   vista = new JComponentVista(mainPane,landscape_portrait);
                                   vista.scaleToFitX();
                              printJob.setPageable(vista);
                              try {
                              if (printJob.printDialog()) {
                                   System.out.println("Imprimindo");
                                   printJob.print();
                              }catch (Exception PrintException) { System.out.println(PrintException);}
          item03.addActionListener(new ActionListener()
                              public void actionPerformed(ActionEvent e03) {
                                   // TODO Auto-generated method stub
                                   System.out.println("Portrait");
                                   landscape_portrait.setOrientation(PageFormat.PORTRAIT);
          item04.addActionListener(new ActionListener()
                              public void actionPerformed(ActionEvent e04) {
                                   // TODO Auto-generated method stub
                                   System.out.println("LandScape");
                                   landscape_portrait.setOrientation(PageFormat.LANDSCAPE);
          mainPane.setEditable(false);
          menu.add(item02);menu.add(item01);
          menu01.add(item04);menu01.add(item03);
          mb.add(menu);
          mb.add(menu01);
          add(mb);
          setJMenuBar(mb);
          vista = new JComponentVista(mainPane ,new PageFormat());
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          content = createScrollPane();
          setContentPane(content);
          setSize(FrameSizeX,FrameSizeY);
          setVisible(true);
          public void main(String[] args) {
               //Schedule a job for the event-dispatching thread:
               System.out.println(args[0]);
                    new EditorPaneHTMLViewer(args[0]);
          * Comjunto de Classes para Impress�o de Component Java
          public class Vista implements Pageable {
               private int mNumPagesX;
               private int mNumPagesY;
               private int mNumPages;
               private Printable mPainter;
               private PageFormat mFormat;
               public Vista(float width,float height,Printable painter,PageFormat format) {
                    // TODO Auto-generated method stub
                    setPrintable(painter);
                    setPageFormat(format);
                    setSize(width,height);
               protected Vista() {
                    // TODO Auto-generated method stub
               protected void setPrintable(Printable painter) {
                    mPainter = painter;
               protected void setPageFormat(PageFormat pageFormat) {
                    // TODO Auto-generated method stub
                    mFormat = pageFormat;
               protected void setSize(float width,float height) {
                    // TODO Auto-generated method stub
                    mNumPagesX = (int) ((width+mFormat.getImageableWidth()-1)/mFormat.getImageableWidth());
                    mNumPagesY = (int) ((height+mFormat.getImageableHeight()-1)/mFormat.getImageableHeight());
                    mNumPages = mNumPagesX*mNumPagesY;
               public int getNumberOfPages() {
                    // TODO Auto-generated method stub
                    return mNumPages;
               protected PageFormat getPageFormat() {
                    return mFormat;
               public PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException {
                    // TODO Auto-generated method stub
                    if(pageIndex >= mNumPages) {
                         throw new IndexOutOfBoundsException();
                    return getPageFormat();
               public Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException {
                    // TODO Auto-generated method stub
                    if(pageIndex >= mNumPages){
                         throw new IndexOutOfBoundsException();
                    double originX = (pageIndex % mNumPagesX)*mFormat.getImageableWidth();
                    double originY = (pageIndex / mNumPagesX)*mFormat.getImageableHeight();
                    Point2D.Double origin = new Point2D.Double(originX,originY);
                    return new TranslatePrintable(mPainter,origin);
               private final class TranslatePrintable implements Printable {
                    private Printable mPainter;
                    private Point2D mOrigin;
                    public TranslatePrintable(Printable painter,Point2D origin) {
                         mPainter = painter;
                         mOrigin = origin;
                    public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
                         // TODO Auto-generated method stub
                         Graphics2D g2 = (Graphics2D) graphics;
                         g2.translate(-mOrigin.getX(),-mOrigin.getY());
                         mPainter.print(g2,pageFormat,1);
                         return PAGE_EXISTS;
          public class JComponentVista extends Vista implements Printable {
               private double mScaleX;
               private double mScaleY;
               private JComponent mComponent;
               public JComponentVista(JComponent c,PageFormat format){
                    setPageFormat(format);
                    setPrintable(this);
                    setComponent(c);
                    Rectangle componentBounds = c.getBounds(null);
                    setSize(componentBounds.width,componentBounds.height);
                    setScale(1,1);
               protected void setComponent(JComponent c) {
                    // TODO Auto-generated method stub
                    mComponent = c;
               protected void setScale(double scaleX, double scaleY) {
                    mScaleX = scaleX;
                    mScaleY = scaleY;
               public void scaleToFitX() {
                    PageFormat format = getPageFormat();
                    Rectangle componentBounds = mComponent.getBounds(null);
                    double scaleX = format.getImageableWidth()/componentBounds.width;
                    double scaleY = scaleX;
                    if ( scaleX < 1 ) {
                         setSize((float) format.getImageableWidth(),
                                   (float) (componentBounds.height*scaleY));
                         setScale(scaleX,scaleY);
               public void scaleToFitY() {
                    PageFormat format = getPageFormat();
                    Rectangle componentBounds = mComponent.getBounds(null);
                    double scaleY = format.getImageableHeight()/componentBounds.height;
                    double scaleX = scaleY;
                    if ( scaleY < 1 ) {
                         setSize((float) (componentBounds.width*scaleX),
                                   (float) format.getImageableHeight());
                         setScale(scaleX,scaleY);
               public void scaleToFit(boolean useSymmetricScaling){
                    PageFormat format = getPageFormat();
                    Rectangle componentBounds = mComponent.getBounds(null);
                    double scaleX = format.getImageableWidth()/componentBounds.width;
                    double scaleY = format.getImageableHeight()/componentBounds.height;
                    System.out.println("Scale: " + scaleX + " " + scaleY);
                    System.out.println("Componente X = " + componentBounds.width);
                    System.out.println("Componente Y = " + componentBounds.height);
                    if(scaleX < 1 || scaleY <1 ) {
                         if(useSymmetricScaling) {
                              if(scaleX < scaleY) {
                                   scaleY = scaleX;
                              } else {
                                   scaleX = scaleY;
                         setSize((float) (componentBounds.width*scaleX),
                                   (float) (componentBounds.height*scaleY));
                         setScale(scaleX,scaleY);
               public int print(Graphics graphics, PageFormat pageformat, int pageIndex) throws PrinterException {
                    // TODO Auto-generated method stub
                    Graphics2D g2 = (Graphics2D) graphics;
                    g2.translate((int)pageformat.getImageableX(),(int)pageformat.getImageableY());
                    Rectangle componentBounds = mComponent.getBounds(null);
                    g2.translate(-componentBounds.x,-componentBounds.y);
                    g2.scale(mScaleX,mScaleY);
                    boolean wasBuffered = mComponent.isDoubleBuffered();
                    mComponent.paint(g2);
                    mComponent.setDoubleBuffered(wasBuffered);
                    return PAGE_EXISTS;
} // @jve:decl-index=0:visual-constraint="136,10"
As you can see I used String to pass to the Applet the url that I wish to display!. Works!
But now I am changing to the class URL in the new code, so there is a
methods like this:
path = new URL(url);
and ...
          Properties props = System.getProperties();
          props.put("https.proxyHost", "webcache1.eng");
          props.put("https.proxyPort", "8080");
I also find it in the Sun Home Page.
I believe that I can access https://www.homepage.com/ with this lines!
I garantee that you can just access http://www.homepage.com/ with the
code above!!!!!
Angel Portal

Similar Messages

  • Opening a HTML page on clicking of button .

    i created a button under menuItem help , i want to open a HTML page in other window (that is save inside my project folder ) when i click that button.
    for this i created jeditorpane and passing the URL in to its constructor but i m getting exception when i m using URL like "D:/x/y.html" exception is protocol not find and in the case of "http://localhost/d:/x/y.html" exception is java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method
    my code is
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    import java.awt.Color;
    import java.awt.Container;
    import java.io.IOException;
    public class HelpDialog {
    * height of frame in pixels
    private static final int height = 1000;
    * width of frame in pixels
    private static final int width = 1000;
    private static final String TITLE_STRING = "Help";
    * URL of page we want to display
    private static final String URL = "http://localhost/D:/SVGcode/javaApplet/src/com/Documentation.html";
    // --------------------------- main() method ---------
         public HelpDialog()
         SwingUtilities.invokeLater( new Runnable()
         public void run()
         System.out.println( "Starting" );
         final JFrame jframe =
         new JFrame( TITLE_STRING );
         Container contentPane = jframe.getContentPane();
         jframe.setSize( width, height );
         contentPane.setBackground( Color.WHITE );
         contentPane.setForeground( Color.BLUE );
         jframe.setDefaultCloseOperation( JFrame.DISPOSE_ON_CLOSE);
         try
         System.out.println( "acquiring URL" );
         JEditorPane jep = new JEditorPane(URL);
         System.out.println( "URL acquired" );
         JScrollPane jsp =
         new JScrollPane( jep,
         JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
         JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED );
         contentPane.add( jsp );
         catch ( IOException e )
         System.err.println( "can't find URL" );
         e.printStackTrace();
         contentPane.add( new JLabel( "can't find URL" ) );
         jframe.validate();
         jframe.setVisible( true );
    plz help me

    Hi Sandy,
    Instead of giving url in the constructor. Paste the code below the JEditorPane. Remove the url from the JEditorPane constructor.
    try{
                        /** Files from system */
                        java.net.URL helpURL = new URL ("file:///" + "C:\\thread.jspa.htm");     
                        /** Files from inter net */
                         helpURL = new URL ("http://forums.sun.com/thread.jspa?threadID=5421146&tstart=0");
              if(helpURL!=null)     
               jHelp.setPage(helpURL);
              else
                   System.out.println("Couldnt find file");
               }catch(MalformedURLException exp){
                    System.out.println("Exception in page loading---"+exp);
               }catch(IOException ioexp){
                    System.out.println("Exception in page loading"+ioexp);
               }

  • Opening a HTML page from a Navigation link

    Hi All,
           I have a requirement of adding a new link at the navigation bar of WebClient. This link will open a static html page with some contents. I have created the page required for it. But I don't know how the link will be created at Navigation bar and how to open the html page from it. I am using the SAP CRM 5.0 and I want to add the link at Default profile.
      Please help.
    Thanks
    Indranil Datta

    Hi Sujit,
        Thanks for your help. I have created a new navigation bar entity and added that in a customized profile. I have also mentioned the page name and path for that link from tran SPRO. I found that link after logging into IC WebClient. But that link is not connected with the required page. If I click on the link page, it get refreshed but without any change.
    Thanks,
    Indranil Datta.

  • How to open an HTML page that is part of my project using Captivate 6

    I'm looking to create an HTML page that will use some javascript to extract information from Captivate and then render it to the browser window as a report.
    I see how you can Open a  URL webpage from Captivate (by putting in an explicit address ie www.abc.com   or http://www.abc.com/myReport.html)
    but I'm curious what address I can use if the html file is in the SAME folder at the index.html that launches the captivate project  (or perhaps one folder down)..    I'm wanting to do this so it works whether I've published the project to a webserver or not.
    I was thinking I could use a relative reference (ie  something like .\myReport.html), but I haven't had any luck thus far

    Thanks Seth.
    I just tried that, but when I run it in preview mode (by simply hitting F12), it gives me an error because it can't  find the file in the temporary preview folder it creates (ie:
    C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder2840464091009\Captivat ePreviewLoader\
    I'm hoping to find a place to put it so that it works when running F12 and when running in regular 'published' mode
    I was thinking I could put it in the 'C:\Program Files\Adobe\Adobe Captivate 6 (32 Bit)\Templates\Publish' folder, but when I do that, it doesn't seem to gete copied to the .\CaptivatePreviewLoader folder when running F12

  • Open a html page from an applet

    Hi,
    I would like to open, from an applet, an HTML page in a new window with a specific width an eight.
    Who can help me ?

    Here is an example of applet to javascript with liveconnect:
    http://www.narhari.com/java/applet2javascript/
    You can use the send(String) method from the sample applet to send something like:
    window.open('xyz.html','myPopup','width=200,height=200');in order to open a window with specific dimensions
    of course you can also build HTML in your applet and use send() + some javascript to render it.

  • Open an *.html page from a vi

    Hi,
    I don't know how to open an .html file from a boolean bouton.
    someone could help me ?
    thanks

    tst wrote:
    But the HTML file on the RIO (if it's anything like remote front panels on the PC) is only a "pointer" to the VI. It is only used so that the browser will have a place to start. The PC has nothing actually running on it and the RIO is not displaying the web page.
    Here is the basic text from a sample file which tells the web browser to connect to a running VI.
    http://www.ni.com/webappdemos/lv">>
    You can see that it's only a few lines telling the browser to connect to the VI. I think that to use the link you will either need an LV program running on the computer or you will need to write your own browser for the RIO (not a recommended solution).
    Is all right, I know that the html file make only a connection to the VI, but the the web page file are on the cRIO.So I don't understand because you think that the browser must start from the cRIO. If I actually can visualize an html file, that is on the cRIO, and the browser are running on my pc, why a link from the VI (as www.html.it) must open a browser on the cRIO and not on client PC?

  • Open all html pages in one window w/button

    I'm trying to figure out how to have all of my pages for my
    site open under one browser window instead of opening up a new
    window when each button is clicked.
    I built Flash buttons for the pages and they work fine...they
    just open up the pages in individual windows.I'm new at this and
    haven't figured out how to get the pages to open up in the main
    (index.html) browser window. I've tired doing it using in
    Dreamweaver the Add Behaviors, GoToURL selection but it doesn't
    work...
    Also, I'm not using frames within Dreamweaver....
    Here is the code for the flash button that I tried and it
    didn't work....
    The 2nd block of code is what I used to open the pages and it
    does work...
    Any help would be appreciated and well worth a cold pint when
    we meet!
    Bob Davis
    dp Davis Productions....
    =

    Strangely yes you do.
    iChat invokes the same A?V protocols from any Buddy list.
    If the person at the other end is on iChat or AIM on a PC then it will be able to Video or Audio chat to them.
    It will not be able to Video chat to MSN or Yahoo or Jabber only Buddies (those clients that can't Video chat or don't use the same protocols as iChat and AIM).
    The exception is to people on a OS X server network with the iChat server which is actually a Jabber server - but the individual users will be using the iChat Client.
    9:59 PM Thursday; November 1, 2007

  • Opening an Html page from java code

    Hi
    I have created an application and in order to complete it i need to configure help file with it. Now i have created a menubar in which help button is present.
    My requirement is that clicking the help button should display the help file which is in the form of an html file in a new window just as in any other application.
    Can anybody help me on this issue? Your help would ge really appreciated :)
    Thanks

    My requirement is that clicking the help button should display the help file which is in the form of an html file in a new window just as in any other application.Do you want to open a new "Browser"? is this a hard and fast requirement? If not why don't you use javahelp instead.
    For more details refer : http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javahelp/index.html

  • Problem open new html page from flash

    Hello,
    in IE7 and IE8 block popup lock my external link(page html)
    I use GetUrl(url,"_blank") but not it works
    Why?
    i use flash cs4
    With firefox it work

    thank you for response,
    i have used correct command but not it works.
    It Works, in my popup setting are setting "CUSTOM" not MEDIUM
    thank you

  • In R12, how to open new HTML page in a new window

    When I do the Payment configuration in R12, sometime I need open Payment Admistrator and Payments Manager at the same time in different tab. But everytime if I have one opened and try to open the second one, it always replaces the first one instead of opening a new window. Please help!

    974502 wrote:
    When I do the Payment configuration in R12, sometime I need open Payment Admistrator and Payments Manager at the same time in different tab. But everytime if I have one opened and try to open the second one, it always replaces the first one instead of opening a new window. Please help!You can use multiple sessions and login to different responsibilities -- Please see these docs for details.
    Is the Use of Multiple Forms Sessions in a Single Browser Session Supported? (11i & R12) [ID 879404.1]
    Recommended Browsers for Oracle E-Business Suite Release 12 [ID 389422.1] -- Multiple Sessions
    Thanks,
    Hussein

  • Problem in Opening HTML Page in Internet Explorer from my Swing Application

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    Here there are two things i need to address ...
    1)The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.I want to open it in front of the Swing Application.I need to implement "Always On Top" functionality for the html page.
    2)Whenever i trigger action to open different HTML page,it opens in new Internet Explorer window.
    I need to open it in same IE window.
    how to solve out these problems ??? any help would be greatly appreciated .Thanks in advance.
    - Manikandan

    any idea about this ????

  • To open a window & html page at a time on a single button, in JSP.

    Hello!
    I want to open 1 window as well as i want to open 1 html page on a single button click at a same time, in JSP.
    on button's "action" event i am opening the html page and button's "onclick" event i am opening the window, but it is not showing these 2 actions at a time. only window gets open when i click the button.
    [Also on form's "action" event i am having validate() function.]
    how do i open a window & html page at a time on a single button, in JSP?
    I don't know how to do this. I have stuck over here, if anyone is having any solution, please let me know.
    I need your help.
    Thank You.

    write js as
    window.open(page, "Popup", windowprops);
    windowprops = "height="+hi+",width="+wd+",top="+ wint +",left="+ winl +",location=no,"
              + "scrollbars=yes,menubars=no,toolbars=no,resizable=no,status=yes";
              encapsulate this in one function and call that function on button click event !!

  • 9i on RedHat 7.1 was successful but i can only open html pages.

    If i take a blank page (index.html) and rename it to (index.jsp) I cannot open the index.jsp. Permissions are all correct and Im not sure that the problem is. Might be a problem with Jserv but I have no idea
    THanks in advance
    Adam

    I guess i should have added that i can only open the html pages from a browser. I cannot open .jsp pages from a browser

  • Open html page in same window

    Hi,
    I have an OA page for Travel and expense; it has a button linked with an html page. If we click the button it will open a html page to download “Spreadsheet template”.
    My requirement is right now the html page is opening in a separate window, but I want to open in same page. Any help to achieve this.
    Thanks
    Chandra

    Chandra,
    Kindly check the code that is being used to handle the button to download Spreadsheet template. You can get clues. There is a good likelihood that the target frame is set as _blank. I am sure you would get clues.
    Regards
    Sumit

  • Open Html page as dialog

    Hi,
    I am trying to open a html page, which is available in my site pages using the dialog box.
    I have tried the below code, but it is not working. Page is not opening as a popup.
    lblMessage.Text += "<a class='openinwindow' href='" + clickHereUrl + "' onclick='javascript:OpenPopUpPageWithTitle('" + clickHereUrl + "',null,null,null,'Test Name')>Click Here</a>";
    I have added reference to sp.js,sp.ui.js, sp.ui.dialog.js.
    How to fix this?
    Thanks

    Check this thread, can be helpful for you
    http://social.technet.microsoft.com/Forums/en-US/a1cec8f9-260d-4514-b452-5d1cc5c2d324/sharepoint-modal-popup?forum=sharepointdevelopmentprevious
    OR
    you can also check it with below code.
    <script type="text/javascript">
    function openDialog(eid, etitle) {
    var options = {
    url: "employeedetail.aspx?IsDlg=1&eid=" + eid,
    title: etitle,
    allowMaximize: false,
    height: 500,
    width: 600,
    showClose: true
    //SP.UI.ModalDialog.showModalDialog(options);
    SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog', options);
    </script>
    and for calling in your anchor tag you can use below code.
    <a href="javascript:openDialog('<%= empLoyeeID("ID") %>','Employee Title"')">
    you can pass url as I am passing ID in above code.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

Maybe you are looking for

  • Apps wont update after iOS 7.0.2 says "unable to download app".

    iPad 2 just did the iOS 7.0.2 upgrade. 24 of my apps are grayed out and unable to use. I try to update all in the app store and it says, "Unable to download app. Could not be installed at this time" and gives me the option of Done or Retry. I also ca

  • How do I redact a PDf using Acrobat XI?

    I just upgraded from Acrobat 9 to Acrobat XI and it doesn't seem to have the redaction functions that Acrobat 9 had.  Can anyone tell me where to find them.  Thanks.

  • Onclick not working in IE but working in firefox !!

    Hi This is a problem in DOM I hope I can get some help here .... I am facing a problem with my code .... this is what I am doing ... I am having a link on the page which says "add tab" o clicking this link I add a new tab to the page, I write the cod

  • Help needed for Pivot

    how can I change the following query using the PIVOT function any help is highly appreciated SELECT MAX (DECODE (col_name, 'COUNTRY_OID', new_val, NULL)) a_country_oid, MAX (DECODE (col_name, 'CITY', new_val, NULL)) a_city, MAX (DECODE (col_name, 'ST

  • No internet access after bootup on some clients.

    Hi, Some of our client pc's do not have internet access after bootup in the morning. The quick solution is to login as administrator disable & re-enable the network adapter and than everything is fine for a few more days. There is nothing showing up