tag:blogger.com,1999:blog-6319948952957110606.post1072784862469815771..comments2023-01-06T02:19:51.615-08:00Comments on Sharepointalist: JavaScript in SharePoint 2007 / MOSS Data View XSLUnknownnoreply@blogger.comBlogger10125tag:blogger.com,1999:blog-6319948952957110606.post-41376580213749139892017-04-18T03:51:32.472-07:002017-04-18T03:51:32.472-07:00This is because all browsers have accepted all bro...This is because all browsers have accepted all browsers have accepted JavaScript as a scripting language for them and provides integrated support for it. All you need to do is to handle some of the tasks that are dependent on DOM of different browser properly.<br /><a href="http://thecoveragefactor.webnode.com/" rel="nofollow">best web design tutorials</a><br />Jack Sonhttps://www.blogger.com/profile/11169326970593595904noreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-80316259292934333072011-07-07T08:31:21.214-07:002011-07-07T08:31:21.214-07:00Hi
I have done the same as you said. It worked for...Hi<br />I have done the same as you said. It worked for few days. Suddenly it ia not showing any value in the newly created column. JS is not triggering. Does this not work when in the list view, there are more than certain number of list items?Kiran Kumar Reddynoreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-65221326436896057292011-05-25T12:47:57.351-07:002011-05-25T12:47:57.351-07:00Not sure if anyone is still watching this, but exe...Not sure if anyone is still watching this, but execution of the javascript happen on the server or on the client?Jasonhttps://www.blogger.com/profile/03371276149113629161noreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-76184597400862499392010-09-22T09:13:29.386-07:002010-09-22T09:13:29.386-07:00see here
http://java.pakcarid.com/default.aspx?sub...see here<br />http://java.pakcarid.com/default.aspx?sub=25&Sls=25Muhammad Azeemhttps://www.blogger.com/profile/12974854965953781617noreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-62931515028433288202010-01-29T14:39:01.046-08:002010-01-29T14:39:01.046-08:00Remember - first xsl is rendered, than javascript ...Remember - first xsl is rendered, than javascript starts working. Basically you can't use the results of Javascript procedure in XSLT as a parameter. Only as an output.Paul Shkurikhinhttps://www.blogger.com/profile/01476022517914178577noreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-52885545859241464552010-01-29T07:20:48.486-08:002010-01-29T07:20:48.486-08:00Hi Paul,
Thanks for an excellent post! I was abl...Hi Paul,<br /><br />Thanks for an excellent post! I was able to get your example going, but am wondering if there is some way to get the result returned to XSL?<br /><br />i.e.<br /><br />I'm trying to raise x to the y power...<br /><br />Placed below PlaceHolderMain in a custom DispForm:<br /><br />function x2yPowerLocal(x,y)<br /> {<br /> var Result = Math.pow(x,y);<br /> document.write(Result + " The Result from the function");<br /> return Result;<br /> }<br /><br />Later on in the body of the custom DispForm.aspx<br /><br /> <br />td class="ms-vb"><br /> <br /> script language="javascript"> <br /> x2yPowerLocal(2,2);<br /> document.write("Here 2x2");<br /> /script><br />/td><br />td class="ms-vb"><br /> <br /> <br /> script language="javascript"><br /> x2yPowerLocal(3,3);<br /> document.write("Here 3x3");<br /> /script><br /> <br /> <br />/td><br /><br />(Note, stripped some "<"'s to post the above...)<br /><br />Thanks again! <br /><br />SteveAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-75383120145594941892009-11-30T16:14:29.462-08:002009-11-30T16:14:29.462-08:00It looks fine at a first glance.
Try putting it t...It looks fine at a first glance.<br /><br />Try putting it to html page and testing it without SharePoint. If it works - add it to SharePoint page using Content Editor WebPartPaul Shkurikhinhttps://www.blogger.com/profile/01476022517914178577noreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-75403390697090800302009-11-30T12:53:47.153-08:002009-11-30T12:53:47.153-08:00Hello Paul,
I'm using IE to preview it. Here ...Hello Paul,<br /><br />I'm using IE to preview it. Here is a breakdown of the Javascript code I'm using to connect to the XML file. I have to change <> to [] to post the comment.<br /><br />----------------------------------------<br />[script type="text/javascript"]<br /> <br />//Loads the XML file<br />if (window.XMLHttpRequest)<br />{<br /> xhttp=new XMLHttpRequest();<br />}<br />else // for older IE 5/6<br />{<br /> xhttp=new ActiveXObject("Microsoft.XMLHTTP");<br />}<br />xhttp.open("GET","QuoteRotator.xml",false);<br />xhttp.send("");<br />xmlDoc=xhttp.responseXML;<br />--------------------------------------------<br /><br />After that I have tried the following code to produce an output:<br /><br />var x=xmlDoc.getElementsByTagName("Ad");<br />document.write(x[0].getElementsByTagName("ImageUrl")[0].childNodes[0].nodeValue);<br /><br />The XML file breaks down as follows:<br />[QuoteRotator]<br /> [Ad]<br /> [ImageUrl> XXXX [/ImageUrl]<br /> [/Ad]<br />[/QuoteRotator]<br /><br />Is there a problem with the actual JS code?<br /><br />Thanks again!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-19526756174149293692009-11-25T12:40:23.866-08:002009-11-25T12:40:23.866-08:00What are you using for the preview? it should run ...What are you using for the preview? it should run in IE, but will not run in SharePoint Designer, so you have to open it up in Iternet Explorer. If it is not working anyway, check the html source in IE and double check if you put everything right.Paul Shkurikhinhttps://www.blogger.com/profile/01476022517914178577noreply@blogger.comtag:blogger.com,1999:blog-6319948952957110606.post-71848729934995651132009-11-25T12:01:17.728-08:002009-11-25T12:01:17.728-08:00Hello,
I'm working on a project where I want ...Hello,<br /><br />I'm working on a project where I want to randomly select and display an image on a sharepoint site (I'm using SharePoint Designer 2007). I've created an XML document to hold all the addresses, and I wanted to use JavaScript to generate the random number and then pull an image url.<br /><br />When I preview the page, none of my JavaScript seems to be running. Is there any Form or control I need to add in the top of the .aspx file to get JS to run?<br /><br />Thanks so much!Anonymousnoreply@blogger.com