It's working fine under chrome, anyone have an idea on what tool I could use to check what is wrong? Or where to look?
This is the whole code if anyone is interested, but I doubt it would be of use.
$(document).ready(function(){
$('a').click(function(){
$(this).blur();
});
$('.opcion').hover(function() {
$(...
From my experience I know three different ways to execute a Javascript function when a user clicks on a link
Use the onclick attribute on the link
<a href="#" onclick="myfunction();return false;">click me</a>
Use the href on the link
<a href="javascript:myfunction();">click me</a>
Don't touch the link, do everything in js
<a href...
dom.style.-webkit-transform ='rotate(-90deg)';
In Chrome it tell: "Uncaught SyntaxError: Unexpected token -"
...
Hi,
i hope this question is not too simple, but i have no idea :(
How can i start a function with a var in the function name?
For example ...
my functions
function at_26();
function at_21();
function at_99();
start the function
var test_id = 21;
at_'+test_id+'(); // doesn't work
I hope somebody can help me.
Thanks in adva...
I want to play video in iPad. It works well in all browsers in mac and windows but not on iPad (see example). I had used slider.js and the HTML5 video tag on click of "SD", made it display block and on close display none but it doesn't work on an iPad.
...
rpc.getUserInfo(function(result){
userdata = result;
}); //How can i get the value of "userdata"?
I try:
var userdata = "";
rpc.getUserInfo(function(result){
userdata = result;
});
alert(userdata); // it's "undefined"
...
I've got a piece of JavaScript that inserts/removes an iframe from the DOM. Everything is dandy in Chrome and FireFox but the iframe is not displayed in IE. The code below is the creation and insertion. When inspecting with a Developer tools I can see that the iframe is part of the DOM exactly as I expected it to be. Any suggestion on wh...
How can I detect whether a java-applet has been loaded successfully without polling the browser /using setTimout ?
Is there any event that I can bind to?
The problem is: there is a pop up asking the user whether he trusts the applet or not,
and that takes a few seconds until the user clicks "Yes"
,meanwhile my code fails to execute be...
Hi,
So I have a grid of images (map tiles) and I draw a semi-transparent mask over it using an absolutely positioned div with width and height set to 100%.
I now want the user to be able to draw out a rectangle on the mask, with the mouse using mouse-down, drag, mouse-up. The rectangle would be drawn dynamically as the mouse moves, and...
<textarea name="inputField" id="inputField" tabindex="1" rows="2" cols="40"onblur="DoBlur(this);" onfocus="DoFocus(this);" ></textarea>
<input class="submitButton inact" name="submit" type="submit" value="update" disabled="disabled" />
<input name="status_id" type="hidden">
the javascript(jquery):
function insertParamIntoField(anchor,...
Hi,
I want to get the url with javascript. But I just need http://www.mysite.com, without any parameters behind it. any idea how to get that?
...
Hey,
I am working on an eshop with a calculator to calculate your loan. I need some fresh insight on this... imagine this situation:
User clicks on one of the buttons it will do a POST request (jQuery) and fill the required data.
User clicks add to cart and goes to cart
User clicks back button (browser)
Page is loading, server is fi...
I am trying to automatically update a javascript array, without specifying a number or string for the key. The value should just take up the next numeric key in the array.
In php you can do this:
<?
myarray = array();
myarray[] = '1';
myarray[] = '2';
myarray[] = '3';
//this is equivalent to myarray[1] = '1', myarray[2] = '2', myarra...
Hi,
I have got a form with 2 dropdown lists on a simple HTML page. Depending on the value selected in the first dropdown list, a Javascript event handler(using the onChange event) changes the options of the second dropdown list.
When selecting a value in the first box and touching the second box in the browser window everything works f...
I'm going to create iPhone and Mac apps and wonder if there are benefits of creating iPhone and Mac apps with Cocoa over Sproutcore + Phonegap/Titanium?
I'm not doing any game or high performance related software.
If I learn Cocoa I could only create apps for iPhone, iPad and Mac. But if I use Sproutcore for web development with Phoneg...
Hi,
I'm trying to code a progress bar...i'm using the youtube api to create custom controls for a player but that's kind of irrelevant here. Basically I have this html for the progress bar:
<div id="progressbarOuter">
<div id="progressBar"></div>
</div>
Progress bar outer has a width of 120px and the progress bar has a width of z...
I need to select a specific grange of jquery elements based on there index using :eq() (or something else if you have a better solution)
my html structure is the following:
<ul>
<li>slide0</li>
<li>slide1</li>
<li>slide2</li>
<li>slide3</li>
<li>slide4</li>
</ul>
When the user hovers slides over the slide2 i need to select ...
hi,
I'd like to call a JavaScript function out of Java (Android).
Well, the following source code works fine for me (source)
1 /**
2 * This is not called on the UI thread. Post a runnable to invoke
3 * loadUrl on the UI thread.
4 */
5 public void clickOnAndroid() {
6 mHandler.post(new Runnable() {
7 public void run() {
8 ...
I have a jQuery project where I open an iframe with scrollbars (scrolling=auto) in an overlay (boxy plugin) popup with an animation. When the overlay is closed I want the popup to tween and fade-out. So far so good, but while the size of the iframe is decreasing, the scrollbars suddenly appear before the whole thing disappears.
I tried ...
Hi,
How can i load the original image when the tumbnail version of the image has been clicked?
Im using ASP.NET in combinaton with javascript.
The original images are big, so they have been scaled on server side. This makes the site load faster. But somehow, both versions (original and tumbnail) of the images are being downloaded.
I'm...