|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
i have two html pages.
in one html page i am having a dropdown list. in second html page i am fetching the first html page in the frame. what i want to do is that when the user double clicks any element in the dropdown list that element's value should be displayed in the textbox which is in second page. i have written the setcookie and getcookie method. i have written the function for adding the element in the textbox in the second html pages. so can i call this function in the ondblclick event of the dropdown list. Hey guys help me out thanx |
|
#2
|
||||
|
||||
|
no need for cookies, you should use client side code:
Code:
---parent page:
<form name="form1">
<input type="text" name="text1" />
...
---page in frame:
<script language="javascript">
function ChangeParent(objCombo)
{
var selText = objCombo.options[objCombo.selectedIndex].value;
parent.document.form1.textbox1.value = selText;
}
</script>
<select onchange="ChangeParent(this);">
...
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > calling javascript function of one document from another document |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|