Featured post
Javascript namespace and problem with IE7 -
i implemented javascript namespacing solution based on answer stack overflow question: how declare namespace in javascript?
let's call isigma-ns.js:
var isigma = { messages: { novalidid: "no valid id found", reason: "reason", // etc... }, language: "ca", sign: 2, pause: 400, params: {}, init: function(params) { // etc... }, delay: function(callback) { // etc... }, // etc... signurl: function(cert, url) { // etc... } };
i include script in page, plus other stuff:
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>isigma signature widget</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <!-- required javascript , styles isigma widget--> <script type="text/javascript" src="/isme/media/signwidget/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="/isme/media/signwidget/isigma-ns.js"></script> <script type="text/javascript"> $(function(){ $("#applet").isigmasignatureapplet({ purpose: isigma.sign, url: the_url, language: 'es' }); }); </script>
...etc...
it works fine in firefox, ie8, chrome, opera... fails in ie7 message "isigma not defined" - referring line make reference isigma.sign
.
any hints can wrong here? there wrong ie7 processing order of javascript files? other guess?
note: full reference, whole thing running in http://app.portasigma.com/isme/signwidget/iframe/ , namespace js file named http://app.portasigma.com/isme/media/signwidget/jquery-isigmawidget.js
it comma after "reason". see: http://jsbin.com/upiba5/2/edit edit: on live site, comma see after:
documentlockedbyanother: "this document locked user, try again later",
var isigma = { messages: { novalidid: "no valid id found", reason: "reason" // etc... }, language: "ca", sign: 2, pause: 400, params: {}, init: function(params) { // etc... }, delay: function(callback) { // etc... }, // etc... signurl: function(cert, url) { // etc... } };
- Get link
- X
- Other Apps
Comments
Post a Comment