Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Window.open command


Message #1 by "Shaukat Desai" <shaukat.desai@g...> on Tue, 20 Feb 2001 10:59:52
Hi,

I have the solution:-

<SCRIPT LANGUAGE="JavaScript">
function doIt()
{

var form = document.frmLineCoding;
var _newPage = "NewLineDisplayAdd.asp?DistSeq=";
var _Name = "New";
var option="";
    
    for(j=0; j < form.rdoDistSeq.length; j++) 
	  {
        if(form.rdoDistSeq[j].checked) 
			{
            option=form.rdoDistSeq[j].value;
            	
            }
        }


var   _parm = option;
var _winParms  = "width=650";
    _winParms += ", Height=450";
	_winParms += ", fullscreen=no";
	_winParms += ", scrollbars=no";

window.open(_newPage+_parm,_Name,_winParms);
}

</script>

> Hi,
> 
> My fault, I'm trying to pick up the value from an array of radio buttons 
> rather than a combo box.
> 
> Can you advise on how I can do this?
> 
> Thanks
> 
> Shaukat 
> 
> 
> > The function I provided before works fine on my test page (Netscape 
and 
> IE).
> > 
> > I recommend you test your debugging skills:
> > 
> > 1) Is the variable "oLB" a listbox object (try an "alert(oLB);" and 
see 
> if
> > you have an object).
> > 2) Are all your calls in the correct case (javascript is case 
sensitive -
> > "options" not "Options").
> > 
> > Play around with it a little and try to find the problem - it sounds 
> like a
> > wee bug somewhere (a simple fix).
> > 
> > If you still have problems after trying these, fell free to send me an
> > e-mail (with the full code).
> > 
> > Cheers,
> > Anill
> > AnilR@T...
> > 
> > 
> > Sevina Technologies
> > www.Sevina.com
> > 

  Return to Index