Archive for June, 2008

Trillian Issues

Monday, June 30th, 2008

Well, for the past week, when I would try to load up Trillian and open my contact list, it would open off screen.  I knew this had to be something with a configuration file, because I had tried to uninstall it and then reinstall it.  So, I set off to find the needed file.

It turns out, it is not that difficult to find.  It is under your install location, Trillian > Users > Default > Buddy configuration file.  In that file, you will see a section that looks like this:

[Window Status]
Visible=true
LocationX=0
LocationY=0
Width=265

My ‘LocationX’ was set to -265.  I closed my open Trillian instance, opened that config file, set the value to 0, saved the config file and started Trillian back up.  And, the rest is history.

Nick

Rookie mistakes with cookies

Friday, June 20th, 2008

As if I did not know any better, I just spent the last hour trying to figure out why I could not access the cookies I was setting.

For all the rookies [and veterans], make sure the domain you are setting the cookie for is correct.

If your login page is on http://domain.com/login.php, then your cookies cannot be accessed from any page that starts with http://www.domain.com/page.php. They can only be accessed from http://domain.com/page.php.

Nick

AJAX and Forms

Friday, June 13th, 2008

Today, while working, I came across this error:

Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]” nsresult: “0×80040111 (NS_ERROR_NOT_AVAILABLE)” location: “JS frame :: {file}.js :: anonymous :: line 23″ data: no]
Source File: {file}.js
Line: 23

For sake of security [and just because] I replaced the actual file location with {file}.

Anyway, I am doing an AJAX request upon submission of the form, and [for whatever reason] was doing ‘return true;’ upon completion of the AJAX.

return true;

Well, when a browser is trying to handle a form submission, it doesn’t like this. So, I merely changed the ‘return true;’ to ‘return false;’ and voilà!

A quick thanks to Matt Thommes. Although his solution wasn’t my solution, he got me started thinking on the right track.

Nick


This is a free Wordpress template provided by Mathew Browne | Web Design | SEO