View Issue Details

IDProjectCategoryView StatusLast Update
0003931OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:27
Reporterjkrug Assigned To 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version4.5.10 revision 44222 
Summary0003931: remove the eval(this.innerHTML);
DescriptionAfter you select a variant and this is loaded via AJAX, in oxajax.js this (eval(this.innerHTML);) is executed and fails mostly every time, if you forgot to remove some calls if template was changed!

Please use .live() / .on() from jQuery to solve that in a clean and easy way!

Write less - do more!
TagsProducts
ThemeAzure
BrowserAll
PHP Versionany
Database Versionany

Activities

jkrug

2012-04-25 22:33

reporter   ~0006458

Please forget .live() Will be bound if Element is removed from DOM. Use .on() to solve that. Anyway, .live() is depricated in jQuery since version 1.7.

Thanks to Daniel Schlichtholz.

leofonic

2012-11-07 15:38

reporter   ~0007750

Also jQuery in latest version is still 1.5.1, which also prevents to use "on" for own extensions.

aurimas.gladutis

2012-11-08 16:02

reporter   ~0007780

Last edited: 2012-11-08 16:04

Hi, well this place checks if given javascript is valid, if not - it removes it and throws error meesage to console, if its available, so you could see what should be fixed. This is the correct behavior.

We have updated jquery to 1.8.2 and jquery ui to 1.9.1 and will release it in 5.1.0.