View Full Version : Help needed for Grid

15 Nov 2006, 8:10 PM
I tried to use the grid by using the .js and .css files. but it gave me an error in the status bar ('YAHOO' is undefined) . Can u explain what I did wrong?

my code (both css and js files are in same folder)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css"></style>

<link href="grid.css" rel="stylesheet" type="text/css" />

<div id="grid-example" style="width:534px;height:250px;overflow:hidden;position:relative;">
<script type="text/javascript" src="grid-example.js"></script>


16 Nov 2006, 4:05 AM
are you loading the yahoo yui libraries? yui-ext runs on top of those

16 Nov 2006, 6:54 AM
It doesn't look like you have even loaded yui-ext.js.

16 Nov 2006, 9:05 AM
Take a look at my grid example:


16 Nov 2006, 9:25 AM
That's great. Would you mind if I extracted your extracted code for use in the documentation center to save me from having to extract it myself? :)

16 Nov 2006, 9:44 AM
I posted in the other thread also, but not at all. It is your code after all.

The example is just without the blog code - because I spent quite a lot of time extracting !

Maybe as a process, next time you make the examples for the blog, make them on a separate page and then copy the code into a blog post.

Keep up the good work !

16 Nov 2006, 9:45 AM
All blog examples for the future will either a) be in an iframe or b) be on a separate page. I have learned my lesson. :)