Welcome Guest, Not a member yet? Register   Sign In
CI and cufon problem..
#1

[eluser]Bart v B[/eluser]
Hi all.

I have a problem with cufon.
Cufon is a javascript based font replace thing.

When i use it in just plain html it's working perfectly.
But when i want to use it with CodeIgniter, then i have a problem.

The situation:

In my view i placed the same html dode like the plain html.
When i call it from a controller, it seems to that cufon is not loading or not finessed loading when the page is loaded..

In firebug i got 2 errors
cufon is not defined
[Break on this error] [removed] Cufon.now(); [removed]
And
ElementMaxHeight is not defined.

How can i change that? of maybe does anybody has a good hint why javascript is not correct working in Codeigniter?


from my controller:
Code:
<?php
$this->load->view(welcome);

my part of the view welcome.php:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="<?php echo base_url();?>css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>css/layout.css" rel="stylesheet" type="text/css" />
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
<!--[if lt IE 7]>
  <link href="<?php echo base_url();?>css/ie.css" rel="stylesheet" type="text/css" />
<![endif]--&gt;
&lt;/head&gt;
&lt;body id="page1"&gt;
// more here html tags here ofcourse
[removed] Cufon.now(); [removed]
&lt;/body&gt;
&lt;/html&gt;

WHOEPS... can't use script type here..??
Ok i wil make a link one moment..

Uploading.. Done.. Wink

here is the problem to see:

cavia.bart-webdesign.nl

Thnx.
#2

[eluser]harbooz[/eluser]
Hey!

You seem to have found a solution. I'm having the same issue, how did you make it work?

Thanks,
H




Theme © iAndrew 2016 - Forum software by © MyBB