Hi,
I'm trying to filter my google maps markers from a checkbox, based on this V3 example. My checkbox html is:
<form action="#">
Attractions: <input type="checkbox" id="attractionbox" onclick="boxclick(this,'attraction')" />
Food and Drink: <input type="checkbox" id="foodbox" onclick="boxclick(this,'food')" /> &...
Hi,
I've googled this but can't find a satisfactory answer. Which versions of Internet explorer, if any, implement the W3C DOM level 2 event model?
...
Sorry for asking a basic question like this but I've been reading on this for a few hours now and the examples aren't making sense to me in context of the way my array is.. I have been able to pass this from my server side (cakephp) to the javascript (I'm using jquery) but after that, I am lost as to how to make use of the data.. I tried...
I have been working in jQuery and I was given this code for a quadtree in javascript:
map = array(
array(array(1,2,3,4), array(1,2,3,4), array(1,2,3,4), array(1,2,3,4)),
array(array(1,2,3,4), array(1,2,3,4), array(1,2,3,4), array(1,2,3,4)),
array(array(1,2,3,4), array(1,2,3,4), array(1,2,3,4), array(1,2,3,4)),
array(arra...
Hello,
The following is my block of code. since I haven't installed Firebug in IE, Every time when I try to test my code in IE I'm getting an error message console is undefined. so I decided and developed this block of code, so that console.log work only in firefox and to avoid error messages in IE.
function clog() {
if(window.con...
I want to load gmail inside an iframe.
It is small so that a iphone version gmail would be more suitable.
However google change the address automatically to the PC version.
Could anyone help?
Is there any permanent address for the iphone gmail?
PS. i need to use Chrome.
Thanks!!
...
Hi,
I am thinking of secure ways to serve HTML and JSON to JavaScript. Currently I am just outputting the JSON like:
ajax.php?type=article&id=15
{
"name": "something",
"content": "some content"
}
but I do realize this is a security risk -- because the articles are created by users. So, someone could insert script tags (just ...
how to get selected text from iframe with javascript ?
...
I have been looking on the web for some time now and HTML5 local storage seems to look like something useful to me and a solution to my problem that I am having with PHP sessions, the problem is that they are not consistent even if I set them to remember me the next time I come to my home page I am taken to the login page, this is not al...
Can anyone tell me why the console.log line isn't getting run when I select a date with the jQuery UI Datepicker? Thanks for reading.
<script type="text/javascript">
$(window).ready(function() {
$(function() {
$("#datepicker").datepicker({ altField: '#dateIntermediate'});
});
$('#dateIntermediate'...
Hi,
I am using facebook graph. I am able to retrieve the access_token. Now I want to get info using
https://graph.facebook.com/XXXXXXXXX/?access_token=111978178853984|2.1lD7XrS1n7C3UgudmiSpQg__.3600.1279976400-10000XXXXXXXXX|9vJZuRDvlzLhFfGkqGkg92KmDSE.
I already multiple ways to retrieve json output.
1) jquery.getJSON method - Fal...
Hi this is the situation
var seat_sel = document.getElementById('cmb_num_seat').value;
var cashp = document.getElementById('hdn_price').value;
var CHILD_PRICE = '5'
if(seat_sel > 0){
CHILD_PRICE = CHILD_SEAT_PRICE * seat_selected;
}else{
CHILD_PRICE = CHILD_SEAT_PRICE * seat_selected;
}
document.getElementById('dis...
Hello,
Yes, I know this question has been asked a few times before. But I am confused with the answers. I thought I would have to somehow 'refresh' or use live to add the validation each time I add a new input field.
Also I checked out the demo and I think I am missing something. I don't really see any code that adds validation each ti...
I use this code to load a htmlbox-instance to my page (this page also loads the necessary libraries to use htmlbox in the head-section):
<div id="container"></div>
<script language="Javascript" type="text/javascript">
function showEditPnl() {
var pnl = document.getElementById("container");
if (window.XMLHttpRequest) {
// code...
This doesn't work in my browser - is this normal? It only works when I declare the alias for the document Object inside the function someFunc scope.
var pic1 = document.getElementById('pic1');
var someFunc = function () {
pic1.style.left = "100px";
}
...
I'm using geo.js and Gears (tutorial here) to get a users location. The way my script works is that it checks to see if two cookies, latitude and longitude, exist. If they do, it allows the users to search for restaurants in their area. If they don't, it prompts for the user to share their location. I also added in two controls, upda...
I have a table which is pretty big, so I need a way to unfold it all the time, and unfold it only necessary.
How can I do that with HTML? Do I need Javascript for this? If so, what's the code for this?
...
In my Create View:
<script type="text/javascript">
var tabContent = "<% Html.RenderPartial("ProductEdit", new Web.Model.Product()); %>";
</script>
Unfortunately this seems to break. At least the quotes (") aren't escaped (\"). How could I "inject" the results of RenderPartial into JS?
...
hi, I am looking for a way to get a response in a form of a javascript alert after a form has been submitted using a php script. I guess ajax should do this but Im not an Ajax guy yet. A simple sample code would help a lot. Thanks for reading
...
Hi everyone, this is my first post, but i'm excited to join this community. I have a question regarding JavaScript which I am completely stumped about.
I'm writing a JavaScript application which pulls data from a server using ajax and adds it to a chart. I'm using Jquery and Highcharts as the framework and then writing my own JavaScr...