[Zope] newbies
   
    pAuL Siew
     
    paulsiew@hotmail.com
       
    Wed, 11 Apr 2001 13:51:34 -0000
    
    
  
Hi all,
I am using dhtml + javascript to fit my navigation bar's coding. One of my 
menu is called Subject which its submenu is to list out the current logged 
in student's enrolled subject(e.g. 1.zope 2.asp, so on...), when user click 
on the sub menu - 1.zope , it'll redirect the user to the zope page, 2.asp 
to asp page, i've do a checking at the destination page to verify what var 
i've passed. The problem now was:
i)how can i let system know which subject(var) i want to passed like what i 
do in html-drop-down-box by just include the line called <option value= 
SubjectCode> <dtml-var Subject> and that's all.
Below is how my code
------------------------------------------------------------------------
<dtml-in listSubjectSql>
dhtmlMenu.addItem(new NavBarMenuItem("<dtml-var SubjectCode>", 
"/user/admin/try"));
<dtml-call "RESPONSE.setCookie('Subject2', SubjectCode)">
</dtml-in>
------------------------------------------------------------------------
output: Subject2 value = last value of Subject table(loops & stop at last 
value of the DB)
------------------------------------------------------------------------
<dtml-in listSubjectSql>
var subject = new array(<dtml-var SubjectCode>)
for (i=0; i<=subject.length; i++) {
dhtmlMenu.addItem(new NavBarMenuItem("subject[i]", "/user/admin/try"));
<dtml-call "RESPONSE.setCookie('SubjectCode', subject[i])">
}
</dtml-in>
------------------------------------------------------------------------
output: coding error
Please help me...
thanks! :Þ
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.