2,295 Posted Topics
Re: complete code required for one of the mavens to be able to point and fix, those three lines are not enough ![]() | |
Re: [code=css]@media print { .dontprint { display:none; } } @media screen { .dontshow { display:none; } }[/code]then anything you wish not to print, at the 'dontprint' class to eg [code=html]<span> inline </span> <div class='header'>menu stuff</div> <!-- becomes --> <div class='header dontprint'>menu stuff</div>[/code]I like dontprint, its a descriptive name css @media types … | |
Re: add column is_supervisor to the employee database default to no/false | |
Re: investigate the html <label> tag, will make your input forms more user friendly, by providing the stardard clickable-text that activates the radio button [code=html]<script type='text/javascript'> function show(sec) { document.getElementById('sec0').style.display='none'; document.getElementById('sec1').style.display='none'; document.getElementById('sec2').style.display='none'; document.getElementById('sec3').style.display='none'; document.getElementById(sec).style.display='block'; } </script> Section:<br> |<input type='radio' name='section' id='section1' value='section1' onclick="show('sec1');"><label for='section1'> Section 1</label>| |<input type='radio' name='section' id='section2' value='section2' … | |
Re: designer's solution is correct, for more than one reason, importantly,, php will parse dQuoted text for variables and replace them with the value [icode]echo "i want $breakfast";[/icode] will render as [icode]I want BACON[/icode] single quotes wil not parse the variables and of course,,, WoNt WoRk | |
Re: code ? to make sure, but, <base> the href that relative urls start from, easiest fix is kill the base and set the proper url to the menu include | |
Re: It is not a drop down, or a popup, it is a layer in the page something like[code=html]<script type="text/javascript"> <!-- (document.getElementById) ? dom = true : dom = false; function hideIt(layer) { if (dom) {document.getElementById(layer).style.visibility='hidden';} if (document.layers) {document.layers[layer].visibility='hide';} } function showIt() { if (dom) {document.getElementById(layer).style.visibility='visible';} if (document.layers) {document.layers[layer].visibility='show';} } --></script> … ![]() | |
Re: populate a select box from zero to the maximum value for the question stored in the database demo thought process, not code read max_value from database for $I < max value echo <option value=$i>$i</option> $I++ JUST THOUGHT PROCESS NOT EXPANDED TO ANY USEABLE CODE | |
Re: yours [icode]<input type="text" name"CardHolderName"[/icode] mine [icode]<input type='text' name='CardHolderName'[/icode] ?? | |
Re: margins, padding, doesnt work try position relative to/from something fixed (in this example the bottom of my-login-bar) something to try my-login-bar is set for dimensions and position, elements inside my-login-bar can be set relative to my-login-bar [code=css].logoutimage { top:auto;bottom:3px;left:3px;right:auto;} .loggingout { top:auto;bottom:3px;left:auto;right:3px}[/code] one is set relative to left bottom, the … ![]() | |
Re: save the date in a timestamp, not some human-centric text date format, php date(); mysql now(); work on query [icode]if($date+(30*24*60*60) < date()) { /* kill the upgrade level */}[/icode] thought process only very obviously not valid code cron:noun; approximately the server equivalent of windows task scheduler | |
Re: adding to urtrivedi's answer if you want the sort to be alterable on the page, output the sorted query data, and there are many javascripts that perform live table sorts onclick of the header field, [url]http://javascript.internet.com/forms/sort-data-table.html[/url] is one | |
Re: why not fix the background in place and have the content scroll over it[code=css] body {background:#ffffff url('img.png') no-repeat fixed 0 0;} [/code] | |
Re: dont suppose you might consider posting the problem code, for examination considerations... musings...[LIST] [*]If on a *nix server have you employed mod_gzip for any files html php js css larger than ~5k, remarkable difference [*]minified javascripts [*]stripped redundant whitespace from the files,[INDENT]indented code is pretty, but functionally stupid[/INDENT] [*]stripped inline … | |
Re: CloudNine, Errors & error messages (if any) will depend on changes to server php versions, and will come when/if your host updates the version of php on the server, always without advising anybody before making the change. If you are aware of the possibility of error, and the likely cause(s), … | |
Re: shineha's picked it inputs require a name, value pair to get any output 'id' is used to reference the tag in the dom, for javascript, but not on form submission no name, no value [icode]<select class=frmBg size="1" name='wheel model' id="wheel model">[/icode] a html instruction page on the <select> tag [B]([/B]w[B])([/B]sh[B])[/B]ould … | |
Re: its easy in php, perl, python any serverside script if your host includes a \cgi-bin folder off the root(the usual place for cgi scripts) [url=http://bignosebird.com/carchive/bnbform.shtml]Big Nosed Bird[/url] has a great, easy, internally documented, piece of cake to install and operate form handler freeware the forms generated by the link posted … ![]() | |
Re: Along with everybody else ditch frontpage, the failure on other browsers is likely deliberate, MS => IE MS => Frontpage ditch all the fixed sizes, they dont work on anybody's browser except yours current best practice is em and % for screen layout not px ![]() | |
Re: table design seems wrong as a transaction table there should be no totals as a totals table there should be no transactions there is no indexed column to link it to the customer table what are you actually trying to accomplish | |
Re: ignoring all the javascript BS [code=html]<html> <head> <style type='text/css'> input { background-color:transparent; } input.red { background-color:red; } input.blue { background-color:blue; } </style> </head> <body> <input type='text'> <input class='red' type='text'> <input class='blue' type='text'> </body> </html>[/code] css, cascading style sheets, let you set the style of the page javascript is more used … | |
Re: look at your code in the post above, color highlighting shows the problems you have doublequotes inside double quotes, does not open a new set of quotes, closes first set "open.("closed"open)"closed replace the innner sets of dquotes with single quotes [code=html]<li>> <a href="javascript:void(0);" onclick="function("mc");" id="mc">Consultancy</a></li>[/code] looks better as [code=html]<li>> <a … | |
Re: google webmaster tools [url]https://www.google.com/webmasters/tools/dashboard[/url] get webmaster account verify site ownership then you can set the chosen domain name to index the site under | |
Re: [b][color="red"]show [/color]ALL[color="red"]the code[/color][/b] | |
Re: [code]javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}[/code] without all the bullshit escape codes whch are not neccessary and may be an attempt to hide malware scripts | |
Re: if not logged in redirect to login page after login, redirect to $_SERVER['http_referer']; whatever page sent the user to the login page | |
Re: [code=php]<?php $thisfile = substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '/') + 1); if ($thisfile == 'index.php') { echo 'Home'; } else{ echo '<a href="index.php">Home</a>'; } if ($thisfile == 'one.php') { echo 'menu1'; } else{ echo '<a href="one.php">menu1</a>'; } if ($thisfile == 'two.php') { echo 'menu2'; } else{ echo '<a href="two.php">menu</a>'; } /* etc */ … ![]() | |
Re: that css is good except I always [icode].footer {bottom:0;left:0,top:auto;right:auto;width:100%;height:xxx;background:url('image.png') repeat-x;}[/icode] for footer positioning, seems to work fairly often ** My twisted mind at work ** what have you done in outer elements like <body> and <html> that may cause screwups margins and paddings inherit, so a padding on the body, … ![]() | |
Re: the first part of your question negates the possibility of your accomplishing the second part PHP is a script language, a server language that enables web pages to be dynamic, to generate content in response to user actions, in its simplest incarnation less simple incarnations its my booking site in … ![]() | |
Re: read any of the threads, Tables Vs CSS tables do not display well anywhere fixed pixel sizes do not display well anywhere inline styles do not display well anywhere, the code is out of whack, start and end tags are misaligned You have a lone </td> outside of the <tbody>, … | |
Re: clone cope lone loupe once open pence pole ponce pone pounce [B]opacity[/B] | |
Re: either edit the style, and [indent]change the z-index as noted to put the menu in front of the slideshow, [/indent]or [indent]change the location of the div containing the .swf top: ; left: ; to put it below the menu in the page[/indent][B]note[/B]::; those numbers should be dimensioned (as px pt … | |
Re: I like tables for tabular data, its much easier to sort a table by column to change the view of data, by name size, address, etc. but that is for data that is tables, the layout of my tables, the way they look, is set in css, | |
Re: [code=php]<?php /* stats.php creates csv text file that can be imported into excell or other spreadsheet text file format can be made to match whatever in the fput() line requires file 'log.csv' or whatever,, chmod writable in subfolder 'logfiles' filenames can be altered in the line defining $file. can be … | |
Re: learn html and you can code in anything learn webdreamer, and you are limited to webdreamer, useless | |
Re: more information, 'out of whack' is not a term recognized by IDtenT error reporting nor can we see this mysterious website to which there has been no link posted | |
Re: of course it doesnt work, language='javascript' is deprecated that will fix much of it all that code above is the wrong color due to the unescaped quotes img src attributes arent quoted, failure could be due to something as simple as that putting browser into quirks mode get a code … | |
Re: hell of a lot of text, "up to five error messages" for each ampersand, good on ya | |
Re: have not debugged the code, hate javascript, mess it up badly could it be something simple like, the size of the array of images is x, but the images are image[0] to image [x-1] so the script is trying to display image[x] that does not exist and not displaying image[0] … | |
Re: [quote=tanoru]How can people provide a solution when the code you've given doesn't do anything? [/quote]like this Venom, this may provide the solution without js BS[code=css].link { font-size:12px; font-weight:bold; color:#666666; text-decoration:none; text-align:center; cursor:pointer; } .link:hover { text-decoration:underline; } .imageHolder { width:236px; height:236px; background-color:#EBEBEB; text-align:left; } #overlay_white { display:none; float:left; position:absolute; margin:0; … | |
Re: post the code , the real problem is easier to fix, than someones explanation of the problem | |
Re: [QUOTE=Ancient Dragon;791057]never tried it (I don't think I have anyway) Cold leftover pizza[/QUOTE] like it vegemite (Australian toast spread) | |
Re: try using the recommended dimensions ems and %, 1000px will push offscreen in part windows or small devices, 100% will not referring to the question asked, there will be conflict between the absolute positioning of the footer and the content, setting position from screen bottom may aleviate the issue, setting … | |
Re: <!-- style out in the external stylesheet usually --> [code=css].con {height:300px;width100%;} .in {width:25%;height:100%;float:left;[/code][code=html] <div class='con'> <div class='in'><img src="image1"><br>description 1</div> <div class='in'><img src="image2"><br>description 2</div> <div class='in'><img src="image3"><br>description 3</div> <div class='in'><img src="image4"><br>description 4</div> </div> <div class='con'> <div class='in'><img src="image5"><br>description 5</div> <div class='in'><img src="image6"><br>description 6</div> <div class='in'><img src="image7"><br>description 7</div> <div class='in'><img src="image8"><br>description 8</div> … | |
Re: line six [icode]while (($column = fgetcsv($file,1024," "))!== false)[/icode] tells the parser to separate coulmns at the space character which includes the comma as data [icode]while (($column = fgetcsv($file,1024,','))!== false)[/icode](comma) or [icode]while (($column = fgetcsv($file,1024))!== false)[/icode](default) should work reference [url]http://php.net/manual/en/function.fgetcsv.php[/url] | |
Re: [icode]echo $_post['form_action']; [/icode] and make sure the 'submitted' value is what you expect $post['everything else'] is set to the form value, and the value is 'submit' 'Enter'(button label) I dunno could be something simple | |
Re: write them to javascript variaqbles [code=php] <script type = 'text/javascript'> var hp=<?php echo $hp; > var ac1=<?php echo $acv1 ?> </script>[/code]this would be the perfect place to implement AJAX to update the database with the combat details | |
Re: the filenames of files that are to be server-acted upon have to be altered ssi have to be .shtml php have to be .php so the href of links to those pages have to be altered but you only have to do it once the bonus is the same code … | |
Re: set a session value, with appropriate timeouts for inactivity[code=php]<?php If (!isset($_session['loggedin'])) { /* the login form goes here */ } else { /* the "hello user how's the wife and kids" goes here */ } ?>[/code]set a cookie value to remember login details just a possiblity |
The End.