html

How To Embed a HTML Source Inside Another?

I have two HTML source files. One called index.html and the other embed.html, but I want to embed the second file inside the index one, using HTML this is possible? If not, maybe using JavaScript or VBScript? ...

Why my form doesn't validate correctly?

I'm trying to validate a form, but doesn't work :\ , When I submit the form goes to mail.php even if the required fields are missing, but I set onsubmit to validate() so it should check, but doesn't work. What's the problem with my code? I can't find it. HTML: <form action="mail.php" onsubmit="return validate()" method="post" class="co...

css and jquery current links navigation problem?

i have this jquery code that retrieves external content using ajax, without refereshing the page, and i also have a navigation links that has the different background color when user is on the current page. the jquery code: function loadPage(url) //the function that loads pages via AJAX { url=url.replace('#page',''); //strip th...

Ruby + Nokogiri: Expand all class="..." attributes to style="..."

Hi. I'm parsing forum threads with Nokogiri and putting them on RSS feed (forum itself doesn't have RSS or any other kind of news feeds), the problem I've encountered is following: elements are styled with CSS classes and via selectors in forums style file included in the page, I can't include it into news feed so I want to replace all...

simple website for an organization

I don't have a technical background but I needed to make a website for a non-profit organisation that I volunteer in. So it will be a simple website with a basic front page with all the latest news and events for the organization. There will be a page about the organisation and its members, a gallery section, a section for articles, some...

Anchoring an item in place for vertical scrolling but not horizontal

I have a menu that is contained in a div with the class float. float is given below: .float { display:block; position:fixed; top: 20px; left: 0px; z-index: 1999999999; } * html .float {position:absolute;} The above css class makes it so that the menu stays in place regardless of how the user scrolls (the *html is for internet explor...

Opening an HTML page in a browser from Common Lisp

My Common Lisp program writes out an HTML file. I then want to launch this file in the user's default browser. Is there a way of doing this in Common Lisp? Moreover, is there an OS-independent way of doing this? ...

jquery animated scrolling on x and y axis.

I am trying to use jquery to do an animated scroll from one div to another. I am halfway there but can't seem to get it to scroll on both axis. I have called the scrollto plugin and am open to using that. Here is the site live and the code: http://littleboxcreative.com/ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt...

HTML / CSS - Styling <b> or <i> tags instead of <span>

Hi I was just wondering if it's a good idea to do this. For example if you want to create round-cornered tabs using CSS, you would need a structure like this: <li> <a href="..."> <span> Tab </span> </a> </li> ... then you put the left tab corner background on the link tag and the right one the span (maybe it's a bad example, because ...

hyperlinking a list item?

i know this might seem straightforward, but i can't solve it, im trying to make the whole list item linkable, rather than just the word home the html code: <a href="#page1"><li class="current">Home</li></a> p.s. when you hover the li, background color changes, so i want that whole list item to be hyperlinked, if you get what i mean, ...

Basic CSS question

In CSS, how do I achieve the following layout? xxxxxxxxxxxxxR1xxxxxxxxxxxxx xxxxxxxxxxxxxR1xxxxxxxxxxxxx xxxxxxxxxxxxxR1xxxxxxxxxxxxx xR2.1x xxxxxxxxxR2.1xxxxxx xR2.1x xxxxxxxxxR2.2xxxxxx xR2.1x xxxxxxxxxR2.2xxxxxx xxxxxxxxxxxxxR3xxxxxxxxxxxxx xxxxxxxxxxxxxR3xxxxxxxxxxxxx xxxxxxxxxxxxxR3xxxxxxxxxxxxx R2.1 is an image that I wa...

jQuery: but what about all the children!?

I feel like I have to use way too many .children() in some of my jQuery functions. Here's my HTML: <div class="goal-small-container"> <div class="goal-content"> <div class="goal-row"> <span class="goal-actions"> And here's my jQuery: $('.goal-small-container').hover(function() { $(this).children('.goal-content').chil...

replacing custom html tag in php

I have custom html tags in my apps, it looks like this: <wiki href="articletitle">Text</wiki> and want it replaced to be like this: <a href="http://myapps/page/articletitle"&gt;Text&lt;/a&gt;. How I can do that in PHP? ...

reliable HTML/Ajax control to manipulate tree structures?

Can someone recommend a reliable HTML tree control that also supports tree manipulation? I need it for a backend and want to move, reorder, delete, add and rename nodes. Right now i use a nested set model in my database to store the tree structure, and dhtmlxTree (see dhtmlx.com) as tree control. The problem i'm having is that this co...

Is it valid HTML5 to use a single tag for a div?

For example: <div/> instead of <div></div>. I did this and apparently the HTML5 validator passed this as valid. I was wondering it this is actually true? PS: I'm serving page as application/xhtml+xml ...

How to strip html tags out of xml generated by builder in rails

Here is my situation. I'm trying to create a valid rss feed for an itunes podcast from an existing project. It's a rails application that allows uploading of mp3 radio shows to for listening on the site. I want to take all entries in the database and create an rss feed out of it. I'm using a builder file and everything is working fin...

Confused about very basics of JSON - Some APIs make me download a file, others show the json

Tonight I want to make a request to the topsy.com API, which returns JSON and render that as HTML. I've never done anything with json before since it's impossible to read in the browser, but that's the only format Topsy returns, so I'm trying to learn what I can. I have a very basic question: Why do some APIs make me download a json ...

Firebug: nested <strong> tags...

Here's the screenshot of my firebug installed in updated firefox. I've noticed that the firebug shows hidden nested tag in the html tab. I don't know what causes this to happen... Anyone?..Please help....Thanks... And here's the html mark-up.. ...

"text-overflow: ellipsis;" in XUL applications

I'm writing an extension to an existing XUL-application, conkeror. In that, In some part of the user-interface of I'm writing, I'm creating HTML elements with a fixed-width, <span>s in this case, to display various results. Within those spans there's text some text, which, on occasion, is too long to fit its fixed-with container. I'd li...

Map UIWebView tap to HTML element

How would I go about detecting which HTML element was tapped inside a UIWebView? It seems a bit hacky, but right now the only way I can think of would be to evaluate JavaScript and use JS to traverse the DOM. Any help with this direction would be appreciated, too. ...