Total members 10262 | Gratitudes |It is currently Thu May 24, 2012 9:40 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: Dynamic Frame-sets with java script protocols
PostPosted: Mon Jul 11, 2011 10:20 am 

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


TOP
  
Reply with quote  
 Question subject: Re: Dynamic Frame-sets with java script protocols
PostPosted: Mon Jul 11, 2011 2:11 pm 
Offline
Mastermind
User avatar

Joined: Tue Mar 27, 2007 10:55 pm
Posts: 2279
Location: Earth
Has thanked: 39 time
Have thanks: 61 time
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>

_________________
Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 video chat application in java
 navigating to database using java
 java mobile apps
 need help in java
 Read your gmail using Java code
 Java Programing to communicating port parallel
 Java Chat
 Steganography in java
 java code for listing folder contents from remote folder
 java

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 2 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team