Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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...    } }; 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -