Here's a very simple example which works on Chrome and IE8, but fails
on IE6 for me, whereas I did have this kind of thing working on IE6 a
few weeks ago because people were using it!
Could any changes to layout.html or base.css have thrown a spanner in
the works?
def test():
response.view = 'shared/allpurpose.html'
response.title = 'Test page'
PartFieldsString = "['randomfield']"
ajaxAddPart = "ajax('%s', %s, 'target');" %
(URL(r=request,f='testajax'), PartFieldsString)
form = TABLE(
TR(
TD(INPUT(_type='hidden', _id='randomfield',
_value='1')),
TD(INPUT(_type='button', _value='Add part',
_onclick=ajaxAddPart)),
TD(DIV(_id='target'))
)
)
return dict(form=form)
def testajax():
return 'fff'