Javascript in JSP Portlet error..can anybody help?

Hi..
I got a problem..
I use JSP in Portlet..
The problem is, when i put this code in Portlet, it gaves me javascript Error..not sure what to do...
'document.standinglist._piref1_41281_1_1.next_page' is null or not an object '
In normal situation (jsp in server, not in portlet)..it is ok..
function cancelR(flag) {
var total = 0;
if ( confirm("Do you want to continue process this record ?") ) {
document.standinglist._piref1_41281_1_1.next_page.value = "/htdocs/stand/standcancel.jsp?flag=flag";
document.standinglist.submit();
else {
alert("Please select the required record!");
}

Hi,
The behavior that you are seeing is an expected one. As i can understand, you have an HTML form element whose name is a fully qualified parameter & currently at runtime it is _piref1_41281_1_1.next_page If you carefully observe this, this name itself contains a period (dot).Hence when the browser tries to execute this, it thinks that _piref1_41281_1_1 is an object (which it isn't).
The whole issue is because there is a dot in the fully qualified name which has this format _piref<portletInstanceRefId>.<ParamName>
You could do the following to get it work. Use the following,
document.standinglist.elements["._piref1_41281_1_1.next_page"].value = "/htdocs/stand/standcancel.jsp?flag=flag";
Note however that this method call will not work on portal 3.0.9. when viewed using IE. This is due to IE's bizzare handling of this javascript call.
Since, you are using Portal 9.0.2, you should not face any issues.
Hope this helps.
Regards,
Abhinav

Similar Messages

  • HT1766 my iphone version is 7.0 and it has been expired im trying to downgrade it but itunes gives me errors can anybody help ?

    my iphone version is 7.0 and it has been expired im trying to downgrade it but itunes gives me errors can anybody help ?

    You should be posting this in the Developer Forums, to which, as a developer, you have access. Discussion of beta software isn't permitted in the public forums due to the NDAs you sign as a developer.
    Best of luck.

  • Tomcat 6.0 is not working it is giving following error, can anybody help me

    Windows could not start apache tomcat on local computer. For more information review the system event log . If this is a non microsoft service contact the service vendor & refer to service specific error code 0.

    samartha123 wrote:
    It is showing this error whenever i tried to start tomact and does not start why it is so?what is? the tomcat logs?
    sounds like you installed tomcat as a service. stop the service and try starting it in a command shell using the start script so you can see the error messages as they fly by.
    %

  • Wont let me sync my iphone 4 to my itunes as says i need to dowload latest software, have done on both iphone and pc but still says the same error, can anybody help me?!

    Hello,
    I'm trying to sync my iphone with my itunes on my computer but it comes up with a message saying 'cannot connect to this iphone as the newest itunes needs to be downloaded'.. i downloaded this to my computer but whenever i open itunes it looks as though it isnt the new version?
    any help would be great!
    thanks,
    Emily

    You may need to force it into recovery mode. See here: https://discussions.apple.com/message/17766427#17766427

  • Plsql webservices deploy error in weblogic.... Can anybody help me.. Urgent

    Could any body look into this exception....
    I am stuggling with this for the last one week........
    I have generated the webservices from PLSql procedure, deployed and tested in oc4j which is successfull running and I can access the webservice too.....
    The same ear file, when i deploy in to weblogic I am getting the follwing error, can anybody look in to this and help me....
    <May 20, 2006 2:09:14 PM GMT+05:30> <Error> <Deployer> <BEA-149231> <Unable to s
    et the activation state to true for the application 'gtry-gtry-WS'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "gwsSoapHttpPort" fa
    iled to preload on startup in Web application: "gtry-gtry-context-root".
    java.lang.IllegalStateException: could not find schema type named {{http}//orass
    pcon/Gws.wsdl/types/}EmpRecUser
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder$GlobalTypeNod
    e.getSchemaType(AnonymousTypeFinder.java:181)
    at weblogic.wsee.bind.runtime.internal.AnonymousTypeFinder.getTypeNamed(
    AnonymousTypeFinder.java:86)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.create
    BindingTypeFrom(Deploytime109MappingHelper.java:888)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.proces
    sTypeMappings(Deploytime109MappingHelper.java:466)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBi
    ndingFileFrom109dd(Deploytime109MappingHelper.java:246)
    at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>
    (Deploytime109MappingHelper.java:162)
    at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.create
    RuntimeBindings(RuntimeBindingsBuilderImpl.java:80)
    at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.jav
    a:272)
    at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:94)
    at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:58)
    at weblogic.wsee.server.servlet.WebappWSServlet.initRuntime(WebappWSServ
    let.java:70)
    at weblogic.wsee.server.servlet.WebappWSServlet.initImpl(WebappWSServlet
    .java:32)
    at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:40
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
    ubSecurityHelper.java:276)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecuri
    tyHelper.java:68)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubL
    ifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHel
    per.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:493)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
    ervletContext.java:1688)
    Thanks in Advance
    Jayanthy.

    Hi Supriya,
    Check the following:
    * Whether the Report is locked in the server.
    * Are the parameters you pass from the form to report have the similar data types.
    Hope your problem is fixed.
    Regards.

  • Having big problems with my new Mac Pro, when I launch Photoshop CC, I get an error message, can carry on but after a few tasks it starts going gar... menus go blank, when you try to save it shows a blank box.... can anybody help?

    Having big problems with my new Mac Pro, when I launch Photoshop CC, I get an error message, can carry on but after a few tasks it starts going gar... menus go blank, when you try to save it shows a blank box.... can anybody help?

    when I launch Photoshop CC, I get an error message
    and what exactly is the text of that error message?

  • I signed up tp lastPass premium and installed the app on my phone.  I can no longer download mail.  I am asked for a password which I supply my my email but it is not recognised and says there is a domain error. Can anybody help please

    I signed up to lastPass premium and installed the app on my phone.  I can no longer download mail.  I am asked for a password (I give my normal log-in) but it is not recognised and says there is a domain error. Can anybody help please

    Try deleting that app, then see if you have the same issue.

  • I get an error message when trying to email photos. It says "The email server didn't recognize your username/password combination." Yet I have reset my password and was able to log in to this Support Community. Can anybody help me?

    I get an error message when trying to email photos. It says "The email server didn't recognize your username/password combination." Yet I have reset my password and was able to log in to this Support Community. Can anybody help me?

    See my answer to your previous duplicate question. What happened when you tried my answers?
    LN

  • I have an iphone 4 jammed in MDU mode, I conect to itunes and asked to restore, it went through all the steps and nearly completed it gives me an error message saying cannot be restored error -1.  Can anybody help me how to restore my iphone

    I have an iphone 4 started the problem saying no service, then when restarting asked to connect to itunes and became jammed in MDU mode, I connect to itunes and clicked on  restore, it went through all the steps and nearly completed it gives me an error message saying cannot be restored error -1.  Can anybody help me how to restore my iphone.  or what to do next, some reseller asked me to go the shop where I bought to replace it for me as this error cannot be restored by any shop.  It has to be returned to apple and get it replaced.  The warranty already expired and don't know what to do.
    Please help

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    http://support.apple.com/kb/TS3694#error1

  • A Problem with the JavaScript Code can anybody help me

    Hi every body,
    I prepared a html page using the following code, which i grab it from some web site, and used it in my web project,
    but the code that is not working and it is showing some javascript error, can anybody correct it for me please, the code is as follows
    <html>
    <head>
    <title>Contact Form</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    // CSS goes here
    </style>
    <script language="JavaScript">
    function checkForm()
       var cname, cemail, csubject, cmessage;
       with(window.document.msgform)
          cname    = sname;
          cemail   = email;
          csubject = subject;
          cmessage = message;
       if(trim(cname.value) == '')
          alert('Please enter your name');
          cname.focus();
          return false;
       else if(trim(cemail.value) == '')
          alert('Please enter your email');
          cemail.focus();
          return false;
       else if(!isEmail(trim(cemail.value)))
          alert('Email address is not valid');
          cemail.focus();
          return false;
       else if(trim(csubject.value) == '')
          alert('Please enter message subject');
          csubject.focus();
          return false;
       else if(trim(cmessage.value) == '')
          alert('Please enter your message');
          cmessage.focus();
          return false;
       else
          cname.value    = trim(cname.value);
          cemail.value   = trim(cemail.value);
          csubject.value = trim(csubject.value);
          cmessage.value = trim(cmessage.value);
          return true;
    function trim(str)
       return str.replace(/^\s+|\s+$/g,'');
    function isEmail(str)
       var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|
    ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|
    bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|
    ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|
    dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|
    gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|
    hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|
    kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|
    ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|
    mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|
    nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|
    re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|
    su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|
    ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|
    zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
    return regex.test(str);
    </script>
    </head>
    <body>
    <form method="post" name="msgform">
    <table width="500" border="0" align="center" cellpadding="2" cellspacing="1" class="maincell">
    <tr>
    <td width="106">Your Name</td>
    <td width="381"><input name="sname" type="text" class="box" id="sname" size="30"></td>
    </tr>
    <tr>
    <td>Your Email</td>
    <td>
    <input name="email" type="text" class="box" id="email" size="30">
    </td></tr>
    <tr>
    <td>Subject</td>
    <td><input name="subject" type="text" class="box" id="subject" size="30"></td>
    </tr>
    <tr>
    <td>Message</td>
    <td><textarea name="message" cols="55" rows="10" wrap="OFF" class="box" id="message"></textarea></td>
    </tr>
    <tr align="center">
    <td colspan="2"><input name="send" type="submit" class="bluebox" id="send" value="Send Message" onClick="return checkForm();"></td>
    </tr>
    <tr align="center">
    <td colspan="2"> </td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    function isEmail(str)
       var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|
    ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|
    bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|
    ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|
    dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|
    gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|
    hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|
    kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|
    ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|
    mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|
    nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|
    re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|
    su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|
    ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|
    zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
    return regex.test(str);
    Remove all enter sequences inbetween lines in the above function. It vl work.
    All d Best :-)

  • Visual C ++ Runtime Library, Runtime Error.. I keep getting this message can anybody help!

    Visual C ++ Runtime Library, Runtime error..I keep getting this message can anybody help please !!

    What is the /exact/ error?  What are your system details?  Are you running 32-bit or 64-bit version of the software (if your OS supports it)? 
    I assume the message you are getting is about the UI runtimes every application needs some version of, which is typically supplied by Visual Studio, though there are redist versions bundled with many apps.
    Unfortunately, Windows library management can be a bit of DLL hell (which Microsoft is making an effort to address in Windows 7.)  There are many, many references to this with potential fixes, in Microsoft KB articles.
    But the first step is good information so you can work from the known to the unknown.

  • I can't download/install apps (like skype) in my iphone 5 from apple store....it shows error code-1009.... can anybody help me...?

    i can't download/install apps (like skype) in my iphone 5 from apple store....it shows error code-1009.... can anybody help me...?

    The error 1009 error is normally associated with a blocked country. There are a list of countries that Apple is not allowed to sell their software to due to US restrictions

  • I'm now at Sudan. I'm from Bangladesh. After coming Sudan I can't download/install any application from apps store. It shows error code-1009. Now what to do ? can anybody help me....?

    I'm now at Sudan. I'm from Bangladesh. After coming Sudan I can't download/install any application from apps store. It shows error code-1009. Now what to do ? can anybody help me....?

    Are you trying to download apps from the Sudan app store?  If so, you have to have a valid credit card and billing address in the country of the app store to purchase from that app store.
    Some countries also have restrictions on the apps and functions allowed in their countries.

  • HT1414 I have bought a 3gs on ebay but it still has the password. I have tried to restore but keep getting a 3914 error on restore. Can anybody help?

    I have bought a 3gs on ebay but it still has the password. I have tried to restore but keep getting a 3914 error on restore. Can anybody help?

    See the error descriptions fro error 3914 here: http://support.apple.com/kb/ts3694
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3014, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. FollowiTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    Errors 3000-3999 (3004, 3013, 3018, 3164, 3194, and so on): Error codes in the 3000 range generally mean that iTunes cannot contact the update server (gs.apple.com) on ports 80 or 443.
    Update to the latest version of iTunes.
    Verify the computer's date and time are accurate.
    Check that your security or firewall software is not interfering with ports 80 or 443, or with the server gs.apple.com.
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    An entry in your hosts file may be redirecting requests to gs.apple.com (see "Unable to contact the iOS software update server gs.apple.com" above).
    Internet proxy settings can cause this issue. If you are using a proxy, try without using one.
    Test restoring while connected to a known-good network.
    Error 3194: You may not have the latest version of iTunes installed Update to the latest version of iTunes. If the issue persists, follow the steps above in "Unable to contact the iOS software update server gs.apple.com".

  • I try to restore my ipod mini 4gb  but i get the 1437 error? can anybody help me with this problem?

    ok i have had the ipod fr a while and when i try and restore it gives me the 1437 error? i have no clue what this mean, can anybody help me? when is specifys the ipods components like the name and capacity etc.. under capacity it says N/A?  get back to me please i miss having an ipod:((

    I wish I could offer a solution, because I too am about to go crazy trying to fix the same problem. I have tried everything in the support section, sometimes twice, to no avail. Now I have an empty ipod that won't connect to my computer much less iTunes.
    Any suggestions?

Maybe you are looking for

  • Changing the report displayed on the basis of value selected frm the prompt

    Hi, I have requirement in which there is dashboard prompt which has three columns namely year, month and report name. The user will select the report name from the prompt, once done the report that has been selected should show up on the dashboard pa

  • OSB 11g - testing Business service throws Premature end of file.

    Hi, I am testing a business service which invokes a webservice. I have a load balancer. When testing business service from test console, I get the error "SoapService.doPost: unparseable XML in client Soap request, exception: org.xml.sax.SAXParseExcep

  • Temporary Tablespace Issue

    Hello, Oracle 10g when checking temporary tablespace through sql query it gives the below output. whereas when i check through enterprise manager it shows autoextentible upto 2GB. SQL>  select *from DBA_TABLESPACES   2   where   3   tablespace_name=

  • Why won't my iPod Classic sync with iTunes after installing iTunes 11.1.3

    After being instructed by iTunes to download the latest version (11.1.3) my iPod Classic will no longer sync. I'm using Windows 8. How is this problem resolved? I have followed instructions provided by Apple support and still the iPod will not sync.

  • 404 Error pages

    Right now I have my .htaccess setup so that if I go to www.website.com/nonexistantpage.htm it takes me to the proper 404 error page. But my website is built around php variables for the pages so to visit the home page it's not website.com/home.htm it