$$ViewTemplate and @DbLookup

I have a simple $$ViewTemplate form which simply has a $$ViewBody in it. In the Form Properties box, the Content Type is set to “application/x-javascript”. My problem is that if I add another computed field having a DBLookup function, the page does not load. Even if the DBLookup is in a hide-when formula rather than a computed field. The problem is not an error in the DbLookup because I’m using the @IsError and I’ve tested it in another form. It seems that @DbLookups do not work when the Content Type is “application/x-javascript”. If I change the content type then it works. The error I get is a generic IE error (IE cannot download page or not found).

Any comments please?

Thanks

Ed

Subject: Why are you setting the content type to javascriipt?

What happens if it’s set to hotes and you use passthrough html for the html elements?

Subject: This should be fine.

Can you post your code? It depends on how you output the error in the situation of @ISERROR

Also in IE turn off the friendly error messages, and you will get more meaningful information about why the page won’t load.