So the autocomplete="off" attribute is invalid HTML according to the w3c. Are there valid ways to do this in HTML, CSS or JavaScript? Or do we just have to plan on some of our forms not validating because we want to use this functionality.
...
How do I detect if a user scrolls downwards with jQuery? I want a fixed div to show only when the browser is within 300px of the top. When the user scrolls down past the 300px mark, it should disappear. When the user scrolls back to the top, it should hide. How do I do this?
...
I've got 3 div's on my page, one is the form which is last in the code and positioned ontop of the first 2 divs. In Google Chrome when I try click the form fields it wont let me unless I click the bottom bit of input boxes or the very top of radio buttons.
I've confirmed the problem is with having divs behind it by removing the other 2 ...
I am looking at the custom attributes feature of html 5 here at this link
http://ejohn.org/blog/html-5-data-attributes/
This look like the perfect thing for when I am using jquery/javascript.
My question, Is HTML 5 supported by all the main browsers?
example
<li class="user" data-name="John Resig" data-city="Boston"
data-la...
I am building a new site, and I have a folder on desktop with everything in it. For testing basically I open the index page in a browser and preview that way while building it. It looked correct in firefox, safari, chrome and opera on my mac. I uploaded that file to the server, and now firefox on mac displays everything much smaller. ...
Hi there,
I recently posted a question about centering a page with CSS. I figured out how to do that and it looks great, but now, there is a bunch of unnecessary space at the bottom of my page. I can't figure out how to get rid of it.
I uploaded it to a quick free webhost so you guys can take a look.
This is what I'm trying to work with...
I have two questions:
From personal experience, what free blog engine is the best to integrate a blog to an already designed website?
Since many blogs are using their own template tags, I wanted to know if there was an easier way to integrate a blog than having to learn those template tags? If there is not an alternate way of doing so ...
How do some sites automatically select a input field when you enter a page? Like YouTube's login page it selects the Username field automatically
This site too, on page Ask Question for example, it selects the Title field.
How do they do this? My guess would be javascript
But how?
...
Hi all,
I was wondering how to add our own custom icon to the web page for our Silverlight application? I know how to set the text (using the Title property for the Page), but the icon eludes me.
For example, see the below image. The most left tab has the G for Google, and the most right one has the CNN icon. How can I get my own there...
I have three tables of information where the business_id is the common thread. I have two input fields, one for general search (users can search for whatever they want) and a zip input. On the php side, I catch the general search string and set it to $search and the zip set to $zip.
How can I use the $search variable to MATCH any of th...
I tried:
font-size:40%;
But found it not working
...
I have this DOM structure:
<span id="aa"><a id="bb">myname</a> test test test</span>
I want to be able to select #aa and then split #bb away from the text "test test test" since I need to perform some string operations (replace) with the text. How do I select just the text in this case? And then after the string replace operation, I w...
Why does height="100%" attribute fail to work in the following snippet?
<table height="100%" width="100%">
EDIT:
code as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<div style="width:250px;height:90px;">
<table id="experiences-mirror" width="100%" bor...
I have this JSON for smilies list
var smiliesList = {
"sm-1":":)",
"sm-2":":(",
"sm-3":";)"
}
There are lots more than 3 actually.
In other part of the code I use smiliesList["sm-1"] to get ":)". However, I want to get the opposite now. I have a text string, I want to go through the whole smiliesList and replace ":)" with "sm-1" and...
hi all,
i am using django for development. retriving some text with newline from database. but when i render it to template and print in template do not show newline char.
what is the porblem ??
plz any one , if can help me
BR//
Nazmul
...
Hey
I got some problems loading google map into a jquery $.post...
the output is correct in firebug.. but it wont show the map :-/
Any idea how to fix?
$.post('/ajax/index.php', {action:somedata}, function(data){
$(div).slideDown(500,function(){
$(div).html(data);
});
},'html');
and then I load the data via...
Hii
I have a marquee tag that shows news from my database
I want to make this marquee uptodate without refreshing the page
so I used ajax (update_panel+timer)to do that but the problem that
the marquee doesn't revolve after the timer is working
notice:
my marquee is a literal(componenet)
and I put my text with marquee tags inside the l...
I'm working on a grails application and I've kept looking for some solution to my problem for the past 15minutes - I guess, there's an pretty simple solution to this...
The point is, I have a view where I have a g:link tag - it works fine, but the visuals are kind of ugly. Therefore I want to disguise that g:link thingy with a normal bu...
Both of them mean space, but is there any difference?
...
Does anyone have a string they paste in when when testing html forms?
Just basically something that will test their system handles every kind of crap data that can be passed in.
...