I have this problem now also.
It all works in FF but not in IE. The login issue I had before was due to the cookie not saving with the local vhost domain I was using.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 13, 2008 3:25pm
Subscribe [27]#61 / Feb 19, 2008 5:00pm
I have this problem now also.
It all works in FF but not in IE. The login issue I had before was due to the cookie not saving with the local vhost domain I was using.
#62 / Feb 19, 2008 5:11pm
Shodan: I had that problem too, I fixed it by just disabling the multi-user stuff, since I don’t need it anyway.
#63 / Feb 19, 2008 5:34pm
this problem in your server options
#64 / Feb 19, 2008 5:40pm
Hey Guys, I’m sorry about the inactivity yesterday, I got busy in some offline stuff.
first off, vascopj glad you got it working.
MaRKTD,
1) (In reference to post #52) I don’t understand, does DIRECTORY_SEPARATOR not work with you?
2) (In reference to posts #54 and 55) Yeah DbDropDown needs to be refreshed..I haven’t updated it since two versions ago
Shodan, Just wondering, does the “editing just refreshes” problem only occur in IE?
I need to do some more testing in IE i guess.
*sighs…jTaby opens Parallels*
#65 / Feb 19, 2008 6:02pm
Shodan, Just wondering, does the “editing just refreshes” problem only occur in IE?
I need to do some more testing in IE i guess.
*sighs…jTaby opens Parallels*
Yes mate, it seems to only apply to IE6 & IE7. Welcome to IE hell lol
#66 / Feb 19, 2008 8:26pm
Guys, I am drawing blank on this IE issue (i recreated it..so there _is_ a problem), I just don’t know what it would be…I don’t understand how IE could have an issue with this…
#67 / Feb 19, 2008 8:46pm
Hi, I added some stuff to dbdropdown.php to make it work, if anyone is interested:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
include_once("dropdown.php");
class DbDropDown extends DropDown{
function DbDropDown($name,$params){
DropDown::DropDown($name,$params);
}
function prepForDisplay($value){
if($value !== "") {
$CI = &get;_instance();
$field = $this->params['field'];
$table = $this->params['table'];
$key = $this->params['key'];
if(!isset($CI->db)) $CI->load->database();
$result = $CI->db->query("SELECT $field FROM $table WHERE $key = $value");
$result = $result->result_array();
return $result[0][$field];
}
}
function getList(){
$CI = &get;_instance();
if(!isset($CI->db)) $CI->load->database();
$html = "";
$field = $this->params['field'];
$table = $this->params['table'];
$key = $this->params['key'];
$result = $CI->db->query("SELECT $field , $key FROM $table");
foreach($result->result_array() as $row){
if($row[$field] == $this->value)
$html .= "<option value=\"".$row[$key]."\" selected>".$row[$field]."</option>\n";
else
$html .= "<option value=\"".$row[$key]."\">".$row[$field]."</option>\n";
}
return $html;
}
}
?>#68 / Feb 19, 2008 8:49pm
Thanks for the contribution dleavitt, you might want to create an account at http://www.codeextinguisher.com and add it there for everyone to download 😊 although in this case, I’ll include these changes for RC8
Btw, I figured out that IE problem, it’s because the edit and delete buttons are in the form <button>..</button> which IE apparently doesn’t like
#69 / Feb 20, 2008 12:13am
done. Just fyi, there was a problem in the code I posted:
if($row[$field] == $this->value)
should be
if($row[$key] == $this->value)
#70 / Feb 20, 2008 6:46am
Shodan: I had that problem too, I fixed it by just disabling the multi-user stuff, since I don’t need it anyway.
Hi dleavitt,
Is there a simple way to do this?
Cheers,
Terry
#71 / Feb 20, 2008 6:39pm
first of all thanks, this looks great.
i have everything set up and most things seem to be working but when i try to edit a record the form will not load. i get the error “PHP Fatal error: Call to undefined method CI_DB_mysql_driver::get_where()” in my log file. this happens in the example as well as my own.
i’m using the latest version of CodeIgniter and CodeExtinguisher
thanks
**UPDATE**
hmm… even though i’m using 1.6.1 changing get_where to getwhere seems to have fixed the issue. strange.
#72 / Feb 21, 2008 9:01am
It seems that current demonstation at http://www.codeextinguisher.com/demo.php/template is broken.
I’ve used Opera, and page looks like HTML code is wrong - unclosed tag or something like that.
I can post a screenshot if needed.
#73 / Feb 21, 2008 10:04am
Yes, the demo is actually version 1.4 which pales in comparison to version 2.0
#74 / Feb 21, 2008 10:12am
i’ve run into one more issue. when trying to use DbDropDown i get the error.
“Could not find proper plugin.”
I’m not having any luck tracking down what could cause this. The DbDropDown plugin is there.
here is the relevant section from my definition file
company_id:
class: DbDropDown
params:
table:companies
key:id
field:name#75 / Feb 21, 2008 11:56am
arghh… i’m an idiot. there was a tab in the white space before class instead of spaces.
this is my last stupid post, i promise. :cheese: