html

Converting an configuration file to HTML

I have a bunch of configuration files which are usually properties files which are opened from application and edited like notepad.Now the requirement is pick each property and find which HTML tag does it fit through and display the whole properties file as HTML page. For eg: Security.Properties file //This property checks if the user...

Work around for the same origin policy problem

I have a problem where I have a frameset consisting of a parent frame loaded from one domain and a contained frame from a different domain. The contained domain also sets a cookie before the frameset is loaded. However, because of the 'same orgin' policy, enforced by most browsers, a contained frame will not pass cookies if it is not fro...

Jquery: On SlideToggle change text of parent element?

I am doing slideToggle as follows: $(document).ready(function(){ $("#show_morecats").click(function(){ $("#morecats").slideToggle("slow"); $("#show_morecats").css("background-color","#399C05"); }); }); HTML <a href="#" id="show_morecats">More</a> <div id="morecats" style="display:none;">Some text</div> Now...

Can you control the order in which images (hidden vs visible) on a web page are loaded?

If I have two divs, one shown, the other hidden, I want the images in the visible div to load first and only then for the other hidden images to load. Is there a way to do this? <div class="shown"> <img src="a.jpg" class="loadfirst"> <img src="b.jpg" class="loadfirst"> <img src="c.jpg" class="loadfirst"> <img src="d.jpg" class="loadfi...

unwanted "flickering" effect when using hide and show in jquery

I'm getting an annoying "flickering" effect in Firefox when using jQuery "show" and "hide" on some div's. Any idea when this could be happening? ...

Multiple selection problem in a list box

hi Is there any way through which we can get all the selected values in a list box? ...

How can a click of a button change the content of a drop down menu?

I would like to make it that when a button is clicked a certain values in a drop down menu appears later on in the same document. For example if there was a button called Honda and it is clicked it would change the content in a drop down menu to the model details of the car. How is it possible to do this? CONTEXT: Webpage on a PHP ena...

Blank HTML form action (posting back to self)

I am wondering if anyone can give a "best practices" response to using blank HTML form actions to post back to the current page. There is a post asking what a blank HTML form action does here and some pages like this one suggest it is fine but I'd like to know what people think. ...

CSS2 Multi Classing

I have the following HTML: <DIV class="foo bar"></DIV> I'm trying to create a CSS class declaration that matches said element. Looking through the specs on section 8.2.3, I imagine this should've work: DIV.foo.bar { border-color: black; } But I've tested on IE and Safari, both doesn't affect the element. Any tricks how to make this...

Good CSS book for web developers

I am a web developer. We are getting our design done by a designer in US. But finally I have to understand his code, or at least the basics. So, we fix issues resulting from his code. Which is a is good CSS/HTML book for beginners? UPDATE: Thanks guys. I just bought Eric Meyer's CSS definitive guide. So, accepting pdemarest's reply a...

Can I use mixed units with 'path' element?

SVG has a rectangle element which dimensions could be specified in percent of dimensions of its owner and radius in pixels. So by doing the following <div style="position: relative;"> <object class="AIRound" type="image/svg+xml" data="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'&gt;&lt;rect x='0' y='0' width='100%' height=...

How to POST empty <select .. multiple> HTML elements if empty?

I have the following multi-select box in a HTML form, where user can select one or more option. <select id="eng_0" name="eng_0[]" multiple size="3"> <option value="Privilégier">Privilégier</option> <option value="Accepté">Accepté</option> <option value="Temporaire">Temporaire</option> </select> When the user selects no option, t...

PHP / SQL picture upload to a database.

I need a php code and sql code that will let someone upload an image to a database. The only thing I can find is very glictchy and not accepted by some browsers. Any ideas? ...

Weird observation in JQuery / IFrames

Hi all, Here's the situation. function scrollLog(line) { // Assume Firefox // alert("weird"); frames['log'].find(line); }; Here's a function I call when the document is ready. The code as written does not always fire . However, uncomment the alert line, and after the alert is fired, the find function always fires. Any i...

How can I check to see if a child browser window has finished loading?

I have a link on a page that pops up a new window, and sometimes that second window takes a long time to load. I want to disable the link on the parent window until the child window finishes loading. I know I can have the child window onload() to alert the parent, but I don't want to mess with the child, so I have a little javascript tha...

Printing only full DIVs on a page

I have a page that has about 20 divs one under the other on it. what i'd like to do is to print the page like this: 4 divs go fully on one printed page. the first half of 5th div gets printed on page 1 and the other half on page 2. this repeast for all 20 divs. i'd like to have first 4 divs on page one and the 2nd page to start with d...

How do I prevent browsers from storing cookies?

I have a webpage that plays about 15 videos at any given time. The videos change on a weekly basis, which are loaded from an external XML file. Please look at the site here www.hqwebvideos.com The problem is that when my prospects view my site for the 2nd or third or fourth time, the previous XML video data is stored in their cache. ...

Given a form normally filled out by hand, how can I print out information on that form programatically?

I have a PDF document that represents a print form that is normally filled out by hand. I want to to programatically populate certain text fields in the document (it is not a PDF form, just a plain PDF document) and fill it out with data specific to each user of the site. I want the end form to look like it was passed through a typew...

JQuery. Simple drop down selection menu behavior question.

Hello, I have a simple html option/select (dropdown) menu. I want to use JQuery to redirect links when an option is selected. I have a "go" button in noscript tags in case javascript is disabled, but in the case that the user has javascript..I would like the redirection to happen automatically on-click. Could somebody please guide me ...

how to hide input of type radio in html

I am trying to hide all the tags in html that are <input type=radio> I had this css input{display: none} However, this is hiding even buttons because they are <input type=button> is there a way to hide just intput of type radio? I can use jquery if need be but if it can be done via js or better yet just CSS then I'll prefer that......