Forward to new page

Hello,
On clicking a column , I open a new popup page.(page 2)
now in the popup page 2, i need to put some logic to forward to a specific page based on the parameter value
example in page headers of Page2-- i want to put some logic if paramvalue= A forward to Page3 else forward to Page 4
how can I do that?
thanks,
Arun

Hi
You can use jQuery to accomplish this. Assuming you are passing a parameter value to page 2 say it is P2_ITEM_VALUE. Now you can place the following javascript in the page 2 header this will execute on page load.
<script type="text/javascript">
$(function () {
        var txt = $('#P2_ITEM_VALUE').val();
        if (txt == 'A') {
            window.location.replace("http://someurl.com");
            //alert("You have entered A");
        } else {
            window.location.replace("http://anotherurl.com");
</script>Hope this helps.
Regards,
Tajuddin
Blog: http://tajuddin.saradesh.com

Similar Messages

  • Problem with forwarding to new page in jsf

    Hi
    I am facing a problem. I have a checkbox in my jsp page and 3 submit button. The two button works w r t check box and its woking fine. I am getting problem with the 3rd button. I want to fwd to next page once the button is clicked.
    For the check box i am using the method
    public String handleCheckbox2ValueChange(ValueChangeEvent valueChangedEvent)
    Can anyone help me in this regard. I need to fwd to the next page.
    Regards
    Rupesh

    This sounds like a simple JSF navigation that has nothing to do with the checkbox. Read the documentation and tutorials on navigation.

  • Say subject A is on top of page 1 and subject B is on top of page 2.  As more text is added subject 2 will be pushed to page 3 eventually is there a way to always keep all Subjects on top of the page even it is pushed forward to a new page?

    Say subject A is on top of page 1 and subject B is on top of page 2. 
    As more text is added subject 2 will be pushed to page 3 eventually is there a way to always keep all Subjects always on top of the page even if they are pushed forward to new pages?

    Hi ameryfromny;
    We can place a pagebreak before the Heading or Sub-Heading manually prior to or even after creating a Table of Contents. So that the Heading or Sub-Heading is placed always on top of a page.
    To create a Table of Contents:
    Under Format panel, define paragraph text as Title, Subtitle, Heading, Heading2 ..... and so on for displaying in TOC.
    After completion of document writing, place cursor where a TOC is to be displayed.
                   Insert > Table of Contents > Document
    A table of contents generates automatically.
    Regards,

  • Yahoo news pages show up in quadruplicate in the back/forward button

    When navigating through the news pages at yahoo, a single click on an article will bring up a new page, but if one tries to use the back button to return to the previous page nothing happens. Looking at the back button pulldown, there are four copies of the page. This happens for every page I click on at yahoo news. What seems to be happening is that, the page loads, then suddenly reloads, creating three new versions in the history, and the reload is very quick upon the initial version loading. This doesn't happen with other websites.

    Just put the little arrow back into the system. Fix this now. I don't want 2 other options. Get this right for "nontech" people.

  • Opening a New page on click of a link in Struts PDK portlet

    Hi All,
    Please help me to sort out my issue..
    I created a portlet(say P1) using struts Portlet.That portlet is added to a portal page..which has some other portlets already(p2,p3,p4)...So my portal page has 4 portlets p1,p2,p3,p4..In Portlet P1 There is JSP which has a link inside...When i click on the link..I need to open a new JSP page with some prepopulated data inside it..Now the problem is..it is opening a page with data..but in the new page i am seeing all the remaining portlets as well..P1(with new data),P2,P3,P4 portlet..
    But i need to see only the JSP page with my new content..please help me with this..
    Here is the code...what i have written
    INDEX.JSP
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <html:link action="/sayActionHello" target="_blank">My Link</html:link>
    </body></html>
    ACTION CLASS
    public class SayHelloAction extends Action {
         public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    System.out.println("Inside execute ................................");
    PortletRenderRequest pReq = (PortletRenderRequest)
         request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    ProviderSession pSession = pReq.getSession();
    if(null != pSession){
         System.out.println("Inside---pSession...........................");
         pSession.setAttribute("sample","Sample Data for Testing");
    return mapping.findForward("success");
    Provider.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <?providerDefinition version="3.1"?>
    <provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
    <session>true</session>
    <passAllUrlParams>true</passAllUrlParams>
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>1</id>
    <name>samstruts</name>
    <title>samstruts</title>
    <description>sample struts Portlet Description</description>
    <timeout>40</timeout>
    <showEditToPublic>false</showEditToPublic>
    <hasAbout>false</hasAbout>
    <showEdit>false</showEdit>
    <hasHelp>false</hasHelp>
    <showEditDefault>false</showEditDefault>
    <showDetails>false</showDetails>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <renderContainer>true</renderContainer>
    <renderCustomize>true</renderCustomize>
    <autoRedirect>true</autoRedirect>
    <contentType>text/html</contentType>
    <showPage class="oracle.portal.provider.v2.render.http.StrutsRenderer">
    <defaultAction>/sayHello.do</defaultAction>
    </showPage>
    </renderer>
    </portlet>
    </provider>
    Strutss-config
    PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <action-mappings>
    <action path="/sayHello" scope="session" type="com.up.tey.SayHelloAction">
    <forward name="success" path="/jsp/index.jsp"/>
    </action>
    <action path="/sayActionHello" scope="session" type="com.u p.tey.SayHelloAction1" input="/htdocs/jsps/index.jsp">
    <forward name="success" path="/jsps/indexsample.jsp"/>
    </action>
    </action-mappings>
    </struts-config>
    Indexsample.jsp
    <%@ page contentType="text/html; charset=windows-1252"
    import="java.io.File, java.io.FilenameFilter"
    %>
    <%@ taglib uri="/WEB-INF/tlds/struts/pdk-struts-html.tld" prefix="html" %>
    <html>
    <head>
    <title>
    Struts Sample Portlet - Hello World...
    </title>
    <body>
    <h1>HELLO WORLD Sample using Struts !!!!!!<%=session.getAttribute("sample")%></h1>
    </body></html>
    In new window i am cing Indexsample.jsp inside my P1 portlet..But the remaining 3 portlets(p2,p3,p4) are also there..Which i dont want..Please Help..this is really very urgent for me..

    HI
    i am also facing same problem with session but in simple portlet with ajax implementation.
    i am setting session in portlet jsp with following code using oracle application server portal 10g.
    (here portlet jsp means which is included from portlet.)
    session.setAttribute("map",map);(here session is implicit object )
    i want to call ajax jsp from portlet jsp with below code.(i.e setting session in portlet jsp and accessing in ajax jsp)
    var url = "<%=renderRequest.getContextPath()%>/AjaxProcessRequest.jsp?q=" + random;
    var pars = '&namespace=<portlet:namespace/>' +'&imagesPath=' + '<%=imagesPath%>';
    var myAjax = new Ajax.Updater(
    {success: 'emailbody'},
    url,
    method: 'get',
    parameters: pars,
    onFailure: reportError,
    evalScripts: true
    i am accessing map object from session in my AjaxProcessRequest.jsp as shown in below code.
    Map map=(Map)session.getAttribute("map"); (here session is implicit object )
    here map object is getting null from session.
    Please help on this if u know about this session.
    Regards
    Raju

  • Appending new pages to signed documents now makes Acrobat 9 and Reader 9 mark signature as invalid

    Hello!
    I have developed a service that appends additional pages to existing PDF documents. Some of the documents the service works on happen to be signed. As the service appends the pages using incremental updates, the signed contents are left untouched. This makes Acrobat 8 and Reader 8 display the signature state as "valid with subsequent changes" which is ok and no one complains about.
    Now along come Acrobat 9 and Reader 9, and all of a sudden the signature state is "invalid" which my users do complain about. Telling them that inspecting the signature state details they can see that the signed content still is untouched and the actual change is recognized to be some appended pages, doesn't help either as they in turn forward the documents to their customers who don't accept the documents if the Adobe Reader sais the signatures are invalid.
    Does anyone know a way new pages can be added to a signed document without having the new Adobe program versions choke on them?
    Even a hint that involves adding some flag to the original unsigned document or the signature itself would help as the users in question can tweak those processes. Due to the nature of the workflow, though, signing unfortunately must happen before my service can add the new pages.
    Best regards, Mikel.
    By the way, the signatures in question are regular approval signatures, nothing fancy, especially not certifying signatures (which indeed can forbid any changes or at least any changes but some form fill-ins and annotations)...

    Hi Fritz,
    In the interest of full disclosure, I got the answer to the problem from one of my distinguished colleagues, I'm just the messenger in this case.
    The problem is that the form adds some items to the Arzneispezialität / Zusatztext combobox which are there during signing but the form doesn’t remember that it did this on the next form open. 
    Since this field is included in the MDP+ signature and the field has changed in the re-opened version vs. the signed version, the MDP+ signature becomes invalid.
    XFA has a feature that remembers these kinds of things for you but it is turned it OFF. Please open the attached screen shot to see the control in question.
    So, you can either (1) turn this feature ON (Automatically), or (2) write some script to clear the combobox items prior to signing or (3) write some script to repopulate the combobox items on the subsequent open to match the items that were there during signing.
    Steve

  • Is there a way to reorder or introduce new pages in iBooks Author, without creating a new IBook?

    Is there a way to reorder or introduce new pages in iBooks Author, without creating a new IBook? Is this possible?

    The main thing is...you have a way to move forward with your project.
    If I may offer some tips, learn to customise the template to suit your project...its basically very easy..once you try.Again a search will bring up posts that address this topic.
    IF you do create your own template..save it as a template before using it, that way you have a clean version every time.
    When putting your book together save versions as you go along..later you can delete them.
    If, as .. you seem to have found, you need to change things or want to try other options, you can copy whole chapters or sections and paste in a new order or  into another version of your template. If you copy into a different template or book, the template basic also transfer to the template. Best way to discover what can be done is simply open a new book to play with! Add a few chapters and sections...include some pages..and just drag things around, copy and paste where you choose. Its just learning and after you delete the junk!..BTW, yes, you can have single pages before the first chapter...i.e. I open a copyright page into a chapter...that drag it to the top of the book tree, a blue line will appear ..drop it.
    If you need any help or advice, its available in abundance on this forum.  Have fun...

  • New page unexpectedly loses ability to go BACK to previous page after clicking on a link in page (not consistent), why?

    Firefox 4.0 Vista 32 bit
    I will have a tab open, and click on a link, new page loads. The Back and Forward buttons do not work. Usually it shows in history (unless I opened too many pages before clicking on link). This has happened several times.
    It is not consistent - one time I used search bar and opened a Yahoo search page - clicked on search link and when I wanted to go back to look at another search link from the previous page- page would not load (BACK button dead). I clinked search again, clicked on another link and that time it allowed me to return to the previous page???
    I am about ready to go back to previous version.
    Thank you.

    It's a good idea to try disabling Flash completely and see whether the problem continues. If it does, then my guess is incorrect. To test that, open this tab:
    orange Firefox button (or Tools menu) > Add-ons > Plugins category
    Here you can locate Shockwave Flash and use the Disable button. Keep this tab open for easy access when doing your test.
    ''If your test confirms that Flash is causing the problem,'' then the other thread has two suggested workarounds. The first is simple to understand (keep some Flash running at all times) but may be inconvenient to do all the time. The second is trickier because it requires editing a file in (or creating and then dragging a file into) a system folder. Fortunately you only need to do it once.

  • Creating new pages in iWeb

    Could someone assist please with creating new pages within a page - that is if I need to follow from
    a previous page with in context stuff, but I don't want a NEW page with a NEW page heading at the top.
    I just want to put more stuff up under an existing page heading and using an arrow to go to new page
    all in the same section. Rather than filling the top with new page headings. Sorry if I cant explain it better! Thanks - Gareth

    This works for your site because it is mostly photos and you have used the Photo Page, fine. However, what you need to remember is that many people just have ordinary websites without photos who might still want to use sub pages and this method will not work for them because there are not forward and back links.
    I have sub pages on my own website and basically, I created an About Us page. I have some text there, but then I have something that says find out more about these people. I did not want these other pages displayed in the main nav bar, so I took them all out and what I have done on the About Us page is use a shape with the name of the person in it and created a hyperlink to that page. You click on the relevant shape and this takes you to the page for that person - on this page I have then created a shape with Back and Forward in it - the Back hyperlink if clicked on takes you back to the About Us page and the Forward hyperlink takes you to the page for the next person etc.
    If you want to create sub pages on an ordinary web site, then this is how you need to do it - you need the links on the pages that are not in the main nav bar to be able to get around the site.
    You don't have those links on your site, but as it is mainly photos then this does not matter and works for you, as you go from gallery to gallery. This will not work for everyone though - horses for courses! What works for one might not work for another.

  • History forward from a page/browser history

    Hi there
    I have an issue with Chrome. I have to stop hitting back in a particular scenario. To make you understand easily, I have made some simple HTML pages the content of which I am pasting here:
    Page1.htm
    <html>
    <head>
    <title>Back Button Demo: Page One</title>
    </head>
    <body>
    <h1>Back Button Demo: Page One</h1>
    <a href="middlepage.html">Advance to Page Two</a>
    </body>
    </html>
    MiddlePage.htm
    <html>
    <head>
    <title>Back Button Demo: Page One</title>
    <script langage="text/javascript">
    function SubmitForm() {
    document.frmGrantee.submit();
    function noBack() {
    history.forward();
    </script>
    </head>
    <body onload="noBack();SubmitForm();" onpageshow="if (event.persisted) noBack();" onunload="">
    <h1>Back Button Demo: Page Three</h1>
    <form name="frmGrantee" method="POST" action="page2.html" enctype="multipart/form-data"><!--form to submit this intermediate page and display page 3-->
    </form>
    </body>
    </html>
    Page 3.htm
    <html>
    <head>
    <title>Back Button Demo: Page two</title>
    </head>
    <body>
    <h1>Back Button Demo: Page two</h1>
    </body>
    </html>
    Now the reason of introducing this intermediate page is that, in my actual application, I never know from which page this Page 3.htm is called. So straightaway I introduced this MiddlePage.htm and from every page I am sending the control to that page and from their it is submitted to Page 3.htm so that whenever back is hit from Page 3.htm, it always get an intermediate MiddlePage.htm and due to the code written there, comes back to the Page 3.htm. Otherwise I had to write that history.forward in every page of my application (Page 1.htm, Page 4.htm, Page...n.htm and so on) which would not be a good coding at all. This particular code is already working on IE, Opera, Mozila Firefox. Any suggestion on why I am not getting the history of that intermediate page, is highly appreciated.
    Thanks in advance...

    I think that i have the answer of my question!!!
    To forward from a page flow to another page i can put in my jpf an action like this :
    * @jpf:action
    protected Forward doForward() throws URISyntaxException
    String url = PageURL.createPageURL(getRequest(), getResponse(), "definition_label_of_the forward_page").toString();
    return new Forward(new URI(url), true);
    Can someone tell me if i am true ?
    Is there another way to implement this ?
    Thanks for help.

  • When opening a new tab i wish to see current tab again on the new page

    when opening a new tab i wish to see the contents of my currently open webpage again on the new page

    * Hold Command and left-click or middle-click the Reload button on the location/address bar to open the current page in a new tab.
    * Hold Command and left-click or middle-click items in the tab history of the Back and Forward buttons to open a page from that list in a new tab<br>You can hold down the left mouse button on the Back or Forward button to open the tab history.
    * Duplicate a tab with its history by pressing the Option key and dragging the tab to a new position on the tab bar.
    * Dragging a tab in the browser window will detach the tab and move it to a new window, this is called tab tearing.
    * Drag a tab back to the tab bar in the original or anther window to undo a detach or move a tab to a specific window. If a window gets empty (you tear off the last tab) then that window will be closed automatically.
    *https://support.mozilla.org/kb/Mouse+shortcuts
    *https://support.mozilla.org/kb/Keyboard+shortcuts
    *https://support.mozilla.org/kb/Tabbed+browsing

  • Want to automatically forward an iWeb page to another page...

    Hello all,
    I've decided to use blogger instead of the iweb system for my blog, since it's much easier to work with it off site. However, I want to automatically forward visitors to the blogspot page when they hit the "blog" tab on the pages... The way I have it currently, visitors have to click on a separate hyperlink to get to the actual blog....
    Is there a way to automatically forward visitors when they click on the "blog" link to the blogspot address?
    My website is: www.danevans.org ... the specific page I'm speaking about can be found at: http://web.mac.com/motoelvis/iWeb/DanielEvansWeddingPhotography/Blog.html

    1. In iWeb:
    Create a dummy page in your site called "Blog"
    (You have already basically done this)
    Make sure the dummy page is included in the nav bar.
    (You've already basically done this too)
    Put something like "If you have reached this page, then I am in the process of updating the site. Normally, clicking Blog in the navigation bar would take you to my Blog. CLICK HERE to visit my Blog." (CLICK HERE = a text link to your blog)
    Publish your site.
    2. Find your html files.
    Go to iDisk/Web/Sites/iWeb/Sitename/Pagename.html
    There are two ways to handle accessing your iDisk.
    Method 1:
    Turn on local copy of your iDisk in System Prefs, with or without automatic syncing.
    If you publish your site via iWeb, now the updated pages exist online but the old pages are on your local iDisk. You need to sync (automatically or manually) to get the new pages on your local iDisk (on your computer).
    Then you can open the updated files, make your html changes in Text Edit or whatever program, and SYNC AGAIN (automatically or manually) to update the online version of the site to match what you have just changed on your local iDisk
    Method 2:
    Mount the iDisk when needed via the "Go" menu in Finder. This is the ONLINE VERSION of your iDisk, not a local copy. When you publish your site via iWeb, the changes INSTANTLY appear on the iDisk on your desktop. If you make html edits or other changes, they appear INSTANTLY online.
    I recommend Method 2 - much easier!!!
    3. Make the html changes.
    You can open the html files generated by iWeb in any text or html editor. In TextEdit, to view the code in an HTML file, choose File > Open and select "Ignore rich text commands." Then locate the .html file (as described in step 2) and click Open.
    For all the pages in "DanielEvansWeddingPhotography" except for Blog.html, search for
    href="Blog.html"
    Replace with
    href="http://marriedtotheblog.blogspot.com/"
    Now open DanielEvansWeddingPhotography/Blog.html
    Find
    </head>
    Replace with
    <META HTTP-EQUIV="refresh" content="0;URL=”http://marriedtotheblog.blogspot.com/">
    If someone gets to this page via Google or something, it will automatically redirect them to the correct page.
    And don't forget to save your changes (not Save As, just Save)!!!
    4. Remember, if you make a change to a page like this post-publishing, and later re-publish, you have to make the html changes again! Set up a Find/Replace command in MassReplaceIt and you can do this very quickly. You can save your queries so you can make all of your changes with one click the next time you save.
    Download here:
    http://www.hexmonkeysoftware.com

  • Does upgrading to new pages on iPad remove older version of pages

    Does upgrading to new pages on iPad remove older version of pages. In other words, after upgrading will I be able to open older Pages documents on the iPad?

    I took a while to figure this out after I got into the same mess. The new iWorks is a very bad downgrade. I have deleted Pages 5 from my Mac and gone back to Pages 4.3 (it is still there and was not removed when you updated to Pages 5.)
    I then deleted Pages 2 from my iPad and from iTunes.
    I used TIme Machine to go back to ~/Music/iTunes/Mobile Applications in September and found "Pages 1.7.2.ipa" and brought it forward to my desktop. I then droped it into the iTunes icon in the Dock and it reinstalled.
    Hope this works for you.
    Apple can now take as long as they need to correct all the mistakes they made with the current version of iWorks - I will not be upgrading again until they do.
    Apple - Are you listening?

  • How to make my tables not to threadding to a new page until its fill the page i'm working on?

    After the 1st row, the 2nd row supposed to be on the bottom of the 1st page... but it's happen otherwise... it's keep threadding to a new page.. It's also happens to the 3rd row... Anybody here know how to fix this...? I already using 5 hours just to solve this prob but nothing happens... x_X

    hmmn Ok, im still on CS5.5 here at home...
    here is a link tho.
    https://dl.dropboxusercontent.com/u/7716845/tableQuick.indd
    i did this in a few minutes and created a few cell styles. The way forward for you is learn about table formatting and cell styles as well as utilizing headers etc.
    let me know if it helps.
    /G

  • Not letting me start new page.

    I just created my .mac username and opened iWeb for the first time and I am unable to click NEW PAGE, NEW SITE, SAVE, PUBLISH TO .MAC etc. I am also unable to click on text, shapes, forward, backward, and mask on the bottom of the screen.
    I am not sure what the problem is. Does anyone have a clue?

    Quit iWeb, go to Home Folder/Library/Preferences and delete the com.apple.iWeb plist file and then relaunch.
    If that doesn't do it, repeat the above, do a restart of your Mac and run Disk Utility to repair permissions and try again.

Maybe you are looking for

  • Vendor Reconciliation account change for specific vendor

    Hi All, Client  want to  change the Reconciliation account in the Vendor Master but same reconciliation account assign to multiple vendor master but client want to change specific vendor not for all vendor . The vendor has postings to it right now. W

  • User input in Jdeveloper (Scanner or Savitch class)

    Hello, well, sorry about the simplicity of the question but for the most simple block of code like this one, getting input from the user, the program runs and runs on the botton window below where the class is. I mean where you get a log of messages

  • Webcam's sequencial frames

    Hi I am trying to get some images (10 frames per second) from a webcam so that later I can detect the moving objects.. My code is the following but I dont know how to change it so that I can get 10 frames per second.Any help? package video; import ja

  • Where does source code of webpage of firefox gets stored on hard drive?

    i want to scan the the source code of webpage which is loaded in firefox

  • InDesign CS2 issue

    Hi, would appreciate any help on the following: I'm running InD CS2 on a Macbook with Snow Leopard OS. The program generally works OK, however, I have the following problem: Let's say there's a piece of text in a box. If I want to change its size, I