kieranbarnes do you know where your towel is?

ADOdb’s GetMenu() function moreAttr bug

Posted on August 2, 2007

I'm sure there is a bug with ADOdb's GetMenu() function

The documentation suggests 'use $moreAttr to add additional attributes such as javascript or styles.'

So I would expect something like

$rs_lookup_current_status->GetMenu2('current_status_id',$default_str=$rs->fields['current_status_id'],$moreAttr='readonly="readonly"')

to output something like

<select name="current_status_id" readonly="readonly"><option value=""></option>

<option value='4'>Cancelled</option>

etc...

But it outputs the following

<select name="current_status_id" >

<option value="readonly="readonly""></option>

<option value='4'>Cancelled</option>

Which is wierd.
It seems to put the moreAttr value into the first option tag and not in the select tag where it should be.

Has anyone else seen this behavior?

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Related posts:

  1. Nicer Pagination with ADOdb
    Or should that be Nicr? To follow in an annoying theme. Olavo Alexandrino wrote a...
  2. ADOdb Document Library for PHP
    I've decided to mirror the ADOdb Documentation as the developers have taken it offline due...
  3. XHTML Transitional Compliant Paging with ADOdb
    Following on from my previous post, I've cleaned up the getNavigation() function to generate XHTML...
  4. Retro Fitting Record Pagination with ADOdb
    For my first project of the New Year I had to retro-fit pagination controls to...

What this article useful to you?



Let me know, buy me a beer!
Alternatively, if you're feeling impecunious, you may like to subscribe to my RSS feed, or see other articles in the HTML, CSS, AJAX, PHP category.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.