PDA

View Full Version : help with frames


phomaniac
03-09-2009, 12:39 PM
i have a framed web page that im working with can someone help


on the left i have
frame1.html
<form name="form1" >
<select name="networktype_id" id="select_networktype">
<option value=""></option>
<option value="1">3G</option>
<option value="2">EDGE</option>
<option value="3">GSM</option>
<option value="4">Mobitex</option>
<option value="5">UMA</option>
</select>
</form>

on the right
frame2.html
i have a button that once pushed edge is selected on the left


im using this to added text to a text area on a different frame
<script language="javascript" type="text/javascript">
function addText(ref){
top.fram1.document.form1.textarea1.value+=ref;
}
</script>


<img src="btn_yes.gif" onClick="addText('>test text')">


how do i go about this please

omnicity
03-13-2009, 11:46 AM
top.fram1.document.form1.textarea1.value+=ref;


That looks pretty much like what you need, assuming that you have correctly named the frame as 'fram1' in the frameset document. Are you having a specific problem?