View Full Version : Cannot acess my website using host name
kclendinning
16 Feb 2012, 4:09 AM
i have a web application, that i am running in IE. when i access my website using host name in url in IE9 it gives me error, expected identifier or string in login.js but my code is not wrong.
but if i access it using ip it works. could you please tell me how do i handle this situation?
koko2589
16 Feb 2012, 5:08 AM
put this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
kclendinning
16 Feb 2012, 5:12 AM
But now i have the html 5 doctype
<!DOCTYPE html>
does it make any difference
kclendinning
16 Feb 2012, 5:17 AM
Actually i tried that but it still gives me the same error.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Thu, 16 Feb 2012 13:16:20 UTC
Message: Expected identifier, string or number
Line: 59
Char: 1
Code: 0
URI: http://test:7201/editor/app/view/Login.js
mitchellsimoens
16 Feb 2012, 5:25 AM
So what is at line 59 in Login.js?
kclendinning
16 Feb 2012, 5:29 AM
},
Ext.create('widget.localeselector')
];
},
}); // THIS IS THE LINE// and thats also the end of the file
mitchellsimoens
16 Feb 2012, 5:30 AM
You have a trailing comma
},
});
kclendinning
16 Feb 2012, 5:33 AM
So you mean to say i have to remove the comma...
mitchellsimoens
16 Feb 2012, 5:33 AM
Yes. IE cares about that where others don't but you will have to remove it. It's invalid JavaScript.
kclendinning
16 Feb 2012, 5:36 AM
Thank you, you are the best...Quick answers all the time for my questions....
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.