Display static html page in popup
Hello all,
I have to display a popup that alerts the user to the fact that a file has been written successfully (or not). The popup has to auto-close after 2 seconds or so; so that the user doesn't have to always press the "OK" button like with javascript alert. If there is a way to close the javascript alert box I'd be happy to know though.
So I thought the javascript;
win = window.open('',.....
followed by;
win.document.write('<html>.......
would be the way to go. I see now that it isn't. I guess because the popup opens on the client while the code is run on the server and this causes a permissions problem.
Then I figured that I could add the html file to my .par and open it locally from my java code. I can't seem to get that working however.
I also figure that since the J2EE server is a server then there must be someplace there I can put an html file and then just call it over http.
Any help with this will be greatly appreciated.
Thanks for your time,
Patrick.
Message was edited by: Patrick O'Neill
So that I could mark it as a question
Hello,
You get the server, port etc... from the standard J2EE objects like
request.getServerName()
or
request.getServerPort()
They return Strings so You can add then by using
+
So, mix up Your J2EE (web) knowledge with SAP Portal knowledge.
I hope this helps...
Walter
Similar Messages
-
How to display static HTML pages in Oracle Forms 6i
I want to display static HTML page in oracle Forms ? Can any body help please ? Its very urgent. Many thanks in advance.
Suresh,
there exist a Java Bean in teh Forms 6i demos that shows a static HTMl example. Note that the HTML that could be shown is somewhat basic, but it will give you an impression how it can work. The demos are at otn.oracle.com/products/forms --> samples --> 6i demos
Frank -
Jsp page calls javascript to be displayed in html page
I want to test if user is logged in or logged out and put the logic of it on the header of my static html page (tomcat, apache)
I would put .js code like this in my html header:
document.getElementById("test").innerHTML= '<a href="/login.jsp>Login</a>
And if user is logged in then put link to LOGOUT dynamicaly.
I am using JSP page to check for logic login/logout:
<c:if test=${!empty user">
<p><a href="/logout">Logout</a>
How do I implement following: call to the javascript from this JSP page to display on my html page (header) .
I am not to use jsp on my html pages thus this workarounddouble post
-
Display external html page in a view
Hi,
following Problem,
I have a Viewcontainer with 2 columns ans one row. In the left cell I display a tree. OnSelect Event I'd like to display a html page in the right cell.
Example:
Searchengine
-> Google
-> Yahoo
-> ...
On Klick at google in the treeview I'd like to show http://www.google.de in tghe right cell - this means the tree should still display.
Is this possible - and has anyone an idea to do this?
thanks in advance
GregorHi
We strongly donot recommend usage of Iframe, because its support is depcrecated and will not be available for future versions.
For a short duration or for current version, use can Iframe only for static html links. Try using link to URl and display the htmls in external windows.
Check out this link
http://help.sap.com/saphelp_erp2005/helpdata/en/e9/7652a84fada444bd11ca73670ce7dc/frameset.htm
My advice is to change your functionality accordingly
If you have any specific requirements do let us know
Thanks
sathyanarayanan -
Hi All,
I have static html pages that are not published to the Web. I was wondering, can I create iViews for them to be displayed in the portal without having to publish them and creating URL iViews out of them?
Thanks
TM.Hi Tony
Make a component with the following code and portalapp.xml. For each static piece of text, make an iView from the component and set the HTML property to the HTML you want to display, and it should work... In the HTML you may need to change any
<
character to
<
Yes, it's a hack...
The portal component code
package com.michael;
import com.sapportals.portal.prt.component.*;
public class StaticHTML extends AbstractPortalComponent
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
IPortalComponentProfile profile = request.getComponentContext().getProfile();
String theHTML = profile.getProperty("HTML");
response.write(theHTML);
The relevent portalapp.xml:
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
<property name="SharingReference" value="com.sap.portal.navigation.service"/>
</application-config>
<components>
<component name="StaticHTML">
<component-config>
<property name="ClassName" value="com.michael.StaticHTML"/>
</component-config>
<component-profile>
<property name="HTML" value="<b>bold</b><i>italic</i>"/>
</component-profile>
</component>
</components>
<services/>
</application> -
How to develope a par file with a static html pages in NWDS
Hi to all,
what is the procedure to put static html pages as iviews by using programming.
In my project hierarchy where should i keep the html file, and what component should be generated? to generate a par file.
using that par i'll generate a iview and i will link to my page.
but i need a procedure to generate a portal component of this type.
if any body is having the procedure of this, or any online help documentation link u have please forward to me.
Thanks & Regards,
sireesha.Hi,
Check whether KM is installed in your server. If yes then you can view it under Content Administration>> KM content(like the Portal Content).
In that you can see the Root folder>>documents>>Public Documents. If you wish you can create your own folder or can just upload the file inside that folder.
1. to create a folder go to Folder >> new folder...
2. to upload the file click Folder>>New>>upload.. then you can browse to the local system and from there you can upload file.
The path that you have to give in the Iview shloud be like
\documents\Public Documents\<your foldername>\filename.
Hope this Helps
gEorgE -
How can I display the HTML page from servlet which is called by an applet
How can I display the HTML page from servlet which is called by an
applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
I am calling my struts action class from the applet. I want to show the response in the same browser.
Code samples will be appreciated.hi
I got one way for this .
call a javascript in showDocument() to submit the form -
TREX Search : static HTML pages in KM with links to other intranet websites
Hi there,
we have some static HTML pages stored in KM. Besides text, these pages contain links ot other intranet websites, pdf or word documents.
I have defined an index, according to <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm">creating an index</a>
Following parameters have been added :
IndexInternalLinks = true
indexContentOfExternalLink = true
showWithoutDatasource = true
Already had a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm">Crawlers and Crawler Parameters</a>, tried by creating a new crawler profile and setting
Maximum Depth = 3 (we want to search three levels deep)
There is also <a href="http://help.sap.com/saphelp_nw04/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm">Resource Filters</a>
The html pages itself are included in the index, but the content of the external links is not included.
Would this be possible? We don't want to define an <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/73/66c090acf611d5993700508b6b8b11/frameset.htm">HTTP System</a> in the system landscape, as we don't need to index the whole external website and some parts of it are obsolete - we only want following the links and included the external content in the index.
Portal version is NW2004S SP10.
Thanks & best regards,
KevinHello Kevin,
If you don't want to create a HTTP system then you can create a simple web repository.
For details you can follow help guide:
http://help.sap.com/saphelp_nw04/helpdata/en/a4/76bd3b57743b09e10000000a11402f/frameset.htm
Also you can create a Web Repository:
http://help.sap.com/saphelp_nw04/helpdata/en/12/47833ceb3da02ce10000000a114027/frameset.htm
Do refer to "Dynamic and Static Web Repositories" section in the document. This will answer your query.
Regards,
Anjali -
Create a static HTML page from a CFM page
How do I take the results of a dynamic CFM page and write it
to a static HTML page.You can also use the CF administrator.
Schedule the task. (Or just create the task to be hit by a
call from a page.) When you set up the "task" Click Publish Save
output to a file
and assign the path you want it to write to. I do this for
high volume front pages and have them created every few minutes to
reduce the load on the sql and cf servers.. -
How to display the HTML pages in RRC/RQM dashboard using OpenSocial gadget
Hi,
I have a requirement as below:
1. I have couple of HTML pages which are hosted in the sharepoint site and I would like to display the HTML pages
2. I would like to have an OpenSocial gadget in the RRC/RQM dashboard that will display the HTML pages which are hosted in my sharepoint site.
Could you please suggest the best approach to create an OpenSocial gadget in the IBM's RRC/RQM dashboard whcih will display html contents of another URL ?
Thanks.
Knowledge is power.Hi Manoj,
As I understand, you would like to display SharePoint page in another platform.
Since the you are involving third party platform, you might still need to contact their support engineer about how to render other pages.
From SharePoint side, by default, SharePoint won't let end user to display site page to other platform, you could add "<WebPartPages:AllowFraming runat="server"/>" in master page or single page layout. So that SharePoint ASP.Net
page could be displayed on other platform.
Here I'm talking about ASP.Net page, since HTML page in SharePoint cannot be displayed in browser as I tested, it will be downloaded directly. So I'd suggest you use ASP.Net page as workaround.
https://social.msdn.microsoft.com/Forums/office/en-US/c8755a6b-f33a-43ed-97d9-8f03c336aa1d/how-to-display-sharepoint-url-in-iframe-in-aspnet-page?forum=sharepointdevelopment
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Display external html page in (Collapsible Panel widget)
i everybody
is there a way to display external html page in (Collapsible Panel widget)
All the example a seen is with raw text in it
is the panel can display different object instead of simple text
At least a internal designed html page
ThanksThanks... surely a easy one for you
But its a great tool and its exatly what i want
even my js button works trough it
Thanks again -
Displaying an html page from a byte array
I'm trying to display an html page that i receive from a byte[ ] but the navigator asks me to download it instead of displaying it.
exactly a better option here would be display that HTML content using a dedicated servlet/jsp.
checkout below example code snippet hope that might help
public void doPost(request,response)throws ServletException,IOException{
//fetch HTML bytes.
Byte buffer[] = Delegate.getBufferData();
ByteArrayInputStream in = new ByteArrayInputStream(buffer);
int contentSize = in.available();
response.setContentType("text/html");
response.setContentLength(contentSize);
BufferedOutputStream out = null;
try{
out = new BufferedOutputStream(response.getOutputStream());
while( contentSize-- > 0 )
out.write(in.read());
out.flush();
}catch(Exception exp){
exp.printStackTrace();
throw new Exception(exp.getMessage());
}finally{
try{
if(out != null)
out.close();
if(in != null)
in.close();
}catch(Exception ep){
ep.printStackTrace();
throw new Exception(ep.getMessage());
}finally{
out = null;
in = null;
}and respectively call the servlet.
Hope this might help :)
REGARDS,
RaHuL -
Is it possible to serve a few plain old simple static HTML pages with ITS?
Hi,
I am looking for a way to serve a few plain old simple static HTML pages (together with some javascript and image files) with ITS?
The HTML page should be served unaltered.
Is this possible somehow?
Thanks,
WolfgangHello Wolfgang.
Yes, that is possible. What ITS are you using, Integrated or Standalone?
With Standalone you could just put the static HTML anywhere in the web server directory.
With Integrated ITS you will need to upload it to the Integrated ITS and then publish your static HTML. There is an example of this in the SYSTEM service. Just go to SE80 > SYSTEM Internet Service > Topic SL > Mime Objects > PAGE > aboutbox.html.
Edgar -
Servlets in one machine and static html pages in another machine
We have one technical problem concerning WebLogic Server 5.1. Our customer
wants to install two WLS servers in two machines. Let's call these machines
and WLS instances A, which is a front end machine, and B, which is a back
end machine. WLS A has all the static html pages and is open to public. WLS
B has all servlets and business logic (EJB components...) and is open only
to machine A. We are wondering if it is possible to configure WLS A so that
when the client's browser requests a static html page and there is a link to
a servlet in WLS B, the http requests goes from the client's browser first
to WLS A, which sends the same request to WLS B, which runs the request in a
servlet and sends the response to WLS A, which sends the response back to
the client's browser. In that way the client allways thinks that it is
communucating with WLS A and is unaware of the existance of the WLS B. We
are wondering if this is possible with WLS configuration and if it is, how
this can be done.
Sami Elomaa
Use ProxyServlet:
http://www.weblogic.com/docs51/admindocs/http.html#proxy
btw, why don't you let WLS A serve html and servlets, and let WLS B serve
EJBs... it's more logical that way. Well, I'm kinda biased because that's
how we do it... ;-)
Gene Chuang
Teach the world. Join Kiko!
http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
"Sami Elomaa" <[email protected]> wrote in message
news:[email protected]...
> We have one technical problem concerning WebLogic Server 5.1. Our customer
> wants to install two WLS servers in two machines. Let's call these
machines
> and WLS instances A, which is a front end machine, and B, which is a back
> end machine. WLS A has all the static html pages and is open to public.
WLS
> B has all servlets and business logic (EJB components...) and is open only
> to machine A. We are wondering if it is possible to configure WLS A so
that
> when the client's browser requests a static html page and there is a link
to
> a servlet in WLS B, the http requests goes from the client's browser first
> to WLS A, which sends the same request to WLS B, which runs the request in
a
> servlet and sends the response to WLS A, which sends the response back to
> the client's browser. In that way the client allways thinks that it is
> communucating with WLS A and is unaware of the existance of the WLS B. We
> are wondering if this is possible with WLS configuration and if it is, how
> this can be done.
>
> Sami Elomaa
>
>
-
Publish no static html page with Web services
Hello All,
I would like to publish no static html page using Web services. I can't attach this html page as static because I need to change it dynamically from another vi. So, client can read this page by browser with refresh 2 sec.
Thanks,
YustasHi,
I think It is not possible to create a dynamic HTML page, at the most you could edit your page HTML and publish it again with the same URL
I hope to be helpful.
Sabrina
Maybe you are looking for
-
I had a bit of a melt down on my server and had to blow away OD and restore it from a backup. All is working fine, except I have repeaded slapd messages in the log. slapd[410]: SASL [conn=2341] Failure: realm changed: authentication aborted Any ideas
-
Connecting to facebook not working
Hi I'm trying to connect to facebook using project siena. I created an App ID on fb dev website, I made a datasource, but I can't do any of facebook commands, for example I'm trying to do a post in fb using inputbox and a button, it asks for my user
-
I really desperate and don't know what to do because I tried to find an answer in so many websites and so many discussions and no one have actually any answer that solve the problem
-
Is Format Builder open source?
If not, what are other open source tools we can use to convert non-XML to XML reporesentation? Thanks,
-
I just got my iphone replaced and my pictures won't download. Why?
Why aren't my pictures downloading?