Can you show some code?
On Thursday, October 20, 2011 3:21:12 PM UTC-4, Franklin Freitas wrote:
>
> I am using a form very similar to the Ajax sample on chapter 3 to
> search for customers and once you see the results, you click on the
> record you want so customer id and name are added to the form fields
> on my main processing form. This works fine on my "add new" records
> form.
>
> I have another page to "update records", similar to the "add new
> records" page. On this form the Ajax doesn't work, when I call the
> Ajax function I get in the target div the content of the index page.
> After trying to see why it would only work in one page and the add and
> update records pages are similar I found the reason. On the update
> page there is an id on the url (to be read using request.args(0)) this
> causes the error, for some reason when there is an argument in that
> position the Ajax get confused and doesn't return the right results.
>
> I tried adding a "/21" at the end of my "add new" page url and the
> Ajax also fails, this confirms that this is the cause of the error. I
> guess somehow the Ajax gets confused with this
>
> Has anyone else experience this error ?
>
> Thanks for your help