JavaScript URL rewritting in Enterprise Portal

Hi Experts,
I am working with EP and JavaScripts. We are making changes through JavaScript in Portal.
I have to rewrite the URL's with new URL's by using JavaScript. I am using the following code-
if( parent.document.body.innerHTMLindexOf(URL)>0)
     rewriteLinks(sourceURL,targetURL);
if( parent.document.body.innerHTMLindexOf(URL)>0)
  rewriteLinks(sourceURL,targetURL);
f( parent.document.body.innerHTMLindexOf(URL)>0)
  rewriteLinks(sourceURL,targetURL);
But, the problem is screen is blinking for 3 times to execute the above 3 if()conditions. I think, for every if() the screen is reloading.
How to stop reloading for every if() condition? Once all the if() conditions executed, then only reload the screen.
Regards,
Vijay.
Edited by: Vijay Kumar Godavarthy on Jul 18, 2009 12:44 PM

if you are using the rewriting the page then it will blink.
Workaround is use javascript to retrieve data to an invisible document and then do the content transfer to your visisble page using DOM. 
This issue was purely javascript. My suggestion is to check with jsp forums for better results.
Raghu

Similar Messages

  • JavaScript URL rewritting and screen blinking

    Hi Experts,
    I am working with EP and JavaScripts. We are making changes through JavaScript in Portal.
    I have to rewrite the URL's with new URL's by using JavaScript. I am using the following code-
    if( parent.document.body.innerHTMLindexOf(URL)>0)
    rewriteLinks(sourceURL,targetURL);
    if( parent.document.body.innerHTMLindexOf(URL)>0)
    rewriteLinks(sourceURL,targetURL);
    f( parent.document.body.innerHTMLindexOf(URL)>0)
    rewriteLinks(sourceURL,targetURL);
    But, the problem is screen is blinking for 3 times to execute the above 3 if()conditions. I think, for every if() the screen is reloading.
    How to stop reloading for every if() condition? Once all the if() conditions executed, then only reload the screen.
    Regards,
    Vijay.

    Hi Vijay,
    It sholun't happen in javascript.U have put 3 conditions same as per the code u send.Check that once.
    Any u can stop blinking in javascript.Refer this.
    http://www.w3.org/TR/WCAG20-TECHS/SCR22.html
    Regards,
    Srikanth

  • Webcenter URL Rewrite solution?

    Hello,
    There is some in-box solution for URL Rewrite in webcenter portal?
    Anyway, what to use as workaround? Apache?
    thank you.

    Did u ever tried to visit blog-
    GEORGE MAGGESSY: WebCenter Portal Pretty URL Beyond Limits
    you will find it useful.
    --Hoque

  • Plumtree and Weblogic Portal Server | URL rewriting incompatibility

    Hi All,
    I am using Weblogic Portal as the Producer and Plumtree as the consumer for my WSRP portlets. I have enabled Producer URL rewriting. When i invoke an action URL i get a "Mode is not supported in this portlet." error. The template being passed is <blockingActionTemplate>/wsrpconsumer/pt_action?wsrp-navigationalState={wsrp-navigationalState}&wsrp-interactionState={wsrp-interactionState}&wsrp-mode={wsrp-mode}&wsrp-windowState={wsrp-windowState}</blockingActionTemplate>
    and the URL generated is a href="/wsrpconsumer/pt_action?wsrp-navigationalState=&wsrp-interactionState=_action%3D%2FnewAction1&wsrp-mode=&wsrp-windowState="
    The same portlet works fine when Consumer URL rewrting is enabled.
    Plumtree is giving the same error for the portlets at the consumer at http://sunwsrp.dyndns.org/portal/wsrp/wsdl/default. Any help would be highly appreciated
    Thanks

    Hi, I don't have an answer on this but another more basic question. Our agency is using Plumtree Portal v5. I am assigned to develop a remote portlet. According to what I've read on the web as far back as 2003 Plumtree Portal supports WSRP but I'm getting conflicting answers within our agency. This post seems to indicate that the Plumtree Portal can consume WSRP compliant remote portlets. If that is correct, can you point me to documentation/examples? I've found reference to a Plumtree resource called "WSRP Portlet Consumer" for WSRP--does that still exist? Any help would be appreciated.

  • Apache Url rewrite for portal URLs

    Hi,
    I have a requirement where i need to write simple URL's for the default portal uRL's
    for example
    inspite of using default url like "http://myserver:port/portal/server.pt/community/abc_xyz/123/efg_jkl/12345",
    if user uses
    "http://myserver:port/portal/server.pt/xyz"
    It should navigate to same default URL.
    Can somebody let me know how this can be achieved.
    I know Url rewriting is done through Apache Url rewrites but do not have an idea how apache does it with portal Url's. What configurations need to be done in order to manage portal Url's with apache rewrites.
    Thanks
    Ajay

    Hi Ryan,
    Thanks for the reply. The link shows how to write the Rewrite rules in apache. I am familier with that. The actual problem is that how can the portal Url's be controlled by apache rewrites. My apache and weblogic are both on the same server instance but after writing the rewrite in httpd.conf file. It does not work out. Just want to know how can i tell apache to handle my portal Url's too.
    Is there any specific entry that we need to make for doing this.
    Thanks
    Ajay

  • JavaScript Errors in Enterprise Portal side

    Hi all,
    I am facing a very serious problems with JavaScript Errors in Enterprise Portal related to SALESWORKBENCH application which is developed using PDK,EPCF,JAVASCRIPT and CSS concepts .

    salesworkbench might be an old applicaton i guess and Ep 6.0 is not compatible  after integrating with SALESWORKBENCH with respect to EPCF ( ENTERPRISE PORTAL CLIENT FRAMEWORK )

  • URL  Rewriting

    Hi,
    I got a problem in URL rewriting:
    original source:
    <script language="JavaScript" src="/javascript/resselect.js"></script>
    after rewrite:
    <script language="JavaScript" src="http://gate way:89/http://xxx.com/javascript/resselect.js?scriptReferrer=http://xxx.com/"></script>
    How can I remove "scriptReferrer=http://xxx.com/"?
    Thanks in advance.
    Rick.

    I had a similar problem (Portal 6.1) and it ended up being a javascript function that was not rewriting properly. I had to add a rule to my default_gateway_ruleset.
    The function being called was Select() so the rule I added was this:
    <Function type="URL" name="Select" paramPatterns=",y" />
    Refer to the portal documentation about "Rules for JavaScript Content" rewriting:
    http://docs.sun.com/source/816-6732-10/rewriter.html
    Hope that helps you.

  • URL Rewrite Rules in 10.1.4

    Hi,
    I am having some trouble rewriting the urls, I can't make it work ...
    What I want is to change the url:
    http://www.mycompany.com/portal/page/portal/portal_sverige/
    to
    http://www.mycompany.com/sverige
    Where "portal_sverige" is the page group.
    What I did was:
    Configure the properties in the page group:
    Search pattern: /portal/page/portal/portal_sweden/
    Replace pattern: /sweden/
    And I went to enterprise manager, MT, http server, administration, advanced server properties, httpd.conf, and put in the lines:
    RewriteEngine On
    RewriteRule ^/sweden/(.*)$/portal/page/portal/portal_sweden/$1 [PT]
    However, when I try to use navigator to edit a page in that group, I get:
    http://www.mycompany.com/sweden/pagename?_mode=16
    Returns:
    Object not found. (WWC-50003)
    And just typing in www.mycompany.com/sweden returns 404 error instead of the root page as I would have liked.
    Any ideas about what to do? I can't really find any information ... is the change made in the MT ? IM ? Do I have to do it in some specific order? Is the syntax wrong?
    Appreciate any help, thanks

    Hello Sayeeas,
    I posted an answer to this question a couple months back... check out the thread
    Re: Portal URL Rewrite
    Here is the answer:
    In this example the name of the page group is "www":
    Our rewrite rule is also set up in a virtual host section of the httpd.conf file as well so some of the options may not be required for your set up:
    RewriteEngine on
    RewriteOptions inherit
    RewriteCond %{REQUEST_URI} !^/(portal|pls|images).*$
    RewriteRule ^(.+) /portal/page/portal/www$1 [PT]
    The rewrite condition allows us to ignore the rewrite for certain items in the path. This allows the portal navigator to work. There may be a couple more items that need to be added to the condition because I recently noticed that the help pages dont function properly.
    In the portal configuration for the rewrite rule we specify:
    Search pattern: /portal/page/portal/www
    Replace pattern:
    Thats right, the replace pattern is blank.
    To see it in action check out http://www.sagelogix.com
    -sean
    Solutions Architect
    http://www.sagelogix.com

  • About javascript url

    Hi all,
    I am successfully deploy the portal (version 7.0), and now i am facing some problems, actually, i am usuing the gateway, so that it is rewrite all other pages, and i have one system connect to the portal, and that system have one javascript function call "openWindow", if i click throught that function using portal, the url will become like that:
    <gateway server name>/redirect/<application url>/lib/javascript/content_redirect.jsp?contentID=210
    but the correct url should be:
    <gateway server name>/<application url>/content_redirect.jsp?contentID=210
    I am already tried to modify the ruleset, but it seem not work, the rule set i modify should be:
    <Function name="openWindow" paramPatterns="y" type="URL"/>     
    It is the javascript function details:
    function openWindow( url )
    window.open(url,'_blank','scrollbars=yes,menubar=yes,height=560,width=760,resizable=yes,toolbar=yes,location=yes,status=yes, top=25, left=50');
    }

    Hi all,
    I just further study the error, and found that the javascript of portal "psSRAPRewriter_convert_expression" rewrite my url incorrectly.
    Since my content_redirect.jsp is put under root directory, and other javascript are put under "<root directory>"/lib/javascript/", and after throught the portal page, it treat <host path>/lib/javascript/ as root path, and I dont know how to correct the portal setting in order to get the correct rewrite url, is anyone have hints to give me.
    Regards,

  • URL Rewriting Question

    I am writing a servlet which needs to keep track of session id, session creation time, and last accessed time. It should also invalidate the session if the max inactive interval is exceeded. This should be easy to do with HttpSession. However, I have to deal with the situation that the client doesn't accept cookies, so I have to use URL rewriting.
    Could anyone tell me what's the best way to implement this? I appreciate your help.

    Hi
    You can find all servlet documentation throught the link: http://java.sun.com/j2ee/docs.html
    Look for the Java 2 SDK, Enterprise Edition, API docs
    The "encodeURL" NB. Capital letters URL, takes a URL that shall be encoded and (if needed) adds the session ID, the returned string is an URL that you put in the '' statement. You do not need to do anything on the client side, If they have disabled cookies you will problaby get troubles with Java and javascript to... what this thing does is add a note that tells the webserver to which session each call belongs.
    Hope this helps
    //Samuel

  • BW Workbook as an iView in the Enterprise Portal

    I keeping getting a dialog box asking to select the appropriate program to open the workbook. When I select .xls it opens, and it shows the parameters I entered and not the workbook. The customer is on NW04 Stack 11.
    I followed ever step on help.sap.com site as listed below.
    BW workbooks are MS Excel workbooks with one or more embedded BW queries. You are able to display these workbooks in the Enterprise Portal as iViews.
    Features
    Workbooks are displayed in a separate MS Excel window. Opening workbooks within the Web browser window is not possible for technical reasons.
    BW workbooks require the BEx Analyzer, which requires a local installation of the SAP GUI for Windows with the BW front end.
    SAP recommends that you use BEx Web applications in the Enterprise Portal that run completely in the Web browser.
    You can use the function Export as Excel 2000 File from the BW Web application context menu as an alternative to using a local installation of the BW front end if you require Excel functions. See Context Menu Functions  and Exporting as a CSV File/Excel 2000 File.
    An iView with a workbook can be generated using the Portal Content Studio or Role Upload. For more information, see Generating Content from SAP BW for the Enterprise Portal.
    The iViews are of type SAP Transaction iView and have the code link com.sap.portal.appintegrator.sap.Transaction.
    The most important properties are System, Transaction (TCODE) and ApplicationParameter.
    ·The System property contains the alias on the BW system (see Creating BW Systems in the  Portal).
    ·The transaction code for every workbook is RRMXP.
    ·The value WBID= is in the ApplicationParameter property.
    You can determine the workbook ID with the BEx Analyzer:
    a. Open the desired workbook.
    b. In the BEx toolbar, choose ® OLAP Functions for Active Cells ® Properties. The Information tab page contains the Workbook ID (Server).
    Note that with BW workbooks as an iView, the AutoStart property contains the value True (process first screen) and the GuiType property contains the value WinGui.
    Anyone have a solution for this to work?
    Thanks,
    -Eli

    Dear Rasmesh,
    Please try to do this suggestion:
    3. How can I use SAP Application Integrator to access SAP transactions?
    There are two different ways to use the SAP Application Integrator transaction iView. In both cases please use a URL like 'irj://com.sap.portal.appintegrator.sap.Transaction' followed by your custom parameters like '?System=DEV&TCode=SE38&GuiType=WinGui &WinGui_Type=Shortcut&OkCode=SHOP'.
    The parameters are:
    System [mandatory]
    TCode [mandatory]
    GuiType (=WinGui / WebGui / JavaGui) [mandatory]
    WinGui_Type (=Shortcut ..if you want to launch the GUI in a new window)
    OkCode (The OkCode that you would like to be executed after the transcation is called by SAP GUI.)
    ApplicationParameter (Pass these values to your screen fields which needs to be be separated by
    AutoStart (true / false)
    UseSPO1 (true / false)
    For a complete list of parameters please consult http://help.sap.com.
    Taken of:
    http://www.sweetlets.com/my_favorites_faq.html
    I hope this highline can help you,
    Luis

  • Configure SSO Connection from SAP Enterprise Portal to BOE Server

    Hi Guys,
    We recently installed a BOE Server and want to connect it to our SAP Enterprise Portal. What we need is just to display the Crystal Reports via Enterprise Portal. We have set up the following:
    SAP EP with AD Authentication
    SAP EP configured with SNC to SAP BI7 system
    SAP BOE XI 3.1 - SAP Integration Kit
    BOE Server configured with SAP Authentication via SAP BI7 System
    We've also set up BOE IK iviews and URL iviews pointing to existing reports in BOE. However, when we access it from EP, it prompts for a username and login to BOE. Is there a way to configure these so that there is no prompt for login to BOE server and SSO is used? Is it also possible to have a service account (e.g. domain/crystal) that will run the reports in BOE everytime a user accesses a report from SAP EP?
    Let me know if this is at all possible

    Hi,
    You should configure InfoView for SSO first, which required infoview.xml file modification, using windows AD default authentication. If you want to utilize the OpenDocument URL for iView then you also need to configure OpenDocument.xml file for SSO also. The SAP portal must have trust relation with the SAP BW server so the Windows AD token can be authenticate with SAP BW server.
    If you want crystal user to run all the report then you will lose data security. It can be done by hard coding user name and password in the report properties and database logon but the SSO capability can be accomplished only by windows AD, SAP or LDAP.
    For more details check BOXI Admin guide and SAP Integration Guide.
    Thanks,
    Muhammad

  • How to bind an IIS to the enterprise portal installed on a linux machine

    Dear all,
    I am very new to the topic of Enterprise Portal.
    Our intention is, to develop .NET IViews and deploy them in the Enterprise Portal.
    The Enterprise Portal Server is set up on a linux machine.
    The Guy who did install the Portal Server, has no idea how to "integrate" the Microsoft IIS to the Portal.
    After deploying my .net Component, i tried to view this component in the portal (by right clicking the mouse on the Component in in the .NET Solutions Explorer).
    This gives me the following error:
    Portal Runtime Error
    An exception occured while processing a request for:
    iView:N/A
    Component Name: N/A
    Could not find portal application com.sap.portal.dotnet.framework.
    Exception id: 02:06.......
    See the details for the exception ID in the log file
    I think that this has something in common with integrating the IIS on the Linux Machine, and maybe additionaly installing the pdk.net on the IIS webserver machine which should be used.
    Thank you for your help.
    Regards

    Hi,
    Welcome to the world of Enterprise portal
    Seems to me like you are trying to use the PDK for .NET. If so - Please read the overview section in the documentation to get a general idea of how it works (for example - IIS is not used at all!).
    See the Visual Studio integrated help or click this https://media.sdn.sap.com/html/submitted_docs/dotnet/index.htm
    there go to "Getting Started" and mostly "Overview".
    Anyway, It seems like the problem is that you didn't deploy the 2 required SDA's to the portal. You should also take a look at the "installation and configuration" guide. Download it here: https://www.sdn.sap.com/sdn/developerareas/dotnet.sdn?contenttype=url&content=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/pdk for .net administrator guides.zip
    Good luck,
    Ofer

  • Performance issue of BI reports in SAP Enterprise portal

    Dear Friends,
    We have  integrated BI reports with SAP Enterprise portal 7.0.Reports are running properly But the issue is reports are taking more time to dispsaly its content and leading it to  performance effect.
    In Bex ( BI side) reports  performance is little better than  SAP EP platform. BI Team also looking for ways to improve performance  at BI side.
    Could you please share your valuable ideas to improve  the performance at SAP EP side also ..
    Thanks and Regards
    Ratnakar Reddy

    Hi ratnakar,
    The first step is to identify which component is causing the performance problem. Run your report in the portal but try appending the string &PROFILING=X in the end of the URL. This will generate BI statistics which you can use to see which component (Java stack, ABAP stack, Database) is causing the performance issue.
    Hope this helps.

  • Unable to see Dashboard over the internet Using Enterprise Portal

    Dear All,
    I have one issue here which is bit technical,
    I have made an Xcelsius Dashboard (Connection Type: Excel XML Maps (BW Queries)) and uploaded SWF file on to KM Repository in Portal. I have created Document iview and a role to published the dashboard on Enterprise Portal.
    Now when i am trying to access that Dashboard from Portal within local network it works fine but when i try opening the same Dashboard over the internet from home it gives an error.
    ERROR DETAILS:
    To access external data, add a cross-domain policy file to the external data web server.
    For more information, on the Adobe website, see the article u201CCross-domain Policy File Specificationu201D.
    If the problem persists, contact the file creator or your system administrator.
    Error: Error #2048
    Connection Type: Excel XML Maps
    File URL: https://www.portal.com/irj/go/km/docs/documents/dashboards/dashboard1.swf
    External Data URL: http://bwserver.domain.com:8000/sap/bc/bsp/sap/zbo_data/Data.xml?infocube=ZFIGL_FM&query=ZFIGL_FM_Q0003_BO&VAR_NAME_1=0P_FYRA&VAR_VALUE_EXT_1=2009
    I have added crossdomain into WebAppl Srvr of BW Server .. Created BSP Application ---> Imported crossdomain file ---> set BSP App in Default Service.
    Please provide possible solutions

    We have the same problem.
    The Solution 1.
    http://wiki.sdn.sap.com/wiki/display/EmTech/Addcrossdomain.xmlontherootofSAPWebapplication+server
    and 2.
    http://www.asabau.com/2009/04/crossdomain-policy-file-in-sap-web-application-server/
    does not work.
    How you have fix it?
    regards
    Chris

Maybe you are looking for

  • Selection indicator for costing line items in production order

    Dear all, Do anyone know how to change field "AFVGD-SELKZ" of operation inside producion order? Any user-exit or standard program? As content of field "AFVGD-SELKZ" is carried from routing. But is it possible to change in production order level? Plea

  • Oracle soa 11.1.1.4 html email using email activity

    Experts, In one of my process i am generating tabular form content in email using html tags in transform xsl file and passing this xsl using ora:processXSLT funtion to contentbody variable of email activity. This works fine in *11.1.1.1* i am able to

  • SRM contracts cycle

    Hello all, I am working with SRM 5.0 and SRM Server 550. I want to know what is the behaviour of contracts in SRM in general. 1.- I create a GOA document in SRM, it is distribute to backend system (R/3). In this moment, which is the status of GOA in

  • E-mail Trigerring issue

    Hi Experts,                   For a contract work-flow , Email trigerring was not happeneing .  when a contract moves from 1 phase to other , Email was getting triggered . but suddenly the email is not getting generated . Can any one pls suggest me .

  • TS4006 Can I turn my iPod on with my Mac?

    I don't know where my iPod is in my house and it says it's offline and was wondering if I could turn it on from my Mac.