User Profile

Collapse

Profile Sidebar

Collapse
steven
steven
Last Activity: Mar 9 '12, 06:22 PM
Joined: Sep 14 '06
Location: Paris, France
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • steven
    replied to IE7 Javascript problem
    I can guarantee that you're more likely to get some help if you actually explain what the problem is, what error messages you get, what your intended behaviour is and what the actual behaviour is. People help here for fun, it's not a job. Don't expect others to do the legwork and go looking for your bug. Explain it and maybe someone can even help you without needing to see the code.

    =]
    See more | Go to post

    Leave a comment:


  • steven
    replied to HOW TO!? Javascript Scroll
    Ahem! There's no standard CSS for colouring scrollbars. That's specific to Internet explorer alone (thankfully).

    Creating a customised scrollbar certainly isn't a cakewalk, it's something you'd need to work on and have a good understanding of HTML, CSS and Javascript, to be able to pull it off. If you want it done well, the scroll bar itself needs to represent the current amount of data shown, relative to the entire page size. It's...
    See more | Go to post

    Leave a comment:


  • steven
    replied to fixed text area
    You will need to use some Javascript to limit the number of character that can be entered in the text area. Also, anything you input into a textarea will be plaintext, whilst it's in the textarea. If you want to apply formatting, it sounds like you're looking for a Rich Text Editor. A couple of popular apps include TinyMCE and FCKeditor....
    See more | Go to post

    Leave a comment:


  • Sigh... if you want help, you really should HELP US to help you!

    A snippet of code, or even a better explanation would go a long way in helping us to help you.
    See more | Go to post

    Leave a comment:


  • steven
    replied to How can I have PHP identify $POST values.
    in PHP
    Just a final tip... When working with arrays, print_r and <pre> are your friends.

    Code:
    echo "<pre>".print_r($array, 1)."</pre>";
    See more | Go to post

    Leave a comment:


  • steven
    replied to how to resize image
    in PHP
    You will need GD to use the Image functions. Perhaps you have the module and simply need to edit your php.ini to enable it. Have a look in your config file....
    See more | Go to post

    Leave a comment:


  • steven
    replied to How can I have PHP identify $POST values.
    in PHP
    I believe, instead of changing the name by incrementing a counter each time, you could simply make the name `uploaded[]` and it will be an array. You would not need to change the name at all and instead, could simply pull the entire array.

    So, for example <input type="file" name="images[]" /> and $_FILES[images] would be an array of multiple files.

    I'm pretty certain it works that way.
    See more | Go to post

    Leave a comment:


  • steven
    replied to how to resize image
    in PHP
    Perhaps, rather than providing complete code, it would make more sense if you read up the documentation to understand exactly how such code functions. PHP is documented extremely well and it's easy to search and for questions such as this, it should be your first stop, before asking others.

    The docs:
    http://php.net/

    List of functions for images:
    http://php.net/manual/en/ref.image.php

    You...
    See more | Go to post
    Last edited by Atli; Oct 20 '07, 01:06 AM. Reason: Fixed links

    Leave a comment:


  • steven
    replied to CSS background-image error
    CSS is not HTML. The browser will not truncate multiple spaces into a single space... or at least, firefox does not (whether the CSS is inline in the head of the document, or in an external file). Even if the browser truncated whitespace in CSS, which it doesn't... it would still only truncate to a single space and I'm saying that a single space is the cause of the issue. ;)

    If his quote was indeed accurate, then that is the problem....
    See more | Go to post

    Leave a comment:


  • steven
    replied to z-index layering problem in IE6
    http://support.microso ft.com/default.aspx?sc id=kb;en-us;177378

    This is a known issue and unfortunately, there's no 'nice' fix for IE6. The most common way to get around this issue, is to use a hack and dynamically create and place an iframe over the form control when the menu/element should be overlapping the control. The iframe should have a z-index higher than the form/controls but lower than the overlapping element (the drop down...
    See more | Go to post

    Leave a comment:


  • steven
    replied to CSS background-image error
    If your quoted code is accurate, the problem lies in the space between url and the parenthesis containing the url.

    You have:
    Code:
    body { background-image: url ('foo.jpg'); }
    You should have:
    Code:
    body { background-image: url('foo.jpg'); }
    note the lack of whitespace between `url` and the parenthesis.
    See more | Go to post

    Leave a comment:


  • steven
    replied to Embedding flash object into a webpage
    Use swfobject http://blog.deconcept. com/swfobject/

    This will also help you avoid having to deal with the horrid mish-mash of object and embed that many articles recommend. You will also get around the IE "feature bug" where you are required to click on flash content to activate it before you can interact with it.

    All it requires is the javascript being inluded in the head of your html document and a few lines...
    See more | Go to post

    Leave a comment:


  • Regardless of the techniques you may use, you won't be able to prevent said actions. Anyone determined enough, will _easily_ circumvent any preventative measures you put in place.

    If you don't want content / information to be copied, don't make it publically available on the Internet. Clients aren't the smartest people in the world. As the web developer, it's your responsibility to inform them of how the Internet works.
    ...
    See more | Go to post

    Leave a comment:


  • steven
    replied to select first fifteen words
    in PHP
    Uhhh, that's a longwinded way of doing it though.

    It would be much simpler to use a regular expression.

    Code:
    $expression = "/(\w+\s+){15}/";
    $words = "this is a sentence containing a good deal more than fifteen different words but only the first 15 words should be matched!";
    preg_match($expression, $words, $matches);
    The output of $matches[0]...
    See more | Go to post

    Leave a comment:


  • steven
    replied to Parser program
    in PHP
    As far as I was aware, languages usually take mathematical precedence in such calculations, doing multiplications , divisions, etc, then addition and subtraction.

    You can force precedence with the use of brackets though.
    See more | Go to post

    Leave a comment:


  • steven
    replied to Php.reader
    in PHP
    Uhh, you're going to have to elaborate on what you mean.

    PHP files are just text files that can be viewed in any text editor. Some editors will have syntax highlighting, making it easier to read the code. I don't really know any editors for windows (perhaps something called editplus?)...
    See more | Go to post

    Leave a comment:


  • Manners cost nothing, you know. A 'please' or 'thankyou' here or there really wouldn't go amiss.

    You're pretty much asking for the entire code. Perhaps you should do some reading a learn a little bit more before coming here and asking people for information like we're some interactive guide book. There's a lot of information out there, especially on Javascript. quirksmode, one of the links given to you, contains a lot of good information...
    See more | Go to post

    Leave a comment:


  • steven
    replied to Code working in IE but not in FireFox
    Why are you using Javascript for this function? It is not necessary. You can do this with html alone and it will not break if a user decides to visit your page in a browser with no javascript, or doesn't have javascript disabled.

    In html:

    [html]
    <a href="#first">l ink to first</a>

    <a name="first"></a>
    [/html]...
    See more | Go to post

    Leave a comment:


  • steven
    replied to need a solution when window is closed
    On a project I'm currently working on, I needed to record a users last access time when they left the website, either by logging out, closing the browser, or visiting another website. You want to use the onbeforeunload event. I had this run a javascript function to make a synchronous (ajax) call to a PHP script which did the work. Using the onbeforeunload event will do what you want.

    My code, if it helps:

    Code:
    
    
    ...
    See more | Go to post

    Leave a comment:


  • Ok, I figured I'd just post an answer to my second question:

    from http://www.quirksmode. org/js/events_advanced .html



    Sigh...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...