no-javascript

CSS set default scroll position

Is there any way to set the scroll position to a default value? I know how to do it in javascript, for example with jquery: $("div#divWithScroll").attr("scrollTop",200); But I wanted to do it with css only, I have no idea if it is possible. ...

Ajax in struts2

i want to write a simple Hello World program which shows Hello World when i click on some button using AJAX but without java script or jquery...i have searched alot but didnt found anything up to date...can anyone help me?? im using struts 2.1.x so many things which programmers normally use like DOJO will not work in it... ...

HTML form method with nice URL

I just want to know whether there is a way to answer this question with "Yes" without using JavaScript. What I want to do is have a search form that automatically generates URLs like http://example.com/search/my+search+term or something similar when I enter my search term into a search text field. EDIT: Due to some mis-understanding (a...

Do not scroll with anchor, simply change div?

Lemme explain my situation here: I'm trying to make a layout for a website. This goes in a small box, and can include HTML and CSS, yet not javascript. I have a small box inside this, with tabs to link to different things. This is done via putting the divs in a box and using anchor tags to get to them. This is totally fine, until the pag...

Apply CSS styles to an element depending on its child elements

Is it possible to define a CSS style for an element, that is only applied if the matching element contains a specific element (as the direct child item)? I think this is best explained using an example. Note: I'm trying to style the parent element, depending on what child elements it contains. /* note this is invalid syntax. I'm using...

Facebook Connect: with no javascript?

Is it possible to write a website that uses Facebook connect without JavaScript? I have a site set up that works great using XFBML but this (obviously) fails when I visit with JavaScript disabled. I have a feeling that this is possible using the REST-api for Facebook but I'd still appreciate some pointers. There was a discussion about t...

Radio Buttons with different Names?

Does anyone have a no JavaScript way to make HTML radio buttons belonging to the same "group" have different "name" attributes? While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal. Addendum It's not a requirement as much as a preference; there's a kind of c...

Checkbox 'off' value

Does anyone have a no JavaScript way to make HTML checkbox still submit a value? As in if you check it the form submission will include a value A but if it is uncheck it still contains a value B? While I figure there isn't any way, I'm working on a site which needs to still be function when JS is off, and this would be ideal. ...

Use some CSS properties in many selectors without editing HTML or using JS

CSS: .bananaTrans { -moz-transition : all 1s ease-in-out; -webkit-transition: all 1s ease-in-out; transition : all 1s ease-in-out; } .bananaClass { color: yellow; } HTML: <div class="bananaClass">Banana Banana Banana</div> The objective is to make every element that has class "bananaClass" inherit the properties of "bananaT...

Making a non-javascript version of a portion of a form.

So I have form with two drop down lists, the second of which is dependent on the first. For the sake of example let's say if they select "even" in the first drop down, they get 2,4 and 6 as the options in the second, correspondingly if they select "odd" in the first the second becomes 1,3,5. (defaulting to even). I've done this in javas...

Is it possible to create a CSS-only accordion?

I'm thinking about using an accordion in a "please enable Javascript" page, but I don't know if it's possible with CSS only. I'm almost sure it is for most browsers, but I'm also fearing I'll face some limitation of IE and I'd like to know if any of you tried this already (or not) and could tell me if it's either possible or impossible...