How should I mark input fields as invalid (i.e. color, background-color, border, etc.)
Currently, changing borders requires restyling of the whole input field, otherwise the border will change from the default browser styling (which is different for every browser).
Similar, changing the background-color messes up the border of input fi...
Question: Is this an appropriate way to parse HTML into a plist?
I need to pull information from the following html. The HTML is in this style consistently. The first block of HTML is a section header and the second part is the sections content. The sections can have any number of contents.
This is the HTML.
<td class="boxcontainer">
...
I came to see that form file input field value cannot be set with javascript for security reasons.
I just want to copy a FILE input to another form and post it, I searched for a work around and could not find anything, is it possible?
UPDATE: my code:
function prepareUpload( filevalue ){
document.getElementById('logo').value =fileval...
Hi,
I have this web application which does the following as standard to all websites
Users browse to any page on the website
They click on login link on header from any page
Visit login page and then login and get directed to their logged in page
IF user then hits back button they get to login page and that redirects to home (because...
I am looking at being able to extract all plain text and analyse/amend from HTML/XHTML document and then replace if needed. Can I do this using HTML::Parser or should it be XML::Parser?
Are there any good demonstrations that anyone knows of?
...
I have started with the project where I am suppose to use client side scripting @ extreme.
this is the scenario :
There are two drop-down lists in my form on my web-page ..one is COUNTRY and other is STATE.
The drop-down list STATE must be disabled untill One of the values in Country is selected and According to the value selected in dr...
There is a div element I have complete control over, including its contents, associated JS event handlers and style options. This div will be inserted into some web page template I don't know anything about, i.e. it may be inserted into a table cell, or into complex div-based markup, etc. I need to be able to build this div in such a way...
All,
I have the following code ,
<div id="show" display="none"></div>
var ele=document.getElementById('show');
ele.style.display='block';
ele.style.padding='1px';
ele.style.borderLeft='solid 1px #d0d0d0';
ele.style.borderBottom='solid 1px #a0a0a0';
ele.style.position='absolute';
ele.style.borderTop='sol...
Hi
I am trying to create a "smart" web browser to load local images. Basically it works as a GUI for an application. I am using QTWebKit to power the browser, the problem is that the images of a given page can be found in different places, some are local files, others are in different resource files.
For example:
an HTML node to load i...
I have old HTML code with html and css..
<form action="login" method="post">
<div class="field">
<label for="username">Username</label>
<input type="text" class="text" id="username" name="username" value="just click login !"/>
</div>
<span class="fright">
<button class="button" type="submit"><strong>Log In</strong></button>
</spa...
On Internet Explorer, a contentEditable DIV creates a new paragraph (<p></p>) each time you press Enter whereas Firefox creates a <br/> tag.
As discussed here, it is possible to use JavaScript to intercept the Enter keyPress and use range.pasteHTML to create a <br/> instead. But doing this breaks the Undo menu; once you hit Enter, you...
Hello,
Maybe topic really doesn't explain my problem correctly. I'll try to explain more precise it here.
So I'am having a <textarea> and <p> aragraph tags. If I'am entering some text in textarea, and then after button click I insert textarea value into paragraph html. If its text everything is fine, but if it's a hand written html code...
I am trying to create a new html component using javascript and CSS.
The new component is exactly like TextField (<input type="text">).
The additional behaviour is each character in the TextField is separated in a box.
Is there any existing component available ? If not please give some ideas how to design this component.
...
I have a select element in the form with different options. On property of the 'select' is onchange="testRecurrence(this.form)" and the js function it's just:
function testRecurrence(form) {
if(form.repeat.value != "N") {
form.endR.style.display = 'inline';
}
return true;
}
Being 'repeat' the select and 'endR' the...
according to the book that I am reading, it is better to change a css, by class when you are using javascript for changing css. but how? can someone give a sample snippet for this ? thanks in advance
...
How to call javascript onmouseout event in javascript code?
I.e.:
var div=document.getElementById('new');
if(div.mouseout)
document.getElementById('new').style.visibility='hidden';
Thanks.
...
Hello,
I am trying to create a validate-email javascript and get it working with forms and PHP. Of coures, some problems...
As you can see in my form, I did define "post" as the method. But I can only retreive the data as if it was a get method. It was working before I started to add the e-mail verification script and adopt the code t...
when I have a value like this in the database ("foo")
how can I echo it without any conflict with html code
notice
<input type="text" value="<? echo '"foo"'; ?>" />
the result will be like this
<input type="text" value=""foo"" />
how can I fix it ?
...
I am trying to load options to drop-down list depending on the selection made on other drop-down list. I have written a code which works on almost all major browsers, FF, Opera, Safari but doesn't work in IE7.
Here is my Javascript code:
<script type = "text/javascript">
var txt1 = "<option>state1<\/option><option>state2<\/option><opti...
I'm working on a browser-like application which gets HTML from a site (any website) then applies a style-script over it to change certain elements (just like greasemonkey).
My initial plan is to parse the HTML using XPath and XmlDocument, but is there a better way?
Thanks in advance!
Ps> Handy tips, tricks & links on HTML+C# would be...