ADF 11G: opening PDF into new Window using Jasper Report
Hello, I am using JDev 11.1.1.5.0
I have a page into a bound Task FLow containing a table and a "print "button".
I am using Jasper Report to create a PDF document.
I want this document to be opened into a new Window when the user click on the button.
I've been reading several threads/blogs to do this but it is not working.
please help me out with the sample or some link where I can refer.
Thanks
Sanjeev
Hi All,
Today I checked and got the Reason why Server is getting shut down while closing the Report window.... this is just because of JasperViewer.
so while opening the JasperViewer to show the Report we need to pass the second parameter as False.
JasperViewer.viewReport(jasperPrint,false);k thanks for your update....
but still my actual problem exist....
I don't want to use JasperViewer to view the Report.
Like when I'm clicking on Button PDF Report is opening in the same Winodw.
response.setHeader("Content-Disposition",
"inline; filename=\"ReportFile.pdf\"");it will open as attachment if I'll use the below code and my ShowReport Button is getting disabled....
response.setHeader("Content-Disposition",
"attachement; filename=\"ReportFile.pdf\"");As in Page ShowReport Button is getting disabled so after exporting the Report I want to redirect to the page but getting Error like Illegal State Exception: Response Already Commiteed
Error Log:
java.lang.IllegalStateException: Response already committed
at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1608)
at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:834)
at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
at view.org.webcenter.sample.view.servlet.JasperServlet.doPost(JasperServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
at org.webcenter.sample.view.bean.JasperReport.callServlet(JasperReport.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:788)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:306)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)please help me out with the sample or some link where I can refer, its very important.
Thanks
Sanjeev
Edited by: Sanjeev on Jun 5, 2013 10:50 PM
Similar Messages
-
ADF in Jdev 10.1.3.2 - Wrong Page Opens When "Open Link in New Window" Used
We are former Oracle Forms/Reports developers and Struts developers in the early stages of a new project using ADF in JDeveloper 10.1.3.2. We are all new to this development environment (though not new to Java), so apologies in advance if this is trivial.
Our early work is based on samples extracted from Oracle's ADF Tutorial for Forms/4GL developers and is pretty simple at this stage. We have done little more than create a page layout and implemented skeletons of each page. As long as we click a link with the left mouse button, we can navigate from page to page as expected, no problem.
The strangeness starts when we right click a link, and select Open in New Window. For example:
(Note, all of this is taking place in our development environment: Jdeveloper running on our personal PCs / laptops, we have not even tried to deploy to an application server yet):
1. Open page 1.
2. Error 1: Right click button or tab to page 2, select Open in New Window. Page 1, not page 2, will open in the new window.
3. Close the new window so that the original page 1 is displayed.
4. Left click a link to navigate to page 2. Page 2 is display as expected.
5. On page 2, left click link back to page 1 (NOT the browser Back button). Page 1 is displayed as expected.
6. Error 2: Right click a link to page 3, select Open in New Window. Page 2, not page 3 will open in the new window.
7. Close the window containing Page 2. Left-click the link for page 3 and it will open as expected.
8. On page 3, left click a link back to page 1 (NOT the browser Back button). Page 1 is displayed as expected.
9. Now right-click the same link to page 3 as in step 6 and select open in new window and page 3 will display as expected.
The logs mention "Reusing a cached session application module instance" and I think this is where our trouble is. I considered turning this caching off (if possible) to see if it clears up the problem, but (a) I don't see where to do that and (b) it seems like we would want to use any caching features once we go to production.
I suspect we have some minor configuration error somewhere as it seems unlikely that ADF applications would all come with a "No opening in new windows allowed" warning. Or, maybe we are just missing the boat on why this shouldn't work. Either way, any useful guidance would be appreciated.
Thanks!Pravin
We dont get number datatype if you have SQL92 selected as SQL Flavour. So i dont think this would help. SQL TYPE Map is JAVA basically in my project. Do you want me to import some of oracle.jbo.domains specifically or something else you want me to do
regards
Amit -
Hi all
We want to generate a pdf at runtime in new window on click of a button suppose 'Show PDF'. We have written following code using MVC module.
In HANDLE_EVENT for the button we are calling a controller method say 'Preview_PDF' which is generating a pdf and it opens in a new window too.
But at the same time we are getting blank screen or view from where the event is triggered. I want the parent view should remain undisturbed and pdf should open in new window. Please advice where am I going wrong.
Code written is as follows
this is a controller method
method PREVIEW_OFFER_LETTER.
DATA: cparam TYPE ssfctrlop,
outop TYPE ssfcompop,
fm_name TYPE rs38l_fnam,
my_tabix TYPE sy-tabix,
file_size TYPE i,
bin_filesize TYPE i,
l_pdf_xstring type xstring,
lt_lines type table of tline,
ls_line type tline,
l_pdf_len type i,
tab_otf_data TYPE ssfcrescl,
tab_otf_final TYPE TABLE OF itcoo .
outop-tdprinter = 'PDF1'.
cparam-no_dialog = 'X' .
cparam-preview = space.
cparam-getotf = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZHRERF_OFFER'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = cparam
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = outop
user_settings = space
IMPORTING
DOCUMENT_OUTPUT_INFO =
job_output_info = tab_otf_data
JOB_OUTPUT_OPTIONS =
*TABLES
*it_tab = itab[]
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*********appending the otf data into the final table*********************
tab_otf_final[] = tab_otf_data-otfdata[].
converting OTF data into pdf data**************************
data : it_OTF type table of ITCOO.
it_OTF[] = tab_otf_final[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = l_pdf_len
BIN_FILE = l_pdf_xstring
TABLES
OTF = it_OTF
LINES = lt_lines
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
l_pdf_len = xstrlen( l_pdf_xstring ).
data: cached_response type ref to if_http_response.
create object cached_response type cl_http_response exporting add_c_msg = 1.
response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 10 ).
data: guid type guid_32,
display_url TYPE STRING,
value type string,
extension type string.
extension = 'pdf'.
concatenate 'attachment; filename='
runtime->application_name
extension
into value.
cached_response->set_header_field( name = 'Content-Disposition'
value = value ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid '.pdf' INTO display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
NAVIGATION->RESPONSE_COMPLETE( ).
endmethod.
Please adviceCapture the generated url for the PDF document into a variable w_url and then use the client click event of the button SHOW PDF to open it in a separate window.
something like this
<htmlb:button id="btn1" onClientClick="window.open(w_url)"
this should open your pdf in a new window.
hope this helps.
Cheers -
Open PDF in new window to bookmark
Is it possible to open a PDF in a new window to a bookmark? I tried the code below; the PDF opens in a new window but does not open to the 3rd page. Appears that "page=3" is getting removed from the URL when opening. Any ideas?
<af:goLink text="View PDF" id="gl1"
targetFrame="_blank"
destination="SMWebLogicAgent_conf_enu.pdf#page=3"/>
JDeveloper 11.1.1.7This offer Adobe doc http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf States that you can use '&' instead of the '#'.
Timo -
Firefox 5.0 does not open link into new window
Firefox 5.0 does not open link into new tab. I have a netbook also and tab options work fine, links open into a new window. However on this Dell it does not work. Tab options in Firefox and Google are set right, but don't work that way. Running Windows 7 on Dell, Windows Starter on netbook.
The Template .dwt file is only used locally by DW itself, there's no reason to upload it to the server unless you intend to share it with someone. You have to upload each individual page that the Template updates, every time you update the template and propagate that change across the child pages.
It would probably be better to use a server side include. That way, you could update one file then upload it and all of your pages would automatically carry that update...
SSI for Apache: http://www.javascriptkit.com/howto/ssi.shtml
PHP's version: http://www.tizag.com/phpT/include.php
It's especially handy if your site gets to the point where you have more than about 20 pages. -
Open Page in new window using hyper link
I put the window.open method on OnClick event of outputlink to open a page in new window, but the page is started in a old window.
How do I start the page in a new window.
My sintaxe of outputlink:
<h:outputLink binding="#{P0110.hyperlink1}" id="hyperlink1"
onclick="WindowObjectReference = window.open('about:blank', '','menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes');" value="http://www.sun.com/jscreator">
</h:outputLink>Hi,
Following are the steps to open a new window using the window.open method for the hyperlink component:
1. Drag and drop a hyperlink component onto the page
2. In the properties sheet go to the Value property and delete the value present there
3. Click on the ... button next to the onclick property
4. Enter the line of code given below:
window.open("http://www.yahoo.com","New window");
5. Save and run the project
On clicking on the hyperlink a new window will open with the www.yahoo.com page.
Hope this helps
Cheers
Giri :-)
Creator Team -
Open Page in new window using action link
How do I open a page in a new window, using action link ?
If I put javascript window.open in OnClick event, the action event ins�t called.Hi,
The window.open method can be used with the hyperlink component. So please try it with a hyperlink component.
Cheers
Giri :-)
Creator Team -
JavaScript needed - open PDF in new window
I'm creating an interactive PDF in InDesign CS5.
This PDF contains a button I've made that links to another, separate, PDF file.
This is all working fine - trouble is, when I click the button to open the second PDF file, the first PDF automatically closes.
Is there any way to make the second PDF open in a new window, keeping the first PDF open?
I've been told I need to add a JavaScript in Acrobat.
Your help would be much appreciated!Thanks - we're definately heading in the right direction now!
I'm not sure how to select "Open in: New Window" as specified.
In the button properties, there doesn't seem to be this sort of option (see image below).
Perhaps I'm looking in the wrong place?
Also, I believe the link action is a "Open a file" type. -
Open pdf in new window from an iframe
i have a web page with an iframe that displays pdf's chosen from a drop down menu.
i need to be able to make the current pdf open from the iframe into a new window.
any ideas?
thanks
Larryheres an example.
http://www.sixmanmagazine.com/cev test/CEV00152/CEV00152.html
i uploaded that so you can see what i am trying to do.
the left side is for video and the right side is the iframe.
i want the content of the iframe that i want to display in a new window.
Thanks for your time.
larry -
I have created an interactive pdf in Indesign. It contains hyperlinks to destinations in a second pdf file. I would like the hyperlinks to open the second pdf file in a new window. Is there a way to do this either in Indesign or Adobe Professional? Thank you for your help.
Check the Acrobat forum. Someone there might be able to help out.
Bob -
How to open link in new window using Mountain Lion
When I upgraded to Mountain Lion, opening a link closes the window I'm in when it opens the new one. Example, I'm in email, click on a link, and then have to reopen email. The back button doesn't work. Where is the setting to change this so my current window remains open? I use Safari.
The option to open in a new tab or new window is in Safari > Preferences > Tabs > Open pages in tabs instead of windows: Never, Automatically, or always.
-
Magic Trackpad issues with opening tabs into new windows.
I used to be able to double tap and drag a tab out of the row of tabs in Chrome and put it into it's own windows. Now the double tap and drag doesn't work. I have to depress the trackpad with my thumb while tapping on the tab and then drag it into a new window. Tried unchecking and rechecking all the boxes in Trackpad preferences, but that didn't work. Anybody have any other thoughts? Could upgrade to 10.8.4 have done this or something? (Running Mountain Lion on iMac mid 2010).
I think I just found the answer although how that changed I have no idea. Under System Preferences/Accessability/Trackpad Options, I had to enable dragging. Hope that helps someone if it ever happens to them.
-
Open in a new window using Firefox
Howdy, my site is
http://www.makelikeanoctopusandeatyourselfmusic.com/
and if you click on the last 'button 2' and then the 'Stigma' link
you'll notice if you're using Internet Explorer that the when
clicked the link opens up in a window as intended but if you are
using Firefox the link does nothing when clicked.
Any idea how I can fix it so it opens up for Firefox users?
ThanksAh, yeah, that was the problem. Thanks for taking the time to
reply Joris.
Lyle -
Is there some preferences setting to be able to control the ordering of choices for the right-click menus?
You can use the Menu Editor extension to rearrange menu items - https://addons.mozilla.org/firefox/addon/menu-editor
-
Editing swfobject.js code so hyperlinks inside the flash widget open in a new window
0down votefavorite
I have a flash calendar widget (code shown directly below) and I do not have access to anything other than the compiled .swf file (no access to .fla).
The widget contains some hyperlinks to other websites, these links are dynamic and changes based on a number of things.
There is also a corresponding swfobject.js file that is used to add functionality to the flash widget. The swfobject.js code is shown further down this post.
Currently, the way the code is now, when I click any of the hyperlinks that are available to me in the widget, the destination website that hyperlink takes me to opens in THE SAME PAGE as the flash widget which is a big problem.
I need to edit the code below so that any hyperlinks that are clicked inside of the flash widget open in a brand new browser window and do not take the user away from the original widget other than opening a new page with new content.
Because the hyperlinks that are available are always changing, the swfobject code below uses some functions and parameters.
I am hoping you can show me exactly what code I must insert, and exactly where I must insert it, in order to alter the behavior that happens so that when a user clicks one of the hyperlinks inside the flash widget, so that the content at the other end of the hyperlink opens in a new window, instead of opening in the same window.
See code below.
Thank you in advance for any help you can provide
Flash Widget Code
<!-- Embedded Calendar --> <div id="activecontent"> <script type="text/javascript" src="swfobject.js"></script> <div id="awccalendar"></div> <script type="text/javascript"> var so = new SWFObject("awc.swf", "awccalendar2", "700", "180", "8", "#ffffff"); so.addVariable('calendarid', '0'); so.addVariable('appurl', ''); // Flash Widget Initial Date should be ddmmyyyy so.addVariable('ldate', '20052014'); so.write('awccalendar'); </script> </div> <!-- Embedded Calendar -->
SWFOBJECT.JS CODE
/** * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * */ if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(In that case, I will have no choice but to decompile the .swf to get the .fla because the original .fla is un-obtainable. Unless there is a way to edit the contents of the .swf file without decompiling it.
I can see the code inside via various decompile tools and it seems that I would need to add the equivalent of <src target=_blank> to some of the lines I have shown below.
obj_xml.load(appurl + "loadconfig.aspx?calendarid=" + calendarid); -- need to edit this so it opens in a new window using something similar to target = _blank
dest_page = appurl + "default.aspx"; -- need to edit this so it opens in a new window using something similar to target = _blank
I know a lot of decompile tools can get you the code and the .fla but once you edit and re-compile and attempt to replace the original with the new & updated file, the decompiler did not necessarily generate the properly formatted flash pro project file, so compiling it back into an operational .swf often ends in failure.
Do you know or can you recommend a tool that has a very good track record of re-compiling the decompiled modified.fla into a workable and usable .swf?
Maybe you are looking for
-
Does Lion interfere with Excel 2011 language support for Korean, Chinese?
I was able to use Excel 2011 for several languages including Korean and Chinese when I was on Snow Leopard. Now, after upgrading to Lion, I can't figure out how to get that functionality. I have used the Microsoft Language Register to get the Japanes
-
Can't Subscribe Can't Create New Calendar
All, After using iCal with much success (and subscribing to calendars shared in www.icalx.com) suddenly I can't subscribe to any calendar (even those not from icalx) and I can't make a new calendar (even though I only have twelve). Even if I drag an
-
ADOBE 12.exe downloaded. FLASH will download but won't install. The error message is "CANNOT CONFIGURE APPLICATION."
-
Bizarre console permission errors
I keep getting these errors in my console, every time I launch an application. Below, they're was triggered by mail and preview, but I've rec'd these messages for every app that I open. It seems to me that something is corrupted or has been tampered
-
Forgive this newbie and personally untested functionality question... I am looking over simulations and see that I can set a duration for a simulation definition. I can give a run time in months, days, hours, minutes, and seconds. All good so far. Qu