Javascript in netscape frames

Hi all
The javascript doc=document.frames[name].document
does not work for frames in Netscape .
It works in IE.
Paul

Hallo Paul,
Now we have have the problem, and we a solution somewhere. Question is just where? If you saw this snippet in our code, please supply a reference. We did in newer SPs fix some code in our SYSTEM example pages that looks very much like this. Or not?
brian

Similar Messages

  • Problem with javascript cookies and frames in Safari

    I have a web page with 2 frames in it. One frame holds a pulldown menu for quick navigation, which changes the content in the other frame and also writes a cookie that makes that choice the default when the user comes back to the web page. My problem is that when the page that has the navigation is in frames it will not change the cookie when the navigation choice is changed. It will only change the cookie if the navigation page is displayed on its own web page (not in frames). The javascript works fine in both FireFox and Google Chrome. It's only Safari that has this problem. Is this a bug in Safari, or do I need to code this differently? I also tried putting the javascript function in the main index.html page that sets up the frames, but that didn't help either.

    HI Patrick,
    Try posting in the Apple Technoligies forums here.
    http://discussions.apple.com/forum.jspa?forumID=735
    Carolyn

  • JSP and Netscape frame target bug. HELP!!!!!!!!

    Hello All,
    I have a frameset that has 4 frames. In one of the frames I submit a form which processes some jsp code. The jsp code then is suppossed to load a new page in another frame (I have the target="MyFrame" in the form).
    In IE it works fine and loads into the proper frame, but in Netscape 4.79 + it doesn't and opens in a completely new window. If I just have the page as html it works fine in all browsers, so I have isolated it to the jsp implementation.
    Anyone come across this problem? Better yet, Anyone know how to fix the problem?
    I need help ASAP as my deadline has passed and I haven't found a solution.
    Thanks in advance,
    Hyper
    Actual jsp page below
    <html>
    <head>
    <base target="QA">
    <Script>
    function pushme(){
    document.form1.submit();
    </script>
    </head>
    <body>
    <form name="form1" action="nd/Euser.jsp" method="get" target="MyFrame">
    <input type=hidden name=server value="00.000.000.00 - I actually have a correct server address in the functioning code">
    <input type=hidden name=port value="8080">
    <input type=hidden name=username value="enduser01">
    <input type=hidden name=userid value="1">
    <input type=hidden name=role value="EU">
    <input type=hidden name=eventid value="1">
    </form>
    <script>
    pushme();
    </script>
    </body>
    </html>

    This can not possibly be a JSP issue since it works in IE. In your case, JSP is just producing html and how this html will be handled depends on the browser .Post your frameset tag along with the html that you calimed to be working. Better yet, some html/Netscape users forum might be more helpful for you.

  • Invoking Applet methods from Javascript for Netscape 6

    Hi,
    I am trying to invoke an applet method from javascript, but it is failing with Netscape 6 browser:
    I am doing it the following way-
    function test(form)
    var i = document.myapplet.getname();
    where myapplet is the name of the applet and getname is a method within the applet. This is
    working with Ie but not with netscape 6.
    I would appreciate it if someone could tell me how should I invoke the applet method for netscape browsers.
    Thanks.
    Jay Srin.

    Not working with NS 6 - and will not i guess till they upgrade to Mozilla Version 1.0 - Live Connect is not implemented 100% correct yet - if you want you can download the 7.0 Pre Release Netscape - since its using mozilla 1.0 it should work , see :
    http://forum.java.sun.com/thread.jsp?forum=30&thread=272975

  • Encoding for javascript in netscape

    Hi,
    In my project, we are making a call to cgi program from javascript. cgi program returns output in javascript which will be executed to the display the screen.
    This is working fine in IE browser, but screen hangs in Netscape 7.1. We are using encoding of ISO-8859. Will this encoding suit for netscape also or is there any other problem.
    Thanks & Regards,
    Nasrin.N

    Hallo Paul,
    Now we have have the problem, and we a solution somewhere. Question is just where? If you saw this snippet in our code, please supply a reference. We did in newer SPs fix some code in our SYSTEM example pages that looks very much like this. Or not?
    brian

  • Execute Javascript on each frame

    Hello,
    I would like to know if it's possible to stop my animation on each frame, execute an javascript (html2canvas) and restart my animation ?
    Can we do it without add my js on each frame ?
    Thanks for your help

    Hum, frame and time are different. Animate uses time. I guess you could have a stop at each increment of a certain elapse of time by a certain amount and loop it until completion. Probably a do while loop.
    But If you need to make screenshots of your animation, another solution would be to use a screenrecorder and then get each frame from the video.

  • CS3 / javascript / Creating anchor frame and placing xml element

    Hi All,
    I have a problem with creating anchor frame, that is
    Actually i have created anchor frame, but it is not allowing to place the xml element, it shows "inline frame xml elements not allowed" some thing like this.
    I have handled anchor frame type is "custom" but it shows "inline frame".
    Any of you got better idea about this.
    regards,
    sudar.

    I believe this has to do with you doing a placeXML, where the XML contents does not match the tagged frames in the document.
    Again i'm not sure, but i dont think this has to do with what kind of frame you are placing into(inline or custom anchor) rather if your tagged frames and XML match up.
    Perhaps this link will help:
    http://forums.adobe.com/message/1111773

  • Calling javascript inside inline frame.

    How do I call a java script method which is on a page that is embedded in a RichInlineFrame?
    I'm using Jdeveloper 11g, JSP and JSFF pages and ADF faces.

    currenly , your JSPX will not recognize javascript included in the (map.jsp)
    Try putting your setIService('serviceName') function into parent page (JSPX) and it should call that function
    I think you want to refresh your iframe page (map.jsp) when user presses the button on the main page
    please let me know, how it goes one
    regards,

  • ADF : How to pass a variable from one frame to another frame ?

    Hi,
    I have an html page divided into 3 frames, all inside a frameset. Each frame are linked to a specific .jsf page (src attribute). When I list a list thanks to a ADF datatable in ONE frame, each row has a "show more" button. When I click this button I succeeded to print row detail inside the same frame thanks to the processScope ADF's native variable. The problem is that I want to display the row detail in another frame, clicking from this current frame. So for this I need to reload the other frame which display the content of the processScope variable.
    For this I use the javascript code :
    => parent.frames['bottomRight'].location.reload()
    Just before refreshing, I put the variable in the processScope of course like it appears in the backing bean :
    FacesContext context = FacesContext.getCurrentInstance();
              CLPRMBuilding building = (CLPRMBuilding)
         context.getApplication().getVariableResolver().resolveVariable(context, "building");
         if (building == null)
         return "error";
         AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
         afContext.getProcessScope().put("buildingDetail", building);
    Next, when the user click on the button "show more" a binding CoreCommandButton component is done. And the accessor's code is executed :
    public void setShowMoreCommandButton(CoreCommandButton showMoreCommandButton) {
              this.showMoreCommandButton = showMoreCommandButton;
              showMoreCommandButton.setOnclick("parent.frames['bottomRight'].location.reload()");
    And so the other frame is reloaded ! But the "buildingDetail" variable seems not to be present in the processScope because in the jsf page displayed by the other frame no content is printed, like if the variable were not initialized. How to do then ? How to pass the buildingDetail variable to the other frame which I need to reload to refresh it's content ?

    elaine_g wrote:
    I am wondering why does (r.a) give an error outside the method? What's the reason it only works when used inside the (b/r.a) maths function? This is illegal syntax:
    class B {
      int b;
      A r = new A();
      r.a;  //syntax error
    }Why? Class definition restricts what you can define within a class to a few things:
    class X {
        Y y = new Y(); //defining a field -- okay
        public X() { //defining a constructor -- okay
        void f() { //defining a method -- okay
    }... and a few other things, but you can't just write "r.a" there. It also makes no sense -- that expression by itself just accesses a field and does nothing with it -- why bother?
    This is also illegal syntax:
    int doB() {
          A r = new A();
          r.a;  // error: not a statement
    }Again, all "r.a" does on its own is access a field and do nothing with it -- a "noop". Since it has no effect, writing this indicates confusion on the part of the coder, so it classified as a syntax error. There is no reason to write that.

  • Assign Javascript Value to JSP

    I have a dynamic link that links to a Javascript function:
    test
    The javascript function:
    function frames(testing)
    <%=testHere%> = testing
    <%
    HttpSession testSession = request.getSession(true);
    testSession.putValue("tested", testHere);
    %>
    I want to assign the javascript value, testing, into JSP value,testHere, which will be place in the session, which is :~
    .......putValue("tested", testHere).
    Does anyone know how to solve it? =)
    Thanks in advance...

    You can't. As is stated here about 3 times a day, Java, the JSP code, and servlets run on the Server, while javascript runs on the client (in the browser). By the time javascript begins to run, the JSP is compiled, run, the response generated and sent to the browser as HTML.
    The only means to do this is to send the variable back to the browser by requesting the same or another page and including the javascript value as a parameter to that page.

  • Javascript loop to check value

    I'm trying to check all my drop down menu and want to make sure that all are selected with values. Following is my script but it doesn't seem to work.
    <script LANGUAGE="JavaScript">
    <%
    out.print("var totalfield=\""+totalfield+"\"");
    %>
    function CFonError(form_object, input_object, object_value, error_message)
    alert(error_message);
    return false;
    function CFhasValue(obj, obj_type)
    if (obj_type == "SELECT"){
    if (obj.value == "")
    return false;
    else
    return true;
    StringBuilder sb = new StringBuilder();
    function CFcheckCFForm_1(_CF_this) {
    for (var x=1; x <= totalfield; x++) {
    for (var y=1; y <= totalfield; y++) {
    sb.Append(x);
    sb.Append("-");
    sb.Append(y);
    if (!_CF_hasValue(_CF_this.sb, "SELECT" )) {
    if (!_CF_onError(_CF_this, CFthis.sb, CFthis.sb.value,"Please select a Rate Code!")) {
    CFthis.sb.focus();
    return false;
    return true;
    </script>

    First, it would be:
    var sb = new StringBuilder();
    but that is only if somewhere you've defined what a StringBuilder is in Javascript. Java is not Javascript, they are 2 different languages. You can't generally use Java objects in Javascript (although Netscape might still support it, IE doesn't). So if you want to learn Javascript, then you'll have to go elsewhere.

  • Creating Frames in iWeb

    I creating websites on iWeb, my client has asked if I can create what is essentially a frame. I never have really worked with frames before, and was wondering if it is at all possible to create on in iWeb. I may not use it at all, but I would like to see what it might look like.
    Thanks in advance,
    Jordan, Meow =3

    here is reference w3.org to frame element: http://www.w3.org/TR/html4/present/frames.html
    I creating websites on iWeb, my client has asked if I can create what is essentially a frame.
    iweb does not have way to implement frame element.
    but can be done with javascript and knowing frame element (without post editing), here is my sample:
    http://temp.cyclosaurus.com/BkgndMusic/Welcome.html
    there are two frames in my example.
    ot reply is reference to iframe (inline frame element) which is very different from frame element.
    here is w3.org reference to iframe: http://dev.w3.org/html5/markup/iframe.html

  • How can redirect the errorPage to another frame?

    Please advise, I have been sticking to this problem for a whole day and still can't solve it. :-(
    What I basically want to do is to redirect the errorPage to another frame, say, the main frame.
    My application has 2 frames, the main frame is a search page, the left frame is a tree which is written by JavaScript and it is a hidden frame. The form code of the search page in the main frame is like that:
    <form name="form1" method="post" action="FindAgent.jsp" target="leftFrame">
    when the submit button is clicked, it will invoke the FindAgent.jsp which will update the tree and also has codes to catch any exception if there is. The problem is that when exceptions occur, the errorPage will be shown in the leftFrame which is hidden frame so it doesn't show anything. So how can I make the errorPage displayed in the _TOP window?
    I would not mind to have the errorPage displayed in the mainFrame by changing the target to "_SELF" or doesn't specify the target attribute at all in the search page. But anyother problem arose by doing that is that the search page will go away and try to display the FindAgent.jsp which doesn't have any appearance code after submitting. So how can I keep the current search page still but the submit() has been called actually, i.e. submit the form without redirecting the current search page.
    Any suggestions? Thanks in advance!

    Here's an idea. Have your error page (in the hidden frame), look something like this:
    <%
      String strErrorMessage = ... // get your error message text here
    %>
    <html>
    <head>
      <script language="JavaScript">
        parent.mainframe.location = "ErrorPage.jsp";
      </script>
    </head>
    </html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
    I hope that gives you some ideas!
    Michael

  • How to get variable from javascript to jsp

    Hi,
    I put a JSP page but in one frame it has a JAVAScript running. The Javascript is a viewer that user can input bounding coordinate and see updated results. Once user input the bounding coordinate in the javascript, I would like to make
    that variable available to the entire JSP, so I can submit all query (include the parameter user input in the JSP form) from jsp at a time. How to do this?
    Thanks
    Kenny

    Hi,
    Okey here is the code. There are three frames.
    1. KennyFrame.htm
    2. MapFrame.htm
    3. kenny.jsp
    Once you run the "KennyFrame.htm" it will show a page
    with two top-bottom frames. The top is
    "MapFrame.htm".
    The bottom is "kenny.jsp"
    Once user input something on MapFrame.htm, it will do
    a process in Javascript then update the "new answer".
    I will need to put that "new answer" into the "What's
    mapFrame Input? " Text box. Therefore, when user click
    on submit on kenny.jsp frame. The "new answer" will be
    submitted.
    Code:
    MapFrame.htm (the main page)
    <body bgcolor="#FFFFFF" text="#000000">
    Newmapframe
    <center>
    <form name=form>
    <input type=text name=box value="type in here!">
    <input type=button value="Convert"
    onClick="javascript:changeCase(this.form.box)">
    </form>
    </center>
    </body>
    </html>
    MapFrame.htm (the code with javascript on top frame)
    <html>
    <head>
    <title>Map Frame Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function changeCase(frmObj) {
    var tmpStr;
    tmpStr = "Some answer!";
    frmObj.value = tmpStr;
    // End -->
    </script>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    Newmapframe
    <center>
    <form name=form>
    <input type=text name=box value="type in here!">
    <input type=button value="Convert"
    onClick="javascript:changeCase(this.form.box)">
    </form>
    </center>
    </body>
    </html>
    kenny.jsp (jsp on bottom frame for final submit)
    <html>
    <head><title>Number Test</title></head>
    <body bgcolor="white">
    <font size=4>
    <form method=get>
    What's mapFrame Input? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    </font>
    </body>
    </html>
    let us the say the name of the frame in which kenny.jsp is placed be 'kennyframe' and u change the javascript function 'changeCase()' in MapFrame.htm to below:
    function changeCase(frmObj)
    var tmpStr;
    tmpStr = "Some answer!";
    frmObj.value = tmpStr;
    parent.frames["kennyframe"].document.form.guess.value = frmObj.value;

  • Related with JavaScript

    How do I check whether a Button is clicked or not?
    Assume that, i have 2 web pages. In the first page, I have a button "Click First".
    After clicking this button, It leads me to the second pages. After coming to this second page, I come to the First page. If I click the button "Click First", it has to alert me that it has pressed already and should not lead to the second page.,

    JavaScript was Netscapes LiveScript. Renamed to JavaScript for marketing purposes. I guess.
    But, That is not the point. I invested in a Sybex booked Called JavaScript Complete or something like that. It was $19.95 for 1000 pages. It is one of those books that I feel was a great buy and gave me the information I needed to be productive in JS as fast as possible. I would reccomend that book to you as a starting point.
    Chris

Maybe you are looking for

  • Error message during install of 10.4 on G4 Powerbook

    I have an Apple retail store purchased version of Tiger OSX v10.4 (family pack) that I am trying to install on my Powerbook G4. I get through Install Base Sys Part 1 and about 75% into INSTALL ESSENTIALS, I get the message "errors installing the soft

  • 3rd gen touch rebooting constantly after DFU restore

    I've spent a lot of time googling this problem, and found some advice in the forums here but nothing quite like my problem, so I joined up so I could hopefully get an answer. I have a 3rd gen 32 GB, not jailbroken, that keeps restarting itself when p

  • I cannot find a new product through CRS search

    I have added a new product to the Commerce Reference Store using BCC. The product is in the Store after the deploy, I can browse it. The problem is that the product is not listed when I try to find it doing a search. It doesn't appear even if I put t

  • Problem Mapping FTP to IDoc

    Hi well i have following incoming structure: <?xml version="1.0" encoding="UTF-8"?> <ns0:MT_EPOSYS xmlns:ns0="http://XXX">    <EPORecordSet>       <EPOFileHeader>          <BDKDNR>0000007531</BDKDNR>          <BDART>T</BDART>          <TEXT>Bestellun

  • SAP Fiori: Version Management for SAP Gateway Enhanced Services & SAP UI5 Application

    Hello Experts, Greetings!! I would like to check how version control is achieved for SAP Fiori app extensions. Or while enhancing the SAP UI5 applciation or enhancing a SAP netweaver gateway backend service for Fiori App. I would appreciate your inpu