www.webdeveloper.com

Search:

Type: Posts; User: Chipzzz

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. It has become more difficult over the past few years

    Browsers have become increasingly resistant to cross-site-scripting over the years, and it is now extremely difficult to achieve it. Those who manage to accomplish the feat are likely to find that...
  2. Replies
    3
    Views
    4,449

    You have many alternatives... among them are: ...

    You have many alternatives... among them are:


    'home/.../.../';
    '~/.../.../';
    $_SERVER['DOCUMENT_ROOT'] . '/../../upTwoLevels/somewhereOutsideTheWebsite/someFile';


    Anything that translates...
  3. Replies
    27
    Views
    4,417

    Strange... I gave it this: This is some text...

    Strange... I gave it this:

    This is some text <code> and an <i>italic</i> tag in the code section; </code> and some more text, followed by another <code> code section and an <p> paragraph tag </p>...
  4. Replies
    27
    Views
    4,417

    That's an interesting way to go about it. I think...

    That's an interesting way to go about it. I think you want to preg_match_all so that it doesn't stop after the first match.
  5. Replies
    4
    Views
    1,555

    It checks to make sure the $username is all...

    It checks to make sure the $username is all numbers before looking for it in the database. I'm not sure that's what you want to do there, is it?
  6. Replies
    4
    Views
    1,555

    Even 'droids usually have alpha characters in...

    Even 'droids usually have alpha characters in their names ;)
    [php]
    if(ctype_alnum($username))
    [/code]
  7. Replies
    27
    Views
    4,417

    Sometimes when you stare at a piece of code for...

    Sometimes when you stare at a piece of code for too long, it begins to behave strangely... ;)
    Try this:



    if(preg_match('/\<code\>/',$content)){
    $tempContent = $content;
    $content = '';
    ...
  8. Replies
    27
    Views
    4,417

    Well, it's a little long-winded, but if you...

    Well, it's a little long-winded, but if you combine the P.S. from #15 (slightly enhanced) with the code from #5 that sometimes works, you get this:



    $tempContent = $content;
    $content = '';
    $j...
  9. Replies
    27
    Views
    4,417

    No bother... I enjoyed looking into this and...

    No bother... I enjoyed looking into this and gained an interest in TinyMCE in the process. Probably your best option is to use the bbcode plugin as shown here:...
  10. Replies
    4
    Views
    5,178

    Xpaths provide a nice way of solving this, for...

    Xpaths provide a nice way of solving this, for instance in the first case, this:



    field1=field.substring(0,2);
    var x=document.getElementsByClassName(field1); //get all Procedures
    var k=...
  11. Thread: Link Margin

    by Chipzzz
    Replies
    1
    Views
    1,013

    There's no reason you can't and who's to say it's...

    There's no reason you can't and who's to say it's stupid? It's your page ;)
  12. Replies
    6
    Views
    1,596

    My pleasure :)

    My pleasure :)
  13. Replies
    27
    Views
    4,417

    Glad to hear you got it sorted out :)

    Glad to hear you got it sorted out :)
  14. Replies
    6
    Views
    1,596

    var pos=4; var s='afghanistan'; var...

    var pos=4;
    var s='afghanistan';
    var output=s.substr(0,pos-1)+s.substr(pos,s.length);
  15. Replies
    3
    Views
    2,495

    I've found this very useful: ...

    I've found this very useful:

    http://browsershots.org/
  16. Thread: Move an image

    by Chipzzz
    Replies
    3
    Views
    1,613

    Sorry, I got an emergency call in the middle of...

    Sorry, I got an emergency call in the middle of posting and thought I could do both. The emergency survived... the post... not so much :( . The object was to insert the following immediately before...
  17. Thread: Move an image

    by Chipzzz
    Replies
    3
    Views
    1,613

    Change this:

    Change this:


    <div id="container">
    <img id="logo" src="img/logob.jpg">
    <div id="nav">
    <ul class="adjacent">
    <li><a href="index.php">Home</a>|</li>
    <li><a...
  18. Replies
    27
    Views
    4,417

    Hi, I thought that was what you wanted, and...

    Hi,

    I thought that was what you wanted, and although I didn't test the code rigorously, I gave it this:


    $content='<p>Here is some text </p> and some more text<code>and a little code...
  19. Replies
    5
    Views
    1,007

    Lol! Who'd have guessed? Glad you got it working,...

    Lol! Who'd have guessed? Glad you got it working, though :)
  20. Replies
    5
    Views
    1,007

    Most likely it's trying to unzip the archive into...

    Most likely it's trying to unzip the archive into a subdirectory with the zip's file name but zip_entry_read() doesn't automagically create subdirectories, hence everything is winding up in the same...
  21. Browsers protect against cross site scripting by...

    Browsers protect against cross site scripting by preventing access to externally loaded DOM elements. You could try retrieving your Ajax data and creating the elements from text contained in it....
  22. Replies
    5
    Views
    1,007

    You should be seeing an image which isn't where...

    You should be seeing an image which isn't where the last line thinks it should be (public/testpics.zip/920002565.jpg). It's actually in public/$date/testpics.zip/920002565.jpg, so if you change the...
  23. Replies
    6
    Views
    2,269

    I tidied up another few odds and ends. Try this:...

    I tidied up another few odds and ends. Try this:



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html...
  24. Replies
    27
    Views
    4,417

    Using bbcodes ([ code ] and [ /code ]) would also...

    Using bbcodes ([ code ] and [ /code ]) would also simplify the problem with the advantage of allowing tags to be embedded in the code, as happens occasionally.
  25. Replies
    27
    Views
    4,417

    Something like this, maybe? ...

    Something like this, maybe?



    preg_match_all('/(.*?)?\<code\>(.*?)?\<\/code\>(.*?)?/',$content,$results,PREG_SET_ORDER);
    $newContent='';
    $trailer = FALSE;
    foreach($results as $result){
    ...
Results 1 to 25 of 217
Page 1 of 9 1 2 3 4
HTML5 Development Center



Recent Articles