Jump to content



  • Please log in to reply
1 reply to this topic

#1 shan_cool

  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts
  • LocationChennai,India

Posted 27 February 2006 - 05:00 AM


I should hav a screen where i first select the project Name and onchange of it i shld get its respective product name and if i select a product name and onchange of it ,i shld get its respective module names.

I tried first for a single on where the project name is assumed to be one and its respective products are displayed and if i select the product name,its respective modules are displayed,This works fine but if i implent the same for project name as well it does work.

My code :

//Javascript validation
function window_onload() {
var qs=location.search.substring(1,location.search.length);
var pair = qs.split('=');
temp = unescape(pair[1]).split('+');
function Product_onblur()
var my_prd= "";
var index1=document.form1.prd_name.selectedIndex
window.location.href = unescape("log_defect1.php"+"?prod_name="+my_prd);

//php code

<select style="border-style:none; FONT-SIZE: 10pt; WIDTH: 137px; COLOR: #222222; " name="prd_name" style="font-size: 10pt" tabindex="2" onChange="return Product_onblur()">
$query=mysql_query("SELECT prod_name name FROM dt_product where proj_name='$prj_name' order by prod_name ASC",$connection )or die ("cant do it");
while ($result=mysql_fetch_array($query))
echo '<option value="' . $result['name'] . '">' . $result['name'] . '</option>';


can anybody help me?
If i am not clear,let me know?

Thanks in advance,

#2 brissy_matty

  • Members
  • PipPip
  • Member
  • 27 posts

Posted 01 June 2007 - 01:27 PM

I have it in Ajax if that's helpful - or i can change it to just be java?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users