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.
Similar Messages
-
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.
- Manikandanany idea about this ????
-
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
AdamI guess i should have added that i can only open the html pages from a browser. I cannot open .jsp pages from a browser
-
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
ChandraChandra,
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 -
Clicking on style.css in web console opens html page
Why does clicking on the style.css and line number automatically open an html page?
first time using this and can't figure out why it does this or how to configure it to open with a different editorFor launching an external editor, this extension might be handy:
https://addons.mozilla.org/en-US/firefox/addon/dafizilla-viewsourcewith/
Recent updates are on the "all versions" page:
https://addons.mozilla.org/en-US/firefox/addon/dafizilla-viewsourcewith/versions/
If you try it, please report back on how it works for you. -
Opening html page with in the applet
I want to open an html page in the applet. If i use showDocument() of applet, it opens the html page in the browser, but i want to open the html page with in the applet(i.e., applet should display the html page). Is there any way which i can do the above thing.
Thanks in advanceUse a JEditorPane to display HTML (supports version 3.2 though)
check API (that's for JDK 1.4.1 so check for version you use)
http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JEditorPane.html
Sky -
Open HTML page as a tab inside ADF Page
Hi All,
I have a link in my adf(jspx) page,which should actaully open a html page in a new tab.
I am not sure how to implement this.
I am able to open jsp fragments on new tab.But not HTML Pages.
Can anyone help me on this.
Thanks in Advance.Vikram
Thanks for the reply.
I want the tab to be opened inside the adf page itself as adf dynamic tab..not as a separate tab in browser.
Sorry for not framing the question to the point.
Opening adf fragments in a new tab inside the adf page itself is possible.
But am able not able to specify a html page to open in a new adf tab in the same adf page.
Thanks. -
Hi,
I want to open a html page containing instructions for my application. I've tried with the Host built-in.
While I read the instructions I cannot operate with my calling Forms-application. I want to use they in parallel.
Can you tell me how can I solve this problem?
NatasaWhoever you are -- I LOVE YOU!!!
I have been trying to figure out a way to display PDF's without storing them as BLOBs in the database. I tried BFILE until I realized it works with a bunch of obsolete file types --not PDF's (and the files have to be stored on the oracle server). I've used the host command in the past but it never occurred to me to use it in this situation. Now I can just save the file name in a normal varchar2 field and then use the host command to open it up! Brilliant! You're definitely my Valentine this year! -
How can I open a HTML page by pressing a button on the stage?
I've created a rollover button and I'm trying to make it open
an existing html page from the local disk (not an internet URL).
But I can't make it open with Lingo or behaviour.
Please help.
Thanks a lot.
Gideon.goToNetPage "
http://somewhere.html" is the
typical form for a page on
the web, director must use the address format the system's
browser uses
for local files, this is somewhat platform dependant, a
practical
aproach is to open the file in question from within your
browser then
copy and paste the displayed address into your lingo code.
Some report the goToNetPage counterpart provided by the
buddyAPI xtra
works more reliably, the xtra can be used for free if limited
to a
couple of functions.
An alternate approach buddyAPI can use is to have the browser
directly
access the html file as if it were double clicked in the file
manager
using the same form commonly used to open PDF files with
acrobat.
(sorry I don't have example code handy) -
How to speep up opening html page in JEditorPane
When i call jeditorPane.setPage( URL u ) it takes about 20 seconds to show page in my JEditoPane. Could you write how to speed up loading html page. My page has 30 page. Thanks!
When i call jeditorPane.setPage( URL u ) it takes about 20 seconds to show page in my JEditoPane. Could you write how to speed up loading html page. My page has 30 page. Thanks!
-
Hotkey for switching between open html pages similar to Apple+Tab for apps
Is there a hotkey combination which can switch between open html documents in the same way Apple+Tab switches between open applications?
In Windows it is possible to switch use ALT+TAB to switch between various open Firefox windows which are displayed as options along with other open applications -- but OSX seems to limit choices only to applications, and not their various windows. ?
ThanksHmm...sorry...just switched yesterday afternoon...this combo though doesn't seem to be working for me in either Firefox or Safari...tried Command+< also with the SHIFT key for '<' but to no avail.
Mind if I ask a two more simple questions though? How can the touchpad be setup to automatically register a click by tapping on the touchpad rather than the button beneath it...and...is there a hotkey combo which would take a person back to the beginning of a text field, similar to 'Home'? Haven't yet figured out how to make the arrow with "home" on it actually send the cursor back to "home"...
many thanks -
Problem with opening html page in Dreamweaver
Hello,
I would like to ask the forum because I have a problem with Dreamweaver 8.
In the past when I work with my PC on Windows XP I didn't have this problem.
Now I have a new PC with Windows 7 Familial Edition Premium.
I can open he most pages I would like, .htm particuliarly but some of them like .html don't opened in Dreamweaver 8
on PC with Windows 7.
Example:
With this page: http://www.pb-veille-consulting.com/veille.html
I can open it with Dreamweaver 8 under Windows XP on my portable PC.
But I can't open it with Dreamweaver 8 under Windows 7 on my fix PC.
Where is the problem?
You could watch the code of this page and perharps give me answers from my question.
Thanks a lot.
Patrick.It could be that Extensions.txt and MMDocumentTypes.xml do not have the full set file extensions.
The first one can be located at ~username/AppData/Roaming/Adobe/Dreamweaver CS6/en_us/Configuration and needs to have HTML added to line 1
The second one can be located at ~username/AppData/Roaming/Adobe/Dreamweaver CS6/en_us/Configuration/DocumentTypes and needs to have HTML added to line 3 so that it looks like
<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi" file="Default.html" writebyteordermark="false" mimetype="text/html"> -
Hi I use JDev 11g,
I have a table with a af:commandMenuItem
<af:commandMenuItem text="Edit"
binding="#{backingBeanScope.backing_Contactpersonen2.cmi1}"
id="cmi1" action="dialog:Edit"
useWindow="true"
windowHeight="200"
windowWidth="200"/>When I click on Edit then the page is opened in full screen and not as a dialog.
Did I forget something?
Thanks in advance.Thanks Frank,
That was it. I did use the file faces-config.xml instead of adfc-config.xml
I do get a popup now put its not what I wanted I see now.
What I want is a dialog like this:
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/dialog.jspx?_afrLoop=1421066934635458
Where is described how to make it like that?
Found it:
http://download.oracle.com/docs/cd/E15051_01/web.1111/b31973/af_dialog.htm
Edited by: KdeGraaf on Nov 16, 2009 11:06 AM -
Open HTML pages in the same Browser
HI All,
I have a GUI with Help buttons which are required to open Help files in the default browser.
Now i am able to acheive this using Runtime.getRuntime().exec("cmd /c start iexplore url")
But the problem here is everytime the user clicks on the help buttons on various screens of the UI it opens a new browser instance where as i want all the help files to open in the same browser window.
How do i acieve this?
Also i tried using rundll32 url.dll, FileProtocolHandler url... the problem with this command is it doesnt recognize the querystring part of the url.
For ex : http://forum.java.sun.com/post.jsp?forum=31&skldfsdkfj
here the cmd only recognizes until http://forum.java.sun.com/post.jsp and the rest of the url is truncated when the browser opens. Do i need to escape "?" in my java application itself
I escape & with ^& and this works..But how abt for "?"
Anyone has any idea abt this....Pls help
ADNall browsers ask you when you install them if you want that one to be the default one.
So yes, start or run32dll.exe can be used to launch the default browser.
No, you can't control which window to show it in, with the possible exception of Mozilla (or a derivitive (sp?)) might have some command-line options to do that. But you can't know that it's a Mozilla browser that will run with start or run32dll.exe.
Your other choice would be: search the file system for browser, or just ask the user for the path to the browser's exe in a preferences dialog or something. -
Doubleclick doesn't open html pages ???
just switched to cs3 version of dreamweaver
somehow, when I doubleclick on my html files dreamweaver
opens design-notes
instead of my html file.
the only option I have now is right-click and then 'open
with'... choose to
open with dreamweaver.
anybody has any ideas how to solve this ???
thanks
[email protected]"...as conveyed in this Apple Support Community reply last December by Barry."
How soon we forget!
Thanks, VikingOSX.
Regards,
Barry
Maybe you are looking for
-
How to stop events that span midnight from displaying on 2 days
Somewhere around SnowLepoard iCal's default behavior changed. It used to be that If an event spanned midnight (e.g. 7p-7a) then in the Month view it would only show up on the day the event started. Now in Lion, it produces a colored bar that spans bo
-
Basic Functionality Questions - Is a computer required to serve content, etc?
I'm sorry if these are no-brainers. I ask them because I thought I had understood how an AppleTV worked, and had planned on buying one, until a friend who owns one insisted that the device functions differently than I had understood it to. I think he
-
Dear SAP Gurus, My client is asking the difference between the RM VAT(JVRD,JVRN) Conditions and CG VAT Conditions(JVCD,JVCN) . Why SAP has provided 2 different condition types for Raw Material and Capital Goods . And also what is the difference betwe
-
I'm very non-tech! I have a G4 Powerbook and somewhere along the line, my resolution got messed up. I can not see the entire screen for Garage Band, Word, etc. I went to System Preferences and played with various display resoltion settings, but haven
-
Dear All, Would like to ask if B1 has the function to make schedule to generate a report and export it to excel file? seems B1 doesn't has this function, is it ? Thank you very much