Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 27.05.2003, 05:46   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 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?
Reply With Quote
Old 27.05.2003, 09:01   #2
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: 07 2002
Location: /dev/null
Age: 72
Posts: 250
Downloads: 0
Uploads: 0
Reputation: 0 | 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...
Reply With Quote
Old 29.05.2003, 18:30   #3
Студент
 
Join Date: 06 2002
Location: California
Posts: 294
Downloads: 0
Uploads: 0
Reputation: 0 | 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.
Reply With Quote
Old 30.05.2003, 05:35   #4
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Thanks to all, arden eghav
Reply With Quote
Old 30.05.2003, 06:02   #5
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Downloads: 0
Uploads: 0
Reputation: 26 | 4
Default

Quote:
Originally posted by Aram Ghazanchyan
Thanks to all, arden eghav
Aram vonc arecir ver4e..!?
Reply With Quote
Old 30.05.2003, 06:07   #6
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 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'?
Reply With Quote
Old 30.05.2003, 06:24   #7
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Downloads: 0
Uploads: 0
Reputation: 26 | 4
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
Reply With Quote
Old 30.05.2003, 06:37   #8
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 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>
Reply With Quote
Old 31.05.2003, 01:29   #9
Студент
 
Join Date: 06 2002
Location: California
Posts: 294
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

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

Na kompliment naprashivaesh'sya?
che, magharich.
Reply With Quote
Old 02.06.2003, 06:43   #10
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

@h@
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 11:18.


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