Forum Moderators: open
i replace my echo statement to $rdata in order for me to get the value and return it with return $rdata;
my problem is this statement inside $rdata rel=\"lightbox\" it seem doesn't work but this codes works
onClick="createNews(\'DivUpload\');" on me
im passing value lightbox to Javascript for me to appear the lightbox form..
hope u understand my english
thx
if $rdata is a text say fred then it will generate
return fred;
NOT Ok, it needs to be return "fred";
onClick="createNews(\'DivUpload\')";
is a valid javaScript statement.
'<a href="login.html?height=150&width=350 rel=\"lightbox\">upload Me</a>'
is not.
It is just a text string,
I assume you want this html string(link) to be inserted into page ?
should read
var link = '<a href="login.html?height=150&width=350 rel=\"lightbox\">upload Me</a>';
.... code to do something with link ....
if $rdata is a text say fred then it will generate
return fred;
NOT Ok, it needs to be return "fred";