am spend lot time to find these answers, so don't wanna anyone to be so... just scroll, you will get your answers.
Thursday, March 18, 2010
Problem with PostBack url in LinkButton??
change the LinkButton's PostBackURL as "javascript:window.location.href='your_page.html'"
How to change checkbox and radio button's label using client side javascript
function UpdateLabel(objectClientID,LabelText)
{
document.getElementById('objectClientID').nextSibling.innerText=LabelText;
}
--
Sample call
UpdateLabel('<%= rb.ClientID %>',"ChangedLabel");
{
document.getElementById('objectClientID').nextSibling.innerText=LabelText;
}
--
Sample call
UpdateLabel('<%= rb.ClientID %>',"ChangedLabel");
Sunday, March 7, 2010
init.js and core.js error on a sharepoint forms authenticated Login Page
http://social.technet.microsoft.com/Forums/en/sharepointadmin/thread/0b89da96-ad94-414d-bcfa-d2ca2367842d
Monday, December 28, 2009 11:28 AM - Gino B.
Good day experts,
I am new in sharepoint development and I would like to know what causes the script error on IE8 for a init.js and core.js. I am using a forms authenticated login.
Early this morning I was able to browse the site with no problem. Until I did some configuration (using Central Admin) for AAM and created some new users. It did some access deny result to users but I managed to put it back. I am not sure about the other guys doing the configuration. I was asking them for any configuration they did and they said "nothing"
Tried logging in again and it worked fine again.
I don't know what happened but when I tried logging in again later, AND EVEN JUST BY LOADING THE custom LOGIN I have done, It causes a script error for INIT.JS and CORE.JS.
I tried accessing the site using Mozilla and it works fine!
Also, accessing the link in the web farm internally works fine too even with IE8 or FF3.
By the way, the link I was trying to access was a public IP which points to a load balancer on a web farm. and using MOSS 2007
Can anyone enlighten me with what is the cause of this and how this is fixed?
I don't want to staright away update files because i have no idea what is causing this problem.
These are the script error messages
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 28 Dec 2009 11:26:39 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 28 Dec 2009 11:24:47 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D
Thanks in Advance!!
------------------------------------------------------------------------------------
shijuraj..
Hi Gino, Just now am got the same issue when creating an anonymous page like login page. and am found the reason and solution. The reason was the file init.js and core.js can't be access without login to the sharepoint site. so just give anonymous access to these files in the web.config as below.
without providing this in the web.config. if you try to access http://yourmachine/_layouts/1033/init.js it will navigate to the login page. thats it will return an html page instead of the js file thats why it shows syntax error. so add this in the web.config file. I think now it is clear.
srj
Monday, December 28, 2009 11:28 AM - Gino B.
Good day experts,
I am new in sharepoint development and I would like to know what causes the script error on IE8 for a init.js and core.js. I am using a forms authenticated login.
Early this morning I was able to browse the site with no problem. Until I did some configuration (using Central Admin) for AAM and created some new users. It did some access deny result to users but I managed to put it back. I am not sure about the other guys doing the configuration. I was asking them for any configuration they did and they said "nothing"
Tried logging in again and it worked fine again.
I don't know what happened but when I tried logging in again later, AND EVEN JUST BY LOADING THE custom LOGIN I have done, It causes a script error for INIT.JS and CORE.JS.
I tried accessing the site using Mozilla and it works fine!
Also, accessing the link in the web farm internally works fine too even with IE8 or FF3.
By the way, the link I was trying to access was a public IP which points to a load balancer on a web farm. and using MOSS 2007
Can anyone enlighten me with what is the cause of this and how this is fixed?
I don't want to staright away update files because i have no idea what is causing this problem.
These are the script error messages
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 28 Dec 2009 11:26:39 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 28 Dec 2009 11:24:47 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://someIPaddress:15000/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D
Thanks in Advance!!
------------------------------------------------------------------------------------
shijuraj..
Hi Gino, Just now am got the same issue when creating an anonymous page like login page. and am found the reason and solution. The reason was the file init.js and core.js can't be access without login to the sharepoint site. so just give anonymous access to these files in the web.config as below.
without providing this in the web.config. if you try to access http://yourmachine/_layouts/1033/init.js it will navigate to the login page. thats it will return an html page instead of the js file thats why it shows syntax error. so add this in the web.config file. I think now it is clear.
srj
Subscribe to:
Posts (Atom)