Problem with apostrophe  in javascript

Hi all,
I have a text retrieved from the database.It has apostrophe in it. Since the value is dynamic,i cannot manually use backslash to escape the apostrophe.my javscript coding isnt working if the text contains apostrophe.Help me out to solve the problem.
Thanks in Advance

hi,
I tried with the replace function
<%String s="yahoo's mail's";
String s1=s.replaceAll("'","\'");
System.out.println("---------------------------------------"+s1);
%>I am replacing"{color:#ff0000} *'*{color} " with "{color:#ff0000} *\'*{color} "
The expect the output to be yahoo\'s mail\'s.
But the output is yahoo's mail's.
I don't the mistake i am making here.Help me out.
thanks
Edited by: beginjava on Nov 10, 2008 5:04 AM

Similar Messages

  • Coldfusion with javascript alert problem with apostrophe

    Hi
    I have alert ("thanks for sing up #fname# - #lname# ")
    but fname='Charles's
    lanme ='Charles's'
    so javascript is not interpret with apostrophe . how can i
    resolve it thanks

    JSStringFormat()
    http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=ColdFusion_Documentation&file=00000543.htm

  • Sudden problems with image behaviors, javascript on Yahoo servers

    I have been posting my website with Yahoo Small Business for 10 years and have never had a server-side issue (to my knowledge).  Until now.
    It should first be pointed out that all my sites are basic HTML, constructed using Dreamweaver 8 on an old Sawtooth PowerMac that runs OS X.3.8.  I am behind the times and know it. 
    I have a 2011 iMAC, but can't afford to upgrade my imaging software.  If adobe cared anything about aspiring designers, they would come down to earth with the pricing (why should current students, educators and private business be given such a massive advantage in pricing?).  Sorry, I'm just being truthful.  I do not use style sheets (though it would be helpful to learn since the web is run by them now).
    Recently, I completely redesigned my personal website.  When I tested it on my old mac, everything functioned as desired.  When tested on my new mac, everything functioned as desired.  When viewed online after uploading to the server, the page appears to load in full, but none of the image behaviors work.  Correction, the "mailto:" link works, but it was assigned in the property inspector rather than the behaviors inspector.  So I have no rollovers and no operative links beyond email.
    I sent the site files to a friend so he could check the site.  He posted it to the server he uses and all the functions on the page work correctly.  This is where I came to suspect that the problem is with the Yahoo servers and not my coding.
    Here is the link to the page that does not work correctly:
    http://www.boughnermultimedia.com
    Here is the link to the page that does work correctly:
    http://www.ericsearsandeyes.com/fboughner
    In Safari, I checked the error console and the following message appears for all java script behaviors:
    ReferenceError: Can't find variable:
    If someone here could check my source code and let me know where Yahoo is having problems with my code, it would be greatly appreciated.
    Thanks.

    Your code is corrupted.  If you view source in browser, you'll see your code is compressed into one long line. This will surely cause JavaScripts to fail.
    Your friend's version works because the code is not compressed.
    In DW, go to Edit > Preferences > Code Format >
    Which Line Break Type are you using? 
    Nancy O.

  • GETPIVOTDATA formula problem with apostrophe

    Excel 2010 on Win7 - Having a problem with the GETPIVOTDATA formula.
    GETPIVOTDATA(data_field, pivot_table[, field1, item1]
    If "data_field", "field1" or "item1" contain a value that has an apostrophe (i.e. single quote), the function returns a #REF! error. It works fine in all other cases. I tried placing those values within brackets (ex: "[Moody's]")
    and using the old SQL trick of doubling up the apostrophe (ex: "Moody''s"), and combining both those methods. But no luck. Has anyone else been able to solve this problem?
    Thanks.

    Hi Marak,
    Thank you for posting in the MSDN Forum.
    Since the issue is more relate to the end-user, I'd like to move it to Excel IT pro forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Best regards
    Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visualization problem with some website javascript

    Hi to everyone,
    i note visualization problem with some website, it seems some javascript.
    If i visit for example the website
    www.filesonic.com
    I don't tha image in the middle of the website and if i click on "login" no windows appear.
    This is happen with different browser and for example if open the javascript debug with Safari under the section "console" i see this error:
    Failed to load resource: the server responded with a status of 404 (Not Found)
    jquery.history.js:194
    ReferenceError: Can't find variable: jQuery
    global.it.js:2
    ReferenceError: Can't find variable: $
    http://www.filesonic.it/:111
    ReferenceError: Can't find variable: $
    How can i solve it?
    It is not just a problem of this website but also some other
    Javascript update 1 is installed and it is activated in java preferences and also in browser preferences
    Regards

    I think I had a similar problem
    https://discussions.apple.com/message/25094902#25094902
    Solution was:
    https://discussions.apple.com/thread/4222662

  • Problem with execution of JavaScript in HTML control with SAPGUI 6.20

    I have added some lines of code JavaScript in a modified class copy of the class CL_DD_DOCUMENT, that is executed well in frontend SAPGUI 6.40, but it is not executed in SAPGUI 6.20 with patch level 65 or 38.
    Somebody knows because it is passing this?
    I really need to know what is the problem. Any help will be welcome...
    thanks,
    Robert.

    HI,
    May be the below from SAP documentation is useful to you.
    Implementation considerations
    The interface of the SAP HTML Viewer is the same for all platforms, but its functions will depend on the underlying HTML browser. Under SAPGUI for Windows , it uses Microsoft Internet Explorer 4.0 as an external browser. Under SAPGUI for Java, it uses the Ice Browser, which is installed with the GUI.
    http://help.sap.com/saphelp_47x200/helpdata/en/c9/147a36c70d2354e10000009b38f839/frameset.htm
    Thanks
    Ramakrishna

  • Problem with onBlur=validate_int_range javascript function

    Hi i have a java script function which is use to check for the range of the integer i enter.
    The function works fine but the problem is once i click ok on the validation boxes that come up when i enter a wrong value it allows me to click the submit box.But if i click back on the text box then the validation box appears again.
    The report code is
    to_clob(HTMLDB_ITEM.text(5, pref_val,15,30,'onBlur="validate_int_range('||pref_name||','''||pref_expr||''');"style="width: 220px;"',pref_name)),
    and the javascript function is
    <script language="JavaScript1.1" type="text/javascript">
    function validate_int_range(pref_name, range) {
    var pos = range.indexOf('-');
    var start_val, end_val;
    var actual_val = pref_name.value;
    var non_digits = /\D/;
    if ( non_digits.test(actual_val) ) {
    alert('Validation Fail: only digits allowed. ' + range);
    if ( pos > 0 ) {
    start_val = range.substr(0,pos);
    end_val = range.substr(pos+1, range.length-pos+1);
    if ( eval(actual_val) < eval(start_val) ) {
    alert('Validation Fail: smaller value than ' + start_val );
    if ( eval(actual_val) > eval(end_val) ) {
    alert('Validation Fail: larger value than ' + end_val);
    function validate_rule(pref_name, exp) {       
    var actual_val = pref_name.value;
    expression = new RegExp(exp);
    if ( ! expression.test(actual_val) ) {
    alert('Validation Fail: Rule ' + exp);
    </script>

    >thanks you so much for the code, I'll test it out and
    reply with >the
    >results.
    Shouldn't that be "Thanks so much for the Cod"?
    "Dave Bar" <[email protected]> wrote in message
    news:e28c7t$hk1$[email protected]..
    > ahh yes, you are right..
    > I should have said OR instead of AND.
    > If Field is blank OR range is not between 1900 &
    2006. Thanks for catching
    > and pointing that out.
    >
    > thanks you so much for the code, I'll test it out and
    reply with the
    > results.
    > Thanks
    > -Dave
    >
    >
    >
    >
    > "Lionstone" <[email protected]> wrote
    in message
    > news:e28b1a$fu5$[email protected]..
    >> That's probably because you asked for a fish to help
    you out
    >>
    >>> Can some kind sole help with a modified version
    to also check for an
    >>> entered
    >>> number range?
    >>
    >> and fish can't type.
    >>
    >> You're off on the logic though, since something is
    not likely to be both
    >> blank and outside a certain number range. If it's
    blank or outside the
    >> range, either condition is sufficient for an error,
    right?
    >> You also want to make sure that no letters, etc, are
    entered, because
    >> that will mess up your comparisons to the other
    numbers. Keeping in mind
    >> that javascript validation can be defeated by
    sneezing and you'll need to
    >> re-validate on the server, this will be closer to
    right (not tested).
    >>
    >> var ThisYear = ThisForm_Right.DOB_Year.value;
    >> ThisYear = ThisYear.replace(/[^/d]/g,"");
    >> if(ThisYear.length == 0)
    >> {
    >> alert("Please enter the year of your DOB.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> else
    >> {
    >> ThisYear = parseInt(ThisYear);
    >> if((ThisYear < 1900) || (ThisYear > 2006))
    >> {
    >> alert ("The year of your DOB must be between 1900
    and 2006.");
    >> ThisForm_Right.DOB_Year.focus();
    >> return false;
    >> }
    >> }
    >>
    >>
    >
    >

  • Having problem with calling external javascript functions in LV

    Hi,
    I found this VI: http://lavag.org/topic/10304-discuss-calling-external-javascript/, which I believe can be really helpful for my work. The problem is I can't get it to run based on the following problem:
     - Apparently the "ScriptControl" cannot be loaded
    I am using LabView 8.6, and this vi has been produced in a 8.0 version. Do you think this is the problem? If not, what could cause this problem running this VI?
    Thanks,
    Diogo

    Hi,
    To start I am using this examplo from the google code page.
    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>Google Maps JavaScript API Example</title>
        <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=abcdefg&sensor=true_or_false"
                type="text/javascript"></script>
        <script type="text/javascript">
        function initialize() {
          if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(new GLatLng(37.4419, -122.1419), 13);
            map.setUIToDefault();
        </script>
      </head>
      <body onload="initialize()" onunload="GUnload()">
        <div id="map_canvas" style="width: 500px; height: 300px"></div>
      </body>
    </html>  
    It loads a basic map, and is saved in a html file created for example in Notepad. Basically as I said the VI is very simple, see next image.
    But like I said, this strategy does not allow labview to interface dinamically with the javasscript code in the html file. Doing it this way, I would have to constantly update the code in the file with new coordinates and loading the map again. This causes the mentioned flickering problem that I also had with static maps.
    Diogo

  • Problem with Reload in javascript

    Hi All,
    In my application, When you click on delete icon i am calling javascript function as shown below:
    function DeleteSchedule(vjobid,vscheid)
    if(confirm('Are you sure you want to delete?'))
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=deleteSchedule',0);
    get.add('F103_JOBID',vjobid)
    get.add('F104_SCHID',vscheid)
    gReturn = get.get();
    alert(gReturn);
    location.reload(true);
    In the above function at the end i am calling location.reload(true) which intrun the entire page will gets reload and the record is getting deleted succesfully.
    Now the problem if the commit that particular location.reload functionality the page will not be refereshed even though the record is geeting deleted from backend.
    How we can overcome the above problem without the reload, since in my application there can either insert/update/delete records.
    For ex: In one situation if i had a new record and before clicking on sumbit button i will try to delete the old record, now in that case the new record what i had added is not stored since in delete functionality the reload concept is called.
    Hope u have got my problem!!
    Thanks in Advance,
    Anoo..

    Hi,
    Try change location.reload(true); to
    doSubmit('REQUEST_FOR_INSERT');Br,Jari

  • Problem with loading two Javascript scripts

    I loaded a dreamweaver widget called "twitter client" to pull user info from twitter. Problem is that it will not show up in the browser. I can get it to load and show, but only after I comment out the footer information. The footer is pulled externaly and calls on a Javascript hosted on another server. Here is the code showing the problem. I also loaded it to http://www.tempthirteen.com/template/. I am really at a loss as to what is causing it.
    Thanks so much!!
    Nate

    <!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" lang="en" xml:lang="en" dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="images/struct/favicon.ico" type="image/x-icon" />
    <title>Your Site Title Here</title>
    <meta name="robots" content="all" />
    <meta name="Copyright" content="(c) Duke University" />
    <meta name="description" content="This is where you can put a description of your organization or your website." />
    <meta name="keywords" content="duke university, duke" />
    <meta content="en-US" name="language"/>
    <link type="text/css" rel="stylesheet" media="all" href="css/screen.css" />
    <link type="text/css" rel="stylesheet" media="print" href="css/print.css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/header/css/screen-globalHeader-nologo.css" type="text/css" media="Screen" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer.css" type="text/css" media="screen" />
    <!--[if lte IE 6]><link rel="stylesheet" href="css/screen-ie6.css" type="text/css" />
    <link rel="stylesheet" href="http://brandbar.oit.duke.edu/footer/footer-ie6.css" type="text/css" /><![endif]-->
    <script src="scripts/jquery.js" type="text/javascript"></script>
    <script src="scripts/twitter_search.js" type="text/javascript"></script>
    <style type="text/css">
    /* BeginOAWidget_Instance_2125523: #twitter */
            #twitter { height: 258px; width: 292px}
    /* EndOAWidget_Instance_2125523 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2125523" binding="#twitter" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body class="shadowBackground">
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/bar.html"></script> 
    <div id="pagewrapper" class="home">
        <div id="header">
            <div id="logo">
                <p><a href="http://www.duke.edu" tabindex="1" accesskey="1"><img src="images/struct/logo-print.png" width="141" height="64" alt="Duke University" /></a></p>
                <h1><a href="index.html" rel="home" tabindex="2" accesskey="2">Your Site Title Here</a></h1>
            </div>
            <form action="http://www.duke.edu/search/" method="get" id="search-inBanner" name="duke_search">
            <label for="search-field-banner"><input class="text" id="search-field-banner" name="q" value="Search" tabindex="3" accesskey="3" /></label>
            <button id="search-go-banner" type="submit" tabindex="4" accesskey="4">Go</button>
              </form>
        </div>   
        <div id="wrapper">
        <div id="nav">
            <ul>
                <li><a href="landing.html" tabindex="5" accesskey="5">Nav Link One Here</a></li>
                <li><a href="landing.html" tabindex="6" accesskey="6">Nav Item 2</a></li>
                <li><a href="landing.html" tabindex="7" accesskey="7">Nav 3</a></li>
                <li><a href="landing.html" tabindex="8" accesskey="8">Nav Link Four Goes Here</a></li>
                <li><a href="landing.html" class="last" tabindex="9" accesskey="9">Nav Link 5</a></li>
            </ul>   
        </div>   
        <div id="content">
            <div class="col">
              <div id="twitter"></div>
                <script type="text/javascript">
    // BeginOAWidget_Instance_2125523: #twitter
    $(document).ready(function() {
        $('#twitter').twitterSearch({
            term: 'from%3Adukenews',
            title: '',
            titleLink: 'http://www.twitter.com/dukenews',
            bird: false,                    // true or false (show or hide twitter bird image)
            birdSrc: '/images/tweet.gif',         // twitter bird image
            birdLink: 'http://twitter.com/dreamweaver',        // url that twitter bird image should like to
            avatar: true,                // true or false (show or hide twitter profile images)
            anchors: true,            // true or false (enable embedded links in tweets)
            animOutSpeed: 500,    // speed of animation for top tweet when removed
            animInSpeed: 500,    // speed of scroll animation for moving tweets up
            pause: true,                // true or false (pause on hover)
            time: true,                    // true or false (show or hide the time that the tweet was sent)
            timeout: 4000,            // delay betweet tweet scroll
            css: {
                a:     { textDecoration: 'none', color: '#3B5998', fontWeight: 'normal'},
                container: { backgroundColor: '#eee' },
                frame: { border: '10px solid #33ccff', borderRadius: '10px', '-moz-border-radius': '10px', '-webkit-border-radius': '10px' },
                img:   { width: '30px', height: '30px' },
                loading: { color: '#888' },
                text:  {fontWeight: 'normal', fontSize: '12px', color:'#000'},
                time:  { fontSize: '12px', color: '#CCC' },
                title: { backgroundColor: '#33ccff', padding: '0px 0 0px 0', textAlign: 'center', fontWeight: 'bold', fontSize: '14px'},
                titleLink: { textDecoration: 'none', color: '#3B5998' },
                user:  { fontSize: '12px'},
                fail:  { background: '#6cc5c3 url(/images/failwhale.png) no-repeat 50% 50%'}
    // EndOAWidget_Instance_2125523
                </script>
    <h2> </h2>
                <h2>Header Here</h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas commodo mauris ut erat fermentum ultrices. In mauris est, ullamcorper eu molestie eu, semper ut sapien. In eu auctor quam. Etiam gravida lorem sed dolor iaculis vestibulum.</p>
            </div>
            <div class="col">
                <img src="images/placeholder-2.jpg" alt="Placeholder 2" height="214" width="304"  />
                <h2>Header Here</h2>
                <ul>
                    <li><a href="http://www.duke.edu">Link Sample 1</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 2</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 3</a></li>
                    <li><a href="http://www.duke.edu">Link Sample 4</a></li>
                </ul>
            </div>
            <div class="col last">
                <img src="images/placeholder-3.jpg" alt="Placeholder 3" height="214" width="305"  />
                <h2>Contact Us</h2>
                <p>Office of Lorem Ipsum<br />
                30000 Allen Drive<br />
                PO Box 9000<br  />
                Durham, NC 27707</p>
                <p><span class="cat">Phone: </span>919-555-1234<br />
                <span class="cat">Fax: </span>919-555-1234<br />
                <span class="cat">Email: </span><a href="mailto:[email protected]">[email protected]</a></p>
            </div>
        </div>
        </div>
    </div>
    <script src="http://brandbar.oit.duke.edu/footer/videos_podcasts_full.php" type="text/javascript"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/header/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://brandbar.oit.duke.edu/header/js/globalHeader.js"></script>
    <script type="text/javascript"  src="http://brandbar.oit.duke.edu/footer/js/footer.js" ></script>
    </body>
    </html>

  • Problem with determining if JavaScript is Enabled

    Can someone explain why this doesn't work:
    <!-- <script><jsp:setProperty name="logIt" property="JSEnabled" value="true" /></script> //-->
    <noscript><jsp:setProperty name="logIt" property="JSEnabled" value="false" /></noscript>
    For your computer, JavaScript is: <small><jsp:getProperty name="logIt" property="JSEnabled" /><small>.
    (This will return a string of either "disabled" or "enabled")
    I always get the value of disabled, whether JavaScript is turned on or off.
    Any help?

    The jsp:setProperty tags are executed before the page is
    rendered in your browser. (Remember, Java runs on the
    serer, not the browser). Since you last setProperty set
    the value to false, this is the value you get.

  • Safari 4.0.3 problems with MS Outlook Web Access

    I am constantly prompted for my password in MS Outlook Web Access since I upgraded to 4.0.3. This was a minimal problem previously; each time I logged in I would have to enter my password a few times and then be done with it. Now, almost any time I click on ANYTHING I am prompted for my password. Checking the box for 'Remember this password in my keychain' has never had any affect. I'm rather computer illiterate, but I'm willing to try any suggestions! Thanks!

    I have a feeling it's a problem with Apple's javascript. I've also posted a thread here showing that it doesn't work properly with javascript if multiple tabs are open.
    This wouldn't be a "fix"... but it might be worth a try to close all other tabs and see if it works when only one tab is open & then try it again with multiple tabs open and see if that breaks it.
    At least then we'll know we've got a pattern here similar to my issue. I have a feeling the only way this'll get fixed is if Apple gets a head's up and fixes it themselves in Safari.

  • Problem with Javascript in JSP

    Hi Guys,
    I have this problem with my JSP page. I am using a javascript function
    which calls a function within a bean. The problem that I have is that I get an error when trying to call the following function :
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    I get a runtime error at the line Vector empNames = DBQuery.getResult;
    Any ideas would be much appreciated.
    Below is the whole code:
    Thanks in advance
    FRank
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="java.util.*, java.lang.*" %>
    <%-- Declare the java bean for the countries to be queried --%>
    <jsp:useBean id="DBQuery" class="DBQuery" scope="page" />
    <%-- Bean property searchCondition is not set to query countries --%>
    <jsp:setProperty name="DBQuery" property="searchCondition" />
    <%
    Vector empNames = DBQuery.getResult();
    %>
    <HTML>
    <BODY BGCOLOR="GREY">
    <SCRIPT LANGUAGE="JavaScript1.1">
    function refDataTypes_onchange()
    Vector empNames = DBQuery.getResult();
    </SCRIPT>
    <FORM NAME = form1>
    Please enter in the following details
    <p>
    Reference Type :::====
    <select name="refDataTypes" onchange="refDataTypes_onchange()">
    <option value ="1"></option>
    <% for(Enumeration enum = empNames.elements();enum.hasMoreElements();)
    String nextEmpName = (String)enum.nextElement();
    %>
    <option value =<%=nextEmpName%>><%=nextEmpName%></option>
    <%
    %>
    </select>
    <BR>
    <BR>
    Emp No
    <INPUT TYPE="text" NAME=txtAge >
    <BR>
    <BR>
    <INPUT TYPE="button" VALUE="Check Details" NAME=butCheckForm >
    </FORM>
    </BODY>
    </HTML>

    Thanks dimadoo
    I need my JSP to do the following :
    When a user selects a option from a select list. There is a textfield which I want to populate based on the option that thas been selected from the list.
    I tried the following :
    <% Vector empNames = DBQuery.getResult(); %>
    and it does not even go into the bean.
    Will this work if I refresh the page?

  • Problem with Javascript and opening a new page

    Hi,
    I'm developping a website with Java Server Faces.
    I've a problem with JavaScript.
    I have a table, and each row of that table, has a button, to display more information about that specific row. I want to display this information in a new window. For this I want to use JavaScript.
    The new window, of course, needs some information of the other window, to show the right data.
    The first time I click the 'more-information-button', it works perfectly, but from than on, he keeps showing the same information...
    Here is my jsp-page of the first page (the one with the table):
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
             <f:loadBundle basename="languages.MessageBundle" var="bundle"/>
            <html>
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>- UCV-Period -</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                        <h:dataTable binding="#{UcvPeriod.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" rows="5"
                            style="left: 24px; top: 168px; position: absolute" value="#{UcvPeriod.dataTable1Model}" var="currentRow">
                            <h:column binding="#{UcvPeriod.column1}" id="column1">
                                <h:outputText binding="#{UcvPeriod.outputUcvPeriod}" id="outputUcvPeriod" value="#{currentRow['UCVPERIOD']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText2}" id="outputText2" value="#{bundle.ucvPeriod_columnHeader_ucvPeriod}"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{UcvPeriod.column11}" id="column11">
                                <h:commandButton action="#{UcvPeriod.btnDetails_action}" binding="#{UcvPeriod.btnDetails}" id="btnDetails" value="+" onclick="window.open('Details.jsp')"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText21}" id="outputText21" value=""/>
                                </f:facet>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Here is my action, when someone clicks on the 'more-information-button':
    public String bthnDetails_action() {
       Object s = outputUcvPeriod.getValue();
       BigDecimal ucvPeriod = (BigDecimal)outputUcvPeriod.getValue();
       this.getSessionBean().setUcvPeriod(new Integer(ucvPeriod.intValue());
       return "detail_ucvperiod";
    }Here is my constructor of the Detailspage.
        public Details() {
             this.txtUcvPeriod.setValue(this.getSessionBean().getUcvPeriod());
        }Here is the navigation part for this part of my faces-config.xml .
    <navigation-rule>
       <from-view-id>/UcvPeriod.jsp</from-view-id>
       <navigation-case>
           <from-outcome>detail_ucvperiod</from-outcome>
           <to-view-id>/UcvPeriod.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>Thx a lot....
    Anneke

    See the tutorial "Sharing Data Between Two Pages" at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/data_sharing_twopages.html and the FAQ "How can I pass data between pages without creating SessionBean variables in Creator?" at http://devservices.sun.com/premium/jscreator/standard/reference/faqs/technical/javasource/passing_data.html. Since you can open a new window when your button is clicked, the tutorial and FAQ will explain ways to pass your data to the new window.

  • Problem with JavaScript in URL iView

    Hi,
    I am facing a problem with javascript when i am trying to access my application through URL iView. In the javascript window.top is used to access the frames in the window. But the EP is not recognizing it as valid. what exctly the problem and please suggest me a solution.
    Ashok.

    Hi,,
    thanks for the quick reply. But what i asked was different. I will put it in different way. I have deployed a application in Web Application Server and trying to access it through URL iView. My application is pure J2EE application with html,jsp and JS files. In javascript we used window.top property of the java script which is working fine MS IE. The problem is window.top is a IE specific property which is not having any equallent open standerd so EP is throwing a java script error. As I know the only possible solution for this problem is inherating IE rendaring capabilities to iView(i.e iFrame). is there any way to do that?
    Ashok.

Maybe you are looking for

  • Error when trying to create a web service from a wsdl file using jdeveloper

    Hello, I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10. When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error: Validation failed: java.lang.NoSuchMethodException: com.sun.too

  • Cannot install or uninstall Adobe AIR, or install NY Times Reader

    Runnning Window s 7 Pro.  When trying to install Adobe AIR, or to uninstall the current version 2.5. 1, or to install an app that uses Adobe AIR, get message "This application requires a vers ion of Adobe AIR which cannot be found".

  • Problems with Mavericks upgrade?

    Thinking about uprgrading to Mavericks, but have been coming across a lot of threads/reviews about people losing date and/or having real problems with the process. It's been a while since I've been here, and just wanted to ask for an opinion/advice. 

  • Why can't I enable an audio track for recording? (It won't let me)

    I want to record VO but PP won't let me... On Mac OS X 10.10 Yosemite in System Preferences: • Sound Input is set to C-Media USB Headphone Set (an Alesis usb mic...works fine for VO in Final Cut Pro 7) • Output is set to Headphone port In Premiere Pr

  • Where can I find HP34401A App. Example.vi

    Hello, I've been given a vi that was previously created by someone else and I'm trying to get all the subvi's that he used. I've gotten them all through the drivers database on this website except for HP34401A App. Example.vi. I can't seem to find it