22 Mar 2010

CSS3 jQuery Rich Text Editor

Over the last 3 weeks, myself and Mike Buttery (http://www.mikebuttery.info/) have been working on our own simple jQuery Rich Text Editor Plugin, to allow us to provide our client with a rich text editor that supports embedded fonts using the @font-face rule in Internet Explorer 7/8, Mozilla Firefox, Google Chrome and Safari. This has proven difficult for a number of reasons and has caused many tempered debates between Mike and myself, however, we do have a working version that we will be beginning to use in our various projects. Anyway we want to share it and make it available for people to use and modify. If you make it better then please let us know as we are also continuing work on it when time allows. Next on our wish list is text shadow and opacity. We have used mlColorPicker (http://www.mlambir.com.ar/project/show/mlcolorpicker) as our color selector. It is a brilliant light-weight color picker provided as a jQuery plugin and is required as css3-jrte depends on it. If you wish to use your own color picker, please do modify our source. Download | Demo | Launchpad
18 Sep 2009

Loading content from another domain using jQuery's load function

I was never aware before that you can not load content from external domains using jQuery's load function. I wanted to be able to load in a HTML stock ticker I had created into any website that I needed to display it on but could not. Here is the solution I came up with: I created a file "loadticker.php" and inside it put:
echo file_get_contents("http://www.myscript.com/path/to/file.php");
I put this file on the domain of every website I wanted to load the content to and set each page where I wanted to display the content to load the local file, "loadticker.php". More of a workaround than a solution. On the pages where I was already using PHP and I was loading in the ticker I skipped loading the file and just simply added:
echo file_get_contents("http://www.myscript.com/path/to/file.php");
Where I wanted to display the ticker.

Rick Vause's Space

Hi, I’m Rick Vause. I am a web developer that loves Python.

I have always been interested in technology and software. I am a keen supporter of a number of open source projects.

I am obsessed with my ideas and attempts to continuously better myself in both my work and leisure time. I am always learning and trying to improve as long as there is space left in my head. I often find interesting, new things (interesting and new to me, at least) that I share on my blog.

I also like music and art.

I once spent 2 months working on a self-portrait that turned out terrible so for the avatar portrait I turned to my better half, Klaudia.

If you have any questions, comments or wish to talk to me about a project you are working on, please contact me.

I also try to be social so you can find me on Twitter, Facebook and Last.fm.

Contributors

Rick Vause