Hi
I am trying to create a javascript quiz, that gets the questions from a xml file. At the moment I am only starting out trying to parse my xml file without any success. Can anyone point me to what I am doing wrong?
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="prototype.js"></script>
</head>
<body>
<div class=...
Why in the following code I see the whole page at once ? Thanks !
HTML:
<div></div>
CSS:
div {
width: 100px;
height: 300px;
border: 1px solid black;
text-align: center;
}
Javascript:
$(function() {
for (var i=0; i<15; i++) {
sleep(100);
$("div").append("<span>--- " + i + " ---<br /></span>");
...
I am working on a website and on the top navigation bar there is a search box, I applied the following css on the search submit button
#submit{background:url("img/new-search-icon.png") no-repeat scroll -1px 0 #FFFFFF;
border:0 none;
cursor:pointer;
display:block;
height:21px;
padding:0;
position:absolute;
right:0;
text-indent:-9999px;
...
I try to set different a background colors for left and right columns and to maintain the same height.
So I set a background color for outer wrapper ("container" div) so it will set a color to rightBar.
But this didn't work.
Online Demo
I want it to work on all browsers.
Markup:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "ht...
I am trying to come over from dreamweaver to eclipse.
In eclipse when I am in a php file writing html. If I just type a "<" then the code assist popup will come up with all the options I can choose from.
I would like to know if the code assist can appear in more places though.
If I type "<div" and hit space can I get another code assi...
I need to implement a forwarding. I did it the following way:
<html>
<head>
<meta http-equiv="refresh" content="0; URL=http://www.xyz.com">
</head>
<body>
</body>
</html>
Are there any situations in which this won't work? I read on selfhtml.org (http://de.selfhtml.org/html/kopfdaten/meta.htm#weiterleitung, sry for the german link c...
I have a page with a select list (ASP.NET MVC Page)
The select list and onchange event specified like this:
<%=Html.DropDownList("CompanyID", Model.CompanySelectList, "(select company)", new { @class = "data-entry-field", @onchange = "companySelectListChanged()" })%>
The companySelectListChanged function is getting called twice?
I a...
I recently encountered a printing issue in Firefox that eventually turned out to be a problem with the fieldset tag we wrapped the entire page in. (Bugzilla: Bug 471015) All browsers have their own rendering quirks and issues, but it can be very hard to know what's causing different behaviors. Sure, you can Google, but that's often ta...
Does anyone know if it's possible to have several text fields that place the data into different spots in the same web page. If needed I could just use two pages, it doesn't really matter. I've heard this requires a PHP script, but I'm not sure how to set this up.
...
Hi,
I'm building a small HTML/JS application for primary use on local machine (i.e. everything is accessed via file:// protocol, though maybe in the future it will be hosted on a server within intranet).
I'm trying to make a form with method="get" and action="target.html", in the hope that the browser will put form data in the URL (lik...
I've been banging my head with this all day, trying anything and everything I can think of to no gain. I'm no Jquery guru, so am hoping someone here can help me out. What I'm trying to do in pseudo code (concept) seems practical and easy to implement, but obviously not so =D
What I have is a navigation sidebar, with sub menu's within so...
I have some 50 pages of html which have around 100-plus rows of data in each, with all sort of CSS style, I want to read the html file and just get the data, like Name, Age, Class, Teacher. and store it in Database, but I am not able to read the html tags
e.g
space i kept to display it here
<table class="table_100">
<tr>
<...
i am going mad with this problem now - if u goto http://talll.com and start clicking around on the menu items like news, economics etc., u will find that the page title says "undefined" - i just want to set the page title to some value thats all - HELPPPPPP!!!
...
Is there a way to remove the scroll bar in a select element with the 'multiple' attribute enabled?
<select name="test" multiple>
<option value="foo">Foo</option>
<option value="bar">Bar</option>
<option value="baz">Baz</option>
</select>
...
Hi,
I have a problem with the margin-top in a nested div,
when I try apply margin-top in a nested div the margin is applicated to parent div,
any idea ?
...
I am using jquery ui tabs, which requires the tabs to be <li> elements, by default at least.
I only need 2 tabs, but I am not able to size them so that they are both equal and take up 100% of available width of the ul.
here is my code.
<div id="intro_tabs" class="tabs">
<ul id="intro_nav">
<li>
<h3><a href ="#tabs-1"...
Hey there,
I have a situation where my page loads some information from a database, which is then modified through AJAX.
I click a link to another page, then use the 'back' button to return to the original page.
The changes to the page through AJAX I made before don't appear, because the browser has the unchanged page stored in the ca...
It could be a HTML question as well...
I have a UIWebView with a page (from the hand made html string) loaded. For the url link on the page, if you tap on it, it has gray as background, which I think is the default behavior on iPhone.
Is there a way to programmingly (thru javascript) change that to be other colors, say, blue? It doesn...
I have a dictionary in jsons form like this:
$user = "{ name: Mary , born: 1963, money: 213 }";
I need to pass it throught this field:
<input type="hidden" name="custom" value="" >
and then insert it in the db:
INSERT INTO user ( name, born, money ) VALUE ( $name, $born, $money )
How can I do that ?
...
Is it possible to load up 10 images (same dimension), stack them on top of one another only showing 1 image at a time and then by holding down the left mouse button and dragging the mouse up you scroll in one direction and moving the mouse down scrolls in the opposite direction?'
if so how can this be done? canvas element would be the b...