Frank Link wrote:
> Can you tell me where the diffence is between these code fragments:
The first problem with a fragment is that the error could be somewhere else.
> 1.
> &html<<a href="." onclick="#server(..test('1234'))#;return
false;">N</a></div>>
I recommend href="#" rather than "." simply because "." refers to a non-existent page.
Do you really have a line break in there? or did your news agent mistakenly wrap your
post?
The error message that you got suggests that the "return false" was not executed.
> <script language=cache method=test arguments="id:%String" returntype="">
Do you have something against quoting all the values?
Doing so is good style.
> &js<alert(#(id)#)>
> QUIT
Once again, did you put whitespace in front of these?
It didn't show in your post.
> </script>
> The first is a part of my CSP.Page the second is the example from you. The
> first part doesn't work.
I'm glad to hear that my example worked.
Try this rewrite:
<html>
<head>
<title>Test onclick to server method with argument</title>
</head>
<body>
<a href="#" onclick="#server(..test('1234'))#;return false;">test</a>
<script language="cache" method="test" arguments="id:%String" returntype="">
if id?1.n &js<alert(#(id)#)>
QUIT
</script>
</body>
</html>