i want to create a webpage on iphone ,
but i can't complete it in a simple way,
this is my code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charse...
Hi this works fine in Firefox, but not IE. What am I doing wrong? Thanks for the help in advance!
$(document).ready(function(){
$("#radiodiv").buttonset();
$('#radio1').bind("click", function() {
alert('Hello');
});
}
<form>
<div id="radiodiv">
<input type="radio" id="radio1" name="radio" checked="checked" /><label for=...
Hi all, I'm sure this is really simple, but I can't seem to get it working. I have a "time" select list, which has a number as "rel" attached to each option. If the user changes the time select, I want a new list of options to display depending on what is selected. If that makes sense?
Here's my first select:
<select name="time" id="ti...
I want to change text in table td from 1,1,1 to 1,2,3 with jQuery
But it not seem to work. what is wrong in my code?
This is my JavaScript function.
function reorder(targetId){
var i = 1;
jQuery.find(targetId).each(function(){
jQuery(this).attr("innerHTML", i);
i ++;
});
}
My ht...
I've got a page with a header and a content.
The header has position: fixed; height: 200px, the content is below.
In the header I have a link <a href="#work" ...> . In the content there is a <div id="work">. When I click the link, the browser scrolls to the work div - the problem is half of the content is covered (remains underneath) t...
Hey guys,
I am looking to find a lean WYSIWYG inline editor. The main required feature is image uploading. A simple way to upload an image to the server and use it in the content being editted. I have come across a whole bunch of editors but nothing I liked so far. I am looking for something open source and free.
So far I have che...
When I land on the page, another function (not shown, that works fine) sets the class of the appropriate nav to '.this_page' and then I roll over, and the images swap correctly, but when I hover and leave 'img.this_page' it swaps, the second time I do the hover. I don't want it 'img.this_page' to swap. I tried unbinding mouseout, but on ...
Hello everybody! (hello dr.Nick) :) So I posted a question yesterday about a content loader plugin for jQuery I thought I'd use, but didn't get it to work.
http://stackoverflow.com/questions/2469291/jquery-could-use-a-little-help-with-a-content-loader
Although it works now, I see some disadvantages to it. It requires heaploads of file...
Hello
How to get checked RadioButton Index using jQuery? I need to read it and save to cookies to load status later using code
$('input[name="compression"]')[{Reading from cookies code}].checked = true;
1<input name="compression" type="radio" value="1" checked="checked" />
2<input name="compression" type="radio" value="2" />
3<inpu...
Just like in JavaScript:
opener.document.getElementByName
jQuery:
??
Is there any way to get opener's element with jQuery?
...
It might sound silly, but I need this functionality.
Can I somehow cancel location.href = 'url' in javascript once it is executed?
for example on click of button i am changing current page with some resource intensive page, I want to give an option to user so that one can cancel it if next page is going to take long time to load.
Tha...
We are writing an ASP.NET MVC application. By default, if the client browser has Javascript, the handler for every form on the page is set, by Javascript, to be one that sends the submission down an Ajax "pipe" (progressive enhancement).
But, for one form (on a page of several), I'd like this handler to be bypassed/ignored. Is there a s...
I'd like to implement a tab bar using jquery-ui-tabs that has been customised to work like it does on HootSuite. Try this on HootSuite to see what I mean:
Log in to your hootsuite.com account
Click the + symbol to the right of your tabs
Add tabs named "MMMMMMMMMMMMMMMMM" until a "More..." tab appears
You'll see this:
HootSuite incl...
I'm working on a webapp in jquery that, on older machines or machines without much resources, may perform poorly. To get around this I'd like to make a degraded version that disables some of the features, particularly those that rely on large images.
How can I tell if my app is running poorly on the user's computer in jquery or javascri...
What is the meaning of the following error message?How can I use the EnableClienTValidation()?
Error 3 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'EnableClientValidation' and no extension method 'EnableClientValidation' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a...
Hello
<div class="leftlink" id="mcontacts">
<img src="test.gif" class="arrowred"/>
<a href="/contacts/" class="u">Контакты</a>
</div>
if(window.location == 'http://my.site.com/contacts/')
{
$('.menuwelcome').css('display', 'block');
$('.leftlink').find('Контакты').css('font-weight', 'bold');
$('#mcontacts').find('a'...
I'm testing in Chrome.
I have a bunch of 'add item' icons on screen that the user can click in order to add that one item to the database. I also have a button at the botton of that list, which should add the whole list of items.
It seems to me that the easiest way to do this is to trigger the 'click' event for all these icons (the re...
I'm using the validate plugin from http://bassistance.de/jquery-plugins/jquery-plugin-validation/
What i'm trying to find is a way to make some of my form fields accept letters only, no numbers, special chars etc...
Any idea people ?
Thanks a lot.
...
I'm using this code as the starting point to an overhaul of our JavaScript framework:
$("#get").click(function(){
$("#result").html(ajax_load);
$.get(
"http://www.google.com",
{},
function(responseText){
$("#result").html(responseText);
},
"html"
);
});
But when the reque...
How do i check if a textarea contains nothing?
I tryed with this code
if(document.getElementById("field").value ==null)
{
alert("debug");
document.getElementById("field").style.display ="none";
}
But it doesnt do what i expect.
I expect that it should appear a messagebox "debug" and that the textarea is not shown.
How can...