Slashdot is powered by your submissions, so send in your scoop


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×
User Journal

Journal Journal: Seeing Ads Again

I have been developing a new social blogging site for the past three months. I am now at the point of focusing on advertising. I started with Google Ads, but that only earns an average of 30 to 40 cents per click and most people just ignore it.

After extensively researching alternatives, I enrolled in Commission Junction and Linksynergy. I have not yet determined the final form of how I will incorporate them into my site. For now, I have them in a sponsors page which I doubt anyone will even look at.

Constructing this page required unblocking many domains that I had previously blocked to prevent seeing ads. In becoming "one of them" I have also forced myself to see advertising. I could block them again after I finish development, but I prefer to be able to monitor my site to see that everything is working.

Journal Journal: Appending Text To DIVs 1

This is actually about Javascript, but I see that Slashdot does not have a category for that.

I'm designing an AJAX chat system for my site and everything seemed fine until I decided to test embedding of a video. The problem is that the video resets every time a new line of text is added to the chat. I have been using the following method to insert new text into the DIV that holds the chat text:


The += technique seems to cause a rewrite of the contents of the DIV instead of merely appending at the end. I have only tested in Firefox 3.0.9 and don't know if it works in other browsers, but it doesn't really matter. If it doesn't work in this browser, then I can't use it.

An alternative method for appending text is to create a text node and to append it. The problem with that is text nodes don't allow HTML. Everything in the text node is displayed as plain text with the HTML code visible. I can append elements to get the formatting that I want for the user name and time, but the situation gets complicated if I want to allow users to insert their own HTML within the chat. The only solution I see to make this technique work is to do some complicated lexical analysis which seems like too much work just to let people watch videos inside of chat.

Slashdot Top Deals

Elliptic paraboloids for sale.