Banner (rotative)...ANY HELP WILL BE REWARDED!!!!
Hello you guys,
Im working on the development of a rotative banner, for someone that doesnt know what it is
is a banner (in several web pages you can find one) that change the image present in it once on a while (every certain time), and each one of those image represent a point of entry for accessing to an specific place
in almost all of the cases, different web pages
in my case a specific portals role, user profile. The images that I want to present in the banner are store in the km repository. I found a solution that serves me well for my purpose, but I need to find another solution for achieve my goal and now I going to explain why:
Im using a JSPDynpage PAR, as a parameters of this *.PAR , I get the all the paths where the images are physically store on the server, the names of those images and the paths of the roles (in the PCD) associated to each one of those image. In the before output method, I get the complete path where the image is store, and put it (render it) on my iview, then is executed a wait method and finally with the SUBMIT method, I send again the information (some variables that I need to change the image in the banner) to the browser and that result in the continuing refresh (request response cycle) of my browser. Its important to know that only the iviews *.PAR is refreshing when the submit method is execute, not all the page. Know, like I said before all works fine, but the problem is that I want to do this but I dont want that my browser refresh every certain time
so the question is: is there another way to do this using EPCM API and avoiding the use of the submit method (no refresh the browser)?
Here is the source code if someone need to look it for give me some answers. Any help will be rewarded. Thanx a lot!!!
<%@ page pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.List"%>
<%@ taglib uri="tagLib" prefix="hbj" %>
<%@ page language="java" %>
<%
String RefreshTime = (String) componentRequest.getValue("RefreshTime");
String imgURL = (String) componentRequest.getValue("imgURL");
String name = (String) componentRequest.getValue("name");
String URL = (String) componentRequest.getValue("URL");
%>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:inputField
id="InputName"
type="string"
maxlength="100"
visible = "FALSE"
value="<%=name%>"/>
<hbj:inputField
id="InputURL"
type="string"
maxlength="100"
visible = "FALSE"
value="<%=URL%>"/>
<hbj:gridLayout
id="myGridLayout1"
debugMode="FALSE"
width="100%"
cellSpacing="5">
<hbj:gridLayoutCell
rowIndex="1"
columnIndex="1"
width="100%"
horizontalAlignment="CENTER">
<hbj:link
id="link1"
text=""
target="_TOP">
<hbj:image
src="<%=imgURL%>"
alt="Banners"/>
<% link1.setOnClientClick("javascript:EPCM.doNavigate('"URL"')"); %>
</hbj:link>
</hbj:gridLayoutCell>
</hbj:gridLayout>
</hbj:form>
</hbj:page>
</hbj:content>
<SCRIPT LANGUAGE="JavaScript">
var tid = window.setTimeout("changeMessage()",<%=RefreshTime%>000);
function changeMessage(){
var myFormId = document.getElementById(htmlb_formid);
myFormId.submit();
function stopMessageBanner(){
if (typeof tid != "undefined"){
clearTimeout(tid);
</SCRIPT>
Anexo la clase java
import com.sapportals.htmlb.Image;
import com.sapportals.htmlb.InputField;
import com.sapportals.htmlb.Link;
import com.sapportals.htmlb.page.DynPage;
import com.sapportals.htmlb.page.PageException;
import com.sapportals.portal.htmlb.page.JSPDynPage;
import com.sapportals.portal.htmlb.page.PageProcessorComponent;
import com.sapportals.portal.prt.component.IPortalComponentProfile;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentURI;
public class ZbannersRotatives extends PageProcessorComponent {
public DynPage getPage(){
return new ZbannersRotativesDynPage();
public static class ZbannersRotativesDynPage extends JSPDynPage{
private IPortalComponentRequest request;
private IPortalComponentProfile profile;
private String RefreshTime ="";
private String path = "";
private String name1 = "";
private String name2 = "";
private String name3 = "";
private String url1 = "";
private String url2 = "";
private String url3 = "";
private String name = "";
private String URL = "";
public void doInitialization(){
request = (IPortalComponentRequest) this.getRequest();
profile = request.getComponentContext().getProfile();
RefreshTime = profile.getProperty("RefreshTime");
path = profile.getProperty("path");
name3 = profile.getProperty("name3");
url3 = profile.getProperty("url3");
name = name3;
URL = url3;
public void doProcessAfterInput() throws PageException {
request = (IPortalComponentRequest) getRequest();
profile = request.getComponentContext().getProfile();
path = profile.getProperty("path");
name1 = profile.getProperty("name1");
name2 = profile.getProperty("name2");
name3 = profile.getProperty("name3");
url1 = profile.getProperty("url1");
url2 = profile.getProperty("url2");
url3 = profile.getProperty("url3");
InputField currentInputName = (InputField) this.getComponentByName("InputName");
InputField currentInputURL = (InputField) this.getComponentByName("InputURL");
String name_var = "";
String url_var = "" ;
if (currentInputName != null) {
name_var = currentInputName.getString().getValue();
url_var = currentInputURL.getString().getValue();
if(name_var.equals(name3))
name = name1;
URL = url1;
if(name_var.equals(name1))
name = name2;
URL = url2;
if(name_var.equals(name2))
name = name3;
URL = url3;
public void doProcessBeforeOutput() throws PageException {
request = (IPortalComponentRequest) this.getRequest();
profile = request.getComponentContext().getProfile();
RefreshTime = profile.getProperty("RefreshTime");
IPortalComponentURI componentURI = request.createPortalComponentURI();
componentURI.setContextName("com.sap.km.cm.docs");
String docsURI = componentURI.toString();
String imgURL = docsURI + path + "/" + name;
Link linkBanner = new Link("lnkBanner");
linkBanner.setTarget("_blank");
linkBanner.setOnClientClick("javascript:EPCM.doNavigate('"URL"')");
Image oImgBanner = new Image(name,"Banner");
oImgBanner.setTooltip("Ayuda");
linkBanner.addComponent(oImgBanner);
request.putValue("linkBanner",linkBanner);
request.putValue("name",name);
request.putValue("URL",URL);
request.putValue("imgURL",imgURL);
request.putValue("RefreshTime",RefreshTime);
this.setJspName("ZbannersRotatives.jsp");
Hi,
there is a possibility to make a request to the server without refresh. You can use the XMLHttpRequest object.
1. create an AbstractPortalComponent component, that will return the desired output into the response (image with link). Let's call this component DataComponent.
2. create a component, that will output a DIV object with ID for example "myDivId" and a Javascript, that will periodically call a JS function (some JS <i>setTimeout(JsFunctionToCall(), waitTimeInMiliseconds)</i>). In this function you will create a XMLHttpRequest object (different for Mozilla and MSIE):
var xmlhttp = null;
// not MSIE
if (window.XMLHttpRequest)
xmlhttp=new XMLHttpRequest();
// MSIE
else if (window.ActiveXObject)
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
now prepare the JS function that handles the output (takes the output from XMLHttpRequest object and puts it as is into the DIV contents):
xmlhttp.onreadystatechange = function() {stateXMLDocChanged();}
then set up (dataURL is the URL to DataComponent):
xmlhttp.open("POST",dataUrl,true);
...and get the data:
if (window.XMLHttpRequest)
xmlhttp.send(null);
else
xmlhttp.send();
Now create the function that fetches the data and puts it into the DIV contents (get the DIV object with id 'myDivId' == myDiv)
stateXMLDocChanged(){
myDiv.innerHTML=g_xmlhttp.responseText;
This is just a draft of a possible solution. You can see the concept working in our "EFP portal" <a href="http://www.szif.cz">www.szif.cz</a> (there is only one HTML for the output - no frames, no IFrames, but the 'iviews' are refreshed only 'locally').
Hope this helps you a bit,
Romano
PS: and yes, <a href="http://www.szif.cz">www.szif.cz</a> is a real SAP Portal
Similar Messages
-
I did not deactivate a photoshop cs6 before there was a new "C" hard drive installed on my computer and a Win7 Pro fresh install too. How can I activate photoshop on the new hardware if I can't deactivate it on the old hardware that is no longer available? Any help will be appreciated.
If it's the same machine (same CPU) there should not be any need to activate. The actiovation is tied to your CPU.
If you run into problems, then:
Unfortunately, only Adobe customer service can assist you with your issue. These are user forums; you are not addressing Adobe here.
Click on the link below, and after that click on "Still need Help? Contact us."
Then on the next page, click Chat
There is also a phone option. 1 (800) 833-6687
http://helpx.adobe.com/contact.html?step=PHXS_downloading-installing-setting-up_licensing- activation -
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
My iPad (version 1, IOS 5.1) has quit connecting with the store. I am unable to update or buy any app. I did a reboot and a reset with deleting the data. I can not find anything in support for this problem. Any help will be appreciated.
-
When I copy a CD onto my macbook pro I sometimes get several songs that are "out" of the album. How do I get them all together in one album? Any help will be much appreciated as I cannot seem to find the solution to this problem in the troubleshooting section of iTunes.
Generally all you need do is give tracks from the same album a common Album Artist. See Grouping tracks into albums. The images need an update but the basic info. still holds.
tt2 -
I have a 5s phone. How do I download ALL of the photos from my phone? When I downloaded all of them, just the photos on Camera Roll were downloaded. The photos in the folders were still there. Any help will be appreciated. Rosemary
tonefox
What about photos downloaded from emails?
Rosemary -
Criptography in WAS - Help will be rewarded
hello guys,
i need help. I want to crypt information on a bsp app and then encrypt it. I find the way to crypt the data with some function module located on WAS that use md5 or sha1 algorithm, but i didn't find the way to encrypt it, coz' the function module that i use is a one way crypter. So i have the crypted data (HASH) and its digital signature, How can i uncrypt it on WAS??? can anyone help me with this???....thanx in advance HELP WILL BE REWARDED.i did it
-
I am using Mac, I have downloaded the Creative Cloud but when it comes to downloading an App, in the Apps tab a "Download Error" comes up, saying I should contact customer support. Any help will be appreciated.
sign out and then back in to your cc desktop app.
if that fails to resolve the problem, Sign in, activation, or connection errors | CS5.5 and later -
I have two problems with my 2012 13” MacBook Pro.
Gray screen shows at startup
Randomly disconnects from network.
Any help will be greatly appreciated.First, open Terminal in your Utilities folder and paste this into the prompt line:
sudo update_dyld_shared_cache
Press RETURN. You will be prompted to enter your admin password which will not be echoed to the screen. Press RETURN again.
Next, boot the computer into Safe Mode.
Next, do the following:
Reinstalling Lion/Mountain Lion Without Erasing the Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless. -
Since upgrading to lion and updating HP software my printer ( HP photosmart D5160 driver 3.3.0) will not print to CD/DVD,when I try it says "your printer does not support CD printing". any help will be welcome.
I see those are old posts above but I'm just now having the same problems. I have the original software CD that came with my Photosmart D5160 printer but I can't load it. I get the message "You can't open the application "HP Installer" because PowerPC applications are no longer supported". So I don't have that going for me, which is not nice! But I couldn't really care less about that if I can just find a CD labeler software that will print from my Mac to the D5160. I'd rather by new CD labeler software than a new printer. I've tried a few free CD labeler software downloads, including iWinSoft Label Maker, but nothing has worked so far. I think there's an answer somewhere; I'm able to print documents on regular paper using this printer, but I only bought it (many years ago) to print CD labels and some pictures. It's been used only sparingly and it's been in storage since I bought my Mac 3 years ago, mainly because a I got a free printer with my purchase. Any help is vertainly appreciated!!!
-
Hi, I recently downloaded photoshop elements for dummies from ibooks to use on my ipad, the book refers to pictures throughout however what are supposed to be pics and diagrams only show up as a ?. Im unsure why and dont know how to get the pictures to show. Any help will be greatly appreciated.
Thanks
DanielYou can use these steps to check if images are blocked:
*Open the web page that has the images missing in a browser tab.
*Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
*Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
*Go to the <i>Media</i> tab of the "Tools > Page Info" window.
*Select the first image link and scroll down through the list with the Down arrow key.
*If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.
*http://kb.mozillazine.org/Images_or_animations_do_not_load
*https://support.mozilla.com/kb/Images+or+animations+do+not+show -
The Macbook Pro 13, late 2009 will not start past the grey Apple Logo screen? Any help will be most welcome? Thanks
Have you tried booting with the install disc that came with your computer?
Find it and then run Disk Utility to verify your hard drive. If errors are found, try to repair the disk.
It sounds as if the hard drive might be failing.
Clinton -
Hi, any help will be appreciated. i use AOL for my email where I have about 300 addresses shown but when I use the 'mail' function on my Ipad only a small percentage of those addresses appear..why is that and how can I get my full address book loaded?
Hi, any help will be appreciated. i use AOL for my email where I have about 300 addresses shown but when I use the 'mail' function on my Ipad only a small percentage of those addresses appear..why is that and how can I get my full address book loaded?
-
Was able to bluetooth one time to play scrabble on our two iPad 1's, but have not been able to do so again. Both are searchable, but are not able to find each other. Any help will be appreciated. Thanks.
Both need to be in the lobby, and searchable at the same time. Also, if either has been paired with a keyboard or headphone since you played, go into settings, and make sure those devices are unpaired, and not interfering with the process.
-
I bought an IPAD for my mom and she is unable to make her ID on Itunes just because he doesn't have a credit card?? any help will be highly apprecaited ...she is old and she will probably use skype or will do some browsing....
You can create a new account without a credit card.
Refer to article here:
Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
http://support.apple.com/kb/HT2534
However, you cannot change your exisiting account into a "NONE" payment account -
I had to replace my hard drive. Need to re-install office and pages and cannot find the cds. Any help will be appreciated
Replacement System Discs can be obtained from Apple's Customer Support - US (800) 767-2775 for a nominal fee. You'll need to have the model and serial number of your Mac available.
If you're not in the US, you may need to go through the regional Apple Store that serves your location to find the contact number - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html
Or you can purchase the applications from an Apple retail outlet, App Store or the Apple online store.
Maybe you are looking for
-
Multiple DMVPN Instances on Same WAN Interface
Hi Folks, Is it possible to run Multiple DMVPN Instances on a single WAN Interface ? Can we for example configure 3 Tunnels on a Router using one same WAN Interface but running separate EIGRP Instances for each Tunnel ? Kindly let me know , Alioune
-
Hi Previously when using a form we were able to make changes to a form after the document was signed. In this way we could save a document and open it and make a slight change ( add a new name) and then save that document without having to fill it ou
-
Can Standalone OC4j 11g TP4 be runned on RedHat Linux ?
Hi , i have a web application(ADF/ADF Faces) developed with JDev 11g TP4. Iwant to install and run it on Standalone OC4J 11g, under Linux RedHat OS. In the OC4j release note it's written "Requires SUN JDK 5.0.11". However i want to ensure that the on
-
"Error initializing Java Runtime Environment. You may need to re-install Flash"
Hi, I get this error starting up Flash Professional CS5. I don't even have to create/open a Flash file. I already re-installed, but to no avail. Any suggestions? TIA Steven
-
Is there a problem with acrobat dc and android? This update has essentially made adobe UNUSABLE on my nook hd+. When I try to sign in I am not able to do so..The sign in button does NOTHING..