html

How to make a linkbutton onclick with parameters

HTML : <asp:LinkButton ID="lnk_productImage" runat="server" Text="select" OnClick="viewProductImage('<%#DataBinder.Eval(Container.DataItem,"Id") %>')" > </asp:LinkButton> CodeBehind: protected void viewProductImage(object sender, EventArgs e, int id) { //Load Product Image } ...

Online Flash Mp3 Player Music Button

So I have a website that queries a database with information about music, with id3 information and file location information. I would like to use THIS to add a little playable mp3 player beside each of the search results, but I can't figure out how to do this without generating the xspf file, which would mean I would need an xspf file f...

<DIV> overlaying other Elements

I have a treeview which when visible takes too much space on the web page. Hence the user is asked to click a button to make this visible :) But the issue here is that when that treeview ( located within a element ) is made visible it MOVES the other elements down but i would prefer if it OVERLAYS ( something like what happens when we c...

Create a webpage with Multilanguage in PHP

Hi friends I would like to develop a multilanguage page in PHP, for exemple english/german/japanese.. so when i click on german the page language will change to german, then i click english it change into english. Please guide me to do this . Thanks in advance.... ...

why doesn't the xhtml validate

I don't understand why this form will not validate. It claims that I have not closed an input tag and that I have a closing input tag that is not open. The page in question is http://squareownz.org/dunkyp/index.py http://validator.w3.org/check?uri=http%3A%2F%2Fsquareownz.org%2Fdunkyp%2Findex.py This page however doesn't agree that th...

HTML e-mail viewer in wxPython

Hi all, I have a wxPython application that sends multipart emails with HTML and embedded images. As part of the sending process every email gets stored away as-is (RFC822 format) for future reference.. My question is: what would you recommend to show these emails from the application itself? (Xubuntu 8.10) ...

How can I replace the text in the button for an upload-input-field in html?

In HTML you can define in a form an input-field for uploading files. This input-field has a button attached, that pops up a file-chooser-dialog. How can I set the text for this button? ...

HTML template for ASP controls

I am writing an application that requires that my customer can layout their input forms in which ever way they choose. I would like to use an HTML template with placeholders, and then replace these with secified .NET controls at runtime: <table style="width: 100%;"> <tr> <td colspan="2"> <fieldset title="Customers Template...

Replacing HTML attributes using a regex in PHP

OK,I know that I should use a DOM parser, but this is to stub out some code that's a proof of concept for a later feature, so I want to quickly get some functionality on a limited set of test code. I'm trying to strip the width and height attributes of chunks HTML, in other words, replace width="number" height="number" with a blank s...

How can I ensure my GIFs keep animating even after document.location="" has been run

Take the following HTML: <img src="/any-animated-gif.gf" alt="" /> <br /><br /> <a href="#" onclick="document.location='/anything-that-takes-a-few-seconds-to-load.html';return false;">Click Here</a> When I click the link the icon stops. ...

IE6/7 And ClassName (JS/HTML)

Hi, I am trying to change the class of an element using javascript. So far I'm doing : var link = document.getElementById("play_link"); link.className = "play_button"; edit: here is the actual code that replace the classname In the HTML : <a href="#play_link_<%=i%>" id="play_link_<%=i%>"onclick="changeCurrentTo(<%=i%>);return fals...

Dropdown menu "blinking" in IE6

Hi, I am trying to create a dropdown menu based on Stu Nicholls' : http://www.cssplay.co.uk/menus/pro_drop8.html Mine needs to go over Select dropdowns and be IE6/7 compliant, so that's why I'm using all this iFrame nonsense. Changing z-index will not fix it because IE set an infinite zindex value to select dropdowns. So my problem is...

Best way to embed an IRC client in a webpage

I'm looking for a good, free, preferrably open source, IRC client to be embedded in a web page. The obvious requirements of supporting most browsers, if requiering a plug-in it should be a plug-in that is allready widley deployed and it should not put too much strain on the webserver serving the page. ...

Non-(X)HTML Attributes... any disadvantages?

I've generally tried to stick with DOM-only attributes when writing Javascript. Now that I've switched from Prototype to jQuery, I can get some serious mileage out of adding my own attributes to various DOM elements, mostly in the realm of being able to set up a very readable coding convention for handling AJAX requests. As a short exa...

Can I stop the form action from redirecting the user to another page?

I have this form: <form name="input" action="http://s164074194.onlinehome.us/mail.py" method="POST"> Username: <input type="text" name="email" /> <input type="submit" value="Submit" /> </form> On submission, the mail.py script is called and the user is redirected to its output... I'd like the user to just stay on the same page as the...

Is it possible to specify a starting number for an ordered list with css?

Hello, I have a ordered list where I would like the initial number to be 6. I found that this was supported (now deprecated) in HTML 4.01. In this specification they say that you can specify the starting integer by using css. (instead of the start attribute) How would you specify the starting number with css? Thanks ...

Get contents from radio button array in email

Hi, I have a sendemail.php set up for sending me information from a form. The way I have it set to send the information is with $_POST['variable name'] I cant figure out how to show the choice of a radio button array in the email that is sent to me. Thanks for any help. ...

Using Gecko/Firefox or Webkit got HTML parsing in python

I am using BeautifulSoup and urllib2 for downloading HTML pages and parsing them. Problem is with mis formed HTML pages. Though BeautifulSoup is good at handling mis formed HTML still its not as good as Firefox. Considering that Firefox or Webkit are more updated and resilient at handling HTML I think its ideal to use them to construct ...

Can I store custom attributes in HTML DOM like a database record?

When developing for browsers FF3 and IE6/7 with jQuery, are there any compatibility issues when setting custom attributes on HTML tags? First, I'm aware of jQuery's data() function and it essentially does what I want, but the data doesn't survive a clone() function. This is an issue when using the jQuery UI draggable/droppable plugins ...

Is it necessary to "escape" character "<" and ">" for javascript string?

Sometimes, server side will generate strings to be embedded in inline JavaScript code. For example, if "UserName" should be generated by ASP.NET. Then it looks like. <script> var username = "<%UserName%>"; </script> This is not safe, because a user can have his/her name to be </script><script>alert('bug')</script></script> It is...