EllisLab text mark
Advanced Search
4 of 4
4
   
New Extension: MX Custom Tabs
Posted: 08 July 2010 08:08 AM   [ Ignore ]   [ # 55 ]   [ Rating: 0 ]
Avatar
Joined: 2007-10-17
297 posts

Had another clash, where I added another Playa field:  There’s already Playa fields within the form, 2 within a tab, 1 in a Matrix field and another in the main block.  I added another, and the markup went completely wonky, with the save not working.

The markup for publish form should look like this (when custom tabs works):

<div id="contentNB">
<
form method="post" id="entryform"...
...
hidden divs for the tabsetc ...
<
table cellspacing="0" cellpadding="0" border="0" style="width: 100%;"><tbody><tr><td class="publishBox">
...
etc...
</
form>
</
div

When it goes wrong, the markup looks like this:

<form method="post" id="entryform"...
...
hidden divs for the tabsetc ...
</
form>
</
div>
<
table cellspacing="0" cellpadding="0" border="0" style="width: 100%;"><tbody><tr><td class="publishBox">
...
etc... 

Hence why the save doesn’t work as the main publish markup has fallen outside of the form.

Any ideas?

[Edit]
Error console in Firefox shows this:
Error: uncaught exception: [Exception… “Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLFormElement.removeChild]”  nsresult: “0x80004003 (NS_ERROR_INVALID_POINTER)”  location: “JS frame :: http://Domain.co.uk/ee-admin/index.php?S=7379619228e5564dba3ae3c1548841658a5cdcd0&C=edit&M=edit_entry&weblog_id=2&entry_id=10 :: anonymous :: line 3626”  data: no]

Not that it helps much!?!

[Edit 2]
This is using the latest download onyour site (v0.7.2), but the extension has the version 0.7.1 and the comment references 0.7.0.

 Signature 

twobelowzero
EE add-ons support and comments
EE Shopping Cart and ecommerce solution (coming soon)

 
Posted: 08 July 2010 08:56 AM   [ Ignore ]   [ # 56 ]   [ Rating: 0 ]
Avatar
Joined: 2007-10-17
297 posts

It seems to be the Matrix field that it’s struggling with (even though it was working fine with it before).

Whereas there’s normally 2 divs for each row in the publish page (one open, one closed), the markup output by your extension breaks when trying to modify the closed div, notice the id field gets markup inserted into it instead of the name:

<div class="publishRows">
<
div field_id_12="" id=">
<div class='itemWrapper' ><label for="
><a><img width="10" height="10" border="0" alt="Expand" src="http://worthingbowlscentre.co.uk/themes/cp_global_images/expand.gif"><b>&nbsp;&nbsp;Rotating Images &ampMessages</b></a></div>
</
div

This should read:

<div field_id_12="" id="field_pane_off_12"... 
 Signature 

twobelowzero
EE add-ons support and comments
EE Shopping Cart and ecommerce solution (coming soon)

 
4 of 4
4