So I'm trying to get rich text to work for the cheeserater program where I added a commenting system using the tinyMCE editor in the textarea. This is what it looks like:
<table><td align=left>
{% get_comment_list for package as comment_list %}
{% for comment in comment_list %}
{{ comment.comment|safe }}<br>
{% endfor %}
</table>
...
I would like to render websites to an image (JPEG, PNG, PDF, etc.) from a server environment. I have seen a few implementations that use Xvfb but would like to see if there are any decent implementations that would work standalone without X of any sort.
Google Fast Flip seems to do a pretty decent job. I have seen this on a smaller scal...
Hi,
Say a webpage loads an external javascript at load, is there any such FireFox plugin that I could use to modify the javascript before the page actually processes it?
(not just specifically javascript)
Thanks in advance.
(also I'm pretty sure Tamper Data plugin only changes header data and not actual content being received)
...
I have the following HTML code:
<div id="event_create">
<img src="WEB-INF/images/Classifieds/create_blurred_135x135.png"
name="createbutton"
onmouseover="buttondown('createbutton')"
onmouseout="buttonup('createbutton')"
onclick="buttonclick('createbutton')"
alt="Create Classified Image"
...
Why text-decoration: blink wont work in IE ?
What is the work around ?
Is there a non JS work around?
Do Microsoft have a plan to support this style?
...
Hi,
I'm playing with some javascript for iPhone using Titanium Mobile.
Being a newbie to JS, the challenge I'm at at the moment is pointing my app to a URL and converting/stripping the resultant full blown web page down to something that's iPhone friendly i.e. strip out page header images, other JS etc etc and just be left with the cont...
1 - I used to prevent the default action of an anchor tag upon click by doing the following...
$('a').click(function() { /*stuff*/ return false; });
But then I decided to condense code by declaring a function that I could call within the click method since I use the same block of code elsewhere. So now it looks like...
$('a').clic...
Given this jQuery:
$('div.MvcFieldWrapper :input').focus(function() {
$(this).closest('label.MvcDynamicFieldError').fadeOut();
});
And given this HTML:
<div class="MvcFieldWrapper">
<label class="MvcDynamicFieldPrompt">Enter your email address:</label>
<label class="MvcDynamicFieldError">Required</label>
<input type...
What's the best way to obtain three texts on the same line: one to the left, another in the middle, and the third one to the right?
+---------------------------------------------------------------------+
|Page generated in 1 ms Copyright 2010 Email me|
+------------------------------------------------------------...
inserting a .swf or flash files in visual basic asp.net
give me coding sample or procedure or a link to inserting a flash files in my web form in vb asp.net
...
Hey guys,
how do i write a function in javascript that can get the current url eg:
http://www.blahblah.com/apps/category.php?pg=1&catId=3021
and depending on a user selection choice, appends another parameter to the url like:
http://localhost/buyamonline/apps/category.php?pg=1&catId=3021&limit=5
but heres the catch:
Eve...
i read somewhere that ob_start() should be places top of the page. whereas
somewhere i read that session_start() should be placed on the top of the page.
somewhere i read header() should be placed on the top of the page.
somewhere i read include() or require() should be placed on the top of the page.
i m getting confused what shou...
I'm creating a "Q & A" website. On the questions page all of its answers could be seen (with pagination). I need to go straight down to answers (in the page) from other pages as well. I've tried implementing named anchors but unable to direct to page section.
Answer's get_absolute_url() returns url in the form:
www.example.com/question...
I have the following setup
"<form name=\"mylimit\" style=\"float:left\">
<select name=\"limiter\" onChange=\"limit()\">
<option selected=\"selected\"> </option>"; ...
I wrote a js script to access the selected value of the selectField 'limiter' like so:
var w = document.mylimit.limiter.selectedIn...
How can I make custom UI controls for the QuickTime Player in HTML pages? (like Apple does on its site)
...
So I discovered this weird bug, it's so odd and I can't understand why is it doing this. I am using Firefox 3.5.7. It's not happening in Internet Explorer 8 though. So if you visit this website: http://www.ninjasliveclancodes.com/ and look at top right where it says "World War" and pay attention to it because after you refresh a few time...
I have a html file with one <pre>...</pre> tag. What regex is necessary to match all content within the pre's?
QString pattern = "<pre>(.*)</pre>";
QRegExp rx(pattern);
rx.setCaseSensitivity(cs);
int pos = 0;
QStringList list;
while ((pos = rx.indexIn(clipBoardData, pos)) != -1) {
list << rx.cap(1);
pos += rx.matchedLength();
}
l...
First of all let's emphasize that syntax rules don't work alone, but they need the correct Content-type header to be fully interpreted by the clients. Currently web pages cannot be served with the correct XHTML header because Internet Explorer doesn't understand that.
The first advantage usually mentioned is that XHTML requires pages to...
I'm writing an engine for a website and I'm considering whether to add a field to let the author write a description of the page or not. If I decide to do this, it will be used as the meta description.
Google (and possibly other search engines) usually displays it in the search results, instead of the snippets. I'm wondering if that's a...
I'll try to explain:
I have numerous div classes, but for the sake of simplicity, let's say I only have 3.
Someone is viewing DIV 1, and I want to give them the option of only printing DIV 1, omitting 2 and 3.
However, on the same page, I would like to give them the option to ONLY PRINT DIV 2. Or only print DIV 3.
I think I get how y...