Hi,
I have the following setup:
var Dash = {
nextIndex: 0,
dashboards: <some value>,
display: function()
{
var dashboard = Dash.dashboards[Dash.nextIndex];
document.getElementById("iframe3").src = dashboard.url;
Dash.nextIndex = (Dash.nextIndex + 1) % Dash.dashboards.length;
setTimeout(D...
How to determine after which comma is the place of the number 13 in a string with commas(,) with JS?
For example:
string - testtest,teststestatestb,testj
The letter "s" is the 13-th letter and it's after the first comma.
...
Hi all:
i'm using windows media streaming to play a video file in my web application .
i've setup my server as windows media streaming server.
i refer to my video file as mms://[ip address]//Video folder /filename.asf.
when start playing the video file , the file can't be started at its first position but when seeking it , it is play...
I dynamically add an image on my page :
<div class="simple_overlay" id="overlay">
<img src="" />
</div>
<script type="text/javascript">
$(function() {
$("a[rel]").overlay({
var source = this.getTrigger().attr('href');
this.getOverlay().find("img").attr({'src': source});
});
});
</script>
Now, I need to get ...
Hello, I wonder if there is a way to synchronize objects/methods in JavaScript in a similar way that you do it in Java. I am developing an interface for the new WebSocket in html5 and need a way to match outgoing requests with incoming responses. Therefor I'm saving the requests (with an unique id) in an array on the client side and then...
I have validator classes in my application that display error messages in the ice:messages control but due to design issues I want to change the validation to only let the user insert the correct input. For Example if the user presses numbers in a text field that should take the name, it just won't let him type numbers.
How can I possib...
Hi all,
This must be something very simple for the JavaScript experts out there. In the following code, I am trying to open an iframe to the full height of browser window.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
Hi all :
i'm using a windows mediaplayer activex control in my web page to play video file.
i have a button to start playing the video file from certain position not from the beginning.
the current behavior is : the video file is starting buffering from the beginning then it seeks to the required position.
my target is : seeking to t...
I want to Set the Horizontal Scrollbar slider to the right without using css direction:"ltr" or dir="ltr" or an asp:Panel direction="rightToLeft"....
i just want to access the object that controls the Horizontal scrollbar slider to give it the position.
from aspx page or the aspx.cs.
aspx page :
<script type="text/javascript" src=".....
Hello,
I am wondering if it is possible to somehow get the value of a div and attach it to the form post on submit?
...
I have a typical javascript function with some parameters
my_function = function(content, options) { action }
if I call the function as such :
my_function (options)
the argument "options" is passed as "content"
how do i go around this so I can either have both arguments passed or just one ?
thank you
...
How can I know that a callback event has fired? I have to perform an activity after the callback event has fired, should I put the code inside the callback function or is there some other way to know when the callback has fired? Even if I put the code of the activity after the statement making the javascript request I cant be sure that t...
anyone here know how i can dynamically change the doctype with javascript?
i have tried with this function,
document.doctype('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'); ,
but it does not work.
...
I have two problems with image upload in FCKeditor.
I.
The folder for uploaded files is "user" and it situated in the root of the web-site.
There are two ways to upload image in FCKeditor:
1. Insert/Edit Image - Browse Server - Upload a new file in this folder - Upload. Image is uploaded to the folder "Image", which situated in the fold...
I need to design a page similar to this
http://www.brightech.co.il/page.png
where the text and image are dynamically inserted in the server side, and the only thing which remains constant is the white space below the left column. I need the text to continue naturally from the paragraph in the upper left column to the lower right one.
...
I have a web page and I am associating a note with the page storing it in my database, so that the whenever the next time the page is loaded that notice can been seen till it is deleted by some other user authorized to do the same. However, say I associate a note with the page after some content is loaded through AJAX. I want the note to...
I am building a site which uses jQUery validation plugin and want things validated before submitting the form. My code looks like follows
<form>
<input type="button" value="Submit the Form" onclick="validateAndSubmit()" />
</form>
<script language="javascript">
function validateAndSubmit(){
//do some validation and then submit ...
I have found a script that adds mouse trail on Opera's mouse gesture. Very nice done but with one problem. It detects when the mouse button is down and starts to draw a line BUT it doesn't detect when the mouse button is released. The trail is displayed for an amount of time (1 second). Can the script be updated so that the trail is pres...
I gotta problem with the new version of jstree
by using this part of code, at the first execution ,the data function returns the root node.the problem is that this code never executes again. so what ever happens, I just have the root node. dose any body know any solutions??
$('#tree').jstree(
json_data: {
ajax: {
...
I want a package of google map api development,who can help me?thanks~!
...