html

Submitting forms with two different methods?

I'm trying to create a quoting mechanism for my website that will collect a) information about the user (name, email, etc.) and b) four or five values (item quantities) that will be used to generate a quote. What I want to do is to have all of the information (both sets a and b) sent to me using formmail, and for the values to be passed...

ASP.NET MVC how to reset form when action returns a FileResult?

I have an ASP.NET MVC form that when submitted can return either an ActionResult if there was an error with the data, or if everything is fine it redirects to a different action that returns a FileResult. I've created a bit of a sample to provide an idea of what I am doing. This is the html: <% using (Html.BeginForm()) %> <%= Html....

Fixing tabs to the top of the page, but underneath the header

I'm trying to figure out how to design a header for a website so that there are tabs placed underneath the header (that look like they're sticking out from under the header), that stay with the header as the page is scrolled down (and the header moves up), but when they reach the top of the page become fixed there so that they're always ...

Browser interpreting line breaks in code as spaces (HTML)

I have 6 images sized 50x50 that are supposed to fit in a 300px div (50 * 6 = 300). In my code I write them as follows: <img src="foo.png" /> <img src="foo.png" /> <img src="foo.png" /> <img src="foo.png" /> <img src="foo.png" /> <img src="foo.png" /> Note the line breaks in between the image tags. I write them that way for clarity. T...

How can I make concentric circles in HTML respond to mouseOver properly?

On my web page, I'd like to have a group of several concentric circles of varying size, with each displaying a menu when they are moused over. So far, I have created 4 pictures that is 100% transparent except for the circle and have layered them on top of each other. However, when I mouse-over the group of circles, the transparent part ...

Cannot confirm that element exists on the page when I clearly see it there.

I'm using a function which utilizes jQuery in order to grab information from a JSON feed. The problem here is that from the feed I must pick 10 items that meet the criteria of being within the last year (31 billion milliseconds from the request for argument's sake) and I have to specify how many results I want from the feed with a varia...

event listeners on plugin in document.onload events in opera

I am trying to understand an issue where event-listener registration on plugins doesn't work in Opera unless i delay them. In particular, this doesn't work: document.onload = function() { plugin.addEventListener("foo", function() { alert('onFoo'); }, false); } while delaying the addEventListener() call somewhat through e.g. an al...

Need help to get an html and use in C like a text file in fopen

Hello, I want to get a HTML and use like a file in C. Actually I can do that, but I have to save the file first on the disk and then use fopen("/file.html", "r");. What I would like to do is to extract the html directly from the URL and work with it. Hypothetically, fopen("http://www.google.com", "r"); I saw something about libcurl bu...

How to move text from a pagination item

At: http://nathansearles.com/loopedslider/example-4.html , the pagination actually has numbers in it (you can see this if you view source.) I looked at the css and I can't figure how they make the numbers disappear... Its obvoius how the images are shown and all that but... ya, thanks for helping with this, its something small, just ca...

Recording a Yes/No question from a form in PHP

Hello all , I want to write a Yes/No form with radio buttons. By default none of the buttons would be checked. On submit, I want to check that at least one of then is checked! function draw2($postid, $postName, $canId, $canName) // for Yes/No candidates { colspan='2' img src='images/".$canId.".jpg'".$canName." input type...

Converting date to this format

I have a date in this format: 24-12-2010 // DAY - MONTH - YEAR I need to get it in this format: 1995-12-31T23:59:59.999Z // The Z is for the TimeZone I think. Check this link out: http://lucene.apache.org/solr/api/org/apache/solr/schema/DateField.html The above link is the way I need the date. I am using PHP now, so this n...

Invoke Parent control's event on Child's

I have a scenario where I have a container control (basically a ASP.Net user control) and it has couple of child controls. I want the control to collectively determine lost focus event. For example I want the parent control to tell me it has focus only when any of the child control receives the focus and it should tell me that it lost th...

Jquery if statements, selectors

HI all, I am just starting to use jquery, I need to do something that I am not sure is possible. I know to use if statements on jquery is like normal javascript but I dont know how to use the jquery selectors on a normal if statement. The function its currently working, but I am having two problems which I don't know how to fix, (I wou...

Square bullet bug in DNN / FCKEditor.

i am facing a bug which comes in DNN / FCKEditor after creating a default list. Actually i put my own bullet in custom .. but the default square bullet also comes with this... Please tell me how to remove this bug. i try all CSS logics here. ...

html text box form that will not allow input

Is there any class in an html form that does not allow you to input or change the value in that text box. But you can see its content , for example the code below will allow you to see the content of the record in mysql database. But what I want is for it not to be edited. What would I add to the code below so that its content will not b...

Problem updating html check box in mysql database

Here's my code, I don't know why the checkbox isnt updated when I try to update the mysql database. Only the input box are being updated. <tr> <td><font size="3"></td> <td></td> <input type='hidden' name="stats6" value="0"> <td><input name="stats6" type="checkbox" id="dep" value="<?php echo $row["STAT6"]; ?>" <?php echo $row["STAT6"]...

What is HTML code that causes captions/comments pop up when mouse is rolled over a hyperlink?

What is that peice of the HTML code that allows me to provide comments to links before the user is actually clicking on them? Do you know what I mean? I mean, on my web page I have some hyperlinks, and I want to know some information about it - what I will be taken to if I click on this link - so I just roll over my mouse on that link a...

Weird Javascript Bug (jQuery) in simple Testpage

Hello, I'm in the process of writing a Mediawiki extension. I'm actually at a very very early stage ;). You can find the code here (okay, i can only submit one link, so imagine a github url) /eugenkiss/discussion-extension I've got a weird jQuery problem that I just can't resolve even by utilising firebug and trying to debug my code. I...

SSL Login in iFrame

My UI prototype requires me to show the sites login info all the time. Either I should show the usual username and password textbox or "you are logged in as". The last bit don't have to be secure, as it's only info to the user, nothing I will use server side. But the first part should send secure to the server. It seems that I would hav...

javascript html img

hi, im having an img tag in my html when click on image javascript function alerts the image src path.. <image src="angel_wall.jpg" onclick="do_some();return false;" /> ...