473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

iframes Mozilla/Netscape

Hi All
I have the following source code
Expand|Select|Wrap|Line Numbers
  1. <HEAD>
  2.     <iframe name = "myFrameName" src = " " id="myFrame" style = hidden width = 0 height = 0 frameborder = 0></iframe>
  3.        <script Language="JavaScript">
  4.         var str = "<%=session.getAttribute( "userprivilege" )%>";
  5.         var str1 = "<%=session.getAttribute( "grpQuery" )%>";
  6.         if(str == null || str.indexOf("null") != -1) {
  7.                 alert("User Session Expired,  Login again ! ");
  8.  
  9.         }
  10.         else if (str1 == null || str1.indexOf("null") != -1)
  11.         {
  12.             var grpObjArr = str.split(" ");
  13.             var groupId = new Array(0);
  14.             groupId[0] = "0";
  15.             for (i=0;i<grpObjArr.length;i++)
  16.             {
  17.                 var objArr = grpObjArr[i].split("*");
  18.                 if (objArr[1].indexOf("$util_objtype") != -1)
  19.                  {
  20.                     groupId.push(objArr[0]);
  21.                  }
  22.             }
  23.         var url = "../setGroupAttr.jsp?grpAttr="+groupId.toString();
  24.         document.getElementById("myFrame").src = url;
  25.         }
  26.         </script> 
  27.     </HEAD>
  28.  
The setGroupAttr.jsp sets a session attribute according to the input argument.
This script works fine in IE but I have observed that in Mozilla/Netscape, the session attribute is never set. In other words, the JSP file is never called.

Can you please help me in this regard?
Thanks
Soumik
Oct 5 '07 #1
1 1304
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

On line 3, change the script tag to:
[HTML]<script type="text/javascript">[/HTML]
Oct 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sims | last post by:
Hi, if i use... // php $info = getenv("HTTP_USER_AGENT"); // I noticed that Mozzila and Netscape <6(?) both use the same Agent. // so i was thinking of if...
15
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the...
7
by: Scott | last post by:
Hello All, I've been reading all of the various issues with Iframes in netscape. I have tried all of the various fixes posted, and have even implemented both an iframe and ilayer. My problem is...
1
by: Steve P | last post by:
I got IFrames which overlap other (I)Frames to be transparent (except for actual content) on Mozilla and Netscape, but not on IE. I'm currently using style="background:transparent;" to accomplish...
3
by: NullBock | last post by:
Hey, so I'm trying to put two iframes on a page adjacent to each other. here's my code : <html> <head><style type="text/css"> body { margin: 0; }
4
by: Howard Jess | last post by:
In a javascript-heavy page, an iframe is created to hold information from a secondary server CGI process, and the resulting data (in the iframe) is used to rewrite some content in the main page. To...
2
by: Guadala Harry | last post by:
1. Are IFrames supported only in uplevel versions of IE? If not IE exclusively, what browsers support IFrames? 2. Are IFrames going to be supported in the future - as far as anyone knows - or...
10
by: News | last post by:
I have a page up trying to learn how to ID a browser and other info. http://wyght.com/warren/testPos.html here is the code <script type = "text/javascript"> var space = ", "; var name...
5
by: Gary | last post by:
If one has two iframes side by side is it possible to get them both to scroll when the user scrolls one of them? If it is possible is there a reference that will help me in solving this. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.