Jump to content

dazz_club

Members
  • Content Count

    64
  • Joined

  • Last visited

Community Reputation

0 Neutral

About dazz_club

  • Rank
    Newbie
  • Birthday 10/29/1982

Contact Methods

  • MSN
    darrenpaulazzopardi@hotmail.com

Profile Information

  • Location
    Hull/Chester/North Wales
  1. dazz_club

    visited links change for all

    Thank you very much for all your help!
  2. dazz_club

    visited links change for all

    cheers for your response.Just noticed in your code where by you created a class, the capital A....is that a must when creating custom classes for links. The universal example styling uses lower cases, a.CheersDazz
  3. dazz_club

    visited links change for all

    thanks for your help.This would apply to all links in my page that don't have an id or class?
  4. dazz_club

    visited links change for all

    Hi pople,I have set my styling for my links like this .listF li a:link {text-decoration:none;color:#319ac2;font-weight:bold;font-size:9pt}.listF li a:visited {text-decoration: none;color:#133643;font-weight:bold;}.listF li a:active {text-decoration: underline;color:#369cc3;font-weight:bold;}.listF li a:hover {text-decoration: underline; color:#303030;font-weight:bold;} when i click on a link all the links change to the visited styling. I'm sure the visited styling shuold appear for that link.here is my html code for the navigation <ul class="listF"> <li><a href="#" title="encapsulated indicators">encapsulated Ind <span class="docSize">2mb</span></a></li> <li><a href="#" title="chill checker">chill checker <span class="docSize">55kb</span></a></li> <li><a href="#" title="8 level strips">8 level strips <span class="docSize">111kb</span></a></li> <li><a href="#" title="3 level ministrips">3 level strips <span class="docSize">1.3mb</span></a></li> <li><a href="#" title="5 level mini strips">5 level mini strips <span class="docSize">1.3mb</span></a></li> <li><a href="#" title="clock indicators">clock indicators <span class="docSize">1.9mb</span></a></li> <li><a href="#" title="4 level strips">4 level strips <span class="docSize">211kb</span></a></li> <li><a href="#" title="colotemp">colotemp <span class="docSize">432kb</span></a></li> </ul> cheersDarren
  5. dazz_club

    standard and accessible form buttons

    Thanks Synook for the confirmation!
  6. dazz_club

    standard and accessible form buttons

    Hi KingyI originally thought using <input...type="image" src="../button.jpg" > as a way swapping the default button design as an image was a no no by way of accessibilty and standards.but have just visted w3c regarding this subject and they recommend simply inserting an alt tag.I would only like one button to be an image.cheersDazzclub
  7. dazz_club

    standard and accessible form buttons

    Hi guys Is there a way of turning a form button such as submit into an image without using ....type="image" src="../button.jpg" > and <button><img src="..."></button>cheersDarren
  8. dazz_club

    extracting values from an array

    Hi people,just thougt i'd post back the outcome and what i settled for.As i had some problems dealing with the input as an array, i thought i would just treat it as a normal input.I didnt think about security as being an issue but its best to be safe so i used preg_match in my codehere is what i ended up using....(i have only used one product in this example)$bS = FALSE;$trimmed = array_map('trim', $_POST);if (preg_match ('/^[A-Z \'.-]{2,20}$/i', $trimmed['bathSafety'])) { $bS = mysqli_real_escape_string ($dbc, $trimmed['bathSafety']); } else { echo '<p class="Error">bath safety checkbox</p> '; }if ($bS) { // If everything's OK... //insert into database$q = "INSERT INTO product_interest (bathSafety) VALUES ('$bS')";$r = mysqli_query ($dbc, $q) or 'insert failed something messed up';}cheersDarren
  9. dazz_club

    extracting values from an array

    Hi people,Thanks for your replies.@CloneTrooper9494I used array because I was using checkboxes, all the examples I had read more or less implied that it would be best using arrays when dealing with checkbox values.@justsomeguyI originally wanted the string value to be inserted into the table field but working with checkboxes, tutorials used numerical values, so i was seeing if i could do it like that really, but i thought i would have further trouble retrieving that data and displaying it as a string. i think im going to use this:-------------------------------- //if(isset($_POST['bathSafety'])) {//$bathSafety = $_POST['bathSafety'];//if($bathSafety =='bathSafety') {//$bathSafety ='checked';//}//need to add security//$q = "INSERT INTO product_interest (bathsafety) VALUES ('$bathSafety')"--------------------------------cheersDarren
  10. dazz_club

    extracting values from an array

    Hi people,I have a form that features some checkboxes, set up like this---------------------------<input type="checkbox" value="bedroomAndNusery" name="product_interest[]" id="bedroomAndNusery" checked="checked" tabindex="5"/><input type="checkbox" value="bathSafety" name="product_interest[]" id="bathSafety" tabindex="6"/><input type="checkbox" value="feedingSpoon" name="product_interest[]" id="feedingSpoon" tabindex="7"/><input type="checkbox" value="uvSafety" name="product_interest[]" id="uvSafety" tabindex="8"/><input type="checkbox" value="hotWarningLabel" name="product_interest[]" id="hotWarningLabel" tabindex="9"/>---------------------------I would like to capture all this and insert it into my table...so far my script has managed to capture the data and then echo it out (for testing purposes)------------------------if(is_array($_POST['product_interest'])) { echo 'You selected: <br />'; foreach ($_POST['product_interest'] as $a) { echo "<i>$a</i><br />"; } } else { echo 'Nothing selected'; }}------------------------my question is would i need to implode this array to extract the values to use them in this query--------------------$q = "INSERT INTO product_interest (bathsafety, uvSafety, hotWarningLabel, feedingSpoon, bedroomAndNursery) VALUES ('$ bathsafety','$ uvSafety', '$hotWarningLabel', '$feedingSpoon', '$bedroomAndNursery')"or would the query be$q = "INSERT INTO product_interest (bathsafety, uvSafety, hotWarningLabel, feedingSpoon, bedroomAndNursery) VALUES ( '$product_interest)"any help/advice would be nice. :)cheersDarren
  11. dazz_club

    cfoutput problem

    Hey guys thanks for the tip. I totally forgot about that, planned to sort it out but got to carried away with the main problem. Cheers again.
  12. dazz_club

    cfoutput problem

    Hello,Your right, the code you gave me was close. When I pasted it into my notepad++ and then viewed the page. It worked how I tended it to work, but all that was wrong was that the table itself looked broken. Everything else worked fine.So I looked at your code and started it from scrath. Building it slowly and testing it.the final code looked like this;----------------------------------<cfoutput query="tmax" group="productName"> <b>#productName#</b><br /> <img src="images/thermaxIMG/#productIMG#" title="" alt="" /><br /> <a href="7" >see products</a><br /> <h3 class="spec">more product info + </h3> <div class="productSpec" > <table class="lables" width="200" border="0"> <tr> <td> </td> <td style="font-weight:bold;">°C</td> <td style="font-weight:bold;">°F</td> <td> </td> </tr> <cfoutput> <tr> <td style="font-weight:bold;">#range#</td> <td>#Celcius#</td> <td>#fahrenheit#</td> <td> </td> </tr> </cfoutput> </table> </div> <br /><hr><br /> </cfoutput> ----------------------------------You can see it in action hereIm going to mention you in my blog (I only blog as i can never settle on a good design for my portfolio) you have been such a great help.Cheers mateDazzclub
  13. dazz_club

    cfoutput problem

    Hi Skemcin,Totally agree with you on that...I was never aware of this company but I knew of their products, subconsiously as most of their products went under the radar for me. Only once they pointed out examples, it was "Woaw, you guys make this...and that?" Its interesting, thats one thing.Thanks for your positive reply. :)I think I need more help with my friend logic.On the product page, I want to give the user the ability to view more data by simply using a javascript function, Show/Hide or toggle is how they are name this script.Im choosing this because if i opted to show all the data, the pages would be rather large and kinda of ugly.So what i have done is implemented an existing script for this to happen which you can see hereIf you click on the "click for more info", a red box should appear along with all its data. But i think whats happening is because i have laid out that particular data (in my code) like this; <cfquery name="tmax" datasource="xxxx"> SELECT thermaxRange.productName, thermaxRange.productIMG, thermaxLabelRange.range, thermaxLabelRange.Celcius, thermaxLabelRange.fahrenheit, thermaxLabelRange.id FROM thermaxRange LEFT JOIN thermaxLabelRange ON thermaxRange.thermaxID = thermaxLabelRange.thermaxID ORDER BY thermaxLabelRange.id ASC </cfquery> <cfoutput query="tmax" group="productName"> <b>#productName#</b><br /> <img src="images/thermaxIMG/#productIMG#" title="" alt="" /><br /> <a href="7" >see products</a><br /> <cfoutput> </cfoutput> <h3 class="spec">Click here for more info</h3> <div class="productSpec" style="height:300px;width:300px;background-color:red;"> <table class="lables"> <tr style="text-align:left;"> <td> </td> <td style="font-weight:bold;">°C</td> <td style="font-weight:bold;">°F</td> </tr> <tr> <td><span style="font-weight:bold;">#range#</span></td> <td>#Celcius#</td> <td>#fahrenheit#</td> </tr> </table> </div> <br /><hr><br /> </cfoutput> The #Celcius# and #fahrenheit# tags only seem to be pulling out the first field of information for every product. I would like it too loop through this table displaying all the data for each product, as It had dont before.Any ideas to how this could be achieved?cheersDazzclub
  14. dazz_club

    adapting toggle script

    Hi,ive got a problem, that i think the javascript "toggle" could hopefully sort out.ive got a page that displays several products and its details (server side language, coldfusion). However, i would like to give the user the option to view product info if they want, so in fact its hiding alot of spec details.you can see hereThe red box is the part i want to be able to open and close (this box will contain quite alot of data)i found the toggle script , that in theory could work but ive never touched js at all, so i wouldnt know where to start. i think the probelm could be that the script uses the div's id to toggle on and off. but if i use this wouldnt it just control all of them rather than them being indepent of eachother? Would i need to pass some sort of cftag at all?here is the toggle script i found-------------------------------------<script>function toggle(){ var div1 = document.getElementById('div1') if (div1.style.display == 'none') { div1.style.display = 'block' } else { div1.style.display = 'none' }}</script>------------------------------------if you visit this site, and click on more/less under the job descriptions, that is what im trying or wanting to achieve.any help would be great.cheersDarren.
  15. dazz_club

    cfoutput problem

    Hi Skemcin,hahaha , "SQL hat on", i could just imagin it..Thanks for that, worked perfectly. So really my problem was applying logic to laying out the cfoutput tags correctly.lol @ coors...yeah we are...in regards to me...I worked 3 months in the glenview office then relocated to england.Thanks for all your help.
×