Jump to content

appeland

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Everything posted by appeland

  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]
  16. Hello, since our local IT department does not allow us to have mp3's on our workstations at work I have written a few php scripts that upload and stream mp3's directly out of a mysql DB. The scripts work great and the performance is also fine since it runs in the LAN and the IT department can scan themselfs silly, they will not find any mp3's :) However, one function still makes me headaches. I want to make a drop-down box for artist and genre (making the drop down box itself is not a problem) If I now do a select to the genre or artist column of the DB I obviously get the same artists and genre as often as it's there. I have googled myself to bits now and just cant find an answer to this or I just dont know what to search for. Is there a query like [b]"select <column> from <table> but only one of each"[/b] :) ? Thanks & Regards, Andi
  17. make you select box like this: <form method="post" action="someaction.php"> <select name="price_range"> <option value="1"> 0-10 </option> <option value="2"> 10-20 </option> <option value="3"> 20-30 </option> <option value="4"> 30-40 </option> <option value="5"> 40-50 </option> <option value="6"> 50-60 </option> </select> <input type="submit" name="submit"> and then, in the form target you do if's to set the variables of the values, example: if ($price_range == 1){ $value1="0"; $value2="10"; } if ($price_range == 2){ $value1="10"; $value2="20"; } ... then you have the correct value range in the variables and use those in the select.
  18. Hello, you may use [code]SELECT SUM(GamesPlayed) FROM gamestoday[/code] Cheers, Andi
  19. Hello,here you go[code]SELECT <column_name> FROM <table_name> WHERE (<column_name> BETWEEN value1 AND value2)[/code]Cheers, Andi
  20. Hello, are you looking for help with the build of the select list out of the database or the search function ? Regards, Andi
  21. Thanks for thinking about this lads. I had some further thought about this and came up with another solution, that migth just do the trick: Instead of using simple frames I use fopen() to get php to retrieve the target page on the serverside and then just echo the stream line for line. The SSL'd connection will stop the proxy to read my form submits (post). I now just need to figure out how to work with links and things in the target page. But since I take the target page apart with fopen() anyway I might just replace hyperlinks with appropriate request to my server to display another "hidden" page. Input will be appreciated.
  22. Hello, this might not be the right place but I know that one of you has the inside of this. My Company has started logging what we browse which I obviously do not like because I do browse privat pages (like this one). My idea is now to purchase a SSL cert for my own webserver and put together a two framed page that has a URL entry form in the top frame and the lower frame would display the result. Would that effectivly hide the target site from the ISA Server. i.e does my webserver fetch the target page or is it still the corporate connection that will retrieve the target page ? Thanks & Regards, Andi
  23. Hi, this should do: SELECT count(comment_id) FROM pcomment WHERE photo_id='pic_id' Full explanation at [a href=\"http://dev.mysql.com/doc/refman/5.0/en/counting-rows.html\" target=\"_blank\"]http://dev.mysql.com/doc/refman/5.0/en/counting-rows.html[/a] Regards, Andi
  24. one idea: put an image somewhere somewhere, give it and id, like this: <IMG src="loading.gif" name="loading" id="loading"> and at the end of your page/script put this: <script type="text/javascript">document.images['loading'].src = 'empty.gif';</SCRIPT> that'll replace your loading image with a transparent or background colored one. Not the coolest thing, but works :) Rgds, andi
  25. [a href=\"http://ip-to-country.webhosting.info/\" target=\"_blank\"]http://ip-to-country.webhosting.info/[/a] Free IP to country DB, they even give you the redy php script. Cheers, Andi
×
×
  • 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.