Jump to content

appeland

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

appeland's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I have surrounded a table with the following div: [code]<div style=" width:100%; height:500px; overflow:auto;">[/code] Internet Explorer takes the width of the stuff inside the divs as 100% while Firefox uses the 100% of the table that surrounds everything (tamplate table). That results in the (mambo) template being messed up in IE  :( Any idea how to fix this please ? Thanks & regards, Andi
  2. Hello, it enables disabled form elements. regards, Andi
  3. Hmm, that's it, no further coding, just what's in the onchange event.
  4. just realized another thing: once you have one tickbox activated you can klick anywhere in the page and the select box becomes active  :P
  5. Hello, this is my first post in the JavaScript Forum, hope someone can help me. I have written a webmail client that integrates with the popular Mambo/Joomla CMS. On the INBOX view there are checkboxes for each listed email to enable users to do certain operations that can be choosen with a select box. That select box is disbled by default and only if one or more checkboxes are ticket will it become active. That works fine in Firefox, but in IE ::) it behaves very funny, to enable the select box you have to tick at least two of the checkboxes, one is not enough. However, if one IS ticked and you klick into the select box it becomes active ??? To see that happening live goto [url=http://dev.jennyandandi.net]http://dev.jennyandandi.net [/url] and use the DEMO LOGIN button, you will be taken to the inbox view where you see the checkboxes and the disabled "I want to" select box. The little bit of javascript on each tickbox is : onchange="enable(action_choice);" a sample checkbox looks like this: [code]<input type="checkbox" name="delete_msg[194]" onchange="enable(action_choice);" />[/code] and the select tag looks like this: [code]<select class='inputbox' name="action_choice" OnChange="submit('action_choice')" disabled style="background-color:white">[/code] All help is very, much appreciated. Thansk & Regards, Andi
  6. Hello, this troubles me for a couple of month now, I haven't started writing anything and it's not urgent to, it's one of them fun-to-do-sometime projects  ::) I would like to create a staffing schedule calendar and I am wondering how to do the database layout for this. The easiest way would be to have one field in the DB per day and per employee but that'll obviously generate masses of data. I also thought to have a database field per month per employee and then delimiting each day with some character, and sub- definitions of the day with another character. Would you have any input into this please. Thansk & Regards, Andi
  7. Well, you are going to write it to some database somewhere, I guess. Just do a select on the column, checking if the same one is already in there. For me personally that's just a number and I guess you have to be resident of the US to understand why there is a paranoia about a little number :)
  8. Hiho, besides the fact that i would not do that (not working should be enough), you can use the same code to do what ever else you want to display beside it : <? if (!$cellnumber){echo "this will not work , regardless what you do dudeldidum, hihi"; } ?> regards, andi
  9. To help you we need to know what product you are using to realize your site.
  10. the way forward is [url=http://www.mamboserver.com]http://www.mamboserver.com[/url]
  11. Dont want to be rude - but what are you on about  ???  :-\ .. Andi
  12. Hello, very interesting thread indeed, do you have a date /time stamp column in you table ? What is is called, how is it populated and what's the type of it in mysql ? # Andi
  13. we are getting the "FIMBLING FEELING" here (for everyone who has kids that makes sense :) ) [code]<input name="testing" class="textbox" type="checkbox" id="testing" value="1" <? if (!$result[0]['cellphone']) {echo "disabled"; } ?>/>[/code] The "is empty" is represented by the "!" in front of the variable. tata, Andi
  14. Hello, not sure what you are looking for , to disable a checkbox (any form field actually) add disabled to the tag [code]<input name="testing" class="textbox" type="checkbox" id="testing" value="1" disabled />[/code] Make the query just insert the disabled bit if there's no data. [code] <input name="testing" class="textbox" type="checkbox" id="testing" value="1" <? if (!$queryresult){echo "disabled"; } ?> /> [/code] Have fun ! aNDI
  15. thorpe, your're my hero for the day  ;D ! just in case someone wonders about this as well, here's a tutorial: [url=http://www.tizag.com/mysqlTutorial/mysqlgroupby.php]http://www.tizag.com/mysqlTutorial/mysqlgroupby.php[/url]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.