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,

Similar Messages

  • Registered, asked ? about javascript & NPR, logged in, can log in again, had to reregister, wtf?

    I registered (shadevine) and submitted a question about javascript not working for my NPR.org Player. I was able to log in briefly, but did not see my question in my sent folder. Now I can not log in using correct ID and password, asked for password reset, but nothing ever was sent to my email ([email protected]).
    So now I have had to reregister (shadevine1), just to ask the stupid question about my registration not working, much less getting to my original question of Javascript & NPR.
    I am now using Safari to send this question, which I was hoping to get away from.
    Very disappointing.

    Yes this was my previous posting, I see you had a database error, which solve the ID issue, but I am still not sure how to solve the issue with the NPR player and possibly javascript.

  • About JavaScript

    Hi evry body, i am new in web programing, i use jsp for that, i need to know some things about javaScript. Can any one give me a link to a popular javaScript. forum, thanks a lot.

    Try http://forums.webdeveloper.com

  • HT1349 Why have I lost some music videos? It says something about the URL ! Have watched these in the past.

    Why have I list some of my downloaded music videos?
    I have viewed them many times before but now some are saying something about the URL..
    Help.....I've lost Mariah Carey and others!

    Here's the solution for the T-string error.
    http://iweb.dailynews.webege.com/PHP_parse_error.html

  • Question about friendly urls?

    greetings all
    i want to ask about if the following is possible:
    i have a link that look like this:
    http://somewebsite.com/page?param1=value1&param2=value2&param3=value3
    is it possible to make the link that appears in the browser like
    http://something.com/page ,and the parameter values is still there in the browser
    something like the urlrewrite or a filter or somehow i don't know?
    any ideas if it's possible?

    Those parameters are there for a reason; to pass along information to the page so that the dynamic content can be manipulated based on them. So your question really is: "Can I pass along this information to the page in another way than URL parameters?"
    There are always options, but most of them require work. For example:
    1) use a POST to generate the page
    In a POST request the parameters are part of the request body, so you don't see them. The trouble is that a POST request cannot be created just like that; it requires some sort of form submission behind it. This can be facilitated with javascript (output a form and let the link submit it through an onclick handler), but it is far from a clean solution.
    Added pain: form submits behave badly in combination with the browser back/forward buttons. Also, bookmarking cannot work like this.
    2) "web 2.0". Using Ajax it is possible to do page updates in the background, so you could do the request (with parameters) asynchronously and update the page accordingly.
    Added pain: again back/forward buttons and bookmarking will be broken unless you take very specific steps (that I don't know of myself).
    3) conversation scope technology. Some APIs provide a so called "conversation" scope, which allows you to hold on to certain values across requests until you end the conversation. You could use this to push certain values into the conversation and reuse them in different pages without having to pass along the values as request parameters or in a form. Even without a conversation scope, you could simply abuse the session for this purpose.
    I hope this has given you some idea how to go about implementing your requirement.

  • Question about mangled URLs

    Hello,
    I have a load testing app that I'm adapting to work with BSPs and I have a question about the mangled URLs that are used.
    If I record a URL that is mangled, can I save that URL and reuse it during the playback of a session?  From what I understand it includes things like theme, language and such.  But obviously if it includes a session  ID, it won't work.
    Session ID seems to be stored in a cookie.  Can it also be stored in a mangled URL and if so, why the duplication?
    Any help greatly appreciated!
    Thanks!!!

    Those parameters are there for a reason; to pass along information to the page so that the dynamic content can be manipulated based on them. So your question really is: "Can I pass along this information to the page in another way than URL parameters?"
    There are always options, but most of them require work. For example:
    1) use a POST to generate the page
    In a POST request the parameters are part of the request body, so you don't see them. The trouble is that a POST request cannot be created just like that; it requires some sort of form submission behind it. This can be facilitated with javascript (output a form and let the link submit it through an onclick handler), but it is far from a clean solution.
    Added pain: form submits behave badly in combination with the browser back/forward buttons. Also, bookmarking cannot work like this.
    2) "web 2.0". Using Ajax it is possible to do page updates in the background, so you could do the request (with parameters) asynchronously and update the page accordingly.
    Added pain: again back/forward buttons and bookmarking will be broken unless you take very specific steps (that I don't know of myself).
    3) conversation scope technology. Some APIs provide a so called "conversation" scope, which allows you to hold on to certain values across requests until you end the conversation. You could use this to push certain values into the conversation and reuse them in different pages without having to pass along the values as request parameters or in a form. Even without a conversation scope, you could simply abuse the session for this purpose.
    I hope this has given you some idea how to go about implementing your requirement.

  • Where can I find a guide to all the options and settings available via the "about:" pseudo-URL? (Using FF 3.6.8)

    When I last used Firefox support, several years ago, I saw mention of a long list of options and settings available, using a kind of local URL, beginning with "about:". I can't find it now. The text "forums" that I saw then seem to have disappeared and been replaced by support for dummies who might be frightened if they saw a page containing more than just a tiny amount of information.
    The question is: where can I find this guide, listing all the available options and settings so that I can make my own decisions?

    I must have forgotten; it wasn't exactly FF support, but Mozillazine. '''Thank you for the pointer'''. The "long list" I was thinking of was in fact about:config, which is pointed to by that page.
    Given all that, I think it should be easier to find Mozillazine from the FireFox support pages.

  • Information about javascript in pdf forms

    Hello folks. Could anybody tell me where i can find information about application javascript language in pdf forms? I've visited adobe.com and found a lot of pdf articles but they are really useless. I want to find about object model of pdf form, about frequent used operators.

    Hi Konstantin,
    I think this could help you:
    LiveCycle Designer Scripting Basics http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Adobe XML Form Object Model Reference: http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    Michal

  • Quick Question About Javascript Code

    I'm trying to write some code in JavaScript so that a different image will display every time someone loads my homepage. I have come across a section called
    'imgct' what does "ct" stand for?
    Please excuse the stupid question but this is my first time!
    If anyone could point me in the right direction of how to do this aswell I would be extremely grateful!
    Thanks
    Kyra

    I'm so sorry about this, it just doesn't seem to be working, I did what you suggested but it still doesn't show up in my browser. :S
    The is the code view of my page now:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="Style_sheet.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    homeImg = newArray(
    "Images/Homepage/Image1.jpg",
    "Images/Homepage/Image2.jpg",
    "Images/Homepage/Image3.jpg",
    "Images/Homepage/Image4.jpg",
    "Images/Homepage/Image5.jpg"
    ImgCt=homeImg.length;
    function swapImg() {
        if (document.images) {
            randomNum=Math.floor((Mathrandom()*ImgCt));
            document.images ["homePicture"].src = homeImg[randomNum];
    window.onload = swapImg()
    </script>
    </head> 
    <body>
    <div class="container">
      <div class="header">
    *//There is a spry menu bar that goes here//*
        <!-- end .header --></div>
      <div class="content">
      <img src="" name="homePicture" width="627" height="250" id="homePicture" /> </div>
      <noscript><img src="Images/Homepage/Image2.jpg"/></noscript>
    As you can see I have also tried to add in a 'noscript' tag incase someone doesn't have javascript enabled etc. although when I preview it in IE I see both 'Image2' and the image placholder where teh random image is meant to appear, but doesn't.
    I'm very grateful for all the help you are giving me!
    Thank you
    Kyra

  • About jdbc url question

    the questions:
    i want to make a connect to mysql database sever.
    i use jdbc:odbc dirver
    and it works like following;
    String url = "jdbc:odbc:mysql_dsn";
    ..here i define mysql_dsn in windows control panel->ocbc
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    i want to ask if i want to use an other URL format
    like
    jdbc:odbc://localhost:3306/mysql
    it does not work!
    please be kind to answer the question.it confuse me for a long time.
    and if possible please give me more example for the URL format..
    thanks in advance.
    niko

    In your particular case (where you're using the JDBC/ODBC bridge), the java pieces don't have any knowledge about how your real driver (the ODBC driver) connects to the database. Java doesn't know if there is a file-based DB (like MS Access or Paradox) or a Server database (such as SQL Server) behind the bridge. What java (or the bridge) DOES know is how to 'talk ODBC'. Even then, the BRIDGE doesn't know all the settings for the ODBC driver (only the driver itself knows, because it pulls it from the DSN configuration).
    You might be able to tweak the connection by using the Properties object that you pass along, as the bridge may pass these to the ODBC driver and you might be able to override the DSN settings.

  • Question about (HttpURLConnection)url.openConnection();

    Greetings Java Experts.
    I have a question about the following code snippet.
    As you can see below this snippet will establish a connection.
    Question how long will it allow for the connection to be established - for example if the web traffic is taking an unusually long period of time can I set it to a higher value ?
    connection = (HttpURLConnection)url.openConnection();
         HttpURLConnection.setFollowRedirects(true);
         connection.setInstanceFollowRedirects(true);
         connection.setUseCaches(false);
    stev

    forever, unless you set SO_TIMEOUT

  • Question about Facebook URL

    Hey everyone, new here so Im probably doing this completely wrong but please bare with me! I was randomly directed here whilst trying to find out if theres a way of changing my Facebook URL (its already been changed once - not by me)
    I have no idea why the adobe forum section would be interested in that, but the link provided sent me here. I also had no idea what thread to post this in either, so I apologise in advance for probably making a mistake.
    Any help would be greatly appreciated. Thanks guys

    As has been mentioned, this forum is for discussion of the Adobe fora.
    However, very near-by, the Lounge might get some comments on your question. It's for broad-source discussions, not about things Adobe-specific. Lot of people there know FB, so might have some useful thoughts for you.
    Good luck,
    Hunt

  • Javascript URL redirect (setting value) not working

    Hello All,
    Apex 3.1
    I am trying to write javascript that will execute off the click of an icon in a report. It will display a prompt box to the user, and when the user clicks "OK", I would like to re-direct the user to another page, setting the value in the prompt to a page item on the new page. Here is the javascript I'm trying to use:
    <script language="JavaScript" type="text/javascript">
    function copy_prompt()
    var copies=prompt("Number of copies?","1");
    if (copies!=null && copies!="" && copies !="0")
    $s('P6_ITEM_COPY_COUNT',copies);
    redirect('f?p=&APP_ID.:82:&SESSION.::NO:P82_ITEM_COPY_COUNT:&P6_ITEM_COPY_COUNT.')
    </script>
    The problem I'm having is that since session state is not being set, it is passing a null value to the new page. I can see on page 6 the item P6_ITEM_COPY_COUNT is getting set appropriately, but the value is not in session state. Any suggestions?
    Thanks!

    In trying the suggestion, I receive the following error when redirected:
    Error ERR-1002 Unable to find item ID for item "<value in javascript prompt>" in application "103".
    Thanks!
    SOLUTION: I looked at my URL syntax in the redirect statement, and was missing an extra colon (:) before the P82_ITEM_COPY_COUNT. Correct syntax is:
    redirect('f?p=&APP_ID.:82:&SESSION.::NO*::*P82_ITEM_COPY_COUNT:' + copies);
    Edited by: potter_geek on Dec 8, 2009 8:51 AM

  • 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

  • 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

Maybe you are looking for