I am tasked with figuring out how to automatically reassign tasks in sharepoint 2007 designer workflow. I know that it's usually done by providing the user with a reassign option in the task completion form, but that won't work for me. Here's a brief overview of the current workflow and what I...
Got it! It's working in Firefox and IE! Here's the final working function. Replaced Node.COMMENT_NODE with 8, and replaced textContent with nodeValue. Thanks so much for all of your help Feherke! Thanks also to vacunita!
function findacontrol(content,where)
{
var result
if (!where)...
Got pulled away. Just tried Feherke's solution:
function findacontrol(content,where)
{
var result
if (!where) where=document
for (var i=0,l=where.childNodes.length;i<l;i++) {
if (where.childNodes[i].nodeType==Node.COMMENT_NODE
&& where.childNodes[i].textContent.indexOf(content)>0)...
findacontrol() is designed to look for comments, then traverse them to find the specified controls. The idea behind this is that All SharePoint form fields have a comment like those below, regardless of input type. Thus this is a one size fits all solution. Again, this works as expected in...
I'm sure you're right that this is the fix. I just don't know how to implement it with the other js provided above. I tried replacing my findacontrol function with yours, like this:
function findacontrol(where)
{
var result=[]
for (var i=0,l=where.childNodes.length;i<l;i++) {
if...
This is for a SharePoint site. All SharePoint field controls have a <!-- comment --> tag, so I'm using this as a sort of universal identifier.
I'll try to incorporate your method and report back...
I have the following js that works correctly in IE, but not in firefox. It's just intended to hide a couple of form fields.
Using the Firefox error console, I see that the error generated is: "control is undefined" and it points to this line...
Tried that. I get no errors or obvious issues. It seems to me that it just stops after this line:
line = line.Replace("<img border='0' src=", "<img border='0' src=/Parts/");
...which is why I think I'm missing something. Once I've replaced that '<img...' tag, is there something else that...
Thanks for the quick responses. From what I gather, I can use a Regex or a Parser. Sounds like the Parser might be a better way to go. Either way, I don't really care. What I'm struggling with is how to implement it within my code.
I have tried adding a parser as follows, but it doesn't...
I have the following, which reads an html file from a different server, then displays it on the page in a label.
protected void Page_Load(object sender, EventArgs e)
{
string thePartNo;
thePartNo = Request.QueryString["part_no"];
txtURL.Text =...
Just looking for someone to confirm that what I have is correct or not.
I have an asp:label field for and expire date that should either display "Never" if the database field ([msDS-UserDontExpirePassword] this is a bit - true/false - field) is True, or otherwise display a date (pwdExpireDate)...
...as though the button were clicked. But not in Firefox, Opera or Safari.<script language="javascript" type="text/javascript"><![CDATA[<!--
/* Service-specific script goes here */
function func1()
{
document.getElementById('btnSave').click();
}
window.onload=func1;
//--> ]]></script>...
genadyv, thanks so much for your feedback. This looks like a great solution. If only I was permitted to do back end programming! Unfortunately my hands are tied on this project, but I'll pass this info on the the Admin team.
Have a sub-site in which users can create document libraries based off of a template doc library I provide to them. Essentially its just a structure of organized, empty folders. The users are project managers and each time they begin a new project they will create a new doc library for that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.