Concatenate String
Posted
by João Madureira Pires
on Stack Overflow
See other posts from Stack Overflow
or by João Madureira Pires
Published on 2010-04-09T08:53:17Z
Indexed on
2010/04/09
9:03 UTC
Read the original article
Hit count: 304
JavaScript
Hi there.
I have the following javascript function:
<script type="text/javascript">
function quickCardRegister_OnCompleteSave() {
publishContent('This is a description',#{imagePath},'http://www.lala.com');
}
</script>
The imagePath variable is populated with value: http://localhost/img/30_w130px.gif
I'm having the following script error: missing ) after argument list
publishContent('This is a description',http://localhost/img/30_w130px.gif,'http://www.lala.com');
How can i surround http://localhost/img/30_w130px.gif with quotes?
Thanks
© Stack Overflow or respective owner