A javaScript code that runs fine in IE but not in other plz help

Hello friends,
plese help me in getting the code for Opera and Mozilla browsers. The following code runs fine in IE but not in other browsers. it show titlebar in other browsers. What to do disable titlebar in other browsers? plz help
<html>
<head>
<script>
//Frameless Banner Popup
// Set the url of the banner popup window page
//var theURL = "index.htm";
var theURL = "/cgi-bin/login";
// Set the title of the popup window
var title = "Login"
// Set the size of the popup window
var windowWidth = 350; // cannot be less than 100
var windowHeight = 350; // cannot be less than 100
//var windowWidth = window.screen.width; // cannot be less than 100
//var windowHeight = window.screen.height; // cannot be less than 100
// Set the position of the popup window
var windowX = ((window.screen.width/2) - 175);
var windowY = ((window.screen.height/2) - 175);
// Set true to auto-center (positions will be ignored)
var autocenter = false;
// Set true for popup to close when launch page does
var autoclose = false;
var s="width="+windowWidth+",height="+windowHeight;
var beIE=document.all?true:false;
var done=new Object("no");
if(autocenter){
windowX = (window.screen.width-windowWidth)/2;
windowY = (window.screen.height-windowHeight)/2;
function doAgilePopup(){
if (beIE){
agilePopper = window.open("","popAgile","fullscreen,"+s);
agilePopper.blur();
window.focus();
agilePopper.resizeTo(windowWidth,windowHeight);
agilePopper.moveTo(windowX,windowY);
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"
agilePopper.document.open();
agilePopper.document.write(frameString);
agilePopper.document.close();
}else{
agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);
agilePopper.blur();
window.focus();
agilePopper.resizeTo(windowWidth,windowHeight);
agilePopper.moveTo(windowX,windowY);
agilePopper.blur();
if (autoclose){
window.onunload = function(){agilePopper.close();}
done="okay";
</script>
</head>
<BODY onLoad="doAgilePopup(),top.window.close()">
</body>
</html>

missing semicolon in end of the variable frameString ,
better write the string in single line thats easy to find the bugs like this.
var frameString=""+
"<html>"+
"<head>"+
"<title>"+title+"</title>"+
"</head>"+
"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
"<frame name='top' src='"+theURL+"' scrolling=no>"+
"<frame name='bottom' src='about:blank' scrolling='no'>"+
"</frameset>"+
"</html>"

Similar Messages

  • EBS Forms functional script runs fine in OpenScript but not from OTM

    Hi,
    I have an EBS forms functional test script which runs fine in OpenScript, but when scheduled from OTM, the web part runs fine but when it comes to forms, the script fails with the following error:
    Forms Object Not Found! XPath: //forms:window[(@name='NAVIGATOR')], Type: oracle.oats.scripting.modules.formsFT.helper.test.FormWindow, Cause: No Matches <Less>
    I have performed all the steps below already:
    1) Stopping the OATS Agent service and changing it to manual.
    2) Starting the command prompt and running the AgentManagerService command as mentioned in your forum.
    3) The console displays
    C:\>C:\OracleATS\agentmanager\bin\AgentManagerService.exe -c AgentManagerService
    .conf
    wrapper  | --> Wrapper Started as Console
    wrapper  | Launching a JVM...
    jvm 1    | Wrapper (Version 3.0.3)
    jvm 1    |
    4) I have added the test in the OTM with the following command line settings:
    -browser.type InternetExplorer -formsft.startup_timeout 30 -formsft.action_timeout 20 -formsft.response_timeout 10 -delayPercentage -1 -delayMin 0 -delayMax 5 -FormsAutomationEnabler.bat -enableForms true
    But each time the script fails, please note that my script has assets and they are placed within the script folder.
    Please help me on this at earliest.
    Thanks,
    Aarti

    Hello Aarti!
    I had the same problem and this steps help to solve the problem:
    You need to enable Forms Automation under agent. Please follow by below steps.
    1.open command prompt
    2.cd C:\OracleATS\agent
    3.FormsAutomationEnabler.bat -enableForms true
    4. Run script from OTM
    Attila

  • Report running fine via se38 , but not with tcode.

    I had made a alv report, and had assinged TCODE.
    When running via tcode > in selection screen i had given all the input data in selection fields,>After that when clicking  the execution button> ITS GOING BACK TO SAP SCREEN.
    BUT.
    SAME report when running through SE38, its running fine..
    I had debugg the program , and what find that when running throug TCOde , After AT-SELECTION SCREEN EVENT , ITS COMING OUT TO SAP MENU WITHOUT TRIGGERING THE  START-OF-SELECTION EVENT.
    HELP ME...

    Please follow the steps for creating a transaction for report..
    GOTO SE93
    Give the transaction code.
    Press create button..
    Enter the short description..
    Choose the radio button which says "Program and selection screen(report transaction)".
    Press Enter..
    Give the program name..
    Remove the Selection screen "1000" if you want.
    Save the transaction code..

  • Running on the server- but not in other machines

    Hi everyone,
    I have a starnge problem....i have setup a site in my Tomcat 4.0.6 and it works fine when i am tesing it on the server...but when i try to access the site from other than machine in which my Tomcat is there it's giving null poniter exceptions.I have found out the cause...i.e session varibles r not getting set...so it's giving that problem...previously that site was working well with the same code...and also i did not use many session variablea(so not the session varible overflow problem)....is there limit for the "webapps" folder size..my "webapps" folder size is 1.5 GB.
    I am very much struggling with this untoward behaviour of Tomcat 4.0.6..I would be thankful to you if you could help me ........Thanks in advance....
    Vamsi Pola

    Can you post the JSP code which you are trying to access?

  • Report running fine in foreground but not in background

    Dear Friends-
    I have created few varaients to run my report in background and foreground .
    and inside report am using OOPS ALV and call screen  .
    issue is  when i  run prog  using varaient in  foreground  it work fine and show me the correct one record
    but when i  run the report with same varaient in background  it  shows  me   huge records which are not relevant with given input also ...............How to solve this   pls guide me
    Regards
    Meeta

    Hi
    In my report  am passing the input via varaients  and submit another report inside the prog  and in that second report it call screen  with ALV  stuff.
    Is that is the reason ?
    user command  am not sure because at end of the job  it not give any error  job looks finish and  shows so many records.
    Regards
    Meeta

  • Report runs fine in Analyzer but not working when executed fromQuerydesig

    Hi,
    I have a issue with the Bw report which is not showing any data for Keyfigureswhen i execute the report related to APO from Bex query designer in Web.
    But the same report executes fine in the Bex Analyzer.
    If any one has faced this issue earlier,update us reg that.
    We are doubting any prob related to catch memory as the java link for the report is not working.Report works fine in RSRT.
    Vamsi

    Hi there,
    Can you please let us know what cache settings you changed, as we are having the same issue.
    Many thanks

  • Report runs fine in Analyzer but not working when executed fromQuerydesiger

    Hi,
    I have a issue with the Bw report which is not showing any data for Keyfigureswhen i execute the report related to APO from Bex query designer in Web.
    But the same report executes fine in the Bex Analyzer.
    If any one has faced this issue earlier,update us reg that.
    We are doubting any prob related to catch memory as the java link for the report is not working.Report works fine in RSRT.
    Vamsi

    Hi there,
    Can you please let us know what cache settings you changed, as we are having the same issue.
    Many thanks

  • Same Conect By query workds fine in 9i but not in 10g - Please help

    We recently moved our project from 9i to 10g. A connect by query works fine in 9i environment but same not working in 10g environment. Please help.
    While trying with a sample table, that also behaves samem way. Please find the query and help on how to solve.
    create table test_connect_by (
    parent number,
    child number,
    constraint uq_tcb unique (child)
    insert into test_connect_by values ( 5, 2);
    insert into test_connect_by values ( 5, 3);
    insert into test_connect_by values (18,11);
    insert into test_connect_by values (18, 7);
    insert into test_connect_by values (17, 9);
    insert into test_connect_by values (17, 8);
    insert into test_connect_by values (26,13);
    insert into test_connect_by values (26, 1);
    insert into test_connect_by values (26,12);
    insert into test_connect_by values (15,10);
    insert into test_connect_by values (15, 5);
    insert into test_connect_by values (38,15);
    insert into test_connect_by values (38,17);
    insert into test_connect_by values (38, 6);
    insert into test_connect_by values (null, 38);
    insert into test_connect_by values (null, 26);
    insert into test_connect_by values (null, 18);
    COMMIT;
    In Oracle 10g:
    SQL> select level, lpad(' ',2*(level-1)) || to_char(child) s
    2 from test_connect_by
    3 start with level = 1
    4 connect by prior child = parent;
    no rows selected
    In Oracle 9i:
    SQL> select level, lpad(' ',2*(level-1)) || to_char(child) s
    2 from test_connect_by
    3 start with level = 1
    4 connect by prior child = parent;
    LEVEL S
    1 2
    1 3
    1 10
    1 5
    2 2
    2 3
    1 9
    1 8
    1 11
    1 7
    1 13
    1 1
    1 12
    1 15
    2 10
    2 5
    3 2
    3 3
    1 17
    2 9
    2 8
    1 6
    1 38
    2 15
    3 10
    3 5
    4 2
    4 3
    2 17
    3 9
    3 8
    2 6
    1 26
    2 13
    2 1
    2 12
    1 18
    2 11
    2 7
    39 rows selected.

    Hi,
    user10739895 wrote:
    It works fine and gives result without the "START WITH LEVEL = 1".
    However, in 9i, we get the result with the clause "START WITH LEVEL = 1" and after migrating, now in 10g, we are not getting the result. Is it like in 10g, if it is Level 1, we should not specify?
    Also, please clarify, is it like, if we don't specify the default is Level 1? Conceptually, LEVEL is assigned when rows enter the result set. Rows that enter because of the START WITH clause, by definition, have LEVEL=1. Rows that enter because of CONNECT BY have the LEVEL of the row to which they are connected, plus 1.
    "START WITH LEVEL = 1" returns no rows when I try it in Oracle 11.1.0.
    I suggest not using it.
    If you don't have a START WITH clause, you'll START WITH every row in the table. That seems to be what you got in Oracle 9. Is that what you want? If so, then just don't use a START WITH clause.

  • I've set the download settings to always ask where to save a file, and it will do that for some file extensions, but not for others. How can I fix this?

    I've noticed it especially with .pdf files, which always end up on my desktop, even after I double check the download settings under Preferences and then restart Firefox, just in case. Also, when I download .pdf files they will automatically open, but when I download .doc files they do not. I would rather not have downloaded files automatically open, but I can't find how to change that setting either.

    You can check for problems with preferences.
    Rename or delete the prefs.js file and possible numbered prefs-##.js and user.js files to reset all prefs to the default value.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences

  • HT4972 I cannot pair my new I pad 3 with my I phone 4, both are now running os 5.1.1, will pair with other Bluetooth but not each other. Help please

    I cannot pair my new iPad 3 with my iphone4, both are now running on os 5.1.1, please help with any suggestions you may have.  They are both pairing with other Bluetooth devices (including the wife's iPhone 3G on 4.2.1).  Thanks.

    Hi,
    I have purchased a wifi only I pad 3 in the hope I could thether using the 3G through my I phone 4.
    My I phone 4 and my iPad 3 cannot seem to find each other at all through Bluetooth yet
    Can find other devices ok no problems. I am wondering if it is an issue with os 5.1.1

  • Hi - Have a Javascript (search) that was ok thru 9, but won't run in X. Thank you.

    Hi - Have a Javascript (search) that was ok thru 9, but won't run in X. Thank you

    Quoting the Acrobat X SDK:
    Changes to search object
    The following changes have been made to the "search" object properties:
    ● The thesaurus and soundex properties have been removed
    ● The legacySearch property is now deprecated and always returns false.
    Changes to SearchExecuteQuery
    The following have been removed from nWordOptions parameter of SearchExecuteQuery:
    ● kWordOptionSoundsLike
    ● kWordOptionThesaurus
    The function SearchIsLegacySearchAvailable has been deprecated and will always return false.

  • The javascript code which is working on safari is not working on firefox. When I debugged it from HTTPFOX it gave NS_ERROR_DOCUMENT_NOT_CACHED error

    I have a javascript code which is working fine with safari but not working at all in firefox. The code is
    <pre><nowiki><html><head></head>
    <body>
    <button type="button" onClick="handleButtonClick();">undo</button>
    <button type="button">redo</button>
    <select><option value="V1">V1</option>
    <option value="V2">V2</option>
    <option value="V3">V3</option>
    <option value="V4">V4</option>
    <option value="V5">V5</option></select>
    <script type="text/javascript">
    function handleButtonClick(){var xmlHttp, handleRequestStateChange;
    handleRequestStateChange = function() {if (xmlHttp.readyState==4 && xmlHttp.status==200) { var substring=xmlHttp.responseText; alert(substring); } }
    xmlHttp = new XMLHttpRequest();
    xmlHttp.open("GET", "http://csce.unl.edu:8080/test/index.jsp?id=c6c684d9cc99476a7e7e853d77540ceb", true);
    xmlHttp.onreadystatechange = handleRequestStateChange; xmlHttp.send(null);}
    </script>
    </body>
    another I am getting this also in url text/html (NS_ERROR_DOM_BAD_URI)
    </html>
    </nowiki></pre>
    Whats going wrong I can't figure out. Kindly suggest... I am struggling with this for last few days..

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • I'll ask this again.  I'm running Yosemite, LR 4.4 everything was running fine and I'm not sure if this is connected but when I loaded the last security update from Apple I started getting the "no content" box when I tried to publish to LR (Facebook OK),

    I'll ask this again.  I'm running Yosemite, LR 4.4 everything was running fine and I'm not sure if this is connected but when I loaded the last security update from Apple I started getting the "no content" box when I tried to publish to Flickr (Facebook OK), now I can't get it to authorize, I loaded 3rd party JR plug in and still get can't authorize.  Can anybody help?  Basically LR is useless, it has been nothing but problems.

    It would probably be better to continue your previous thread on the same question than to start a new one.

  • Website page displays and javascript runs correctly in IE8 but not in Firefox 3.6.10

    website page displays and javascript runs correctly in IE8 but not in Firefox 3.6.10

    Can you post a link?
    Then we can take a look.

  • HT5361 Mail runs fine at first but after awhile it freezes the machine.  I have shut the mac down and restart. I am running Mountain Lion.

    Mail runs fine at first but after awhile it freezes the machine.  I have shut the mac down and restart. I am running Mountain Lion which was updated from Leopard.  I reinstalled original programs from disk and solved this same problem with Contact.  Mail is still a problem.  May also include itunes which seems to add to the problem.

    Run Disk Utility to check the SMART status of your hard drive.

Maybe you are looking for

  • Can not view ABC iView on tablet

    I am unable to get ABC iView to work on a 10 inch tablet with Android 4. iView works perfectly with the 'Dolphin' browser but I only get a blank screen after iView says to "Tap here to activate plugin".

  • CDAQ lock-up on Windows 7 when app idle.

    I scarse few details to help fix an issue I witnessed while on-site yesterday. A LV app running under Win 7 using a cDAQ chassis will lock-up LV if the app is left idle for a couple of hours. WHile Idle it just grabs samples from the AI chnnels and d

  • FI-AP Tax Code not considering the excise duty while calcuating the VAT

    Sub: A/P Tax Code not considering the excise duty while calcuating the VAT Hi Frnds. I have a typical problem. Till now we are using a "W6" as a tax code, where Excise-10%, Ed Cess-2%, SEd Cess-1% and VAT-4%. But as the Govt. rules changed I have cre

  • List Display alignment

    Hi all, I am writing a list report which is using a normal WRITE statement in Japanese language (Program Original Language = JA). However, I have the alignment problem as below: Customer No  |  Customer Name                | Accounting Document No |

  • Route Stage data in Route determination

    Hello Gurus, We have scenario where in route defnition is not required. I am using the route just to have transportation implemented so I can use the shipment document. I cannot maintain the route stage information Service Agent, shipping type, Dista