This topic is locked

Passing field values as parameters

2/12/2008 9:59:56 AM
ASPRunnerPro General questions
B
Bryan author

Hi,
I've posted something like this but am having difficulty passing a database value as a parameter.
The following code works fine:
<a href="#" onclick="alert('Hello')">Link</a>
However, if I try to reference a field, for example:
<a href="#" onclick="alert('{$row.1Matter_Name_value}')">Link</a>
What's displayed on the screen (as a hyperlink) is something like:
Mr Jones v Mr Smith')">link
Could anyone explain what i'm doing wrong?
Thanks,

Bryan

Sergey Kornilov admin 2/12/2008

URL?

B
Bryan author 2/13/2008

Hi,
Not sure what you mean.
I just need some code that will pass {$row.1Matter_Name_value} as a parameter. I can pass numbers and text as a parameter without any problems. As soon as I try to pass the field value, it doesn't work.
Could anyone provide some code?
Any help would be appreciated.
Thanks,

Bryan

J
Jane 2/13/2008

Bryan,
try to turn off Inline Edit option on this page on the Choose pages tab.

B
Bryan author 2/13/2008

Jane,
The page did have inline edit switched on but I've now taken this off and the problem remains.
My code is:
<a href="#" onclick="alert('{$row.1Matter_Name_value}')">link</a>
It looks fine in the WYSIWYG editor, but not in the published version.
Thanks,

Bryan

J
Jane 2/13/2008

Bryan,
it's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email] along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

N
nitescan 5/14/2008

Jane,

The page did have inline edit switched on but I've now taken this off and the problem remains.
My code is:

<a href="#" onclick="alert('{$row.1Matter_Name_value}')">link</a>

It looks fine in the WYSIWYG editor, but not in the published version.


What was the solution to this problem as I'm going to need to accomplish the same thing soon.
Thanks,

Nitescan

J
Jane 5/15/2008

Please publish your project on Demo Account and post a URL to your pages here or send it to support@xlinesoft.com along with instructions on reproducing this error for investigation.