Checking Server Results If Return is HTML
revdan at danshafer.com
Sat Dec 20 01:24:15 CST 2003
Thanks, Brian. I should have seen that. You're right, of course. The
problem is that the serverReturn field was being read by RR as a
variable with a value. Correctly so. I've quoted those strings now
(like I keep teaching people to do...duh!) and all is well.
Gotta stop coding so late at night.
On Dec 19, 2003, at 8:38 PM, Brian Yennie wrote:
> It looks like you have a variable that has the same name as your field.
> When you do this:
> put "User successfully created" into field serverReturn
> Revolution is actually putting the message into field 1, which is what
> serverReturn evaluates to.
> In the second case, Revolution is trying to find a field with a name
> that matches a long html string- bad news.
> Put quotes around your field name (or change it's name) and you should
> be good to go.
>> If the outcome is successful, the server in this case returns a value
>> of 1. This works in my code. But if an error is created, I never get
>> the second display. Instead, the debugger tells me "Chunk: No Such
>> Object" and the hint has the first two HTML tags of the return value.
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode