Total members 11894 |It is currently Thu Nov 21, 2024 6:05 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





please answer this question.
How to create Dynamic Frame-sets with java script protocols, explain with examples.




Author:

i think you don't mean java script protocols ? javascript is client side programming language and it doesn't has protocols ,its rules ... anyway you want an example for using dynamic frame sets with JS :you can use the document.write function write your frame sets . For example you can Onload funtion on body tag
Code:
<body onload="javascriptFun()"> 

to do some dynamic operation or calculation before adding frames .

If you want to use a java script function from main page and use it in sub frame , this is not allowed ,because other html page don't see your javascript function for ex:

test.html
Code:
<HTML><HEAD><TITLE>INDEX.HTML: Setup Starting Framesets</TITLE>
<SCRIPT language="JavaScript">
function changeFrameSetURL()
{
alert('i am here');
}
</SCRIPT></HEAD>

<FRAMESET cols="50%,*" BORDER=1>
<FRAME src="test2.html" NAME="leftframe">
<FRAME src="test3.html" NAME="rightframe">

</FRAMESET>
<body>

</body>
</HTML>


test2.html
Code:
<html>

<B>Testing codemiles </B></html>


test3.html
Code:
<html>
<body>

<input type="button" value="Click Me!" onclick="javascript:changeFrameSetURL()" />
</body>
</html>


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Dynamic Frame-sets with java script protocols
 Dynamic Domain Name System (Dynamic DNS )     -  
 need help with java script in a pdf     -  
 Java script time parameter     -  
 How can I call a C program in a Shell Script from Java     -  
 How to create a file in java script using FireFox     -  
 Sets Manuplation (C++)     -  
 compare two sets     -  
 difference between a Window and a Frame     -  
 Window-Frame-with Diagonal Layout     -  
 multi-frameset and non-re-sizable html frame pages     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com