html

CTRL-A inside a contentEditable div in Firefox selects the div itself

I've been pulling my hair out trying to figure out the best way to fix this problem. Perhaps someone will have fun with this. I have a div with contentEditable="true" that works fine for nearly everything. One exception is inside Firefox when the user uses CTRL-A to select everything and then copies/pastes. The select operation inclu...

question about correctly structuring javascript, css, and svg

i have a index.html file which includes svg and CSS file and 2 javascripts file and has a javascript function inside of it for some reason i cannot get the javascript function to run. is the strucutre supposed to be different>? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tra...

jQueryUI Radio/Check buttons not changing programmatically

I can predicably read the value of a jQueryUI radio button, however, I am not able to set it programmatically. No matter which methods I use to change the radio button's value, jQueryUI interface will not update its interface. <div id="radio"> <input type="radio" name="radio" value="true" checked="checked" />Yes <input type="rad...

How do I create a content area (image gallery) that scrolls on mouseOver

Hi folks, I was looking to create an image gallery in my blog. However, I was wondering how possible it would be for the gallery to scroll through my images on mouseOver. Basically, when the user moves his/her mouse up or down the image gallery, the images scroll up or down accordingly. I have seen a few examples where it has been done...

CSS question: why my css stylesheet selector not working?

I have the following HTML: <div id="graphicArea"> <div id="page1" class="pageArea land"></div> <div id="page2" class="pageArea land"></div> </div> my CSS stylesheet file snippet (this works): .pageArea { width:220px!important; height:210px!important; } my CSS stylesheet file snippet (this don't work): .pageArea.l...

How to get values from a form and send it to Java class using javascript?

First i have declare that i am new to javascript. I have created a form that gets Id, Name, Age & Dept. I want it to send to java class and i have to show back the data along with the other data in the data Base using DWR. For this i already done coding for showing the table, below that i have my form. After the form "Save" button call...

Prevent ? (question mark) from being treated as a white-space like separator

Is there any way to prevent '?' from being treated as white-space-like in HTML/CSS? Is this default behavior, or am I doing something wrong? I have a div that holds a very long URL (the length is dynamic). I want the URL to treat the question mark as any other character and not force a line break at that character, but I don't want to u...

Find the DOM element containing a specific offset with jQuery or plain JavaScript

Hi, I am paging an HTML page. In order to compute the page break offsets more efficiently, I was wondering if it is possible to get the element containing a certain coordinate offset from the beginning of the page. Thanks a lot in advance for your help, Cheers! ...

How to detect when a frame url is changed?

Hi, I have the following: <frame src="myframe.htm" id="myframe"/> <frame src="http://www.google.com" id="external" /> How to detect any new url in the frame "external" when clicking a link on it so i can display it on the frame "myframe" ? I want to use javascript for that Thanks ...

Form submit button will not submit when name of button is "submit"

I am having trouble getting a form to submit when the name attribute of the submit button is precisely "submit". Here is the code: <input onclick="checkForm(document.form_29) && document.form_29.submit();" value="Submit" name="submit" type="button"> Note that we are not using a standard input type of "submit", but rather an input type...

html form radio value in an ajax loaded div

hello, i'm unable to get a radio value in a form loaded by ajax into a div. here is the javascript code i'm using. (the radio name is 'categorie_add' in get function) function getCheckedValue(radioObj) { if(!radioObj) return ""; var radioLength = radioObj.length; if(radioLength == undefined) if(radioObj.checked) return...

Using HTML/JS or another web solution to render a twirling ribbon

Any thoughts on creating a fluid/flowing ribbon for a website effect? I'm open to any ideas. Ideally I could do this simply with html and some js library, but I'm open to suggestions for doing this with flash also. Any links to tutorials or examples would be greatly appreciated as well. Thoughts? ...

How can I do this using CSS?

i have a image who are look like a transparent but working as a zebra table like chase and i want to apply a color rgba(12,120,234,0.4); how i can show the image and color both background-image: url('Images/embedded_bg.png'); background-color: rgba(12,120,234,0.4); ...

Can I usefully add a page break to a web page?

The CSS page-break-after attribute looks like what I want. Is it? This is an intranet application for Firefox users, so browser compatibility is not a large concern. Here's the background. I have a web application that generates medical forms. Right now the users click on individual forms and print out the result on at a time. They...

Copying css and html code from others, Copyright infringement?

This might not be a coding question, but very relevant to coding so I hoped I would get an answer here. All coders, maybe specially designer. Use others code in there own code. If you see something you like. you use that code in your design. In some degree, I'm sure every coder does this. So I was wondering where the line goes. Can you...

What to replace <span> in <form> with? "In XHTML 1.1 the tag <form> cannot contain tag <span>

Hello Folks, I am a beginner in html. I am using a login module from yootools: What to replace <span> in with? I have XHTML 1.1 strict doctype (changing transitional fixes it) and I get error: "In XHTML 1.1 the tag <form> cannot contain tag <span> This is user/pass box lined up next to each other on the same line. What can I replace...

embed issue in html validataion

When i validating my site i got following issue <embed src="banner.swf" quality="high" pluginspage="http://www.macromedia… ✉ You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" docu...

Jump to Top Link in Plugin

I am using this plugin to make a list of all the Categories on my Wordpress blog : http://pastebin.com/raw.php?i=T6rvtwkS The script can be seen in action here : www.animefushigi.com/full-anime-list Now, I want to add a link to Top of page under each set of alphebetical listings, so right after each I want to add this : <a href="j...

Why is the jQuery html() method ignoring line breaks?

I'm building a page of thumbnails with jQuery like this: ID=this.id; $('#thumbs').empty().html('<span class="title">'+$('#'+ID).html())+'</span><br />'; var i = 1; for (i=1;i<=count[ID];i++) { $('#thumbs').append('<img class="thumb" src="graphics/thumbs/'+ID+'/'+i+'.jpg" />'); } The idea being that the <span> would appea...

Zoom all content of a web page using Javascript

Is there a way to replicate or trigger the zoom feature of a web browser using Javascript? ...