Hi, I am trying to send a file name to a JS function. but the problem is from I can pass some integer values for the function and i can display the alert box.
but not for the filenames.
this one is working:
[HTML]<a href="javascrip t:file_down(100 1)"><img src="images_sto re/b_down.jpg" width="21" height="22" border="0" /></a>[/HTML]
this one is Not working:
[HTML]<a href="javascrip t:file_down(fil e_name.pdf)"><i mg src="images_sto re/b_down.jpg" width="21" height="22" border="0" /></a>[/HTML]
but not for the filenames.
this one is working:
[HTML]<a href="javascrip t:file_down(100 1)"><img src="images_sto re/b_down.jpg" width="21" height="22" border="0" /></a>[/HTML]
this one is Not working:
[HTML]<a href="javascrip t:file_down(fil e_name.pdf)"><i mg src="images_sto re/b_down.jpg" width="21" height="22" border="0" /></a>[/HTML]
Code:
function file_down(fid)
{
var myvar = fid;
alert(myvar);
}
Comment