Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript not finding element with colon in it. #5

Closed
valguss opened this issue Mar 28, 2013 · 0 comments
Closed

Javascript not finding element with colon in it. #5

valguss opened this issue Mar 28, 2013 · 0 comments

Comments

@valguss
Copy link

valguss commented Mar 28, 2013

So i got this all to work but the ajax request wasen't updating hte element. I found that this was to do with the : in dh:_someelementname

So i updated Mage/Core/Block/Abstract.php, line 1260 to:

        return '#diehard_'.preg_replace('/[^a-zA-Z0-9]+/', '_', $this->getNameInLayout());

Works a treat now.

coresh added a commit to coresh/Cm_Diehard that referenced this issue Sep 1, 2015
To exclude Warning:

Warning: include(): Filename cannot be empty  in /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php on line 250

#0 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(250): mageCoreErrorHandler(2, 'include(): File...', '/var/www/lightt...', 250, Array)
colinmollenhour#1 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(250): include()
colinmollenhour#2 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(281): Mage_Core_Block_Template->fetchView('adminhtml/base/...')
colinmollenhour#3 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(295): Mage_Core_Block_Template->renderView()
colinmollenhour#4 /magento/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
colinmollenhour#5 /magento/.modman/Cm_Diehard/Mage/Core/Block/Abstract.php(936): Mage_Adminhtml_Block_Template->_toHtml()
colinmollenhour#6 /magento/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
colinmollenhour#7 /magento/.modman/Cm_Diehard/Mage/Core/Block/Abstract.php(936): Mage_Core_Block_Text_List->_toHtml()
colinmollenhour#8 /magento/.modman/Cm_Diehard/Mage/Core/Block/Abstract.php(642): Mage_Core_Block_Abstract->toHtml()
colinmollenhour#9 /magento/.modman/Cm_Diehard/Mage/Core/Block/Abstract.php(586): Mage_Core_Block_Abstract->_getChildHtml('content', true)
colinmollenhour#10 /magento/app/design/adminhtml/default/default/template/page.phtml(67): Mage_Core_Block_Abstract->getChildHtml('content')
colinmollenhour#11 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(250): include('/var/www/lightt...')
colinmollenhour#12 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(281): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
colinmollenhour#13 /magento/.modman/Cm_Diehard/Mage/Core/Block/Template.php(295): Mage_Core_Block_Template->renderView()
colinmollenhour#14 /magento/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
colinmollenhour#15 /magento/.modman/Cm_Diehard/Mage/Core/Block/Abstract.php(936): Mage_Adminhtml_Block_Template->_toHtml()
colinmollenhour#16 /magento/app/code/core/Mage/Core/Model/Layout.php(556): Mage_Core_Block_Abstract->toHtml()
colinmollenhour#17 /magento/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
colinmollenhour#18 /magento/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(119): Mage_Core_Controller_Varien_Action->renderLayout()
colinmollenhour#19 /magento/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
colinmollenhour#20 /magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
colinmollenhour#21 /magento/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
colinmollenhour#22 /magento/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
colinmollenhour#23 /magento/app/Mage.php(683): Mage_Core_Model_App->run(Array)
colinmollenhour#24 /magento/pub/index.php(366): Mage::run('default', 'store')
colinmollenhour#25 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant