i have the form, and i want to upload two files.
here is the script
<form action="form.php" method="post" enctype="multipart/form-data" />
<input type="file" name="video" />
<input type="file" name="picture" >
<input type="submit" class="input" value="Հիշել" />
<input type="hidden" name="MAX_FILE_SIZE" value="100000000" />
</form>
f...
Hey guys,
I'm trying to figure out the logic for creating tasks that have dependencies. In short I'm building a dynamic task management system and each tasks has several options one of them is to have the task start after a predecessor.
Users can add/remove/re-order (by drag&drop) tasks so I'm wondering how can I make the predecessors ...
I have the problem where i have a WPF RichTextBox, and i'm extracting its XAML code and saving it to a txt file. When i copy paste the XAML code generated to a XAMLtoHTML converter like this http://blogs.msdn.com/wpfsdk/archive/2006/05/25/606317.aspx , some error must be occuring as i'm always getting a blank result!
If i write test in ...
I have a client who requested piano keys as links and he wants them to sound when the mouse hovers over the keys. How can this be done without using flash?
...
I am creating a private message system to allow users to communicate between one another within the context of the website (ie, not emails).
I have created this function to handle all my form submissions. I would like to achieve a solution without modifying this function (ideally).
$("form.reload").submit(function(){
alert($(this)...
I have two input fields, and without changing their names (i.e., I have to use the name with the brackets), how do I make this javascript code work?
<script>
function calc_concreteprice(mainform) {
var oprice;
var ototal;
oprice = (eval(mainform.['concrete[concrete][sqft]'].value) * eval(mainform.['concrete...
So I'm trying to create a forum with avatars, but right now the text is going below the avatars and not beside them. How can I fix this?
Here is the CSS:
.postbox{
text-align: left;
margin: auto;
background-color: #dbfef8;
border: 1px solid #82FFCD;
width: 100%;
margin-top: 10px;
}
.postfooter{
width: 10...
I want to use an html parser that does the following in a nice, elegant way
Extract text (this is most important)
Extract links, meta keywords
Reconstruct original doc (optional but nice feature to have)
From my investigation so far jericho seems to fit. Any other open source libraries you guys would recommend?
...
Hi, I´m using a css media=print file in a Page that is using a MasterPage.
I put some pagebreaks like this in certain parts of the html code:
<h1 style="page-break-before: always; height: 0px; line-height: 0px;">
This works perfectly in the first page, meaning that the styles are applied correctly, but after the pagebreaks, the css is...
I have an internal web application, that is IE specific, and uses a lot of IE specific modal boxes: (window.showModalDialog).
I recently received a request to remove the "flash" when navigating between pages of the site. To accomplish this, I just added a meta transition tag to my master page:
<meta http-equiv="Page-Enter" content="ble...
How do I remove everything beginning in '<' and ending in '>' from a string in C#. I know it can be done with regex but I'm not very good with it.
...
I have a table. Some cells span multiple columns. Some cells span multiple rows and columns. But one row (which spans all columns but the rightmost one) creates an artifact. Part of the text in the cell is erroneously repeated left justified on a new row just below the table. I'm baffled.
I tried rendering with and without "table-layout...
Hello all.
I'm trying to figure out how to go about writing a website monitoring script (cron job in the end) to open up a given URL, check to see if a tag exists, and if the tag does not exist, or doesn't contain the expected data, then to write some to a log file, or to send an e-mail.
The tag would be something like or something re...
Hi,
i've got this:
<script type="text/javascript" src="http://xy.com/something.js"></script>
in my php/html file. It includes the whole something.js file.
In this file, there are lines like with "document.write..." that are writing some text on my page.
Is it possible to replace a string that is included from this js file in...
I'm not sure how to make a few parts of my form to populate from data from an array I'm passing from the database.
First is this <select> object. The key estimate_lead_id in the database holds the value, and I want the dropdown to auto-select based on the value from the database.
<select name="estimate_lead_id">
<? foreach($leads->...
Chrome supports the placeholder attribute on input[type=text] elements (others probably do too).
But the following CSS doesn't do diddly squat to the placeholder's value:
<style>
input[placeholder], [placeholder], *[placeholder]
{
color:red !important;
}
</style>
<input type="text" placeholder="Value" />
"Value" w...
What way is the best way to let users upload large files from there webbrowser to a server. I'm talking 200MB+ possible up to a few gigatyes. I have been thinking of a few possible solutions to the problem (not tried them yet) and this is basically the things I came up with. Server download speed will not be a problem but the users conne...
My <style> for thumbnails currently looks like this:
<style type="text/css">
img.TN {
width: 100%;
margin-bottom: 5.294%;
cursor: pointer; }
</style>
This is annoying, because I have to apply this style to every single thumbnail image individually, when there could be any number of them on the screen at a...
so I have this HTML table with a bunch of big numbers in it that I want to open in Excel 2007... you can follow along at home:
<table>
<tr>
<td>this is a big number</td>
</tr><tr>
<td>1111111</td>
</tr><tr>
<td>2335322864</td>
</tr><tr>
<td>23353228641</td>
</tr><tr>
<td>233532286418</td>
</tr><tr>
<td>2335322864...
So, I have a regex that searches for HTML tags and modifies them slightly. It's working great, but I need to do something special with the last closing HTML tag I find. Not sure of the best way to do this. I'm thinking some sort of reverse reg ex, but haven't found a way to do that. Here's my code so far:
$html = '<div id="test"><p styl...