IE problem with trigerring JS in column

Greetings,

In a web application, I use html tag to trigger some javascript. It works fine in Netscape, however, in IE it works but it also changes the page that shows the view to database’s home page. It does it for any javascript that does not open the document in the same window. Does anyone know why IE does this and how to resolve it?

Btw, show values in this column as links is not checked, tried both ways.

Thank you

Basir

Subject: IE problem with trigerring JS in column

How does your column code look like?

Subject: RE: IE problem with trigerring JS in column

Here it is:

relaLink := “(v_embdPeerAvail)/” +@Text(@DocumentUniqueID)+“?OpenDocument”;

“a href="" onClick="parent.openInDialog('” + relaLink + “', ‘availForm’, ‘dialogAvail’)">”

  • @Text(dtm_fieldName) + “]”

The openInDialog function opens the doc in a iframe
But I even tried onClick="alert(‘test’)" and still the same thing happens.

Subject: RE: IE problem with trigerring JS in column

If you want to stop the link from following through, remember to include ;return false in the onclick event handler.

Subject: Thanks Stan - it worked