Can i use javascript to check whether the video is running or stopped? I have to loop the video but putting loop='true' in the embed doesnt work out well. Is there a javascript method to check if the video is running or stopped?
...
Hi all,
i m new to ajax so need help ...
I m trying to using ajax to put all javascript flash images in queue and sending to server to get back response in order where my website loads faster than before.
problem is all the flash are hitting server at a time causing slowing down of loading time
so need to pass in queue how can i do ...
I have made an Ajax request to a PHP script and that PHP script returned this JSON object and when i tested with link text it says it's valid
[
{
"id_annotation": "1",
"annot_doc_id": "page_de_test.html",
"annot_id_auteur": "2",
"anno_startOffset": "47",
"annot_startContainer": "id-aaa",
"annot_endOffset": "88",...
I am running Asp.Net MVC 2.0, and I am running into a problem with my JS calls.
this is what I have in my :
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../Scripts/jquery.js"></script>
Which all works fine if I am on the root level. But if I jump up to something like:...
hello , i have a website www.bacauacum.ro , i would wish to to have the sidebar (div rightcol ) like on rocketheme main site http://www.rockettheme.com/ , i know that it changes the css style **<div id="sidebar" **class="top" style="margin-top: 0px;** ">** as you scroll down the page it changes into <div id="sidebar" class="float" style...
I am looking for code/plug-in/whatever that will make a textbox behave similar to what happens when you press the Insert button in a text editor and anything you type is typed over existing text. I am new to web dev, please be little specific. Thanks.
...
Sitepoint reference says
Internet Explorer for Windows versions
5.5 and above support the non-standard property zoom, which sets the
magnification scale of an element.
There’s no CSS3 equivalent to this
property (as yet).
How can I achieve this zoom effect in standard browsers? Any jQury plugins available?
...
Hello everyone, i have the following code, which works perfectly in chrome/ff:
chkbx_send_demo.onchange = function(){
if(sel_template.selectedIndex <= 0 && chkbx_send_demo.checked == true){
alert("Choose a Template");
sel_template.selectedIndex = 1;
}
...
We have discussion with our team about next:
What correct name should have variable which will be alias for "this" in anonymous function. Simple example:
var SomeConstructor = function() {
this.someProperty = 'bingo';
this.someMethod = function() {
var myObjectAlias = this;
$('a').click(function() {
...
I have the following HTML code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IT-Services Umfrage - Fragen</title>
<link rel="stylesheet" type...
I've got these functions to create elements and change their attributes. Could you give me an advice on how to modify them?
function create(elem) {
return document.createElementNS ? document.createElementNS("http://www.w3.org/1999/ xhtml", elem) : document.createElement(elem);
}
function attr(elem, name, value) {
if (!name || name....
how the set the text area always scroll down . its default the scroll bar is up .
I am trying to ever 2 min i am reloading the text area evert 2 mins .
the scroll bar is not showing in down .
I want to show scroll bar in down ?
How to achieve in simple way , rather using some other horrible technique ?
...
I have 2 divs in fixed positions on my page, the idea being that their content scrolls when the page scrolls. However, when using Firefox, when there are lots of other DOM objects on the page, movement (especially vertical) is very jerky. Performance is fine in chrome and IE7/8. Code is shown below -
If anyone can point out ways this c...
Let's say i have this code
<p id="test">
some content
<p>
<a href="#" id="test-link">Open</a>
Now i want -using javascript/jquery- to create a popup window, the window content is the content of test paragraph, when test-link is clicked.
How could this be done?
...
I want to make a little gallery and add next/previous buttons. I managed to trim down the urls of the pictures to something like this : 30052010/30052010001 . So the picture is 30052010001.jpg and the next one is 30052010002.jpg .However how can i remove the first part of the string(the folder name) and the last digits from the end of th...
Since I'm more versed in php thank in js I'll try to explain what I need from a php perspective. I need to pass to a javascript function an array:
array('fieldname' => 'value', 'fieldname2' => 'value2' ...);
Thne the function would do this
foreach(array as k => v) {
<input name='fieldname' value='value'/>
<input name='fieldname2'...
I have multiple forms on a page and i'm trying to use jQuery form.js to save each comment that is posted and then append the comment to the UL afterwards. The save part of it is working fine. However, I am having trouble getting the comment to update the UL correctly. See code below:
//My Form
<form method="post" action="includes/an...
Hello !
I don't 'speak' english well, pls forgive it to me.
I've a serious problem, soon I'm going to crazy... :-)
I got a job : There is a website, that is contains some ExtJ functions. I have to change these to JQuery functions.
I'm started to change dialogs. Under IE8 / IE7 it works fine, but under FF 3.5.10 it's not perfect.
The...
I have a custom google map. It seems very simple.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<!--google ma...
Hi,
I'm searching a possibility to get an array of elements in E4X for an unknown tagname (like the DOMs getElementsByTagName) inside of a function.
My first thought was something like:
(function (doc, tag) {
return doc..[tag];
})
Is there any chance to do this?
...