Hi,
i use one function i can't get formname in alert message box. pls replay soon
[code=javascript] for(var i=0,j=0;i<Selec tedMagazines.le ngth;i++)
{
if(item.name==S electedMagazine s[i].name)
{
var price="";
var newhtml='<form name="frmLogin" action="login" method="post">' ;
newhtml +='<table width="200" height="30" class="PageText " border="1"><tr> <td>'
newhtml +='<input type="radio" id="rdSingleIss ue" name="reason" value="rdSingle Issue"/> Single Issue Price </td><td align="right">' +SelectedMagazi nes[i].price+' </td></tr><tr><td>';
newhtml +='<input type="radio" id="rd12Issue" name="reason" value="rd12Issu e"/> 12 Issue Price </td><td align="right">' +SelectedMagazi nes[i].Issue12+' </td></tr><tr><td>';
alert("From " +newhtml);
alert(this.form );
newhtml+='<cent er><div id ="SingleDisplay Buy"><a href="javascrip t:Magazinecheck buy('+item.id+' ,'+isCollection +',this.form)"> <img src="images/bt_buy.gif" align="middle" alt="" width="60" height="20" vspace="5" border="0"></a></div></center></td></tr></table></form></td>';
}
}[/code]
i use one function i can't get formname in alert message box. pls replay soon
[code=javascript] for(var i=0,j=0;i<Selec tedMagazines.le ngth;i++)
{
if(item.name==S electedMagazine s[i].name)
{
var price="";
var newhtml='<form name="frmLogin" action="login" method="post">' ;
newhtml +='<table width="200" height="30" class="PageText " border="1"><tr> <td>'
newhtml +='<input type="radio" id="rdSingleIss ue" name="reason" value="rdSingle Issue"/> Single Issue Price </td><td align="right">' +SelectedMagazi nes[i].price+' </td></tr><tr><td>';
newhtml +='<input type="radio" id="rd12Issue" name="reason" value="rd12Issu e"/> 12 Issue Price </td><td align="right">' +SelectedMagazi nes[i].Issue12+' </td></tr><tr><td>';
alert("From " +newhtml);
alert(this.form );
newhtml+='<cent er><div id ="SingleDisplay Buy"><a href="javascrip t:Magazinecheck buy('+item.id+' ,'+isCollection +',this.form)"> <img src="images/bt_buy.gif" align="middle" alt="" width="60" height="20" vspace="5" border="0"></a></div></center></td></tr></table></form></td>';
}
}[/code]
Comment