[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: Bug#18875: java script alert
From: Harri Porten <harri () trolltech ! com>
Date: 2001-03-08 21:30:14
[Download RAW message or body]
Ajay Patwardhan wrote:
>
> We are facing a problem with javascript alert.
> If anyone knows the solution, I would be delighted.
> The problem is:
>
> We are using javascript alert . the contents of alert are being
> populated from variable.
> When the value of variable contains apostrophy ' then the alert is failing.
>
> memvar1 = "I 've gone out "
> alert("<%=memvar1"%>);
>
> can some one help
I'm not sure if this mail got mangled by the bug reporting system or a
mail client. What is the last line ? The following doesn't look very
legal to me:
alert("<%=memvar1"%>);
Could you send us a small self contained HTML page that shows the
problem ? This one just worked fine for me:
<html>
<body>
<script>
memvar1 = "I 've gone out ";
alert(memvar1);
</script>
</body>
</html>
Harri.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic