Consider the following piece of code :
<select>
<option value="0">foo</option>
<option value="1" selected="selected">bar</option>
</select>
If I select the first option and reload the page, the first option stays selected and the select does not switch to the second option. How can I force firefox to give priority to the html?...
Hi,
Having an .html file is it possible to force the browser to treat the contents as XHTML? I mean the file opened from both local or web location. Maybe some on-the-fly convertion or something like that?
The background:
Firefox and Opera supports natively MathML when the code is embedded in a XHTML file. I need to get a .html file w...
I have a classifieds website.
In the main page (index) I have several form fields which the user may or may not fill in, in order to specify a detailed search of classifieds.
Ex:
Category: Cars
Price from: 3000
Price to: 10000
Color: Red
Area: California
The forms' action is set to a php page:
<form action='quer...
sorry for the vague subject, the issue is such:
I create an event with invitees in google calendar; on the receiving side an email arrives as multipart, which, in its text/html block, has the following text (quoted-prinatble encoded)
Wed Jun 9 1pm =96 2p=
m
I googled for the =96 and can't find anything. (the charset or this bloc...
I have a very very long querystring which ALWAYS starts like this:
mydomain.com/bincgi/sql_query.php?alot alot alot of variables passed along
What is the regular expression to make a rewriteRule if I want to pass along all the variables but via this link:
mydomain.com/search/all variables here instead.....
So the last one is wh...
Obviously, there must be something stupid i'm doing. The unicode chart for subscripts and superscripts says #00B2 is superscript 2, but i get scrambled output. 0078 is x, but I get N, and 0120 is x. Am i reading wrong manual?
EDIT
$x = 'N';
print html_entity_decode($x, ENT_NOQUOTES, 'UTF-8') . "\n";
...
Hello,
When i create a menu, the dropdowns go behind the flash element. But in some sites, like Digg, it is shown above. z-index is of no use !
How to do this?
...
Hi
i was just wondering whats the best way to retrieve the current values from this HTMl code using jquery and storing them in to a array?
<table id="metric_summary">
<tbody>
<tr class="editable_metrics">
<td><label>DataSet:</label></td>
<td><input name="DataSet" value="prod"></td>
</tr>
<tr class="ed...
I want the east and west divs to extend down to match the height of the center div... possible?
Thanks so much.
.con{
padding-left: 22px;
padding-right: 22px;
overflow: hidden;
}
.col{
position: relative;
float: left;
}
.west{
width: 7px;
right: 22px;
margin-left: -100%;
background: url(http://www.example.com/west.png) repeat-y;
pad...
I have a php page which contains a form.
Sometimes this page is submitted to itself (like when pics are uploaded).
I wouldn't want users to have to fill in every field again and again, so I use this as a value of a text-input inside the form:
value="<?php echo htmlentities(@$_POST['annonsera_headline'],ENT_COMPAT,'UTF-8');?>">
This ...
I am attempting to conditionally enable or disable HTML input based on the value of a variable. The "disable" part is working well, but the "enable" isn't, and I can't figure out why.
The code:
<--if variable is true...-->
<div id="disabledSearch" class="searchBox disabled">
<script type="text/javascript">
$('#disabledSear...
I have a table, with many tds. I want to display a div behind this to give the appearance of it having rounded corners. I have called the Div within a th. Here is a jsFiddle example of the problem.
I thought I could do it using position: realtive; and z-index: -100; yet it doesn't seem to be what I want.
Thanks to anyone for any help....
I remember reading an article about a shorthand version, or extension, of HTML a few months ago. Its purpose was to make HTML code significantly more concise, by removing end tags, and it may have allowed loops of some sort as well. I want to use it now, but I can't seem to remember what it was called.
Searching online, I found HAML, b...
Hi,
I'm attempting to creat a HTML button using JavaScript (seemingly simple), yet for some reason the object isn't being placed on the page.
Do I need to append it to the DOM or somehow create an instance of it?
Here is my code:
function loadNavigation() {
var backButton;
backButton = document.createElement('input');
backButton.ID =...
I give out an embed html code so others can post parts of my website as an iframe. I want to be able to track who has my embed code posted. Is there a way to do this?
...
I have a multi-line text box. When users simply type away, the text box wraps the text, and it's saved as a single line. It's also possible that users may enter line breaks, for example when entering a "bulleted" lists like:
Here are some suggestions:
- fix this
- remove that
- and another thing
Now, the problem occurs when I try...
I have a "description textarea" inside a form where user may enter a description for an item.
This is validated with javascript before the form beeing submitted.
One of the validation-steps is this:
else if (!fld.value.match(desExp)){
And desExp:
var desExp = /^\s*(\w[^\w]*){3}.*$/gm;
Now my problem, this works fine on all cas...
I am currently programming a Visual C# service to receive emails from various sources then I take certain info and organize it in a database using Regex to retrieve the deferent cell values (such as header, body, problem, cost, etc.etc.).
My problem is that I am currently using a Hotmail account to email the service which the service th...
I have a classifieds website.
In every classified, there is a back link which simply takes the browser back one step.
This is because when users search classifieds, and click on one to view it, they can easily go back with a link also (instead of only the browser back button).
Here is the problem, if the classified is entered directly i...
Say I have a form that looks like this:
[ Animal name input field ] Add button
If I type a name and hit enter, an animal with the given name is added to a table. Works fine. What I would like now is to call the current way of working "quick add" and add a new feature called "slow add", which I am not quite sure how to do. Basically...