Wednesday, May 12, 2010

jQuery to load content within the div

Here was my challenge. I needed all my links and form submissions to deliver their responses within a div called pageContainer. For the form submissions I needed to use jquery.form. I therefore had this in my page header.
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1");
google.load("jqueryui", "1");
</script>
<script type="text/javascript" src="">jquery.form.js"></script>
<script type="text/javascript" src="">jQueryFunctions.js"></script>

I wrote 2 functions in my little jQueryFunctions.js library file thus:

$(document).ready(function()
{
$("a").click(function()
{
$("#pageContainer").load($(this).attr("href"));
return false;
});
$("form").submit(function()
{
var options = { target: '#pageContainer' };
$(this).ajaxSubmit(options);
return false;
});
});

Now, before you think this is the solution I also need to point out one small thing. When you load a page into the pageContainer div, it too needs to have all that JavaScript header stuff. Otherwise it won't work.

Thursday, January 28, 2010

Joomdle

Today I completed the successful installation of Joomdle on my test environment.

Essentially :

  • You create use users in Joomla.

  • Display provide a user interface within Joomla, but also an SSO link to Moodle.

  • Once the user has moved through to Moodle, they are enrolled through the SSO link to the course.

  • Now, with the enrollment having taken place, course information and services are provided through the Joomla UI.



It did take a bit of tweaking though, there was a fault in a little of the PHP code and I had to supress certain messages but, other than that, pretty straight forward.

Tuesday, January 26, 2010

Looking forward to The Boxee Box by D-Link

This is what I want. Oh, but I have to wait. When I pre-ordered the EeePC 701 it seemed to take forever to arrive.

I first heard about the said box on Shot of Jaq and it will certainly be a talking point in the house. Just have to persuade the wife now.

Followers