{"id":6714,"date":"2014-04-22T04:38:32","date_gmt":"2014-04-22T04:38:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/eventsclickjwplayerrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-04-22T04:38:32","modified_gmt":"2014-04-22T04:38:32","slug":"eventsclickjwplayerrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/eventsclickjwplayerrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"events,click,jwplayerRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/429aa23a05c8601d45816e6a613ec574?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSebastian<br \/>\ndelphi events web-browser iwebbrowser2<br \/>\nI am using this code trydocument := (pDisp as IWebbrowser2).Document AS IHTMLDocument2;Body := Document.body;Links := Document.links;for i := 0 to (Links.length-1) dobegintmp := (Links.item(i, 0) as IHTMLElement);tmp.onclick := TEventObject.Create(MyProcedure) as IDispatch; \/\/ THIS LINEend;excepton E : Exception doShowMessage(E.ClassName+&#8217; error raised, with message : &#8216;+E.Message);end;In the DocumentComplete event of an IE web browser, it works fine but when I open a new tab I get a Microsoft I<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/43e2b58ade7ee7a03a84b4b583dedd11?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmeler<br \/>\nevents visual-c++ com atl com-server<br \/>\nI&#8217;m totally new in COM programming.I have big problem. I&#8217;m trying to handle events from CANoe application via COM Server. Firstly I tried do it in native C++ but without results. Now I&#8217;m trying it by using ATL. I&#8217;m doing something wrong but I don&#8217;t have any idea what. When the event occurs, my client application suspends itself and CANoe. After closing client application CANoe works fine. So I know that my client application handles Events from CANoe but it can&#8217;t serve it. The commented parts of<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b7cec092bf7799448e5f71c2b1b8e98a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKendall Hopkins<br \/>\nphp events asynchronous daemon<br \/>\nI&#8217;m working on an online PHP application that has a need for delayed PHP event. Basically I need to be able to execute arbitrary PHP code x many seconds (but it could be days) after the initial hit to a URL. I need fairly precise execution of these PHP event, also I want it to be fairly scalable. I&#8217;m trying to avoid the need to schedule a cron job to run every second. I was looking into Gearman, but it doesn&#8217;t seem to provide any ability to schedule events and as I understand, PHP isn&#8217;t really m<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/21441828dc61d0d422e04248340043fb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAdam Paynter<br \/>\njava com outlook events jacob<br \/>\nI am writing a Java program that interacts with Microsoft Outlook using the Jacob library (bridges COM and Java). This program creates a new MailItem, displaying its Inspector window to the user. I wish to subscribe to the inspector&#8217;s Close event to know when the user is finished editing their mail item.To subscribe to the event, I followed the instructions in Jacob&#8217;s documentation (about 2\u20443 down the page):The current [event] model is conceptuallysimilar to the Visual Basic WithEventscons<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6c6e1b7e2ad6b50054d9ddc3b6deb360?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlaska Zach<br \/>\njavascript function events<br \/>\nI&#8217;m trying to make it so I don&#8217;t have a write a function for every input field I want to use this on. Rather sending the element id to the function and only having one function that I can recycle.Works like this&lt;input name=&#8221;field&#8221; id=&#8221;field&#8221; type=&#8221;text&#8221; onKeyPress=&#8221;onlyNum()&#8221; \/&gt;&lt;script type=&#8221;text\/javascript&#8221;&gt; function onlyNum() {var name = $(&#8220;#field&#8221;);name.keypress(function (e) {if (e.which &gt; 0 &amp;&amp; \/\/ check that key code existse.which != 8 &amp;&amp; \/\/ allow backspace!(e.w<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/fe7effafc0c9f5f38c58b384d225d32a?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGzork<br \/>\nc# events visual-c++ c#-2.0 com-interop<br \/>\nI have a TcpSocketServer written in C# and I want to use it in native C++ without CLI. The class rises events on client connection\/disconnection and when data is received. Untill now I got the server working and accepting connection, however I still can&#8217;t send\/receive data.Notice that this is one of several classes I need to work with, so please do not suggest me to use native C++ sockets.The (relevant) C# code is bellow:[ComVisible(true)] public delegate void TcpClientConnectedEventHandler(Sock<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e5570d7ad52dc6648c200e7e44408356?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOndra \u017di\u017eka<br \/>\nevents jboss observer-pattern jboss7.x<br \/>\nIn order to use events only listened if a transaction succeeds or fails, I&#8217;m following the given doc about transactional observers : http:\/\/docs.jboss.org\/weld\/reference\/1.1.0.Final\/en-US\/html_single\/#d0e4075&#8230; but cannot manage to make my code work on JBoss AS7.Here&#8217;s my EJB:@LocalBean @Stateful @TransactionAttribute(TransactionAttributeType.NEVER) public class MyController {@Injectprivate transient Event&lt;MyEvent&gt; myEventLauncher;@TransactionAttribute(TransactionAttributeType.REQUIRES_NE<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a9840656ceee0faa528806c4c04a9399?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKev<br \/>\nwindows events windows-server-2003 file-management<br \/>\nColleagues, I have need to run a script\/program on certain basic OS level events. In particular when a file in Windows is opened. The open may be read-only or to edit, and may be initiated by a number of means, either from windows explorer (open or ), be selected from a viewing or editing application from the native file chooser, or drag-n-drop into an editing or viewing application.Further, i need the trigger to &#8220;hold&#8221; the event from completing the action until the runtime on the program has co<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a569660cc745cf356a5de80c77c32eca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndrzhb<br \/>\njquery events knockout.js mouseover<br \/>\nCould someone explain this piece of code https:\/\/github.com\/jquery\/jquery\/blob\/master\/src\/event.js#L646-L670?I use knockout and I have an issue in Opera. I tried to reproduce, but it works fine, so I&#8217;m not sure that I have the right case.&lt;div class=&#8221;wrapper&#8221; data-bind=&#8221;event: { mouseover: function() {}, mouseout: function() {} }&#8221;&gt;wrapper&lt;div class=&#8221;nested&#8221; title=&#8221;nested&#8221;&gt;nested&lt;\/div&gt; &lt;\/div&gt;http:\/\/jsfiddle.net\/uzbCB\/I thought that problem is: when we bind event to wrapper,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7fbad0ab1078bf58e92e151dd8d6fdb4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nchustar<br \/>\nc# xaml events windows-phone-8<br \/>\nIn my application, I have an event handler that listens for an event that tells it to update some UI. This event is fired every time one an item is downloaded from a web service. Is it possible to have the event handler delay processing these events until they stop firing (e.g. only update the UI three seconds after the last event was fired?)My current plan is to record the time since last updating the UI from the event handler, and when it gets beyond a certain threshold, update it again, but<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0a1de20423661cbf5d01de1f7c303c4f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nllasarov<br \/>\njquery table click row jquery-events<br \/>\nIn my project I updated the used jQuery version from 1.4.2 to 1.7.2. Now I observe some unexpected behaviour when handling the click event handler of elements.Multiple sites contain tables with a radio button in the first columt. So the HTML looks like this&lt;table&gt;&lt;tbody&gt;&lt;tr onclick=&#8221;selectOnClick(this)&#8221;&gt;&lt;td&gt;&lt;input type=&#8221;radio&#8221; &#8230;. \/&gt;&lt;\/td&gt;&#8230;&#8230;&lt;\/tr&gt; &#8230;In a separate js file there&#8217;s the definition of the JS functionfunction selectOnClick(row) {$(row).ch<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d58b463746a398385fdae4df3a010996?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1824806<br \/>\njquery function tags click href<br \/>\nHi everytime i try to add the below code to my site, every link on the page opens. How do I get this code to work without it opening every link, and instead of using for the click funtion could i use a button and its id instead?&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;style&gt;p.one { position:relative; width:400px; height:90px; }div.two { position:absolute; width:400px; height:65px; font-size:36px; text-align:center; color:yellow; background:red;padding-top:25px; top:0; left:0; di<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b8aa117b41fd9c600207081b61e0b419?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2423264<br \/>\nhtml css animation hyperlink click<br \/>\nFiddle: http:\/\/jsfiddle.net\/FtQ4d\/1\/I&#8217;m doing a project for class, and I&#8217;ve made a webpage where there is a title in the center and two images of a left and right hand underneath. Upon hovering over one of the hands, it will move off of the screen revealing a link underneath. I&#8217;ve got the link hidden under the hands, but when the hand moves, the link is not clickable. How can I make it so?Here are the relevant parts of the html and css:&lt;body&gt;&lt;a href=&#8221;https:\/\/www.google.com&#8221;&gt;&lt;p id=<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b6f3159af5195eddff62a2dd4f9ad969?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMichael Durrant<br \/>\njavascript selenium hyperlink click<br \/>\nIn my app, in the [firefox] browser javascript console I can do this:elems=document.getElementsByTagName(&#8220;a&#8221;)[3]; elems.click();and the 3rd anchor is clickedHow can I do that using the SeleniumIDE ?I have a Test Case which does:store javascript{elems=document.getElementsByTagName(&#8220;a&#8221;)[3]; elems.click();} dummybut I just get the somewhat standard invalid javascript error of [error] Unexpected Exception: fileName -&gt; chrome:\/\/selenium-ide\/content\/selenium-core\/scripts\/selenium-api.js, lineNumber<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f559d87526e0be57f66454564c4a59e3?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser968834<br \/>\njquery ios events web-applications click<br \/>\nBuilding a web application and having trouble getting a click event to fire. It works perfectly when running from a normal instance of Safari, but when running from the home screen, it fails.$(&#8220;a.applink&#8221;).live(&#8216;click&#8217;, clickHandler); var clickHandler = function(e) {console.log(e);e.preventDefault(); }When running from the home screen, &#8216;e&#8217; is empty. If I replace &#8216;click&#8217; for &#8216;touchend&#8217;, it does work, but touchend doesn&#8217;t give the correct behaviour (i.e. if you happen to touch a link to start a sc<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2eb6a7096c6cd74c235548f3c1f33dcc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nEmil<br \/>\njquery variables for-loop click counter<br \/>\nI have something like a beginner problem, because javascript uses the variable &#8216;i&#8217; in an unexpected way:for(var i=0; i&lt;3;i++){$(&#8220;a[href=#markers&#8221;+i+&#8221;]&#8221;).click(function() {console.info(this);console.info(&#8220;click: &#8220;+i);}); }Here is my console:&lt;a href=&#8221;#markers0&#8243;&gt; click: 3 &lt;a href=&#8221;#markers1&#8243;&gt; click: 3 &lt;a href=&#8221;#markers1&#8243;&gt; click: 3But I want this:&lt;a href=&#8221;#markers0&#8243;&gt; click: 0 &lt;a href=&#8221;#markers1&#8243;&gt; click: 1 &lt;a href=&#8221;#markers1&#8221;&gt; click: 2Can someone help and resolv<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cc21bd143a63dbea51c2caa5f1e8599b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBenjamin<br \/>\njavascript jquery click<br \/>\nI have a floating div that gets displayed, and I want it to be hidden when the user clicks off the div. This would be similar to the .hover() function callback when hovering off an element. Only I want to do this for click.I tried just setting a click event for the body, which would hide the div, but that gave unexpected results.Anyone have ideas on how I could easily do this?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/95f4bb8fecf8ccce66b99c9a28372e31?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsamyb8<br \/>\njquery css button click submit<br \/>\nAfter customizing a button with CSS the decoration is applied properly but the button becomes inactive, I cannot click on it and it won&#8217;t submit.Here is the code:.addToCart { width: 100px; border-radius: 4px\/4px; border: 2px #E8CD00; height:20px; text-align: center; vertical-align: center; font-family: &#8220;Trebuchet MS&#8221;, sans-serif; font-size: 13px; font-weight: bold; padding: 1px; background-color: #E8CD00; color: black; }&lt;form name=&#8221;cartAdding&#8221;&gt; &lt;input type=&#8221;hidden&#8221; name=&#8221;productid&#8221; \/&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a74238c6c191df0913ba247d61940437?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nlabrassbandito<br \/>\njavascript jquery function click<br \/>\nI would like to use the click() function of jQuery within a for loop in order to make three HTML elements clickable. I created a simple test case:&lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd&#8221;&gt; &lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221; xml:lang=&#8221;en&#8221;&gt; &lt;head&gt;&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=utf-8&#8243; \/&gt;&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;http:\/\/code.jquery.com\/jquery-1.4.3.min.js&#8221; \/&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e5e5fc3c5ec9a7a8a268815df6889712?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nelbatron<br \/>\nsyntax checkbox click token<br \/>\nI browsed though many &#8220;unexpected token&#8221;, &#8220;illegal&#8221; etc. topics, one helped me by checking for invisible characters and copying the script to jslint throwed me some missed brackets error, but there are still one problem with this line:JS:document.getElementById(&#8216;pois&#8217;).innerHTML =(&#8216;&lt;p&gt;&lt;label&gt;&lt;input type=&#8221;checkbox&#8221; id=&#8221;01&#8243; onclick=&#8221;toggleGroup(&#8220;01&#8243;)&#8221; CHECKED\/&gt;&lt;\/label&gt;01&lt;\/p&gt;&#8217;);The pois div is located in the html file.Alternatively, how would I write the above line wit<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d2e4852dbd977d1b1f702d3ba2dbc0cb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nGabi Purcaru<br \/>\njavascript html5-video jwplayer<br \/>\nI&#8217;m trying to make jwplayer show the native iPhone play button (see below) on iPhone, and a custom skin elsewhere. I&#8217;ve tried to use chromeless: true, but it didn&#8217;t help (I still get the skinned play button). Now I&#8217;m stuck in jwplayer code and can&#8217;t find my way through. Can you help me out?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8799574206ca836370068aeaa954b386?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKriem<br \/>\nphp javascript jquery jwplayer<br \/>\nI sometimes get this error in my jwplayer: TypeError: non-native scope objectThis means that one video out of multiple videos I have has failed to load. This makes it unreliable. My question is that is there a way to make it more reliable and permanently fix this error?Below is code:&lt;?php$key = $_GET[&#8216;key&#8217;]; $i = $_GET[&#8216;i&#8217;]; $v = $_GET[&#8216;v&#8217;];?&gt; &lt;div id=&#8221;myElement-&lt;?php echo $key.&#8217;-&#8216;.$i; ?&gt;&#8221;&gt;Loading the player&#8230;&lt;script type=&#8221;text\/javascript&#8221;&gt; jwplayer(&#8220;myElement-&lt;?php e<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/10e1e119c8b1b358e25d1c4888116412?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nExitos<br \/>\njavascript jwplayer<br \/>\nI have an object being passed to a method from a flash object. I would like to be able to view all of the properties in this object a bit like you can do in c# with the &#8216;add watch&#8217; feature in visual studio.Is this possible with javascript and firefox\/firebug?I was thinking of doing a for loop and console.logging the results but what is the best way to iterate the object would I treat it as an array etc?Any advice much appreciated. Pete<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/graph.facebook.com\/730088528\/picture?type=large\" \/><br \/>\nShawn Patoka<br \/>\nstream video-streaming embed jwplayer flowplayer<br \/>\ni have this stream:http:\/\/stream1.seenstream.com:1935\/live\/SpkEsy-AppWI.stream\/playlist.m3u8I have JW Player 6 premium but it just flash crashes upon trying to load.We can get the stream to load on PCs embedding it with VLC. Also, on a Mac in Safari only, iOS, and some androids, embedding it with HTML5. But i was hoping for kind of a cross-platform solution.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7fa497840ac14dacd8f6ee5faf43b586?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2676098<br \/>\nstreaming video-streaming jwplayer cloudfiles<br \/>\nhttp:\/\/embed.asset.tv\/hls\/index.1.htmlI&#8217;ve been trying to get HLS streaming on JWplayer working for quite a while now. I know JWPlayer supports it. (We have a premium account)We&#8217;ve used the wizard builder and the embed code we use works with their example video file. However when we create our own m3u8 version of our videos, they wont play back. We use Zencoder and their recommended method of m3u8 creation. https:\/\/app.zencoder.com\/docs\/guides\/encoding-settings\/http-live-streamingWe use rackspa<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/1c83d772b1c065603c7f20975d8d3552?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMr Lister<br \/>\ncss twitter-bootstrap twitter-bootstrap-3 jwplayer<br \/>\nThe following page was constantly crashing for me in IE9 on Windows 7:http:\/\/www.studyzone.tv\/test1.htmlAfter much testing around, it turns out the line-height line in the Bootstrap 3 CSS File was causing the crash&#8230;or at least conflicting with JWPlayer somehow, and between them, causing the crash!body {font-family: &#8220;Helvetica Neue&#8221;, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 1.428571429; \/* THIS IS THE LINE THAT CUASES THE ERROR*\/color: #333333;background-color: #ffffff; }I hav<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5b5c1c8d2cd9e9b370e30c5a1d09fbce?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPeter<br \/>\njavascript jquery jwplayer<br \/>\nSo following JW Player&#8217;s I can get a video to load (obviously) it looks like this:&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;\/scripts\/jwplayer.js&#8221;&gt;&lt;\/script&gt; &lt;div id=&#8221;myElement&#8221;&gt;Loading the player &#8230;&lt;\/div&gt; &lt;script type=&#8221;text\/javascript&#8221;&gt;jwplayer(&#8220;myElement&#8221;).setup({file: &#8220;\/uploads\/example.mp4&#8221;,height: 360,image: &#8220;\/uploads\/example.jpg&#8221;,width: 640}); &lt;\/script&gt;I&#8217;m trying to accomplish something to this effect to load a video inside of a modal once that modal is triggere<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2728b401463ecf1a82cf7610995e86c6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\narisetyo<br \/>\nrequirejs jwplayer durandal<br \/>\nI want to use jwplayer on a Single Page App built using Durandal framework. The idea is to create a persistent audio player, unaffected by the application&#8217;s navigation. But I haven&#8217;t been able to load jwplayer in Durandal.I&#8217;ve successfully loaded jwplayer on a simple html file using Require.js. But this method doesn&#8217;t seem to work on Durandal (which also uses Require.js).This is my code on shell.js:define([&#8216;jwplayer\/jwplayer&#8217;,&#8217;durandal\/plugins\/router&#8217;,&#8217;durandal\/app&#8217;], function (jwplayer,router,a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d56821c584a0b14dc65556faa02ab39f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nNimbuz<br \/>\njavascript jquery jwplayer<br \/>\njwplayer(&#8220;myElement_0&#8221;).onPlay(function(){ pausePlayers(1); alert(&#8216;0 has started&#8217;); }); jwplayer(&#8220;myElement_1&#8221;).onPlay(function(){ pausePlayers(2); alert(&#8216;1 has started&#8217;); }); jwplayer(&#8220;myElement_2&#8221;).onPlay(function(){ pausePlayers(3); alert(&#8216;2 has started&#8217;); }); jwplayer(&#8220;myElement_3&#8221;).onPlay(function(){ pausePlayers(4); alert(&#8216;3 has started&#8217;); }); function pausePlayers(playing) { for (var i=0; i&lt;4; i++) {if(i != playing) { jwplayer(&#8220;myElement_&#8221;+i).pause(true); }} };I have this script to pau<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cf3e5ec05e99a124b769eff0fa90257c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCurtis<br \/>\njavascript asp.net jwplayer<br \/>\nThe jwplayer website suggests that you embed jwplayer inside javascript this way:jwplayer(&#8220;videoDIV&#8221;).setup({file: &#8220;vid.flv&#8221;,height: 300,width: 400,\/\/Etc&#8230;However, when I try that in ASP.NET I getUncaught TypeError: Cannot call method &#8216;setup&#8217; of nullI should just be able to call jwplayer like a variable, and it should be accessible as long as I have the &lt;script src&#8230; stuff, right?The error appears on the jwplayer(&#8220;videoDIV&#8221;).setup({ line<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sebastian delphi events web-browser iwebbrowser2 I am using this code trydocument := (pDisp as IWebbrowser2).Document AS IHTMLDocument2;Body := Document.body;Links := Document.links;for i := 0 to (Links.length-1) dobegintmp := (Links.item(i, 0) as IHTMLElement);tmp.onclick := TEventObject.Create(MyProcedure) as IDispatch; \/\/ THIS LINEend;excepton E : Exception doShowMessage(E.ClassName+&#8217; error raised, with message : &#8216;+E.Message);end;In the DocumentComplete event of an IE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6714","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6714"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6714\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}