Open a new window and send a parameter

Hi
I wish somebody can helpme do the following, I have a table on one page, let's say the main page, and this table has a button which opens a new window, I did this using the onclick event of the button in the jsp source:
onclick = "window.open('../productos/editaproducto.jsp','mywindow','width=800,height=600,scrollbars=yes')"
this works just fine, what I can't figure out is how to send the id of the row of the button the user clicked because I need to use it in the new window, I'd appreciate so much If any body can tell me or give me a clue of how to do this.
Thank's
Yesenia.

Hi,
Please take a look at the thread below and see if it helps
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=62229
Cheers
Girish

Similar Messages

  • Open a command window and send some keystroke to the opened command window

    Hi All,
    I am trying to open command prompt and send some key stroke to that command prompt. Here I am using Robot to send keystroke. But the problem is, the keystrokes are not sent to the prompt. I guess I need to activate progamitically the command prompt to accept the keystrokes . Please find the code below ( as I did).
    try
    String command = "cmd.exe /c start";
    Process child = Runtime.getRuntime().exec(command);
    Robot robot = new Robot();
    Thread.sleep(5000);
    String lol = "indranil";
    for(int i=0;i<lol.length();i++)
    robot.keyPress(lol.charAt(i));
    int g = lol.length() - 1;
    robot.keyRelease(lol.charAt(g));
    catch (Exception e) {}
    I guess I am doing some mistake here while sending the keystroke/openning the command prompt. Can anyone please help me how can I open a command window and send some keystroke to the opened command window. I am in fix.
    Thanks,
    Indranil

    The first thing to do is read the API and examples for the Robot class.
    Also check out this thread with a similar discussion: [http://forums.sun.com/thread.jspa?threadID=5385677]
    The short spoonfed answer - keyPress() and keyReleaseI() do not take chars. Read up on KeyEvent

  • When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. How can I resolve this?

    Question
    When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Getting a smaller duplicate of my firefox page everytime I open a new window and I have to close it out, nothing is working and even ran a virus scan- getting f

    Geez, have to go to 10 different things to even get here!!!! I am having a problem with getting a smaller version of firefox every time I open a new window but it is blank, it looks like your web page, I have to close it out to view my page I was opening. I ran a virus scan and there is nothing. I have windows and firefox is my home page, btw when I go to IE I do not have this problem, Seems like when firefox installs a new version something happens,.

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • FF doesn't open a new window , and doesn't open at all when I close it and try to open it again.

    Initially when I start my PC Windows 7 Ultimate , FF opens fine , but it doesn't open a new window when I click on the option "Open a new Window " in the taskbar .When I right-click a tab and select the option "Move to a new Window" then too it doesn't work. Next when I close FF and and try to reopen it , it doesn't open at all.I have FF v34.0.5.

    Gnome-shell issue. You can disable desktop management as a temporary fix, but the next gnome-shell update will fix the problem.
    https://bbs.archlinux.org/viewtopic.php?id=175993
    https://bugzilla.gnome.org/show_bug.cgi?id=722510
    https://bugzilla.gnome.org/show_bug.cgi?id=722690

  • Finder search opening in new window and sidebar gone

    Hi, just wondering if anyone could shed some light on this cause I'm quite lost.
    First of when hitting Command-F in the Finder it opens up in a new window, I'm pretty sure it didn't do this before. Opening folders does not open in new windows. Using the "Go" menu also has the same behaviour. However it's not really a big issue.
    Secondly and this is what's irritating me the most, the sidebar disappears when doing this. Toggling the sidebar and closing the window and starting a new search makes no difference, still no sidebar.
    I have done some pretty major changes to my system recently, and even if I don't really see why it would have effects like this (havn't noticed any other changes). What I have done is that I have moved /Users/* to a separate volume and is mounting the volume as /Users using fstab.
    I tried experimenting a little with com.apple.finder.plist and removing the file (i.e. letting finder recreate), this caused the sidebar to appear, however adding:
    <key>CreateDesktop<key>
    <false />
    Made it disappear again, freaky if you ask me... I have had the desktop off for ages without any problems so don't see why it wont work any longer. Or if it only has to do with this key and not also others.
    Property list is here (for one month) if it helps: http://pastebin.com/TYGsWj9T

    Okay, this is wierd (and embarrasing), everything suddenly started working again after days of not working... Did nothing I can think of, only thing that I have done actively is that I have defaulted property list and restarted Finder multiple times. I even reverted back to the old property list and it still worked, maybe some cache problem? (which I didn't think of till now) but otherwise I don't know, thanks for reading my question at least .

  • Opening a new window and closing it in controller

    I need to implement a functionality wherein when I click on a link, the custom page should open in a new window. Also on this page, there would be a OK button. On click of this button, I need to insert a record into the database and close this window and also pass a parameter to the previous screen. How to open a page in a new window? Also after inserting the record into the database, how do I close the window in Controller code? How to pass a parameter to previous screen?

    For this you have to use javascript. The controler can't close a browser window.

  • Having multiple tabs open in one window, and then opening a new window and closing it, will close the newly opened window, but it will want to close the other original window with the multiple tabs as well.

    This only happens if the original window has multiple tabs, and the new window has only ONE tab at the moment you close it.
    Also, the problem only occurs when TWO windows of firefox are open. So opening up a 3rd window, and then closing it, will not give you any problems. The interaction occurs between two windows of firefox only.

    This can happen if you drag a tab slightly down in the browser window while clicking.
    Firefox has a feature called tear-off tabs
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can also do this via the right-click context menu of a tab: Move to New Window
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    * https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t

  • I'm getting a not-quite crash in which I lose ability to interact with the window at all. Is there any way to fix the problem itself? All I can do is an inconvenient "fix" in which I open a new window, and it works in the second window for some reason.

    I'm experiencing a not-quite-crash every time I attempt to open firefox on my new computer. What happens is that the menu bar (which I prefer to have visible instead of that orange single-button menu) has all the letters on it turn gray, and I lose my ability to click anywhere on the page, including to close it. If I attempt to close the page via the taskbar it doesn't let me. It does, however, let me open new windows via the taskbar which don't have the same problem, which allows for an easy-but-inconvenient fix. I've tried it out and it does not have the same problem in Safe Mode. As a result of not being a "true" crash I can't give a crash ID, so you won't be able to trace it that way, sorry.

    ''Problem:'' For whatever reason, NoScript is stopping Runescape Community Toolbar from working properly which freezes your first Firefox window.
    ''Fix:'' Uninstall the toolbar. Disable NoScript. Install the toolbar. Add your RS account to it and make sure it works, then Enable NoScript again.
    EDIT: Posted a fix earlier that was wrong. Corrected to the right one, sorry ^_^ Answer was on Runescape Forums.

  • HT201209 The buy button in itunes does not open  a new window and allow me to buy a purchase

    Hello
    We are having problems with iTunes. We have redeemed a voucher which does appear £25 but we can not Buy a purchase. The new window does not open like it used to.
    We can not download the free singles either.
    This has been happening for 2 weeks.
    Any help would be much appreciated.
    Thanks

    Middle-click or click the scroll-wheel on a hyperlink has always opened a '''new Tab'''. Any chance you had an add-on that changed that action, and now that add-on is disabled or incompatible?

  • Firefox opens a new window and moves the active tab to it. How do I stop this?

    Got multiple tabs open. Firefox suddenly closes the tab I'm working on (this seems to happen when I'm scrolling) and moves it to a new window, shifting the focus to a previously inactive tab. What a swell feature! How can I get rid of it?

    Firefox 3.5/6 versions have a feature called tear-off tabs.
    You can detach a tab from the current window and open it in a new window by dragging a tab in the browser window.
    You can drag that tab back to the tab bar in the original window to undo that detaching.
    bug489729 (Disable detach and tear off tab): https://addons.mozilla.org/firefox/addon/12276

  • Opening a New Window and Tracking that session

    I want to open a new IE popup window form my session -based application,the newly launched page is outside the current domain say a page in the internet.Does the session cookies are carried from the parent window to this newly opened window ?
    If not how can i make it available in the child window?

    Anything like this is going to provoke security reactions, since it's the kind of thing that lends itself to malicious use.
    You could consider using frames, where you wrap the other-domain window in your own, but it's likely to provoke security warnings.
    An approach which is more challenging, but likely to produce cleaner results, is for your server, itself, to make URL connections to the other domain and retrieve the data, then process and probably reformat it, including it in your own page.
    The down side is you can be tripped up by changes in the third-party site's layout etc.
    If you check with the other domain, you may find that it can deliver results in a more program-friendly format, such as XML.

  • Links that should open in a new tab now open in new windows and I don't know why.

    All of a sudden my Firefox browser has started opening links that would usually open in a new tab come up in a new window. "Open new windows in a new tab instead" is still selected as it has always been, and unless someone has changed a setting on my laptop without my knowing I am pretty sure that I have not made this change myself.

    All of a sudden my Firefox browser has started opening links that would usually open in a new tab come up in a new window. "Open new windows in a new tab instead" is still selected as it has always been, and unless someone has changed a setting on my laptop without my knowing I am pretty sure that I have not made this change myself.

  • Even on Firefox 28.0 i can't load my new pages to a tab but rather it opens a new window and i see ths has been around for quite a while, can someone fix this u

    I can't load pages into a new tab anymore even when i right click a link and say open in a new tab it doesn't yet i use Firefox 28.0. even when i tried 29 alpha it still had the same problem.
    What is the solution?

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Open new Window and SWF conversion to DVD player

    Hi flash forum,
    I need help with 2 things:
    1. I have an html link that opens a .swf flash movie in a
    full window. I need the flash movie to open as a new window so when
    the user closes out, they're not closing out of the entire site.
    Can you send me the instructions for this?
    2. I need to convert a .swf flash movie so it will play on a
    standard home DVD player.
    Can this be done?
    Many thanks for the help!
    RS

    Hello, we have the same problem. I fixed it by doing this:
    <hcommandButton value="#{messages['srt.return.label']}" action="#{myBean.returnPage}" immediate="true" onclick="this.form.target='_self'" />^ The code above will remain in the same window.
    <h:commandButton value="#{messages['srt.export.label']}" action="#{myBean.excelExport}" immediate="true" onclick="this.form.target='_blank'"/>^ The code above will open a new window and display the data
    Hope that helps :) I don't know if that's the best solution out there, but it will work :)
    Note the usage of targets, blank will open a new window while self will stay in the same window :)
    Message was edited by:
    iamlei

Maybe you are looking for