Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development

Reply
 
Thread Tools

JavaScript - Frames problem
Old 27.05.2003, 04:46   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default JavaScript - Frames problem

Code:
<frameset  rows="50%,*" border="1" frameborder="1">
    <frame name="" src="aaa.html" marginwidth="10" marginheight="10" scrolling="yes" frameborder="1">
	
   <script language="JavaScript">       
       document.write("<frame name= src=bbb.html marginwidth=10 marginheight=10 scrolling=yes frameborder=1>");
    </script> 
    <!--<frame name="" src="bbb.html" marginwidth="10" marginheight="10" scrolling="yes" frameborder="1">-->
</frameset>

why document.write is not working?

Old 27.05.2003, 08:01   #2
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: 07 2002
Location: /dev/null
Age: 80
Posts: 250
Rep Power: 0
Default

Ar jan chgitem xi, bayc erb vor frameset-n el es write anum, ed janak ashxatum a.....

Code:
<script language="JavaScript">     
document.write("<frameset  rows=\"50%,*\" border=\"1\" frameborder=\"1\">");
document.write("<frame name=\"\" src=bbb.html marginwidth=10 marginheight=10 scrolling=yes frameborder=1>");
</script> 
<frame name="" src="aaa.html" marginwidth="10" marginheight="10" scrolling="yes" frameborder="1">  
</frameset>
xosqi senc...
__________________
00000000h: 41 72 61 6D 20 4D 6B 68 69 74 61 72 79 61 6E;

Re: JavaScript - Frames problem
Old 29.05.2003, 17:30   #3
Студент
 
Join Date: 06 2002
Location: California
Posts: 294
Rep Power: 0
Default Re: JavaScript - Frames problem

Quote:
Originally posted by Aram Ghazanchyan

why document.write is not working?
im kartsiqov, vorovhetev, "frameset" es ogtagortsum yev chunes "body" vor karoghanas "document" "object"@ ogtagortses.
kam, asenq, mekits aveli "document"ner kan, dra hamar.

Old 30.05.2003, 04:35   #4
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default

Thanks to all, arden eghav

Old 30.05.2003, 05:02   #5
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Rep Power: 5
Default

Quote:
Originally posted by Aram Ghazanchyan
Thanks to all, arden eghav
Aram vonc arecir ver4e..!?
__________________
talent agency casting.am
Center of Internet Projects Support http://www.online.am
Armenian newspapers digest http://www.armpress.com
_ _ _ _ _ _ _
Bud'te proshe i narod k vam potyanetca

Old 30.05.2003, 05:07   #6
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default

2 Arik...

Na kompliment naprashivaesh'sya?
Qo dzevov!!! chnayac es bolor commentner@ hashvi ara, te ichi karogh er chashxater. Kstati ne xochesh' tozhe postnut'?

Old 30.05.2003, 05:24   #7
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Rep Power: 5
Default

Quote:
Originally posted by Aram Ghazanchyan
2 Arik...

Na kompliment naprashivaesh'sya?
Qo dzevov!!! chnayac es bolor commentner@ hashvi ara, te ichi karogh er chashxater. Kstati ne xochesh' tozhe postnut'?
2 Aram jan.)
ne na kompliment..)
prosto aseci karoxa ajl hetaqrqir tarberak liner lucmane..

esli ti pro postnut' code.. de ena du qci..
ete eta lucume..
martiqel kimanan et mi tarberaknel..

P.S.
lrif Frameseterov write anelneler kstati lav mitk..
pomoemu iskapes Framum documenti harcna.. vore inqe korekt 4i stanum...
__________________
talent agency casting.am
Center of Internet Projects Support http://www.online.am
Armenian newspapers digest http://www.armpress.com
_ _ _ _ _ _ _
Bud'te proshe i narod k vam potyanetca

Old 30.05.2003, 05:37   #8
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default

Code by Arik

Code:
index.html -----

<frameset  rows="50%,*,0" border="1" frameborder="1">
    <frame ID=1 name="topfrm" src="aaa.html" marginwidth="10" marginheight="10" scrolling="yes" frameborder="1">
        <frame ID=2 name="valod" frameborder=0>
        <frame ID=3 name="func" src="func.html" frameborder=0>
</frameset><noframes></noframes>

func.html ---

<HTML>
<BODY>
<script language="JavaScript">
<!--
{
       var myStr;
       myStr = parent.window.location.search;
       myStr = myStr.substr(1);
       
       var myFrame;
       if (myStr > 0){
               myFrame = myStr;
       } else {
              myFrame = "bbb.html";
       }
       

          parent.document.frames['valod'].location=myFrame;     
          
}
//-->      
    </script> 
        </BODY>
</HTML>

Old 31.05.2003, 00:29   #9
Студент
 
Join Date: 06 2002
Location: California
Posts: 294
Rep Power: 0
Default

Quote:
Originally posted by Aram Ghazanchyan
2 Arik...

Na kompliment naprashivaesh'sya?
che, magharich.

Old 02.06.2003, 05:43   #10
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 44
Posts: 896
Rep Power: 0
Default

@h@
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 00:18.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.