How do I use NSXMLDetector to find RSS links in HTML files, the tags in the source are like so :
<link rel="alternate" type="application/rss+xml" title="CNN - Top Stories [RSS]" href="http://rss.cnn.com/rss/cnn_topstories.rss">
<link rel="alternate" type="application/rss+xml" title="CNN - Recent Stories [RSS]" href="http://rss.cnn.c...
So a form is submitted on my site, with form action equal to itself.
I want the user to be able to refresh the page without sending the same variables again.
I thought unset($_POST); would accomplish this for some reason it doesn't is there another way to accomplish this?
...
A common issue when building Content Management Systems for end-users using WYSIWYG Editors like CKEditor is that users can upload images within the editor, embed them, and then resize them.
After saving the content, the embedded (original) image URLs need to be replaced by their properly resized counterparts. Imagine a 3000 x 3000 phot...
I have multiple pages being pulled together into a single page. Some of these individual pages have their own html, head, and body elements. Is it detrimental to the performance of the page to have these? It seems that the DOM is correct (only has a single of each element) in FireBug.
...
I can't quite wrap my head around this one...
A table like the one below is spit out by a renderer from some XML. The XML it comes from has a variable depth. (Please point out if I'm using the rowspans in a horrific manner as well, I just came to this table with some experimentation).
<table border="1">
<tr>
<td rowspan="12...
I want to make an HTML form with 2 select boxes. The selected option in the first select box should drive the options in the second select box. I would like to solve this dynamically on the client (using javascript or jQuery) rather than having to submit data to the server.
For example, let's say I have the following Menu Categories a...
Using the “Venkman” JavaScript debugger for Mozilla and getting the following error:
XML Parsing Error: not well-formed
Location: x-jsd:source?location=http%3A%2F%2F192.168.1.150%2Fscript.js&instance=337
Line Number 557, Column 50:<line><margin x='t'> - </margin><num> 554</num> �� valid = false;</line>
Functions works b...
Here is my website: http://dagwaging.110mb.com/
View it in any good browser, then in IE6. It dies in IE6. It seems that in IE6, one can't do this:
div {
position: absolute;
left: 0px;
right: 0px;
}
or this:
div {
position: absolute;
top: 0px;
bottom: 0px;
}
Absolute positions cannot be set for left and right or top and bottom at th...
I want a nested table to expand to the height of the enclosing cell. This works as expected in Firefox/Chrome/Safari, but not in IE7 or IE8. Please see the example here:
http://www.bitmechanic.com/heightDemo.html
The DOCTYPE is relevant. While the demo above validates as HTML 4.01 Strict, it does not render properly in IE7. If I re...
I created a page that has a JQuery based dialog using the standard JQuery UI function. I do this with out of the box functionality of JQuery... nothing special at all. Here is my HTML for the dialog:
<div id = "myDialog">
<!-- ... more html in here for the dialog -->
</div>
Then the JQuery called in javascript that transforms the ...
I'm searching for a "suck less" WYSIWYG in-browser X?HTML editor that generates good HTML code.
(no <font>, <foo style="...">, <p></p><span></span><p><span> </span><span><span>blah</span></<span></p> and so on -- <b> and <i> etc is ok).
Should be easy-to-use as it is going to be used by people that do not know what HTML is.
Any s...
For example, if I had
<a href="http://www.example.com">My friend Bill</a>
or
<a href="http://www.example.com" rel="friend">My friend Bill</a>
Will Google for example give extra weight to the second because I specified they are a friend?
...
When the "Select All" check box is used, it also sends that check box and it's value to the server. How do I remove or omit it from the node list before sending it to the server using jQuery?
Thank You.
...
Hi folks,
I need to redirect a user to an external site though a POST request.
The only option I figured out is to do it submit a form through JavaScript.
Any ideas?
...
...
<script type="text/javascript">
function printvalues() {
document.write("This is my first JavaScript!");
document.write(form.inputobj1.value);
document.write(form.inputobj2.value);
}
</script>
<form name="form">
<input name="inputobj1" value="123" />
<input name="inputobj2" value="abc"/>
<input type="button" onclick =" pr...
How can I prevent double encoding of html entities, or fix them programmatically?
I am using the encode() function from the HTML::Entities perl module to encode HTML entities in user input. The problem here is that we also allow users to input HTML entities directly and these entities end up being double encoded.
For example, a user ma...
I was looking at this question: http://stackoverflow.com/questions/117641/how-to-remove-duplicate-elements-from-an-xml-file
It has <ns0: for ? I have never seen it before.
...
Hello,
How can I give the input field below the characteristics listed below?
Characteristics:
-Text typed into the field starts in the upper left corner and starts on another line (wraps?) when the right border of the field is reached.
-A scroll bar appears if the text is more than what can fit into the field.
-The text is in Cour...
hi all.
i'm writing a component that is to be used across multiple websites.
each website has it's own stylesheets and displays certain things differently.
all of my html is wrapped within a div with an id:
<div id="myComponent">...</div>
my component however is to look consistent across all of the sites.
this is fine as i apply s...
I want to send emails using code like this:
HtmlEmail email = new HtmlEmail();
I added a Base64-encoded image to the email. The email was sent successfully but gmail adds <wbr> tag in the encoded image.
...