You cannot but if you do

ajax('func1', ['id1'], ':eval')

it will interpret the returned page as json and evaluate it. id If you
return 'null' or '', it should work as expected and not raise any
error.

On Jun 24, 9:47 am, ilovesss2004 <yyiillu...@gmail.com> wrote:
> Hi,
> I use the ajax function as follows:
>
> ajax('func1', ['id1'], '')
>
> because I don't need to send some value to the html page, so I set the
> third parameter null. But IE raises error
> 'document.getElementById(...)' is null or not an object.
>
> How can I use the ajax function when I don't want to send values to
> html page?

Reply via email to