var store=false;
function start()
{
store=new Persist.Store('storename', {swf_path: '../persist.swf'});
var data='Данные';
store.set('name',data);
window['read']();
}
Взаимодействие скрипта JS с Opera
Код:
Так вот, в Firefox код работает, а в Opera - нет.
Выводит в консоли ошибок такое:
JavaScript - http://lastdir/index.php
Event thread: load
Error:
name: TypeError
message: Statement on line 82: Type mismatch (usually non-object value supplied where object required)
Backtrace:
Line 82 of linked script http://lastdir/js/extras/persist-all-min.js
function(key,val,fn,scope){var old_val;key=esc(key);old_val=this.el.set(this.name,key,val);if(fn)
Line 25 of linked script http://lastdir/js/script.js: In function start
store.set('name',data);
Line 1 of function script
start();
...
stacktrace: ... Line 25 of linked script http://lastdir/js/script.js: In function start
store.set('name',data);
Line 1 of function script
start();
...