scriptingBlog.com - For those who work online
Do you have something interesting to share with others? If you do, click here to write a post or a press-release to the blog. All 100% free!

Object Expected Error in IE6, IE7 and IE8

May 16th, 2009

Now that was weird, at least for me.

I was getting “Object Expected” Error on all Internet Explorer versions, on a perfectly good jQuery script. At first I thought that is an extra comma (,)  something like that:

$(‘#dialog).dialog({
autoOpen: false,
width: 400,
height: 300,
closeOnEscape: true,
position: ['right','top'],
modal: true,
overlay: {
backgroundColor: ‘#fff’,
opacity: 0.8
},
});

But no, the code was ok and the error was for the firs line, firs character ( $(‘#dialog).dialog({ ).

After a few searches on google where i have found nothing to help me I’ve remembered that I had some problems some time ago with the script inclusion:

<script language=”javascript” type=”text/javascript” src=”jquery.js”></script>

Yes, it is a valid w3c markup, but the [type="text/javascript"] piece was the problem, so now I’m including the script like that:

<script language=”javascript” src=”jquery.js”></script>

It’s not a valid v3c markup but at least i did not get that error anymore, and i do not care very much about that because this script is for an online application not for a site.

I cannot explain this error, but if you have any idea about this problem you can share it leaving a comment to this post.

Sorry for my poor English :)

PHP File Manager V1.2

October 13th, 2008

RogioBiz PHP File Manager is a web based file manager that runs on Apache/IIS or any web server that supports php on any OS (windows/Linux etc).

There is no limitation on what types of digital file media you can use including, word and excel documents, images, audio, video, publishing layouts, presentations and PDF files…

RogioBiz PHP File Manager runs entirely on the web and is a user friendly alternative to FTP.

Access from anywhere.
You access your documents from any computer with an Internet connection and a standard browser. Read the rest of this entry »

Text to HTML conversion

October 13th, 2008

PHP function for plain text to HTML conversion. Read the rest of this entry »

Remove Letter Accents from Text

October 13th, 2008

This function will translates all accented characters, from a string, to their non-accented equivalents. Read the rest of this entry »

Validate Email Address

October 13th, 2008

This is a very simple function that can be used to validate eMail addresses. The function verifies whether a given eMail address matches a regular expression that eMail addresses should conform and validate the eMail address host. Read the rest of this entry »

Simple Ad Rotator

October 13th, 2008

This is a simple function that can be used to create ads that rotate according to a random order. Easy to setup and customize. Just define your ads and set the number of ads displayed at once on your page. No database is required. Read the rest of this entry »

Image Resize and Watermark

October 12th, 2008

With this script you can resize your image, ad a watermark or copyright to image and output the image in JPEG, GIF or PNG format. Read the rest of this entry »