Unable to set property value 'w90> in core.js file

I understand that this error means that I just cannot understand why this is happening.

I am using Joomla 1.7 and created a component. Now everything worked and on one strange day I received this error when trying to submit a form. This is what I have:

<form action="index.php" method="post" name="adminForm"> ..some elements... <input type="hidden" name="option" value="<?php echo $lists['option']; ?>" /> <input type="hidden" name="task" value="<?php echo $lists['task']; ?>" /> </form> 

When $lists['task'] echo exactly matches what it is capable of. Now the error is displayed inside the core.js joomla file in the submitForm function, which contains:

 function submitform(a) { if (a) document.adminForm.task.value = a; if (typeof document.adminForm.onsubmit == "function") document.adminForm.onsubmit(); typeof document.adminForm.fireEvent == "function" && document.adminForm.fireEvent("submit"); document.adminForm.submit() } 

Sorry, the file is compressed, basically it is a very simple function that sets the task element to the given var form and sends. (FYI: a var is the correct var, and everything is sent fine)

Now, what I can’t understand is how I can get this error when it didn’t happen before, and I created many forms like this inside the component, exactly the same, and it works fine.

+4
source share
4 answers

Well, the problem was that, as suggested by the WTK, there was an HTML error. Some code broke HTML (2 rows of the table were outsite tables) that caused this error.

0
source

If an onsubmit event handler is present, this function will be called twice:

1- document.adminForm.onsubmit ();

2- document.adminForm.submit (); (will also fire the onsubmit event handler).

Since I do not see this code here, I cannot diagnose further. However, you may want to place a debugging point (e.g. Firebug) in this submitForm function, as well as in any handler attached to the onsubmit event.

0
source

<input type="hidden" name="task" value="<?php echo $lists['task']; ?>" />

Property value "must be empty, it will be assigned by joomla js

<input type="hidden" name="task" value=""/>

0
source

in www / media / system / js / core-uncompressed.js around line 22, after

 if (!form) { form = document.getElementById('adminForm'); } 

add:

 if (!form) { form = document.adminForm; } 
0
source

All Articles