Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Internet Explorer error ( ajax )

Aloittaja Ataraxicstorm, heinäkuu 09, 2008, 02:42:53 IP

« edellinen - seuraava »

Ataraxicstorm

I recently added a new field to post.template ( babylon theme ) which is checked by ajax, all works fine in firefox but on loading the post page in IE, microsoft script debugger reports this error...

Line 381
'document.forms.postmodify.additional_options.value.style' is null or not an object
and then highlights the code in bold here:-

            if (typeof(document.forms.postmodify) != "undefined")
document.all["document.forms.postmodify.additional_options.value"].style.backgroundColor
               document.forms.postmodify.additional_options.value = currentSwap ? "1" : "0";

if i ignore that error and try to post I get this error...

Line 229:
object required

Code highlighted in Themes/default/script.js?fin11:-

f (typeof(form.form) != "undefined")
      form = form.form;

   for (var i = 0; i < form.length; i++)
      if (typeof(form) != "undefined" && form.tagName.toLowerCase() == "textarea")
         form.readOnly = true;


And it wont post. This only happens in IE, reverting back to previous post.template and no errors at all.

Can anyone help? This is my first play with ajax and no amount of googling has helped so far.

Using 1.1.5


Advertisement: