Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 18th, 2002, 11:54 AM
capbiker capbiker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 29 capbiker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 8 sec
Reputation Power: 0
Using Java to detect frames

is there any way of using Java to dectect if a person is using frames set up or a non frame set up?

Reply With Quote
  #2  
Old March 19th, 2002, 11:00 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 237 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 41 sec
Reputation Power: 9
here is how you could do it in javascript:

<script language="JavaScript"><!--
if (frames.length > 0)
alert('We have frames');
else
alert('We have no frames')
//--></script>

Reply With Quote
  #3  
Old March 19th, 2002, 11:09 AM
capbiker capbiker is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 29 capbiker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 8 sec
Reputation Power: 0
Ok here is another question, is there any way of having a variaible called usesframes = yes if they r using frames or usesframes = no if they r not so that I can use another script langague to decided what to do on depending on what the user is using.

Reply With Quote
  #4  
Old March 19th, 2002, 11:55 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 237 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 41 sec
Reputation Power: 9
ya, just say

variablename = "yes"
or
variablename = "no"

then you could have some redirect or something to your script if the variable it equal to a certain value

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Using Java to detect frames


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway