How to change video (and start playing immediately) in Flowplayer via Javascript?
It should change the video and start playing regardless of whether or not a video is currently loaded and playing. Thanks. ...
It should change the video and start playing regardless of whether or not a video is currently loaded and playing. Thanks. ...
I've created a script that I run as a post-build step that runs jslint and minifys my javascript and css files. I've formatted the output so it shows up in the "Error List" in visual studio, complete with the File, Line and Column fields populated correctly. The problem is, if I double-click on an error, it takes me only to the correct...
One aspect of javascript that it's hard to find information on is casing practices. By casing practices, I mean what casing style (ie. camel-case, pascal-case, etc) should be used for what elements (Constructors, private functions, public functions). The only rule I've heard was from a Douglas Crockford lecture on YUI theater, stating ...
I'm getting the following error in IE 6: Line: 454 Char: 13 Error: Invalid Argument Code: 0 URL: xxxxx/Iframe1.aspx and I can't for the life of me find what's causing this. This only happens in a situation where I have a main page that has several IFrames, and it only happens when I have one particular IFrame (the one pointed...
With $.post, you can send information to the server, but what when you need to receive information from the server? How does information change from being of a way that can be held by a php variable to being of a way that can be held by a javascript variable and vice-versa? ...
Hi there I have a page with a few links and a div, on the same page that I will load other content into. Some of that content is google visualizations charts. Just as a test, I popped in the google line chart code. The page loads well on its own, but when I try to load it into div (using jQuery), it doesnt work. Firefox says transferin...
I have this array.prototype on my page and it seems to be sucking up a lot of processing time: Array.prototype.findInArray = function(searchStr) { var returnArray = false; for (i=0; i<this.length; i++) { if (typeof(searchStr) == 'function') { if (searchStr.test(this[i])) { if (!returnArray) { r...
I want to respond to the user hitting the enter key, which I can do, however I dont want to respond to the event when the user hits the enter key and the focus is on the address bar. I can not figure out how to prevent my key event handler from executing when the focus is in the address bar. Note: The page refreshes, but my handler is c...
Hello Friends I am looking to find a way to just simply know the selected node in TreeView using javascript. suppose there are n number of nodes in the Parent Child Relationship, then what i want to get value of the selected node in javascript so that i can manipulate and work on the values selected in javascript rather than do a full p...
I'm trying to create a javascript error logging infrastructure. I'm trying to set window.onerror to be my error handler. It works in IE 6, but when I run it in Firefox, it runs into some conflicting onerror method. var debug = true; MySite.Namespace.ErrorLogger.prototype = { //My error handling function. //If it's not in de...
I am needing to detect when a user is inactive (not clicking or typing) on the current page for more than 30 minutes. I thinking it might be best to use event blubbling attached to the body tag and then just keep resetting a timer for 30 minutes, but I'm not exactly sure how to create this. I have jQuery available, although I'm not sur...
Wonder if anyone can help me, the map displays fine but the marker does. <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAIoLIQYVphLGoM1pKOrQx0RSlCk5zF9psbOtT7Cn7bdX8qwZsZBTDgtPCGxlAzv6RxAThsHj0CmmZVg"></script> <script type="text/javascript"> ...
Hi, I am trying very hard to pass three parameters to a javascript function from within a itemtemplate of a gridview: For one parameter, it works fine: <asp:HyperLink ID="hypComment" runat="server" Font-Bold="True" NavigateUrl='<%# Eval("CCN", "javascript:ShowCommentPopUp({0});") %>'>Add </asp:HyperLink> where CCN is my column in gr...
When an html page is loaded, different input elements can be initialed as they are declared in the HTML. If the user changes some of the input values and then executes a reset() on the form, then the form is reset to it's initial loaded state. My question is, can I determine that "initial element state was" using javascript (ideally i...
I am writing a DOM inspector, something like what firebug is doing but sure very simpler "just inspect elements". What i want to do is when the user click on an element it will make some functions i wrote, and in same time i don't want this element to do any other pre attached events. Means: If the user inspected anchor element, and t...
Does anyone have a working dynamic javascript input filter that limits text inputs across multiple browsers? I've seen multiple examples online, but most of them seem to have flaws or lack multibrowser support. My current attempt is posted below, but it's failing for shifted numbers under firefox, and I haven't tried other browsers...
I have the following string: This *is* a *test*! I want to bold the words surrounded by the * characters (so "is" and "test" in the example). I have the following JavaScript code: var data = "This *is* a *test*!"; return data.replace(/\*(.*)\*/g, <b>$1</b>); When the string is returned, I get the following: This <b>is* a *test</b...
I'm attempting to capture mouse events on an element with another absolutely-positioned element on top of it. Right now, events on the absolutely-positioned element hit it and bubble up to its parent, but I want it to be "transparent" to these mouse events and forward them on to whatever is behind it. How should I implement this? Click ...
Possible Duplicates: How to determine which html page element has focus? How do I find out which Javascript element has focus? Is there a way to determine which element within the document currently has focus? Ideally without having to walk through ever element. ...
I'm looking to create a form where pressing the enter key causes focus to go to the "next" form element on the page. The solution I keep finding on the web is... <body onkeydown="if(event.keyCode==13){event.keyCode=9; return event.keyCode}"> Unfortunately, that only seems to work in IE. So the real meat of this question is if anybody...