Jump to content

Javizy

Members
  • Posts

    44
  • Joined

  • Last visited

    Never

Everything posted by Javizy

  1. Looks okay, maybe you could use some graphics to give it the look and feel of a program like Excel. You could use some js to allow resizing of cells and other features like that.
  2. I like the direction you're going in, but I definitely think you should make the header small so that the four pics and the menu line up (like someone else mentioned). The header and body don't quite seem to go together as it is. Also maybe a nicer type face for the logo, and a graphic rather than regular text below it. I think that'd make it look a lot more sleek.
  3. I've used this technique to vertically center tables using xhtml 1.0 transitional, and I just tested it for height and managed to get a div to cover the entire page. [code] body, html {     height    : 100%;     margin    : 0; } div.main {     height    : 100%;     width     : 100%; } [/code]
  4. [!--quoteo(post=347675:date=Feb 20 2006, 06:24 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Feb 20 2006, 06:24 PM) [snapback]347675[/snapback][/div][div class=\'quotemain\'][!--quotec--] I didn't read everything, but I just thought I'd comment on the blue design like everyone else... it looks fantastic. Your layouts appear to be pretty solid, even with the other style sheets, but I personally don't like your method of style-sheet switching. You should really be able to accomplish that using sessions instead of passing the style selection through each link. Just a suggestion. [/quote] Thanks. The selection is passed once with a GET, and the value is stored in a cookie so the style can be kept on each page. I changed it to use a redirect too so you never see the URL rewriting. The other styles need quite a bit of work, so I'm not even sure if I'll keep the skin feature at this rate ^_^
  5. Yeah buttons and stuff would cluster things. Something like a simple set of Index > Forum > Topic links at the bottom on one side, and the page numbers on the other would be good.
  6. [!--quoteo(post=346203:date=Feb 16 2006, 12:09 AM:name=ruddernz)--][div class=\'quotetop\']QUOTE(ruddernz @ Feb 16 2006, 12:09 AM) [snapback]346203[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi there, I have a form in php where the user puts in a dienumber, number of peices,and the length of each cut. I need then to look up the weight of the die in a db then multiple that by the number of peices multiple the length, then output the answer in the kgs field, is this possible? Figured i would need the onChange and thus js. But my php is better than my js :S So far have this, think im nearly there(maybe?) Thanks echo '<script language="javascript">'; echo 'function Getweight(){'; echo 'peices = document.inputs.pieces.value;'; echo 'cutlength = document.inputs.cutlength.value;'; //need to look up weight of die //need to output back to doc.inputs.kgs echo '}'; echo '</script>'; echo '<FORM action="../update/updateOrdering.php" method="get" name="inputs">'; echo '<TD class="value"><INPUT type="text" name="dienumber" value="" maxlength="10" size="20"></TD>'; echo '<TD class="value"><INPUT type="text" name="pieces" value="2" maxlength="10" size="20"></TD>'; echo '<TD class="value"><INPUT type="text" name="cutlength" value="1" maxlength="10" size="20" onChange="Getweight()"></TD>'; echo '<TD class="value"><INPUT type="text" name="kgs" value="" maxlength="10" size="20"></TD>'; ..... select dieweight from die_tab where dienumb = 1234 [/quote] I'm a little confused by your post. If you're asking if you can send requests to a database with JS I'm afraid you can't. Can't you submit the form, and then process the fields with PHP using $_GET['pieces'], etc, query the DB, make the calculations and then display a message to the user? You don't really want js to take care of any essential functions because of the varying support and fact that some people disable it. When it comes to forms you're best to use JS for validation, but even then you have to double check on the server-side.
  7. Javizy

    Syntax

    [!--quoteo(post=345967:date=Feb 15 2006, 10:20 AM:name=shan_cool)--][div class=\'quotetop\']QUOTE(shan_cool @ Feb 15 2006, 10:20 AM) [snapback]345967[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi all, I have 4 variables and i want each variable value to be printed in a single row but in diff tabs Can anybody tell wht is the syntax? Thks shan_cool [/quote] I have pretty much no idea what you mean, but to print four items on one row you can use a table and td's: [code] <table> <tr> <td>Var 1</td> <td>Var 2</td> <td>Var 3</td> <td>Var 4</td> </tr> </table> [/code]
  8. I agree with moberemk on the buttons, but I don't think it's so much their fault as the fact that they don't go with a flat white background. I notice you don't have a doctype statement either so your code probably isn't valid, and this can cause display issues and hinder search engine crawler attempts to index your site. So maybe look into that.
  9. [!--quoteo(post=345878:date=Feb 14 2006, 11:43 PM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Feb 14 2006, 11:43 PM) [snapback]345878[/snapback][/div][div class=\'quotemain\'][!--quotec--] valid comments from everyone here, and all taken on board. i'm solidly sticking my ground on the concept/theme of this one, but i've kinda had a (slight) compromise. here's the old one: [a href=\"http://www.thedinnertimes.com/forum/forumbak.php?fid=2\" target=\"_blank\"]Forums - Old Topic layout[/a] [a href=\"http://www.thedinnertimes.com/forum/forum.php?fid=2\" target=\"_blank\"]Forums - New Topic layout[/a] any thoughts on the new layout? slightly easier to digest? [/quote] Yeah that's not too bad much easier to skim through. One thing I would suggest is some navigation at the bottom of the topic pages so you don't have to scroll back to the top after reading. Other than that looking good.
  10. Not sure if it works for me. Seems to take longer to scan through them, so I imagine that if there were lots of new topics and posts it would get annoying eventually. Good effort in trying something new, but with the way forums have been perfected I'm not sure this is an area you should try reinventing the wheel on.
  11. [!--quoteo(post=345752:date=Feb 14 2006, 06:40 PM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ Feb 14 2006, 06:40 PM) [snapback]345752[/snapback][/div][div class=\'quotemain\'][!--quotec--] i will probably mirror some of what has been said, but i'll try to elaborate a little. first off, let me say, i absolutely LOVE the blue layout! the picture is gorgeous, and i can't get over how well the design flows together. seriously, major kudos on that one! the colors, pictures, menu... all of it: very, very well done. now, on to the "others" ;-) GREEN: not bad at all, but it's a little plain. there is one thing on it that i don't like at all, though: i can't stand when link text actually [i]changes[/i] when i hover over it. for instance, your menu "jumps" because it becomes italicized when you hover... not the best look. color, underline, border, or other "decorations" are great to play with, but i think the text itself should be fixed. next, i really think that a dark background (maybe a shade of your dark green) would really change the whole mood of that layout into something more inviting. it's just bland. it's still very clean, but needs a little something. PINK: ah! beauty is in the eye of the beholder, but i still have yet to find a pink themed layout i really like. the picture of the flower is gorgeous, and it would be a WONDERFUL addition to a banner for maybe another blue theme, but when everything is pink, it's extremely washed out. pink is not a color that's easy to compliment with more pink ;-). as far as the layout itself, it's just kind of "more-of-the-same", but again, it's very clean. like i said, i repeated a lot, but i hope i gave you enough to know WHY i feel the way i do about the different designs. overall, great work, though! keep up the good work! i look forward to seeing the finished product. [/quote] Thanks for taking the time to comment, and I actually agree with all of what you said. The green hovers do also jump 5px to the right as well as italicising. I wanted to try something different but I think I'll change that. The pale green [i]is[/i] quite bland so I'll mess about with the colours at some point. With the pink one the only reason it made it on there is because I thought the flower looked great. I didn't think any other colours would go with it so I just stuck with pink, but I'll play around with that as well. Thanks to everyone else who commented. I think I'll cut out a bit of sky to bring the content up, although it looks quite good in 1280x1024 :-)
  12. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--][b]Use onfocus to track the current focus:[/b] the events [i]onfocus[/i] and [i]onblur[/i] can now be used with every element. There is no standard DOM interface to get the current document focus, so if you want to track that you'll have to keep track of it in a JS variable. [/quote] Taken from [a href=\"http://www.mozilla.org/access/keyboard/tabindex\" target=\"_blank\"]mozilla site[/a] So if you're already setting a function for the onfocus event for the textareas, add a function call that stores the id in a variable, and then use this in a getElementById in your insert function.
  13. [!--quoteo(post=345555:date=Feb 14 2006, 02:16 AM:name=aball65)--][div class=\'quotetop\']QUOTE(aball65 @ Feb 14 2006, 02:16 AM) [snapback]345555[/snapback][/div][div class=\'quotemain\'][!--quotec--] Clicking the Q/PL button as defined by the following HTML: <td> <form> <input class="mediumbutton" type="button" value="Q P/L" onClick=popQIPLWindow(02132006205725) title="Query Parts and Labor"> </td> </form> and Javascript: function popQIPLWindow(rcvnum) { var varrcvnum=parseInt(rcvnum); url = 'http://localhost/lawnmower/qipl.php?rcv_num=' + varrcvnum window.open(url,'mywindow','left=525 width=475,height=320,resizable=yes,scrollbar=yes,location=yes'); return true; } results in the following screen pop 75% of the time: [a href=\"http://localhost/lawnmower/qipl.php?rcv_num=2132006210949\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=2132006210949[/a] and the following screen pop 25% of the time: [a href=\"http://localhost/lawnmower/qipl.php?rcv_num=149520190421\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=149520190421[/a] The following is the screen pop I need: [a href=\"http://localhost/lawnmower/qipl.php?rcv_num=02132006210949\" target=\"_blank\"]http://localhost/lawnmower/qipl.php?rcv_num=02132006210949[/a] Any help would be greatly appreciated - Thanks. [/quote] localhost links won't work over the web I'm afraid. Substitute your IP address in its place.
  14. [!--quoteo(post=345552:date=Feb 14 2006, 02:06 AM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ Feb 14 2006, 02:06 AM) [snapback]345552[/snapback][/div][div class=\'quotemain\'][!--quotec--] Aside from the pink skin, everything looks great! Good job! *shiver* Pink... [/quote] Thanks for the kind words, I'm quite pleased with the water one. I'm kinda lucky to have a photographer as a friend :-) Haha, I was messing around with the flower picture in photoshop and thought I'd turn it into a skin. Not sure if even I like it... one for the ladies maybe, I dunno ^_^
  15. Nobody come across Dev-PHP2? It's free, has your standard text editor features like syntax highlighting, and allows you to preview your php sites without installing a web server. I'd give it a thumbs up.
  16. I've been meaning to get something online for a while so I finally bought some space and uploaded [a href=\"http://www.james-kirk.co.uk/\" target=\"_blank\"]THIS SITE[/a]. Would appreciate any comments/suggestions and especially knowing any problems people have with it. No real content so far, but there are 3 different looks you can switch between using the little squares next to SKIN at the top.
  17. [!--quoteo(post=344805:date=Feb 11 2006, 10:09 AM:name=darko)--][div class=\'quotetop\']QUOTE(darko @ Feb 11 2006, 10:09 AM) [snapback]344805[/snapback][/div][div class=\'quotemain\'][!--quotec--] hey guys i need a a script that validates forms i'm using the following script [code]<script language="javascript"> function form_Validator(form) {   if (form.name.value == "")   {     alert("Please enter your Full Name.");     form.name.focus();     return (false);      }   if (form.email.value == "")   {     alert("Please enter your email.");     form.email.focus();     return (false);   }        if (form.comments.value == "")   {     alert("Please enter your query.");     form.comments.focus();     return (false);   }   return (true);   }   //-->   </script>    <form action="mail.php" method="post" onSubmit="return form_Validator(this)">   <div align="center"><span class="style5">Your Full Name:<br><br></span></div>   <center><input name="name" type="text" size="40" maxlength="40">   </center> <div align="center"><br>     <span class="style5">Your E-mail:<br><br></span></div> <center> <input name = "email" type="text" size="40" maxlength="40"> </center> <div align="center"><br>     <span class="style5">Please specify a Subject:</span><br>     <br></div> <center><select name="subject">   <option>Ick an option</option>   <option>Food</option>   <option>Cars</option>   <option>Other</option> </select></center> <div align="center"><br><br>     <span class="style5">Comments:</span><br>     <textarea name="comments" cols="30" rows="8"></textarea>     <br>     <br>     <input type="submit" value="Submit">     <input type="reset" value="Reset"> </div> </form>[/code] ---------------------------------------------------------------------------------------- the problem is i don't know how validate if the user has specified one of the options. and lets say i had a radion button, i want to disable the submit button 'till the user clciks on one of the radion button, (like for example he has to choose the I Agree button for a TOS)- --i hope that makes sense, and please help me Thanks Darko [/quote] Give your submit button an id, say id="submit". Create a function that simply gets submit and does submit.disabled = "true", and call it from <body onLoad="myDisableFunction();">. This will ensure that users who don't have javascript will still be able to use your form. Then, create another function called enableSubmit or something, which calls your validator method, and sets submit.disabled to the value it returns. Call this function onChange for all of your form elements, and when the validation is passed, the submit button will be enabled. Hope this helps. I might use this idea for my forum submits actually :-)
  18. I notice you've got the cursed IE flicker on your rollovers. Usually caused when images aren't positioned at the top left of their container (yeah IE f**kin sucks in so many ways, but that's for a different thread). I ended up going without hovers when this happened to me, there apparently is a solution but I'm not sure how simple it is. You might wanna check google, because from what I read it sends a request to the server for the image for each mouse movement, i.e. for every pixel the mouse moves over the image. Thanks microsoft...
  19. Javizy

    Framesets

    [!--quoteo(post=343309:date=Feb 7 2006, 01:13 AM:name=wnemay)--][div class=\'quotetop\']QUOTE(wnemay @ Feb 7 2006, 01:13 AM) [snapback]343309[/snapback][/div][div class=\'quotemain\'][!--quotec--] Yeah, like I said I tried that, however, I found this to work just fine... [!--coloro:#3333FF--][span style=\"color:#3333FF\"][!--/coloro--][!--fonto:Lucida Console--][span style=\"font-family:Lucida Console\"][!--/fonto--]<script type="text/javascript"> [!--coloro:#FFCC66--][span style=\"color:#FFCC66\"][!--/coloro--]//This script destroys a frameset that might be set.[!--colorc--][/span][!--/colorc--] if (top.frames.length!=0) { if (window.location.href.replace) top.location.replace(self.location.href); else top.location.href=self.document.href; } </script>[!--fontc--][/span][!--/fontc--][!--colorc--][/span][!--/colorc--] Thanx anyway... [/quote] Do you have an alernative solution for users with javascript disabled? I thought one of the biggest advantages of using server-side scripting is how it make frames completely obsolete. Surely just using include statements would give the desired result?
×
×
  • 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.