Reference name of page

Hi,
Does anybody know how to reference the name of a page in JavaScript? I have a form with 10 pages and want to use the same code on each page to return that page's name.
Thanks for the help?
Ralph

Its not as simple as that. Remember that this is an XML stuctured form so it is hierarchical in nature. Here is the way that I woudl get all page names:<br /><br />// get all nodes from the root node.<br />var oNodes = form1.nodes<br />//cycle through each note<br />for (i=0;i<oNodes.length;i++){<br />    //create an object for each  node that we find<br />     var childElement = oNodes.item(i);<br />     // Test to see if the node is a subform node (all Pages will be subforms)<br />     if (childElement.className == "subform"){<br />         //write the name of the subform node to the screen<br />          app.alert(childElement.name);<br />     }     <br />}<br /><br />If you only want to get the name of the page that you are on you get use any object on the form, get the somExpression and parse away the bits that you do not need.

Similar Messages

  • Intermittent Indirect REference to login page error

    Hello,
    I am building a small web app in a mixed (java/microsoft) environment. We have no budget for a purchased single sign on solution, so I built one with the following architecture:
    ASP page with integrated windows security, this simply returns to the url passed in as'URL' the clients current logon name.
    This ASP page is called by the IntranetSSOServlet, which then builds and submit the vanilla logon page. This servlet is my logon page, it simply posts it's URL to the ASP page, and if a return is posted from ASP, the logon page is bult and submitted. The IntranetSSOServlet also sets a session variable called user to the current user's windows login.
    I have two secure files, these are .jsp passthrough pages (since accessing the servlet directly did not appear to trip the security requirement and call the logon request from the server, so no users were ever in any roles). These are simple pages with a javascript redirect to the two servlets, and the jsp is only used because the servlets do not seem to trip the security requirement in the App server.
    On my machine this works with no issues, single sign on is a success and all is well, on the machine next to mine it works fine also. However, on several client machines, I keep getting an invalie direct reference to login page.
    My question is this:
    Does anyone see any major issues with the architecture which are causing this?
    It appears that the browser on some clients is attempting to go 'Back'. Is this a standard function of any software packages (spyware, internet tracking software, etc.?)
    I am building with Netbeans 5.0, running Embedded Tomcat 5.5.9 and the pages are all accessed via windows XP/IE 6
    Again, whats weird is that this works fine on several workstations, but throws the invalid direct reference to login on others...
    I am quite confused.
    Code to follow:
    IntranetSSOServlet
    if(request.getParameter("user") != null)
    HttpSession session = request.getSession(true);
    session.setAttribute("user",request.getParameter("user"));
    //If SSO submission has returned a validated user name
    //out.println(request.getParameter("user"));
    //post this name and the default password to the logon
    //This servlet will become the logon page, which will handle the redirects easier
    out.println("<form METHOD=\"POST\" name = \"form\" action=\"../Intranet-WebModule/j_security_check\">");
    //Generate a div to hide all of the input fields
    out.println("<div style=\"display:;\">");
    out.println("<input type=\"text\" name=\"j_username\" value=\""+request.getParameter("user")+"\"/>");
    out.println("<input type=\"password\" name=\"j_password\" value=\"sas\"/></div>");
    out.println("<input type=\"submit\" value=\"Submit\"/></div>");
    request.getSession().setAttribute("user",request.getParameter("user"));
    //out.println("<input type=\"submit\"></form>");
    out.println("</form><script language=\"javascript\">//form.submit();</script>");
    else
    //call the SSO submission page
    out.write("<script language=\"javascript\">location.replace(\"http://HOSTNAME/SSO/SSO.asp?URL="+lookupIntranetGlobalsBean().getJSPSiteRoot()+"IntranetSSOServlet\");</script>");
    out.close();
    This Servlet simply returns from the ASP a string (the user's logon) and then creates the post page, which posts a single dummy password to the app server
    JSP passthrough page (secured resource)
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%--
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    --%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    </head>
    <body>
    <script language="javascript">
    location.replace('http://HOSTNAME:8080/Intranet-WebModule/HRTools/newEmployeeAccountServlet');
    </script>
    </body>
    </html>

    Another try besides
         <login-config>
            <auth-method>FORM</auth-method>
            <realm-name>userDatabase</realm-name>
            <form-login-config>
                <form-login-page>/pages_public/login.jsp</form-login-page>
                <form-error-page>/pages_public/loginError.jsp</form-error-page>
            </form-login-config>
        </login-config>is that I try to handle the error code in the web.xml with
    <error-page>
         <error-code>400</error-code>
         <location>/error.jsp</location>
      </error-page>It works when I say location = index.jsp, but it doesn't work when I try to redirect to error.jsp.
    But when I redirect to index.jsp I just reload the login page, but then the user gets no information what has happened, therefore I need the error,jsp.
    I have no idea why. If anybody has a hint or know why it is this way, please let me know!!
    Thanks.

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • Adding reference list in pages?

    Is there any way to add a reference list in my document in pages?
    I have used Word before and there they have a integrated reference manager, cant seem to find any similar functionality in pages.
    If it does not, pages is absolutely worthless in academic writing, so I guess there are a solution but how do I do it?
    Please anyone help.. I realy like pages except for this and I do not want to have to go back to word..

    jem67  I havent bought pages for ipad yet, and I havent done any heavy writing in pages for the Mac, but in the old days...we had to make a reference to a page in a book with a superscript 1...and at the bottom of the page put the superscript again with the page number reference. Then, on a separate sheet of paper, at the end of the chapter we used the number one with the name of the book, author, publisher and date published. If more than one book was used in that chapter, simply use 2,3, ect. We had no reference manager, except ourselves. You have heard of a typewriter, or writing in longhand???

  • How do I programmatically reference the current page in 902?

    Hello,
    How do I programmatically reference the current page in 902?
    The Portal Smart Text option for Current Page is not flexible enough, and I wish to create my own custom greeting using PL/SQL.
    Cheers,
    John

    hi,
    If you are developing a PLSQL Portlet, then you do have a way for getting the page URL.
    The page URL can be obtained from the record, portlet_runtime_record. There is a filed page_urlavailable with portlet_runtime_record.
    The portlet_runtime_record is passed as a argument to the show_portlet procedure.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I have a question about extracting pages.  When I do the function, adobe saves the individual files as " file name space page number ", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I a

    I have a question about extracting pages.  When I do the function, adobe saves the individual files as "<file name><space><page number>", so the files look like this "filename 1.pdf", "filename 2.pdf", "filename 3.pdf".  Without too many gory details, I am using excel to concatenate some data to dynamically build a hyperlink to these extraced files.  It casues me problems, however, for the space to be the the file name.  Is there any way to change the default behavoir of this function to perhaps use a dash or underscore instead of a space?

    No, you can't change the default naming scheme. You can do it yourself if you extract the pages using a script instead of using the built-in command.

  • How to display database name in page footer in webi report

    Hi Every one,
    I have migrated deski report from BO 6.5 to BI 4.1. and converted Deski to WEBI in 4.1.
    In Bo 6.5 page footer displaying database name but BI 4.1 it showing database type (like Oracle 10g,9i ..etc..).
    I want database name in page footer.
    Please any one help me to solve this issue.
    Thanks

    Hi Thanks for your reply.
    We have tried this option but its not helpful.
    Below syntax is  in both BO 6.5 and BI 4.1.but in 6.5 it showing database name where as in BI 4.1 it showing database type
    ="Track GPQ Database - " + Upper(Substr(Connection((DataProvider(([product])))) ;Pos(Connection((DataProvider(([Product])))) ;"DATABASE")+9 ;7)).

  • Query regarding Name format page for Portugal

    Hi All,
    We are PeopleTools 8.50 and Peoplesoft HRMS Application 9.0. We have implemented the e recruit module for different countries and I would like to know if a delivered name format page exists for Portugal such as NAME_PRT_SEC because I do not find it in the NAME_FORMAT_TBL or in my Application Designer. I can find such a corresponding name format page for every other country but not for Portugal.
    We would need this information as our client wants the name formats to be displayed in Portuguese format when the user logs in Portuguese Portal.
    Thanks in Advance for the information.

    Amit,
    Get your date in this format in XML.
    YYYY-MM-DDThh:mm:ss+HH:MM
    Then there are lot of functions, you can apply on this to get the formatted date you wanted.

  • Add name and page number to document

    Is there a built in way to add your name and page number to each page in a pages document?

    Hi Faynus! You can put it in the header or footer. Use Insert Page number in the menu. You need to have the insert point in the footer if you want it there. you can get the PAges User Guide by going to the menu > Help > Pages User Guide. YOu have the info about headers and footers there

  • HTTP name of pages in dreamweaver

    Hi,
    I decided to build the majority of my website in flash. I.e. build different components (such as a calender) in flash and then I planned to import each component into dreamweaver on a seperate page and publish. The only trouble with this is that I have tried to link pages together using code in flash that goes to a specific web page. How do I name my webpages in dreamweaver so that it will go to that page.
    E.g. I have created a link in a flash document to www.mywebsite.com/about - how do I name this page in dreamweaver so that it links to this page?
    Cheers,

    That seems simple enough.
    Thanks for your help Joey...much appreciated.
    Quick question though: do I have to create a folder in the root directory on the local server, or my website server, or both?

  • List of reference names for executeCommand();

    Hey!
    Does anyone know if it is possible to get a list of all the reference names for the executeCommand(); function?
    To be more specific; i'm talking about a list of all possible "number names", like the one highlighted in red 
    app.executeCommand(2359);
    2359 = Preferences
    JesB

    There are more though  All the contextual ones (right-click a layer > Reveal Expression Errors.... that's the one i'm after for some time.. doesnt work)
    Apparently the ones with negative id's require some particular settings, which i can't figure out.
    Xavier.
    And this is where the community support comes into play. I would like to keep updating the document with missing/incorrect stuff. Not all menu commands will have an ID assigned (no ID means we can't use them in ExtendScript unfortunately), but the ones that do, we can add to the list. If you do find one(s) let me know. I will dabble on my own as well over time and see if I can find more. It simply boils down to adding the menu name into this code:
    alert(app.findMenuCommandId("insert menu command name"));
    The number that pops up is what it is, barring the duplicate name issue I mention repeatedly in the pdf though.
    Thank you David, and really great work with the list
    Thanks Jes, hopefully we can improve it over time.

  • Unexpected error: unable to find item name at page or application level

    HI!
    I upgrade my application from apex 3.0 to 3.1
    I created a new page.
    When trying to insert a new row, on clicking "create", the page displays the error :
    Unexpected error: unable to find item name at page or application level
    This error didn't appear in apex 3.0
    What this error can be? Is it a bug of APEX 3.1?
    Thank you!

    I have seen this in combination with javascript. Recreating the item helped.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Calling SAP ME web services with out reference names

    Hello,
    When calling SAP ME web services from non SAP clients, is there a way the users can by pass the reference names? Just pass SFC details instead of SFCREF.
    example:- Data collection web service expects SFCRef:- SFCBO:<SITE>,<SFC> rather than that, what we are expecting is just pass SFC name and get response from ME.
    -Adarsha.K.S

    Hi Adarsha,
    ME always accepts references only.you can do this in two ways,
    1. Form a string with respective business object + site + object and pass.(ex: SFCBO:<SITE>,<SFC>) and then pass as reference.
    2. through SOAP UI request XML. ex:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
       <soapenv:Header/>
       <soapenv:Body>
         <ParametricRequest_sync xmlns="http://sap.com/xi/ME">
      <ParametricRequest>
      <SiteRef>
      <Site>SITE1</Site>
      </SiteRef>
      <me:SfcRef>
      <me:Sfc>SFC1</me:Sfc>
      </me:SfcRef>
       <DcGroupRef>
      <DcGroup>ABC</DcGroup>
      <Revision>A</Revision>
      </DcGroupRef>
      <ParametricMeasure>
      <MeasureGroup>ABC</MeasureGroup>
      <MeasureName>PARAM1</MeasureName>
      <Actual>1</Actual>
        </ParametricMeasure>
      <ResourceRef>
      <Resource>RESOURCE1</Resource>
      </ResourceRef>
      <me:OperationRef>
                    <me:Operation>OPERATION1</me:Operation>
                    <me:Revision>A</me:Revision>
            </me:OperationRef>
      </ParametricRequest>
      </ParametricRequest_sync>
       </soapenv:Body>
    </soapenv:Envelope>
    hope this helps.

  • Is MD199E/A the reference name for the third or two generation of apple tv

    I want to buy an apple TV but I don't know how identify the 3r version from the 2d. Do you know what are the references for them?. Thank You.

    Thank you vazandrew. But I need to know the reference name of two ones, because the store in my city has only the reference name MD199E/A, and they don't know if it is the 3rd or 2nd version. Thanks for your help.

  • What's a separator bar when you name a Page Title?

    what's a separator bar when you name a Page Title?

    Please refer to a similar discussion here :
    https://forums.adobe.com/thread/1697335
    Thanks,
    Sanjit

Maybe you are looking for