javascript

Accessing HTML 5 Video Progress Event with jQuery

Hello All, The below is for an HTML5 video player event. My partner and I have been stumped for a very large portion of the day on this issue and hope someone can lend some insight on the issue. We have been able to access the progress event with plain js as seen below but when trying to access this with jQuery we get undefined in con...

Execute JavaScript function on a dynamic element (AJAX).

Hello i have this following function: ... var model = $("#carModel"); .... model.change(validModel); function validModel(){ if(model.val() == 0){ model.addClass("errorJS"); return false; }else{ model.removeClass("errorJS"); return true; } } I am getti...

clicking anchor element within jquery tab loads new page *outside* tab

Hello, I would like to be able to click on an achor element from a page inside a jQuery tab and have that new page load directly inside the original tab. I used sample code from the jQuery tutorial page but to no avail! When I click on the anchor tag, I get redirected to www.google.com but lose my tabs. Does anyone know what I'm doing ...

how to show image popup

http://www.kampyle.com/software-feedback-analytics On this url clicking on image it's become popup ,clicking on popup image show the next one .how to do it?*when popup show feedbace image on right corner does not hide.*how to do it? *I also want to know this process name?* ...

Finding the textNode which the cursor is currently over

Let's say I have the following... <div id="text">Some text</div> When my mouse goes over Some, Some will be returned and the same with text. Is this possible without putting each node into it's own element? ...

How to search for special character in a string in javascript?

Hi: I have tp develop a javascript function with string parameter value which has to search the input parameter contains the following special character like (® ´ © ¿ ¡ ° À & ~ : ? ! # * ^ < > ´ | %). What is best way in javascript to do the above scenario?. Thanks in advance. ...

make extendable textbox

How to make extendable textbox using javascript ...

Javascript to remove trailing &nbsp;

I am getting a string which is nothing but innerHTML, and so it has instances of &nbsp;. I need to trim the string such that the trailing &nbsp; alone are removed. Tried this: var text; text = txtInnerHTML.replace(/(&nbsp;)*/g,""); This removes all instances of &nbsp; which is not desired.. Only the trailing &nbsp; instances may...

How to expand on mouse click

http://findaccountingsoftware.com/directory/gba-systems/fams-fixed-assets-management-system/ this site contain a tab container .On Applications tab clicking on + sign it goes to expand ,i want to know this process name.How to do it?.There is a strange thing occur clicking on + sign expand automatically scroll move and focus on text .wha...

How to Refresh / Reload a KML layer in OpenLayers. Dynamic KML Layer.

Here is an example on: How to Refresh / Reload a KML layer in OpenLayers. Dynamic KML Layer. See my answer below. TLDR See my answer below on how to refresh the layer. ...

Closing the iframe which was opened for "ajax uploading"

Hello people, http://www.atwebresults.com/php_ajax_image_upload/ I am using this script for so-called AJAX file upload but which is actually based on opening of iframe and then submitting form from it. What my problem is, I am using this script in a form which will have some other fields too. So after uploading the image, when I click...

If I do "jquery sortable" on a contenteditable item(s), I then can't focus mouse anywhere inside contenteditable text anymore.

Strangely this is broken only in Firefox and Opera (IE, Chrome and Safari works as it should). Any suggestions for a quick fix? <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js&quot; type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui....

Javascript Methodname is replaced with !==

Hey! On the server lies a html file with javascript code included. This javascript code includes a method called something like "CheckObject". This file works for all users, except one specific (but important). He gets a javascript error and in his browser sourcode appears something unbelievable: The methodname "CheckObject" is replace...

Question about JavaScript syntax

$(document).ready(function(){ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); var month = new array("January","February","March","April","May","June","July","August","September","October","November","December"); var mon; mon = month(m); var today = m+...

how to set style through javascript in IE immediately

Hi, recently I've encountered a problem with IE. I have a function function() { ShowProgress(); DoSomeWork(); HideProgress(); } where ShowProgress and HideProgress just manipulate the 'display' CSS style using jQuery's css() method. In FF everything is OK, and at the same time I change the display property to block, progr...

connection textfield and html table with database

dear all..i have a textfield <tr> <td> <td><input type="text" id="model_name"></td> </td> </tr> and a cell <tr> <td><div id="value">//i want data show here after fill textfield</div> </td> </tr> beside that, i've a table "settingdata" in database it consist of 2 field:itemdata and remark.. itemdata's value are "UD" and remark's val...

Animate rotating SVG element on webpage

So I have an SVG file created in Inkscape embedded in a webpage, and I'd like it to rotate slowly. I've tried using Javascript and inserting animation commands directly into the SVG, but nothing works. I don't want to load in an entire JS library for this one task. This is what I have so far: <html> <body bgcolor="#333333"> ...

Is it possible to implement the effect of overflow:ellipsis with javascript or css?

I want to show ... when overflow happens, but sadly in css there is only overflow:hidden which is near but not exact what I want. Is it possible to implement it ? ...

Where is the action listener registered?

Hi there: I come across this problem when referring a piece of javascript code: <a href="javascript:void(0);"><!-- other html elements --></a> It wants to register a mouse click event listener on this anchor, but I cannot find which function is registered. What's more, what does the code href="javascript:void(0);" mean? Thanks in ad...

observing multiple select menus with prototype

Hi, I want to observe multiple select menus and respond to their changes using prototype but only the first menu seems to be observed. This is my code: $('product_options').select('select').invoke("observe","change",optchange); If there are - for example - 3 selects within product_options then it only observes the first, i thought it...