Display mode in WEB layout
Hi,
In the folder,a user can access layout in display mode by use t code UPSPMD, the other use can still do the planning bu use t code UPSPL,
How can we achived the same goal in the web layout?
Thanks,
Hi Nataraj,
Thanks for your reply. Here is how I test it.
I have two web applications which is indetical except under one of them, the "only ready for output" is set to trune and the other one is set to false.
Now I open one web application, and when I tried to open the second one, I get the message indicate that the planning area is locked.
I did another test again. this time I tried to open the same application twice- this application's "only ready for output" is set to true, it still fail when I tried to open the same application twice,
Do I have to configure some other attributes? I am also in BW3.5 version.
Similar Messages
-
Displaying Report in Web layout
Hello All,
Can anyone please tell me how to display reports in web layout during runtime. I've created a report in month_report.jsp, having both Web Layout & Paper Layouts. At runtime when I call the report the Paper Layout version is getting displayed. Is there any extra parameter I've to pass.
For Example if I give the following address
http://host-110:7778/reports/rwservlet?&report=month_report.jsp&destype=cache&desformat=htmlcss&userid=admin/test@testing&p_month=JANUARY
I get to see the Paper Layout version of the report. What I want is the Web layout. Is there any thing or any setting I've change in the Reports server. Kindly help me out on this.
Regards,
Arun.VThanks Frank,
No one seems to giving me a reply in the reports forums. They are hard to come by. Could you please direct me to some post which might be helpfull. I just want to know whether there's something wrong with the way I'm calling the report... May be thats the reason that I'm getting the Paper Layout as output instead of Web Layout.
Regards,
Arun.V -
Paper Layout displayed instead of Web Layout
Hello All,
I've developed a report in Reports 10g and saved it as a jsp file, having both paper & web layout. I've also designed a form in Oracle forms 10g with a list item displaying the list of all reports available. I've written the following piece of code to run the report selected.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(200);
rep_status VARCHAR2(20);
rep_location varchar2(100);
pl_id paramlist;
d date;
DF VARCHAR2(10);
BEGIN
IF(:rbg=1) then
df:='pdf';
else
df:='htmlcss';
end if;
repid := find_report_object(:REPORT_LIST);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,df);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_devserver');
IF(:report_list NOT IN ('APTC_ANNUAL_RPT')) THEN
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=YES P_USER_CONNECT=ADMIN/PINNET@PINNET P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
v_rep := RUN_REPORT_OBJECT(repid);
ELSE
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=NO P_USER_CONNECT=ADMIN/PINNET@PINNET P_SERVER_NAME=rep_devserver P_ACTION=http://pin-150:7778/reports/rwservlet?');
v_rep := RUN_REPORT_OBJECT(repid);
END IF;
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://pin-150:7778/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_devserver','_blank');
ELSE
message('Error when running report');
END IF;
END;
Now after this piece of code gets executed I get to see a JSP report in Paper Layout format. But I want the Web Layout to be displayed. Can anyone please tell me what I've to do to get the desired output in Web Layout.
Reagards,
Arun.VHello Francois,
Thanks for the reply. As per my code "df" actually is a variale which stands for the format of the output, which is determined by the users selection(in this case a radio group) in the form. DF stands for either "pdf" or "htmlcss".
The following is the code I've used to determine the users preference which can be found within my original posting.
DECLARE
df varchar2(10);
BEGIN
IF(:rbg=1) then
df:='pdf';
ELSE
df:='htmlcss';
END IF;
END;
Kindly point out to me if there are any errors in the way I've written this code.
Thanks & Regards,
Arun.V -
Displaying a Report in Web Layout
Hello All,
Can anyone please tell me how to display reports in web layout during runtime. I've created a report in month_report.jsp, having both Web Layout & Paper Layouts. At runtime when I call the report the Paper Layout version is getting displayed. Is there any extra parameter I've to pass.
For Example if I give the following address
http://host-110:7778/reports/rwservlet?&report=month_report.jsp&destype=cache&desformat=htmlcss&userid=admin/test@testing&p_month=JANUARY
I get to see the Paper Layout version of the report. What I want is the Web layout. Is there any thing or any setting I've change in the Reports server. Kindly help me out on this.
Regards,
Arun.VThanks for your reply dsegard,
I tried out your suggestion. It seems the I'm able to access the jsp report. But I'm getting the following error on screen.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'http://host-150/test/monthly_rpt.jsp'. Line ...
<%@ taglib uri="/WEB-INF/lib/reports_tld.jar" prefix="rw" %>
-^
I checked by accessing a simple jsp page without a tag library. It's worked fine. I also checked to see whether the corresponding jar file was missing from the library.But it wasn't. Could you please point out what's causing this error.
Regards,
Arun.V -
Hi,
I am using Report Builder:10.1.2.0.2 installed on Windows XP (Service Pack 3) and developed simple report. We are using Oracle E-Business Suite R12 and developed report by connecting to the EBS database.
I have created "Data Model" and designed "Paper Layout". After compiling the report when i tried to run report using "Paper Layout" report generates the report in Paper layout but similarly if i try to to run the report using "Web Layout" then it opens blank Internet Explorer page. I want to see same output with Paper Layout is displaying using Web Layout too. Please guide me with steps i need to perform to achieve the requirement..
Regards,
PriyankaHello,
The web layout (that is, the web source) is primarily used for the .jsp format for added flexibility via the web for web developers using Oracle Reports.
You will need to add your own code to the "Web Source" in order for anything to be displayed in the web layout. Additionally, any changes made to the Paper Layout will not cross over to the Web Layout per confirmation with Development. You may use the rw:include tag in the Web Source (see Help) to obtain some of the paper layout in your web layout.
Having a rdf file with only a paper layout, does not mean that this report when run will not display in a web page.
You can still perform the following with Oracle Reports 9i or higher and use the .rdf to display the paper layout from the web:
http//webserver.domain:7779/reports/rwservlet?report=you_report.rdf&destype=cache&desformat=html&userid=scott/tiger@db
Kind regards,
Alex
If someone's answer is helpful or correct please mark it accordingly. -
Display text value characteristics in WEB-Layout
Hi Experts,
is it possible to display the text of a characteristic (NOT a variable) instead of the code in WEB Layout?
Thanks to all.
Fabio.Ok, i solved the (false) problem...for the few people who don't know:
in the def. of planning layout go to tab lead column and chose key/definition in display column for the infoObject...generate the layout and go back to the first screen in planning layout edit and select the type of text you want to display (short, medium or long). -
Displaying Custom images in Web Layout
Hello all,
Can anyone please tell tell me how to display a custom .gif image in web layout instead of the standard gif(rwbeige_logo.gif). Where do I've to store the image, for it to be detected during runtime. Thanks in advance.
Reagards,
Arun.Vfor where you store the image you can store it in the database table in the blob column such as. for the report layaut containing image take the following:
- in the report layaut you can create a report selecting a table that containing the blob column.
- in the report layaut, modify the property of the item that present the database blob column to image.
soufiane -
How to display clob/blob in the web layout using Reports9i
Hi,
I've created a report that selects both a clob and blob datatype in the query. However, when I run the report using the 'Run Web Layout' tool no data is displayed for these columns. Does the <rw:field> tag support such datatypes ?.
Regards,
ChrisHi Chris,
Reports9i supports both BLOB and CLOB in both paper as well as web layout. Pl make sure that in the column properties that you want to display, you have selected the "File Format" correctly (to do this, go to data model > column > property inspector > file format). Eg, you can select "text", "image" etc depending on what you have stored in the column. Also, when you want to display an image in the web layout, you will have to write containsHtml="yes" inside your <re:field> tag.
Navneet. -
Landscape Paper Layout - Won't Display on the Web
I am trying to display a report (paper layout only) on the web using desformat=pdf. To test if the report could be viewed via the web, I created a simple version and could view it in my browser w/ no problem; however, after adding some columns and making some formatting changes, including making the report display as landscape, the report will no longer display in my browser. Instead, the browser window just displays a blank white space w/ the little image icon in the top left corner. (The one that's the little box with the red square, black circle and blue triangle in it.)
Again, this is not a web layout, but the paper layout of the report, and is meant to open up as a pdf. It is also a must that I display this report as landscape rather than portrait.
What can I do to make this report display correctly in the user's browser?Hi Brice,
I just tested this with a very simple report in landscape (11" x 8.5"). The report appeared correctly in the browser, and I also printed it to confirm it comes out in landscape. I used Reports 10g.
So I think there may be some other problem with your report. For testing, you can leave the report as is (formatting, data etc), but change the page dimensions to portrait, and see if that comes out properly in your browser.
You can also test this - send the landscape report to file (destype=file) instead of displaying it on the browser (destype=cache), and see if the file come out fine.
What is the Report version you are using?
Navneet. -
Switch between Edit and Display mode in an input layout?
Hi,
I want to create a button in my planning layout which is input ready, that makes it able to change between display mode and edit mode.
I'm on BI 7.0. And I am using Analyzer/Workboook.
Is this possible using 'SET_DATA_ENTRY_MODE' command?
If Yes, Where should I put this command ? I can't find this in Button Properties.
Please explain in detail.
Thanks,
Srini.Hi,
This is the correct command. In the button properties, you need to select 'command via command wizard'. There you should select this command and customize it according to your requirement (on/off). -
View temporary data in Web layout during file upload in Integrated Planning
Hi Experts,
When using File Upload funcationality, in Integrated Planning,
I have a requirment, How user can view the data in the web layout?
After data display user can make changes in the data and on click of Save the updated data is saved in cube.
If any one has come across this requirment can you please help me out how things can be carried out?
If "how to implement" document is present can you please provide me the link.
Thanks and Regards,
AbhiHi Abhi,
I assume, you are using WAD for this..
Please do the following: (Please note the the cube has to be in Plan mode while executing WAD)
1. Create a input enable query (through query designer) on th eaggregate level (the one you are using for IP). You might need to create filers for the aggregate level. these filters can also be used in the query.
2. In the WAD, pull this query.
3. Create a button in WAD and check for the planning functionalities readily available that you can use in WAD. One of the planning functionality is SAVE Data. This will save any data which is entered by the user.
4. In the same button integrate a Refresh Data command after the SAVE data. This will automatically refresh the query and pull the updated/changed data from the cube.
This should work. Please write back in case of any clarification.
Regards, Rishi -
Not Able to run Report 10g through Web Layout Option
I have installed Oracle Developer 10g on my Laptop, I am able to run form, Report(In paper layout) successfully but when I try to run Report in Web Layout Mode, I am getting following error, Is there any setting is missing, could you provide some hint that would help me in resolving my issue.
Thanks
Kamlesh
500 Internal Server Error
OracleJSP: oracle.jsp.provider.JspCompileException:
Errors compiling:C:\Documents and Settings\kamlesh\Local Settings\Temp\docroot\3000\default\defaultWebApp\persistence\_pages\\_MODULE1001201432.java
javac: invalid flag: Files\Java\j2re1.4.2_01\lib\ext\QTJava.zip;;C:\Dev10g\j2ee\home\lib/ejb.jar;C:\Dev10g\j2ee\home\lib/servlet.jar;C:\Dev10g\j2ee\home\lib/ojsp.jar;C:\Dev10g\j2ee\home\lib/jndi.jar;C:\Dev10g\j2ee\home\lib/jdbc.jar;C:\Dev10g\j2ee\home\iiop.jar;C:\Dev10g\j2ee\home\iiop_gen_bin.jar;C:\Dev10g\j2ee\home\lib/jms.jar;C:\Dev10g\j2ee\home\lib/jta.jar;C:\Dev10g\j2ee\home\lib/jmxri.jar;C:\Dev10g\j2ee\home\lib/javax77.jar;C:\Dev10g\j2ee\home\lib/javax88.jar;C:\Dev10g\j2ee\home\../../opmn/lib/ons.jar;C:\Dev10g\j2ee\home\../../opmn/lib/optic.jar;C:\Dev10g\j2ee\home\../../lib/dms.jar;C:\Dev10g\j2ee\home\../../dms/lib/dms.jar;C:\Dev10g\j2ee\home\../../diagnostics/lib/ojdl.jar;C:\Dev10g\j2ee\home\../../dms/diagnostics/lib/ojdl.jar;C:\Dev10g\j2ee\home\lib/connector.jar;C:\Dev10g\j2ee\home\lib/bcel.jar;C:\Dev10g\j2ee\home\lib/cos.jar;C:\Dev10g\j2ee\home\lib/jsse.jar;C:\Dev10g\j2ee\home\../../oracle/lib/jsse.jar;C:\Dev10g\j2ee\home\lib/jnet.jar;C:\Dev10g\j2ee\home\lib/jcert.jar;C:\Dev10g\j2ee\home\lib/activation.jar;C:\Dev10g\j2ee\home\lib/mail.jar;C:\Dev10g\j2ee\home\../../javavm/lib/jasper.zip;C:\Dev10g\j2ee\home\../../lib/xmlparserv2.jar;C:\Dev10g\j2ee\home\../../oracle/lib/xmlparserv2.jar;C:\Dev10g\j2ee\home\../../jlib/orai18n.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/orai18n.jar;C:\Dev10g\j2ee\home\lib/jaxp.jar;C:\Dev10g\j2ee\home\lib/jaas.jar;C:\Dev10g\j2ee\home\jazn.jar;C:\Dev10g\j2ee\home\../../jdbc/lib/classes12dms.jar;C:\Dev10g\j2ee\home\../../oracle/jdbc/lib/classes12dms.jar;C:\Dev10g\j2ee\home\../../jdbc/lib/nls_charset12.jar;C:\Dev10g\j2ee\home\../../oracle/jdbc/lib/nls_charset12.jar;C:\Dev10g\j2ee\home\jaxb-rt-1.0-ea.jar;C:\Dev10g\j2ee\home\../../soap/lib/soap.jar;C:\Dev10g\j2ee\home\../../webservices/lib/wsserver.jar;C:\Dev10g\j2ee\home\../../webservices/lib/wsdl.jar;C:\Dev10g\j2ee\home\../../rdbms/jlib/aqapi.jar;C:\Dev10g\j2ee\home\lib/jem.jar;C:\Dev10g\j2ee\home\../../javacache/lib/cache.jar;C:\Dev10g\j2ee\home\lib/http_client.jar;C:\Dev10g\j2ee\home\../../jlib/jssl-1_1.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/jssl-1_1.jar;C:\Dev10g\j2ee\home\../../jlib/repository.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/repository.jar;C:\Dev10g\j2ee\home\lib/jaasmodules.jar;C:\Dev10g\j2ee\home\../../sqlj/lib/runtime12ee.jar;C:\Dev10g\j2ee\home\../../sqlj/lib/translator.jar;C:\Dev10g\j2ee\home\lib/crimson.jar;C:\Dev10g\j2ee\home\../../jlib/ojpcs.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/ojpcs.jar;C:\Dev10g\j2ee\home\../../jlib/ojpcp.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/ojpcp.jar;C:\Dev10g\j2ee\home\../../jlib/ojpse.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/ojpse.jar;C:\Dev10g\j2ee\home\../../jlib/ojpsmime.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/ojpsmime.jar;C:\Dev10g\j2ee\home\../../jlib/ojpcms.jar;C:\Dev10g\j2ee\home\../../oracle/jlib/ojpcms.jar;;;C:\Documents and Settings\kamlesh\Local Settings\Temp\docroot\WEB-INF\lib\reports_tld.jar;C:\Documents and Settings\kamlesh\Local Settings\Temp\docroot\WEB-INF\classes;C:\Documents and Settings\kamlesh\Local Settings\Temp\docroot\WEB-INF\lib\reports_tld.jar;.
Usage: javac
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath Specify where to find user class files
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-d Specify where to place generated class files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate class files for specific VM version
-help Print a synopsis of standard optionsHello,
The problem seems to be a space in the Classpath :
javac: invalid flag: Files\Java\j2re1.4.2_01
Files\Java\j2re1.4.2_01 seems to be the end of c:\Program Files\Java\j2re1.4.2_01 ..
Check REPORTS_CLASSPATH
regards -
Depriciation key and useful life periods in asset master should in display mode only
Hi all
At the time of creation asset master AS01 we are given the Asset class, company code and similar of asset (1) then we click enter button we will get Create asset: master data screen here in general tab we enter the description and in time dependent tab we enter cost center manually
But
When we click on Depreciation tab here the Depreciation key and use life fields are automatically come with Dep.key(ABC) and use life(15) (Because we maintained in OAYZ)
Here user have a chance to change the Dep.key(ABC) and use life(15).so my requirement is these two fields are display with only display mode .
User don’t have chance to modify this.Hi Anil,
The screen layout for Asset and its depreciation tab are different. You have to make these fields as Display only in the screen layout. This can be done using T-Code AO21. Below are the screenshots for the path and screen layout for your reference. This should solve your issue
Regards
Pankaj Pareek -
How to call the JSP(Web layout) instead of paper layout...
Hi,
Iam using Reports 10g. I have created a simple employees report. I have added a listbox in the jsp page by adding small Html and javascript code like below.
<form action="http://www.wwt.com/reports/rwservlet?10000_reports_listing&p_extranet=p_extranet" name="First" method="post">
<select name="p_extranet" onChange="First.submit()" >
<rw:foreach id="RGSOURCE" src="G_SOURCE">
<rw:getValue id="mysource" src="SOURCE"/>
<option value=""><%= mysource %>
</rw:foreach>
</select>
</form>
When I run this report in the report builder as Web layout, Listbox is displayed with values inside.
But when I move it to Apps server and run it through URL,
listbox is disappeared. I think report is running the Paper layout instead of weblayout ??????????
Could you please tell me what is the problem and How to force the Weblayout or JSP to run ?
Thanks.Hi,
You are running a jsp report through rwservlet. In this case paper layout will be displayed. You have to deploy your jsp as web report to get the web layout. Please refer to the doc below, which describes how to deploy the web report.
http://download-uk.oracle.com/docs/html/B10314_01/pbr_run.htm#1011901
To run the jsp report, URL may look like
http://www.wwt.com/reports/<jsp name>?<parameter list>
Hope this helps
Vinayak -
How to add a scrolling text to display in a web part?
Hi,
I have 3 files in a doc library that is been referenced by a web part xml viewer in a page. I am referring only the xml file.
WarningMessage.xml
<script type="text/javascript" src="http://icare/sites/IT/tst/XmlWebParts/WarningMessage/WarningMessage.js"></script>
WarningMessage.js
<script type="text/javascript">
<
//set the marquee parameters
function init() { rtl_marquee.start(); }
var rtl_marquee_Text = 'JavaScript scrolling text';
var rtl_marquee_Direction = 'left';
var rtl_marquee_Contents='<span style="font-family:Comic Sans MS;font-size:12pt;white-space:nowrap;">' + rtl_marquee_Text + '</span>';
rtl_marquee = new xbMarquee('rtl_marquee', '19px', '90%', 6, 100, rtl_marquee_Direction, 'scroll', rtl_marquee_Contents);
window.setTimeout( init, 200);
</script>
and
xbMarquee.js
document.writeln('<style type="text/css">');
document.writeln(' div.marqueecenter1 { text-align: center; }');
document.writeln(' div.marqueecenter2 { margin- margin-right: auto; }');
document.writeln(' div.marqueeleft1 { text-align: left; }');
document.writeln(' div.marqueeleft2 { margin- margin-right: auto; }');
document.writeln(' div.marqueeright1 { text-align: right; }');
document.writeln(' div.marqueeright2 { margin- margin-right: 0; }');
document.writeln('</style>');
function xbMarquee(id, height, width, scrollAmount, scrollDelay, direction, behavior, html)
this.id = id;
this.scrollAmount = scrollAmount ? scrollAmount : 6;
this.scrollDelay = scrollDelay ? scrollDelay : 85;
this.direction = direction ? direction.toLowerCase() : 'left';
this.behavior = behavior ? behavior.toLowerCase() : 'scroll';
// this.name = 'xbMarquee_' + (++xbMarquee._name);
this.name = id;
this.runId = null;
this.html = html;
this.isHorizontal = ('up,down'.indexOf(this.direction) == -1);
if (typeof(height) == 'number')
this.height = height;
this.heightUnit = 'px';
else if (typeof(height) == 'string')
this.height = parseInt('0' + height, 10);
this.heightUnit = height.toLowerCase().replace(/^[0-9]+/, '');
else
this.height = 100;
this.heightUnit = 'px';
if (typeof(width) == 'number')
this.width = width;
this.widthUnit = 'px';
else if (typeof(width) == 'string')
this.width = parseInt('0' + width, 10);
this.widthUnit = width.toLowerCase().replace(/^[0-9]+/, '');
else
this.width = 100;
this.widthUnit = 'px';
// xbMarquee UI events
this.onmouseover = null;
this.onmouseout = null;
this.onclick = null;
// xbMarquee state events
this.onstart = null;
this.onbounce = null;
var markup = '';
if (document.layers)
markup = '<ilayer id="' + this.id + 'container" name="' + this.id + 'container" ' +
'height="' + height + '" ' +
'width="' + width + '" ' +
'clip="' + width + ', ' + height + '" ' +
'>' +
'<\/ilayer>';
else if (document.body && typeof(document.body.innerHTML) != 'string')
markup = '<div id="' + this.id + 'container" name="' + this.id + 'container" ' +
'style=" ' +
'height: ' + this.height + this.heightUnit + '; ' +
'width: ' + this.width + this.widthUnit + '; ' +
'clip: rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px); ' +
'">' +
'<div id="' + this.id + '" style="' +
(this.isHorizontal ? 'width:0px;' : '') + // if we scroll horizontally, make the text container as small as possible
'">' +
(this.isHorizontal ? '<nobr>' : '') +
this.html +
(this.isHorizontal ? '<\/nobr>' : '') +
'<\/div>' +
'<\/div>';
else
markup = '<div id="' + this.id + 'container" name="' +
this.id + 'container" ' +
'style=" overflowY: visible; ' +
'height: ' + this.height + this.heightUnit + '; ' +
'width: ' + this.width + this.widthUnit + '; ' +
'clip: rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px); ' +
'">' +
'<\/div>';
document.write(markup);
window[this.name] = this;
// Class Properties/Methods
xbMarquee._name = -1;
xbMarquee._getInnerSize = function(elm, propName)
var val = 0;
if (document.layers)
// navigator 4
val = elm.document[propName];
else if (elm.style && typeof(elm.style[propName]) == 'number')
// opera
// bug in Opera 6 width/offsetWidth. Use clientWidth
if (propName == 'width' && typeof(elm.clientWidth) == 'number')
val = elm.clientWidth;
else
val = elm.style[propName];
else
//mozilla and IE
switch (propName)
case 'height':
if (typeof(elm.offsetHeight) == 'number')
val = elm.offsetHeight;
break;
case 'width':
if (typeof(elm.offsetWidth) == 'number')
val = elm.offsetWidth;
break;
return val;
xbMarquee.getElm = function(id)
var elm = null;
if (document.getElementById)
elm = document.getElementById(id);
else
elm = document.all[id];
return elm;
xbMarquee.dispatchUIEvent = function (event, marqueeName, eventName)
var marquee = window[marqueeName];
var eventAttr = 'on' + eventName;
if (!marquee)
return false;
if (!event && window.event)
event = window.event;
switch (eventName)
case 'mouseover':
case 'mouseout':
case 'click':
if (marquee[eventAttr])
return marquee['on' + eventName](event);
return false;
xbMarquee.createDispatchEventAttr = function (marqueeName, eventName)
return 'on' + eventName + '="xbMarquee.dispatchUIEvent(event, \'' + marqueeName + '\', \'' + eventName + '\')" ';
// Instance properties/methods
xbMarquee.prototype.start = function ()
var markup = '';
this.stop();
if (!this.dirsign)
if (!document.layers)
this.containerDiv = xbMarquee.getElm(this.id + 'container')
if (typeof(this.containerDiv.innerHTML) != 'string')
return;
// adjust the container size before inner div is filled in
// so IE will not hork the size of percentage units
var parentNode = null;
if (this.containerDiv.parentNode)
parentNode = this.containerDiv.parentNode;
else if (this.containerDiv.parentElement)
parentNode = this.containerDiv.parentElement;
if (parentNode &&
typeof(parentNode.offsetHeight) == 'number' &&
typeof(parentNode.offsetWidth) == 'number')
if (this.heightUnit == '%')
this.containerDiv.style.height =
parentNode.offsetHeight * (this.height/100) + 'px';
if (this.widthUnit == '%')
this.containerDiv.style.width =
parentNode.offsetWidth * (this.width/100) + 'px';
markup += '<div id="' + this.id + '" name="' + this.id + '" ' +
'style=" ' +
//(this.isHorizontal ? 'width:0px;' : '') + // if we scroll horizontally, make the text container as small as possible
'" ' +
xbMarquee.createDispatchEventAttr(this.name, 'mouseover') +
xbMarquee.createDispatchEventAttr(this.name, 'mouseout') +
xbMarquee.createDispatchEventAttr(this.name, 'click') +
'>' +
(this.isHorizontal ? '<nobr>' : '') +
this.html +
(this.isHorizontal ? '<\/nobr>' : '') +
'<\/div>';
this.containerDiv.innerHTML = markup;
this.div = xbMarquee.getElm(this.id);
this.styleObj = this.div.style;
else /* if (document.layers) */
this.containerDiv = document.layers[this.id + 'container'];
markup =
'<layer id="' + this.id + '" name="' + this.id + '" top="0" left="0" ' +
xbMarquee.createDispatchEventAttr(this.name, 'mouseover') +
xbMarquee.createDispatchEventAttr(this.name, 'mouseout') +
xbMarquee.createDispatchEventAttr(this.name, 'click') +
'>' +
(this.isHorizontal ? '<nobr>' : '') +
this.html +
(this.isHorizontal ? '<\/nobr>' : '') +
'<\/layer>';
this.containerDiv.document.write(markup);
this.containerDiv.document.close();
this.div = this.containerDiv.document.layers[this.id];
this.styleObj = this.div;
if (this.isHorizontal && this.height < xbMarquee._getInnerSize(this.div, 'height') )
this.height = xbMarquee._getInnerSize(this.div, 'height')
this.containerDiv.style.height = this.height + this.heightUnit;
this.containerDiv.style.clip = 'rect(0px, ' + this.width + this.widthUnit + ', ' + this.height + this.heightUnit + ', 0px)';
// Start must not run until the page load event has fired
// due to Internet Explorer not setting the height and width of
// the dynamically written content until then
switch (this.direction)
case 'down':
this.dirsign = 1;
this.startAt = -xbMarquee._getInnerSize(this.div, 'height');
this._setTop(this.startAt);
if (this.heightUnit == '%')
this.stopAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
else
this.stopAt = this.height;
break;
case 'up':
this.dirsign = -1;
if (this.heightUnit == '%')
this.startAt = this.height * xbMarquee._getInnerSize(this.containerDiv, 'height') / 100;
else
this.startAt = this.height;
this._setTop(this.startAt);
this.stopAt = -xbMarquee._getInnerSize(this.div, 'height');
break;
case 'right':
this.dirsign = 1;
this.startAt = -xbMarquee._getInnerSize(this.div, 'width');
this._setLeft(this.startAt);
if (this.widthUnit == '%')
this.stopAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
else
this.stopAt = this.width;
break;
case 'left':
default:
this.dirsign = -1;
if (this.widthUnit == '%')
this.startAt = this.width * xbMarquee._getInnerSize(this.containerDiv, 'width') / 100;
else
this.startAt = this.width
this._setLeft(this.startAt);
// this.stopAt = -xbMarquee._getInnerSize(this.div,'width')*2;
// this method does not work very well with FireFox. offsetWidth property used in this function returns the absolute width of the div container
// instead of the new offsetWidth when innerHTML is added or when the div becomes wider. To overcome this a new span element is added to
// the document body to measure the new offsetwidth and then it is removed.
var temp_span = document.createElement('span');
temp_span.id = 'span_' + this.div.id;
temp_span.innerHTML = this.html;
document.body.appendChild(temp_span);
this.stopAt = - temp_span.firstChild.firstChild.offsetWidth;
document.body.removeChild(temp_span);
break;
this.newPosition = this.startAt;
this.styleObj.visibility = 'visible';
this.newPosition += this.dirsign * this.scrollAmount;
if ( (this.dirsign == 1 && this.newPosition > this.stopAt) ||
(this.dirsign == -1 && this.newPosition < this.stopAt) )
if (this.behavior == 'alternate')
if (this.onbounce)
// fire bounce when alternate changes directions
this.onbounce();
this.dirsign = -this.dirsign;
var temp = this.stopAt;
this.stopAt = this.startAt;
this.startAt = temp;
else
// fire start when position is a start
if (this.onstart)
this.onstart();
this.newPosition = this.startAt;
switch(this.direction)
case 'up':
case 'down':
this._setTop(this.newPosition);
break;
case 'left':
case 'right':
default:
this._setLeft(this.newPosition);
break;
this.runId = setTimeout(this.name + '.start()', this.scrollDelay);
xbMarquee.prototype.stop = function ()
if (this.runId)
clearTimeout(this.runId);
this.runId = null;
xbMarquee.prototype.setInnerHTML = function (html)
if (typeof(this.div.innerHTML) != 'string')
return;
var running = false;
if (this.runId)
running = true;
this.stop();
this.html = html;
this.dirsign = null;
if (running)
this.start();
// fixes standards mode in gecko
// since units are required
if (document.layers)
xbMarquee.prototype._setLeft = function (left)
this.styleObj.left = left;
xbMarquee.prototype._setTop = function (top)
this.styleObj.top = top;
else
xbMarquee.prototype._setLeft = function (left)
this.styleObj.left = left + 'px';
xbMarquee.prototype._setTop = function (top)
this.styleObj.top = top + 'px';
I have nothing displaying in the web-part. How can I make this to work?This is how i was able to do it. Edit html source.
<div align="center"><marquee id='scroll_news4' bgcolor=#ff9966 "><font color="#000000" size="+1" ><strong>Outlook is down! IT is working on it! </strong></font></marquee></div>
<input type='Button' value='Stop' id ='b1' onClick='button_click()';>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function button_click()
if(document.getElementById('b1').value=="Start"){
document.getElementById('b1').value="Stop";
document.getElementById('scroll_news4').start();
}else{
document.getElementById('b1').value="Start";
document.getElementById('scroll_news4').stop();
// End -->
</script>
Maybe you are looking for
-
Will loading V2011 break Report Generation in V2010?
My report generation toolkit seems to have stopped working almost entirely. In V2010, the example "Generate Report From Template(Word).vi" will go as far as loading the Word file. After that it reports the error: (Error 1 occurred at NI_ReportGenerat
-
My iPod touch is permanently disabled and it says to connect my iPod to my iTunes yet when I do that, it tells me to type in pass code even though it's still disabled. i cant go to DFU mode cause my home button is broken PLEASE HELP ME GOD I MISS MY
-
WL 10 Upgrade Class Cast Exception
Hi, we are upgrading from WL 8.1 to 10.3 and are recieving the following exception when invoking the test of our web service. Any ideas? ...Ed java.lang.ClassCastException: weblogic.xml.saaj.DetailImpl cannot be cast to weblogic.xml.xmlnode.XMLNode <
-
The symbol in the calendar is Off
In the calendar the + symbol is off??
-
1:1 copy of notebook system on netbook
Hello guys, I have synchronised my complete system I'm using on my Thinkpad SL500 on an external hard disk. Now I want to restore the whole system on my Asus EeePC. As they are using completely different hardware I'm not sure whether this is possible