[haiku-bugs] Re: [Haiku] #5972: DD-WRT administration interface not rendered properly. javascript issues too

  • From: "saivert" <trac@xxxxxxxxxxxx>
  • Date: Thu, 13 May 2010 15:03:37 -0000

#5972: DD-WRT administration interface not rendered properly. javascript issues
too
--------------------------------------+-------------------------------------
 Reporter:  saivert                   |       Owner:  stippi   
     Type:  bug                       |      Status:  new      
 Priority:  normal                    |   Milestone:  R1       
Component:  Applications/WebPositive  |     Version:  R1/alpha2
 Keywords:  render issue              |   Blockedby:           
 Platform:  x86                       |    Blocking:           
--------------------------------------+-------------------------------------

Comment(by saivert):

 Chrome, Opera and Internet Explorer handles the DD-WRT web interface ok.
 Everything works.

 The page has some CSS for the FIELDSET tags (the groupbox like elements on
 the page) which only looks as it is supposed to on Firefox/BeZillaBrowser.


 Following JavaScript snippet is the function that is called by the "Add"
 button on the page. This sets some form (identified by F) values then
 submits the form.
 {{{

 function forward_add_submit(F) {
 F.change_action.value="gozila_cgi";
 F.submit_type.value = "add_forward_spec";
 apply(F);
 }

 }}}

 This is the "apply" function:

 {{{
 function apply(form, text, delay) {
         form.submit();
         for (i = 0; i < form.elements.length; i++) {
                 if(defined(form.elements[i].disabled))
                         form.elements[i].disabled = true;
         }
         if (form.contents) document.getElementById("contents").style.color
 = '#999999';
 }

 }}}

 so it seems like WebPositive's handling of the form submit from javascript
 is the culprit here. When that is executed it comes with an error message:

 Error loading http://192.168.1.1/apply.cgi
 Server returned norhing (no headers, no data)

 The other browser happily submit the form when called from javascript.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5972#comment:3>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: