By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

iframe and displaying dynamic value

P: 2
Hello freinds

I am working on this url
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

Expand|Select|Wrap|Line Numbers
  2. function print_field(category,indx,row,picname,assemb_id){
  3. categ[indx]=category; 
  4. document.write
  5. ("<tr onClick=\"show_img("+indx+")\" onmouseout=\"'';\" height=20>"
  6. +"<th width=75 align=left ><img src='./build/img/"+picname+"'> <b>"+category+"</b></th><th>"
  7. +"<table style='border-collapse: collapse' bordercolor='#628AC5' border=1>"
  8. +"<tr>"
  9. +"<th onclick='show_products(event,this,"+indx+","+row+","+assemb_id+")' style='cursor: hand;' width=350>"
  10. +default_line+"</th>"
  11. +"<th onclick=\"show_products(event,this,"+indx+","+row+","+assemb_id+")\" style='cursor: hand;' >"
  12. +"<img src='./build/img/scroll.gif' width='20' height='18'></th>"
  13. +"<th title='Please click Here to View Image and Description' onClick=\"'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>"
  14. +"</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>"
  15. +"</th>"
  16. +"<th align='right' onClick=\"'none'\" title='Please click Here to View Image and Description of Selected Product' ></th>"
  17. +"<th align='center' onClick=\"'none'\" >"
  18. +"<input type='hidden' name='products_id["+indx+"]' value='-1'>"
  19. +"<select name='qty["+indx+"]' onchange='calc_subtotal(mainform);calc_total(mainform);'>");
  20. document.write ("<option value=1 selected>1</option>");
  21. for (i=2;i<=10;i++) document.write ("<option value="+i+">"+i+"</option>");
  22. document.write ("</select></th></tr>");
  23. }
Sep 8 '06 #1
Share this Question
Share on Google+
1 Reply

P: 15
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

Nov 2 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.