iframe and displaying dynamic value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mandakini
    New Member
    • Sep 2006
    • 2

    iframe and displaying dynamic value

    Hello freinds

    I am working on this url http://72.36.156.243/compbuild.php
    Here I am using ifram and displaying dynamic value I don't know how to use iframe as array how to assign array and retrive value from array. I am very poore in javascript please help me.



    coding is like this

    Code:
     
    function print_field(category,indx,row,picname,assemb_id){
    categ[indx]=category; 
    document.write
    ("<tr onClick=\"show_img("+indx+")\" onmouseout=\"this.style.backgroundColor='';\" height=20>"
    +"<th width=75 align=left ><img src='./build/img/"+picname+"'> <b>"+category+"</b></th><th>"
    +"<table style='border-collapse: collapse' bordercolor='#628AC5' border=1>"
    +"<tr>"
    +"<th onclick='show_products(event,this,"+indx+","+row+","+assemb_id+")' style='cursor: hand;' width=350>"
    +default_line+"</th>"
    +"<th onclick=\"show_products(event,this,"+indx+","+row+","+assemb_id+")\" style='cursor: hand;' >"
    +"<img src='./build/img/scroll.gif' width='20' height='18'></th>"
    +"<th title='Please click Here to View Image and Description' onClick=\"oFrame.style.display='none'\" valign=top><input type=\"button\" value=\"info\" style=\"border: #C4B0AB 1px solid; background-color: #F1F1F1; color: #5C5C5C; font-weight: bold\" onclick='show_desc("+indx+")'></th>"
    +"</tr><TR ><Th id='iframe2'><iframe name='iframe2' id='iframe2' height='50' marginheight='0' marginwidth='0' vspace=0 width=100% border='0' frameborder='0' src='test_img.php?product_id='recid["+indx+"]></iframe> </Th><Th>click</Th></tr></table>"
    +"</th>"
    +"<th align='right' onClick=\"oFrame.style.display='none'\" title='Please click Here to View Image and Description of Selected Product' ></th>"
    +"<th align='center' onClick=\"oFrame.style.display='none'\" >"
    +"<input type='hidden' name='products_id["+indx+"]' value='-1'>"
    +"<select name='qty["+indx+"]' onchange='calc_subtotal(mainform);calc_total(mainform);'>");
    document.write ("<option value=1 selected>1</option>");
    for (i=2;i<=10;i++) document.write ("<option value="+i+">"+i+"</option>");
    document.write ("</select></th></tr>");
    }
    Last edited by Niheel; Sep 8 '06, 04:41 PM.
  • rameshsambu
    New Member
    • Oct 2006
    • 15

    #2
    hi mandakini

    I saw the page that you work. excuse me I couldn't understand what is your requirement. Could you please explain what specifically you need. maybe I could help


    -Ramesh

    Comment

    Working...