www.webdeveloper.com

Search:

Type: Posts; User: Teufel

Page 1 of 7 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    4
    Views
    2,308

    jQuery then it seems that .top is not implemented in IE....

    then it seems that .top is not implemented in IE.

    I would recommend using jQuery's methods to get the required information, for example $(whatever).css()
  2. Replies
    4
    Views
    2,308

    jQuery It's not legitimate syntax, since the returned...

    It's not legitimate syntax, since the returned element is not a HTMLDOMelement, but jQuery element, which doesn't have the .top property.

    Try this:


    var target_top =...
  3. Replies
    2
    Views
    1,446

    You'll have to write a single form for each item....

    You'll have to write a single form for each item.
    or you do something like this:


    <tr><td>
    <span>title maintext etc from row 1</span>
    <input type="submit" name="1"/>
    </td></tr>
    <tr><td>...
  4. Thread: File size

    by Teufel
    Replies
    2
    Views
    1,268

    Which is just the same

    Which is just the same
  5. Too many mysql connections maybe?

    Too many mysql connections maybe?
  6. Replies
    6
    Views
    1,511

    Why not use something really cool and easy? ...

    Why not use something really cool and easy?

    It's even simpler than copying wbport's code.
  7. Thread: checkbox state

    by Teufel
    Replies
    5
    Views
    771

    What? Just give that checkbox a name attribute...

    What?
    Just give that checkbox a name attribute and use this:

    documents.getElementsByName("name_of_your_checkbox")[0].checked = true;

    Also, .checked is not a method but an attribute and...
  8. Replies
    9
    Views
    1,453

    Let's say you have something like this: $var =...

    Let's say you have something like this:

    $var = 5;

    if ($var == "5") // true
    if ($var === 5) // true
    if ($var === "5") // false, because $var is not a String

    It's really quite useful.
  9. Replies
    3
    Views
    674

    Is it a PHP Syntax Error or a Javascript Syntax...

    Is it a PHP Syntax Error or a Javascript Syntax error?
    Also, you forgot the = after &hn
  10. Replies
    9
    Views
    1,453

    You can check types using === instead of ==

    You can check types using === instead of ==
  11. Replies
    12
    Views
    1,075

    Can you at least post the code you're talking...

    Can you at least post the code you're talking about?
  12. Replies
    12
    Views
    1,075

    You need to check inside the script. Usually the...

    You need to check inside the script.
    Usually the size of an element added by javascript is defined by something like this:

    element.style.width = "400px";
    element.style.height = "400px";

    so...
  13. Replies
    12
    Views
    1,075

    What?? Javascript doesn't have a "size" - it's...

    What??
    Javascript doesn't have a "size" - it's text files.
    You can use several tools to compress javascript code, but you can't "resize" it.
  14. Thread: XSS protection

    by Teufel
    Replies
    6
    Views
    968

    If you htmlentities() the whole thing the user...

    If you htmlentities() the whole thing the user won't be able to embed img tags.
    However if you use an image embedder make sure the URL starts with a "http://"
  15. Thread: Mootools

    by Teufel
    Replies
    4
    Views
    965

    Try this.id as an argument for the onclick...

    Try this.id as an argument for the onclick functions.
    id is not defined in the code you use.
  16. Replies
    4
    Views
    753

    For the future: You can just use a ? to mark if...

    For the future:
    You can just use a ? to mark if a character can appear:
    /foo?bar/.test("foobar"); // returns true
    /foo?bar/.test("fobar"); // also true

    The second o is "maybe"
  17. Thread: ruined emails

    by Teufel
    Replies
    9
    Views
    1,939

    I had a similar problem when using special...

    I had a similar problem when using special characters in the subject.
    This worked for me:
    http://de3.php.net/manual/en/function.mb-encode-mimeheader.php#67186
  18. Replies
    3
    Views
    780

    Just do something like this: while...

    Just do something like this:



    while ($result = $db->fetchArray()) {
    echo '["slideshow/'.$result["id"].'", "slide_files/links/'.$result["id"].'", "'.$result["target"].'", ""],'."\n";
    }

    ...
  19. Replies
    3
    Views
    706

    Do you know XPATH? It works like this: ...

    Do you know XPATH?

    It works like this:


    $bla = simplexml_load_string($foo);
    $bla->xpath("//element[@attribute='attribute value' or @attribute2 = 'attribute2 value' or contains(@attribute3,...
  20. Replies
    3
    Views
    835

    That's a highly unflexible solution, as soon as...

    That's a highly unflexible solution, as soon as you have one space too many, it won't work.
    I would strongly recommend regular expressions.
  21. Replies
    10
    Views
    2,129

    It's usually in the .htaccess file and uses...

    It's usually in the .htaccess file and uses regular expressions (google it).
    It could look something like this:



    RewriteEngine On
    RewriteRule ^[^\/\?]*$ index.php?username=$1
  22. Replies
    2
    Views
    978

    No ideas? :(

    No ideas? :(
  23. Replies
    2
    Views
    978

    I would also accept any other solution,...

    I would also accept any other solution, especially other frameworks.
    The drag/drop Option is a very nice goodie, but not entirely necessary.
  24. Replies
    2
    Views
    978

    jQuery fullCalendar

    Hello,

    I've been assigned to create a web calendar that supports a 1 month view for three different categories (let's call them 1,2,3).

    So this is about what it should look like:
    ...
  25. Thread: textarea cursor

    by Teufel
    Replies
    3
    Views
    1,333

    That usually happens if there is content in your...

    That usually happens if there is content in your textarea. SO i would recommend making sure there is nothing inbetween the <textarea></textarea> tags.
Results 1 to 25 of 157
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles