If you use dynamic pages like JSP or asp.net, you can have your page template included, and then content added. But what if you have no server-side component and all pages are just HTML/JS? You can of course create a template then copy it for each page, but then if you want to change something you risk having to modify every page, even if you put…
Not sure if this is against stackoverflow rules as it's not a specific code question but I really need a little help.
I want to know if it is possible to create a search feature (search box) on an HTML webpage that will query a database and return the results?
Basically I have a database of products and their related categories. A user would…
Hi,
Although this seems like something very basic, but no matter what I tried I couldn't get my head around it. Basically I want a html form where a user types in their ID number in an input text box and when they hit the submit button it displays their email address which is their company ID number @ company.com, such as below
<form…
Hi all. I have a user form with a textarea that allows users to submit html formatted data. The html itself is limited by PHP strip_tags, but of course that does no completion checking etc.
My basic problem is that should a user leave a tag unclosed, such as the tag, then all the content following that, including page content that…
i have one js file in that js file i have following variables
var image_path="images";
var style_path="style";
i want to use these variables in html file(s)
like in image statement
<img src="path from js/logo.gif">
or in style sheet statement
<link rel="stylesheet" href="path from js/constant.css"…
I'm playing around with an idea, and I'm stuck at this one part. I want to read an external HTML page and then extract the data held within two <dd> tags. I've been using file_get_contents with good results, but I'm at a loss as to how to accomplish that last part. The two tags I want to extract the value from are always…
I'm working on a website which will offer localized content following the language+region approach as described on this W3.org page (e.g. fr-CA for Canadian French content, and fr-FR for "French French" content). As we consider content for each language+region to be unique, it is crucial to us that search engines properly…
Hey guys, I've been working on this for a day now and still don't know what's wrong. I am essentially building a second environment for our web and app server. I got apache to load up just fine, but tomcat is proving to be difficult. It appears to start and load just fine, but when it comes to loading our application,…
The distinction between block and inline elements always seemed strange to me. The whole difference is that a block element takes up the entire width thus forcing a line break before and after the element, and an inline element only takes up as much as the content. Why not just have one type of element- an inline element…
Should I be using WAI-ARIA in my website builds? Will it have any benefit? Is anyone adding 'role' to their code at the moment?
The tab, link, checkbox and slider roles, plus many more, aren't available yet for HTML5. From looking at the list of what is available (see below), and what will be coming in the future, it…
It seems like for years they've just been given default styling and inline display. Is there a spec somewhere that has dictated this? I've looked over the RFC's but I'm not particularly good with RFC-ese, and I didn't notice anything anywhere.
For example
<body>
Some content…
As in the subject-line. Saw the situation the other day on a page which felt weird to me. Except for markup-delimiting characters such as pointy brackets or the ampersand, escaping, say, German umlauts shouldn't be necessary, should it?
Checked the encoding server-side, in-page and by…
Just browsing the google maps source code. In their header, they have 2 divs with id="search" one contains the other, and also has jstrack="1" attribute. There is a form separating them like so:
<div id="search" jstrack="1">
<form action="/maps" id="...rest isn't…
I'm trying to create a page with a number of static html tables on them.
What do I need to do to get them to display each column the same size as each other column in the table?
The HTML is as follows:
<span class="Emphasis">Interest rates</span><br />…
Hi,
i am using Struts 2 and the Json plugin, to make ajax requests. I want to know if there's one way to validate my json, with struts validator, and show field errors in my jsp, before calling the @SMDMethod in my Action.
Thanks for your help.
Hi!:)
In my extension, when a button named "mybutton1" in the popup.html is
clicked, it sends a message "getvar1" to the contentscript.js, then
the contentscript.js sends a message "i want var1" to the
background.html to get an object named "var1".If the button named …
arraylist.add(new ListItem("Activity1", "ActivityName1"));
suppose ActivityName1 value store in properties file to provide locale feature.
now how can i access the value of Activity1 key that associate to ActivityName1 value on jsp ( ActivityName1 corresponds to a…
Hi All,
I want to convert my text into HTML format, it would be just like this that I just copy paste the text from word, pdf [with formatting & colors] to the editor and it will convert it into HTML tags, so that when I decode it again it would give me the same…
Hi I'm using struts 2.
I'm trying to reload a target div from a javascript by using jquery to target the div and a struts action that loads the content.
Does anyone know how to do this?
The problem is how I use (javascript) jquery to do this.
BR, Tobias
I'm new to JSoup on Java and would like to enquire few questions. Given the HTML code of the page I would like to get is this
<td width="70%" class="row1">
<b>4</b>
<br />( 0 posts per day / 0.00% of total forum posts )
</td>
My…