Hi,
I have 10 different urls that I want to feed into an iframe src attribute that I would also like to rotate say every 5 seconds between all the 10 urls within the iframe.
Unsure how to do this using javascript/best approach?
Sorry, should've mentioned that I am using IE6.
Thanks.
...
Any idea how Gmail implement their simple WYSIWYG editor, visible when composing email messages?
Thanks.
...
So I'm working on a bookmarklet where it would be ideal for me to grab the content selected by the user using the "loop". Both window.getSelection and document.getSelection are functions that I can call, however, they always return an empty string.
I believe the problem is that when you tap on the bookmark icon in Mobile Safari, the sel...
Hi, I was confused on how to use the click event in order to call another function within the class.
$.fn.imageareaselect(image)
{
this.click(function(){
$.fn.pinpointImage.add(image);
});
}
The selector that is passed into this function is an image. I wan't to make it so when you click the image it calls that function.
...
I have the following code in my aspx page in which Javascript is disbaled will appear only if javascript is disabled from browser
<div id="jsDiv" runat="server">
<noscript>
Javascript is disbaled
</noscript>
</div>
in C# code if i get the innerText or innerHtml of jsDiv at any time it will get the same result of div co...
Using the repo found here:
http://github.com/nkallen/screw-unit
and this commit:
cc41f3cf373d804b11519704faf1971370f43760
I get this screen when viewing the package's "EXAMPLE.html" file:
Basically all of the text showing how many tests were run and the describe/it clauses, and the test results are missing.
The same revision work...
In this example, alert is blank;
I want to read the location of iFrame, I am using object.src for this but it work only if I set its src attribute. But I set iFrame's location using window.open method and in this case it is not working. What I do ?
<body>
<iframe id="location" name="address" style="width:700px; height:700px;">
</i...
for a hotel web site there are a featured for online advanced room booking using credit or debit card. but i am unable to write that specific code. please answered if possible.
...
Hii,
I m using a simple HTML Text editor by providig 'contentEditable' property of a div to true. All the formatting operations are working fine. The problem is when i copy and paste some html contents from somewhere else and try to post to DB the entire content may not post in to db because of the size limitation of the column. Is ther...
<style>
.address_bar
{
width:1100px;
color:#333333;
font-family:Verdana, Geneva, sans-serif;
}
\#browser
{
width:90%;
}
</style>
<script language="javascript" type="text/javascript">
function go_to_page()
{
var url = document.getElementById("address").value;
//window.open(url,"browser");
do...
Hi. Internet Explorer has support for xml response parsing and lets you do
element.xml.attributes.getNamedItem('myAttr')
How can I do the same for an xml element in standards based browsers?
The type of element is [object Element]
...
In jQuery, what happens when you have two .children() functions?
var area = image.canvas.children('.image-pinpoint-edit').children('.image-pinpoint-edit-area');
Is it redundant? cant you just do image.canvas.children('image-pinpoint-edit-area') to get the inner children?
...
Basically, once a user leaves a webpage in my application, I need to call a PHP script with AJAX, which will insert a time spent on the webpage to the database and then leave the page.
It is important to wait for the AJAX request to finish because webpages in my application are not accessible to users unless they have spent a certain ti...
So, I was thinking I could just loop through localStorage like a normal object as it has a length. How can I loop through this?
localStorage.setItem(1,'Lorem');
localStorage.setItem(2,'Ipsum');
localStorage.setItem(3,'Dolor');
If I do a localStorage.length it returns 3 which is correct. So I'd assume a for...in loop would work.
I was...
Hi,
I'm creating a touch application in the "Itunes LP" format which uses html, css and javascript within Itunes to create a "digital LP". The application will have several LP's to explore through a touchscreen.
In fullscreen mode (within Itunes and the LP) you can press the "esc key" to exit the LP and enter "coverflow view" where yo...
Hi all experts!
Im trying out the new graph api for facebook. I'm trying to fetch some data using jquery ajax.
This is a sample of my javascript code, very basic...
var mUrl = 'https://graph.facebook.com/19292868552';
$.ajax({
url: mUrl,
dataType: 'json',
success: function(data, status) {
$('#test'...
Hi,
The code provided below doesn't show all the content of that page.
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document</...
I want send a message encoded as application/x-www-form-urlencoded, and the message is validated by a XML schema, so i find a way to generate a html form from a XML Schema using XSLT.
the xsd is below:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m="http://dongfang- china.com#" t...
Using setTimeout() it is possible to launch a function at specified time, e.g.:
setTimeout(function, 60000);
But what if I would like to launch the function multiple times? Every time a time interval passes, I would like to execute the function (every 60 seconds, let's say).
...
I looked at several examples on how to use regex in JS but I can not seem to find the right syntax for what I need. Basically I have an array of words:
commonWords=["she", "he", "him", "liked", "i", "a", "an", "are"]
and a string:
'She met him where he liked to eat "the best" cheese pizza.'
Basically I want to use non-alphas and my...