Javascript opoup question?

My question is
in window.open() if i give resizable=no and scrollbars=no is working fine in IE but not working in mozilla
anyone can help?
Thank You,
Sreenu.G

gantinapalli wrote:
even specifying the width and height also it's not workingYou did something wrong.
This example works in all browsers here:
<html>
    <head>
        <title>Test</title>
    </head>
    <body>
        <button onclick="window.open('http://google.com', 'test', 'width=500px, height=300px, resizeable=no, scrollbars=no')">test</button>
    </body>
</html>And in the future please post Javascript related questions at a Javascript forum. This has nothing to do with JSF. There are JS forums at dynamicdrive.com and webdeveloper.com.

Similar Messages

  • Javascript/HTML question

    I've been teaching myself Java on and off for the past couple years with the help of these forums and other tutorials. Now I've decided to take on a project that requires the use of HTML and Javascript and I can't seem to find the information I need. I was hoping that somebody from these forums could either answer my questions and/or point me in the right direction to find the answers.
    The project is simple. I created an HTML window with an inputTextArea, an outputTextArea, and two buttons (Submit and Reset). When Submit is pressed I need the program to take the text from inputTextArea one line at a time, check the indexOf a string, and add tags at the beginning and end of the string if it meets certain criteria before appending it to outputTextArea.
    I can (and have) written this very easily in Java but I can't seem to find the methods I need in Javascript. In java I use a java.io LineReader to read the inputTextArea.getText() one line at a time and then make the changes as needed. I actually can't even find a tutorial in Javascript that can explain how to take the text from inputTextArea and print it into outputTextArea.
    So the main thing I need to know is how to read one line of text at a time from the inputTextArea. I think I can figure the rest out.

    That was actually my original thought when I started on the Java version of the program but I couldn't figure out how to enter the the carriage return in as a variable to be indexed. So it wasn't until after I found the LineReader that I was able to complete the Java version.
    Is there some way to enter the carriage return in as a searchable variable?

  • Simple javascript APEX question

    Hello,
    I am new to oracle APEX and am trying to complete an application but have one small issue. I am using a barcode gun to check in servers and other hardware, and once it is scanned it sends an "enter" to add the next row in my Master-Detail form. The code i am using for this is : onkeydown="javascript:if(event.keyCode==13){event.keyCode=9;return event.keyCode}" This works fine, it takes my enter from the barcode and tabs it to the next line. However at a different part of the form I need to make it convert my enter to a tab, and then back to an enter. Essentially I need it so that I scan the barcode, it then submits an enter, which is converted to a tab, and then I want it to then use an enter key. I cannot get this to work. My java skills are lacking, and this is what I have come up with:
    onkeydown="javascript:if(event.keyCode==13){event.keyCode=9;return event.keyCode;event.keyCode=13;return event.keyCode}" This is just not working, any ideas on what I can do?
    Thanks
    Aaron

    let me clarify, I have a master detail app. basically, the master holds all the racks for a datacenter, and the details page holds all the hardware within each rack. this means i can click on rack A1, and then see all hardware within that rack. when I am creating a master record, i need it so that I can just scan the rack barcode and move on to the next one. The problem is, after typing in a rack name (not even with scanner) and pressing enter, it auto cancels my rack entry. I have tried changing text field to submit on enter, and even tried java to the dosumbit('Apply_changes_add') with no luck. The easiest way for me to implement this is to have it so that on this form element (rack_name), when you press enter, it converts to a tab (which moves the cursor to the (create rack button) and then presses enter (to submit this page). I agree that this may not be the best way of fixing this issue, but I have no other way of going about it. any suggestions?

  • IDCS2 Mac Javascript - colorSettings question

    I have a script that works in MAC CS3 and CS4, but in CS2 this line breaks the script:
    app.colorSettings.cmsSettingsPath = TheFile;  //  This works in CS3 and CS4
    I get this error in CS2:
    Javascript Error!
    Error Number: 1
    Error String:  cmsSettingsPath
    etc.
    Does anyone know what I am doing wrong?
    R,
    John

    Thanks for the information.  Actually, I have this code in the file:
    PathToFile += "IDCS2_WPC1.csf";
    var TheFile = File(PathToFile);
    app.colorSettings.cmsSettingsPath = TheFile;

  • JavaScript FileUpload Question...

    Hi there!
    I'm uploading a file using the JavaScript code below. Is it possible to change the default browse button, to for example an image? If not, can the uploading be done using another language?
    ...<INPUT TYPE="file" NAME="x">....
    Best regards
    Paul

    Hi,
    Check out this link.
    http://developer.iplanet.com/docs/examples/java/file_uploading.html
    Hope this helps.
    Regards,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Javascript Login Question

    Hello,
    I am working on this site where there are javascript
    dropdowns for the user to use in navigating the site
    one of them is Login. See below for the calls form the DHTML
    which is an include from a different folder.
    this.item0 = "Home"
    this.item1 = "About"
    this.item2 = "Atlas"
    this.item3 = "Help"
    this.item4 = "LOG IN"
    What I want to accomplish is when the user is already logged
    in, then this.item4 = "LOGIN" should change to "LOG OUT"
    In my login page I am tracking the #session.loggedin# to know
    if the user is logged in. In Javascript is there a way to create a
    gobal variable that javascript can see in all pages to check for
    values and decide if User is logged in. Please I need HELO

    The cfml reference manual has an example. If you don't have
    one, the internet does.
    I should mention that this function became available with
    version 7 of coldfusion.

  • Javascript/html question about popup window title

    I am displaying an uploaded pdf file using wpg_docload.download_file in a popup window (using javascript open).
    How can I change the title of this popup window.

    Thanks to Jes (John Scott at shellprompt.net) for a solution for my version of this problem; set the Content-Disposition in the HTTP header to indicate your required filename. Example:
    I have an 'On-Load - Before Header' process on the ApEx page I want to use 'host' my PDF document generator. The page is called from a popup JavaScript call, allowing us to rely on ApEx authorisation and authentication. The Source of this process looks like the following:
    declare
    myblob blob;
    begin
    -- Call procedure to gereate PDF document in a blob and pass it back
    myprocedure_to_generate_blob( in_parameter, in_parameter, myblob);
    owa_util.mime_header('application/pdf',false);
    htp.p('Content-Length: ;||dbms_lob.getlength(myblob));
    -- This line sets the filename (which could be dynamic)
    htp.p('Content-Disposition: attachment;filename=mypdffile.pdf');
    owa_util.http_header_close;
    wpg_docload.download_file(myblob);
    -- Stop Apex from trying to render more of the page (we've finished)
    htmldb_application.g_unrecoverable_error := true;
    end;

  • JavaScript Function Question

    In a JavaScript function call can I do a callablestatement or a preparedstatement? I have a button onClick that I want to call a function and in that function I want it to send 2 input values to a callablestatment but not sure how or the best way to do this.

    JavaScript is not Java.
    But assuming you are talking about initiating a server side request that does prepared statements from the use of a client side button, you could make an AJAX request.
    If you are talking about an embedded JavaScript engine in a Java application then you would do it the same way you call any Java from JavaScript when using it as a scripting enigne.

  • JavaScript event question...

    Hello,
    I'm trying to write some JavaScript code that executes when an entry is selected from a Popup LOV. But because the item and it's corresponding hidden item are populated from JavaScript on the child page, it doesn't seem to trigger a change/focus event.
    One way I've thought about overcoming this, but not yet tried, it to create a new Popup LOV template and locally override the JavaScript function with the same code + a little something I need.
    Is there a better solution?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

    Tyson,
    Nah, this seems to be a problem related to jQuery. The inline JavaScript worked but jQuery is not picking up on the change. In any case, just using the inline statement solves the issue for now and I opened a ticket with jQuery.
    Thanks again.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • About use mouse middle key to call JavaScript function question

    I want use mouse middle key to call JavaScript function (<a href="javascript:help()">) help() will open a new Window and direct to my GUI Help Page but when I click it with middle key ,it will open new Tab blank Page that url="javascript:help()"; can not Executive help function... Is this a Firefox Bug or correct behavior in Firefox? thank.

    You need to use a left click to handle JavaScript links.
    See also http://kb.mozillazine.org/browser.link.open_newwindow.restriction

  • Javascript help/question

    I have a cf form with <cfinput type=text
    name="dateArrived" value="#dateformat(now(), 'mm/dd/yyyy')#"
    onBlur="validateForm(initiateForm)">
    When the form is first loaded, I display todays date but they
    have the option of changing it. The only requirement is that the
    date cannot be greater than today.
    I call the following javascript function to try and check to
    make sure the date entered is not greater than todays date (there
    is other javascript code to check for valid date formats, requried
    entry etc. :
    function validateForm(initiateForm){
    var returnStatus = true;
    var today = new Date();
    if (initiateForm.dateArrived.value > today)
    alert("greater datea");
    initiateForm.dateArrived.focus();
    returnStatus(false);
    But I keep getting a object error. I think I have everything
    defined but obviously not. What am I doing wrong and do I need this
    in its own function ? Seems simple enought but it will not work for
    me.

    I tried to modify my javascript code to check for the date,
    and radio button and checkboxes included, and now nothing is being
    called. When I submit, nothing is valideded and the form submits.
    What did I do to butcher it ?
    <Script language="JavaScript">
    function validateForm()
    var currentTime = new Date()
    var month = currentTime.getMonth() + 1
    var day = currentTime.getDate()
    var year = currentTime.getFullYear()
    var todaydate = month + "/" + day + "/" + year
    if(document.initiateForm.dateArrived.value > todaysdate)
    alert('Date Arrived cannot be greater than today.');
    initiateForm.dateArrived.focus();
    return(false);
    if (document.initiateForm.dateArrived.value == "")
    alert("Please enter the date arrived.");
    document.initiateForm.dateArrived.focus();
    returnStatus(false);
    myOption = -1;
    for (i=document.initiateForm.siteID.length-1; i > -1;
    i--) {
    if (document.initiateForm.siteID
    .checked) {
    myOption = i; i = -1;
    if (myOption == -1) {
    alert("Please select a site.");
    returnStatus(false);
    myOption = -1;
    for (i=document.initiateForm.errorID.length-1; i > -1;
    i--) {
    if (document.initiateForm.errorID.checked) {
    myOption = i; i = -1;
    if (myOption == -1) {
    alert("Please select at least one error description.");
    returnStatus(false);
    if (document.initiateForm.errorID["7"].checked &&
    initiateForm.comments.value == "")
    alert ("Comments are required.");
    document.initiateForm.comments.focus();
    returnStatus(false);
    if (document.initiateForm.comments.value.length > 400)
    alert ("Comments cannot be more than 400 characters.");
    document.initiateForm.comments.focus();
    returnStatus(false);
    return(true);
    </Script>

  • JavaScript Date Question ??

    Hi -
    I am using Portal 3.0.9. I have a form with field "A" which is date type defaulted to sysdate.
    I have another field "B" which I want to be defaulted to "A+7". I am not a JavaScript Guru.
    I would appreciate any help
    Thanks in Advance.
    Fahim

    ok, this is what you need to do:
    The onBlur event for A will be called when the textbox A loses focus, so this is where the code should go. "this.value" will give you the value entered in A. The way to reference B is document.forms[0].elements[whatever number B is]
    So your code would look something like this:
    document.forms[0].elements[11].value=this.value;
    Of course you will need some logic to increment the date by 7 days. A search in google got me this: http://javascript.about.com/library/scripts/bldatemath.htm
    Hope this works for you,
    hsiu

  • Javascript button question

    I need to find the right script to make an "Add Name" button on a  html page, so that when it is clicked the name replaces the button.  Or is inside the button.
    Thank you.

    Acrobat Javascript can't modify HTML pages.

  • Javascript & Jquery Question?

    Dear all,
    I need to interactively enable and disable input fields (text, textarea, checkboxes, radiobutton) within APEX application. I have tried using javascript with jquery and was able to achieve some success but the problem is that the form clears the inputted values during the post back phase. This means that when ever I disable any of the input fields, these fields will have the value cleared on post back. I am using the jquery syntax $(this).attr("disabled", "disabled"); to disable the fields.
    I have the suspicion that when I disabled the fields APEX does check the checksum of some kind to determined that the fields are modified and this clear or invalidate the stored value. I would like to know if their is a better way to get around the problem. Thanks.
    Regards,

    KA,
    I remember Carl showing us a little trick with a function he called "kinadisabled" or something like that... He basically gave an item the "feel" of being disabled by changing the background color from white to gray and made it so that if the user tried to focus on the element it would blur - very interesting.
    I've not tested this code but it should give you the idea.
    if (some_condition) {
       $yourJqueryElmt.css('background-color','#FFFFFF').unbind('focus');
    } else {
       $yourJqueryElmt.css('background-color','#CCCCCC').bind('focus', function() {
          $(this).blur();
    }Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • Javascript UI Question

    I am currently writing javascript code within InDesign so that i can import XML. The only thing is that I want the location of the xml file to be located by the user of the script. I was able to create a dialog box where you can type the path and file name and it works but I would like something more user friendly. I want to have the import dialog box pop up where the user can look through the folder structure of their computer to find it. Is there a function in Javascript that I can accomplish this with?
    Thanks,
    Justin

    Yes. Which version of InDesign are you using? If CS3, then use the ESTK2 help menu to access Core JavaScript Classes and then read about Files and Folders.
    Dave

Maybe you are looking for

  • Payment term

    Hi GURU I want to get the report for purchasing payment terms for all of our creditors. can any one tell me the table are tcode kind regards sunitha

  • URL in E-Mail Problem

    Had been able to launch URL fropm E-Mail. Now I cannot. Turned off firel and E-Mail scanners etc. Using Microsoft Outlook on Windows 7 with McAfee Total Protection

  • OIF 11g :Configuration settings are unavailable because /Farm_IDMDomain/IDM

    Hi All, Although the OIF node and admin server are shown as up, when attempting to access the Configuration menu in Enterprise Monitor, the following error is displayed: Configuration settings are unavailable because /Farm_IDMDomain/IDMDomain/wls_oif

  • Ipad Photo App

    Almost everything i try to view my photos i can look at them for a few seconds but then the ipad restarts itself.. is this a default that a lot of people have or should i try get it fixed by apple?

  • Lost PURCHASED episodes

    When upgrading to the new version of iTUNES, I lost access to several television show episodes I purchased. How do I go about getting these files back? Can I re-download them without fee? Since it obviously has something to do with the new iTUNES, I'