www.webdeveloper.com

Search:

Type: Posts; User: GavinPearce

Page 1 of 16 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    1,966

    Change Alt + F4 using JavaScript

    Elo,

    Quick one for you - how would you do the following three things in JS in IE7::

    1) Capture when a user presses Alt+F4 and don't close the window.

    2) Capture when a user presses the...
  2. Replies
    3
    Views
    2,309

    Any ideas anyone?

    Any ideas anyone?
  3. Replies
    3
    Views
    2,309

    Nope doesn't help. Ta anyway. Still get gaps...

    Nope doesn't help. Ta anyway.

    Still get gaps at the bottom somtimes. :(
  4. Replies
    3
    Views
    2,309

    Full screen div

    Hi guys,

    Trying to create a div that containts a Flash movie with width and height set to 100% that "covers" 100% of the page on page load, and then exits when a user presses the close button.
    ...
  5. Replies
    1
    Views
    949

    Hiding scrollbars using JavaScript

    Hi there,

    Trying to hide page scrollbars using JavaScript, whilst an intro movie is shown (floating div with Flash inside). Once movie ends, it calls a JS function, which hides the DIV and reshows...
  6. Replies
    2
    Views
    551

    Just to explain it a littler clearer sorry .... ...

    Just to explain it a littler clearer sorry ....

    eg...

    $other = "hello,gavin,test";
    function($other);

    Pretty much does function("hello,gavin,test")
    I need it to do:
  7. Replies
    2
    Views
    551

    Function arguments in variable

    Hey,

    I have the following code using a variable function name:




    $other="checkMatch,password,postdata";

    $other = explode(",", $fields[$row]["other"], 2);
  8. Thread: PHP in CMS

    by GavinPearce
    Replies
    10
    Views
    890

    Just store the PHP straight into the database as...

    Just store the PHP straight into the database as pure PH.

    Its can b e good practise to store data in its raw format, and then style it as you get it out, means you can do more with the data...
  9. Thread: PHP in CMS

    by GavinPearce
    Replies
    10
    Views
    890

    No I think he is actually trying to store PHP...

    No I think he is actually trying to store PHP code in the DB, to be run and executed when a user later visits the page for that article?
  10. Replies
    4
    Views
    1,256

    Thank you v. much, I see what I done now. For...

    Thank you v. much, I see what I done now.

    For anyone following this, this is the final code I have that now works



    //build node for email link
    var emailLink = document.createElement("a");...
  11. Replies
    4
    Views
    1,256

    OK so I added emailLink +=...

    OK so I added emailLink += document.createElement("br"); but this causes an error "emailLink.appendChild is not a function". Sure I'm missing something really obvious!



    //build node for email...
  12. Replies
    4
    Views
    1,256

    Line break in child ?

    Trying to create a <a href="mailto....">text <br /> here</a>
    in JavaScript.

    I can get it all on one line, how do I create the line break in the middle, but still have just the one link?

    I got...
  13. Replies
    4
    Views
    1,148

    Stopping forum/guestbook flooding.

    Hey all you lovely people,

    I have a form where I need to limit each user from only posting once every 3 minutes. It's currently done on IP, a DB and some simple maths.



    //$chktime = DB...
  14. Replies
    7
    Views
    2,867

    UK based campaign has to be shown to UK customers...

    UK based campaign has to be shown to UK customers only.
    Without going into to many details - legal restrictions on what we can show mean we have to be able to prove all visitors are UK based, rather...
  15. I had a real quick look through and didn't find...

    I had a real quick look through and didn't find anything obvious.

    But was a very quick look indeed so don't take my word for it.

    I'll try and give it some more attention a bit later.
  16. Replies
    7
    Views
    2,867

    UK IP ranges

    Hey all,

    After all the ranges for UK IPs.

    Why can't it just be simple like everything between these two numbers is in the UK. :(

    Anyone know of a good list of all UK IP ranges (the...
  17. Replies
    4
    Views
    9,515

    Yup that function works perfect. Thank you :-)

    Yup that function works perfect.

    Thank you :-)
  18. Replies
    3
    Views
    867

    *slaps himself* :o thanks very much guys :)

    *slaps himself* :o

    thanks very much guys :)
  19. Replies
    3
    Views
    867

    Array problem - no. 2

    What am I doing wrong here :confused:



    $operator = "randomtxt";
    $i = 1;


    foreach ($_GET as $key => $value) {
    if (stristr($key,'phone') && (strlen($value) > 0)) {
  20. Replies
    4
    Views
    9,515

    Remove empty array value ?

    Hey guys,

    I'm being really blond here .... (I am blond so I'm allowed to say that :p )

    I have this array:


    Array
    (
    [z] => tabular
  21. Replies
    6
    Views
    1,343

    Two places you need to change when...

    Two places you need to change when adding/removing fields:


    $to = $_POST['to'];
    $from = $_POST['from'];
    $subject = $_POST['subject'];
    $name = $_POST['name'];
    $telephone =...
  22. Replies
    9
    Views
    1,452

    Changing Magento skin is really easy, I would...

    Changing Magento skin is really easy, I would never pay what ShopScript are asking for what there software offers.

    Magento is easy to modify if you want, but it doesn't need to be modified!

    It...
  23. Replies
    3
    Views
    664

    Didnt know if it would work myself, so if it...

    Didnt know if it would work myself, so if it does, im as happy as you are. :-D
  24. Replies
    6
    Views
    1,343

    Not tested, but it removes some of the obvious...

    Not tested, but it removes some of the obvious mistakes:
    Also some huge security implications in this script that I haven't fixed.

    Do you really need the users to be able to upload and email you...
  25. Replies
    6
    Views
    1,343

    Hey, im just looking into this for you now. Give...

    Hey, im just looking into this for you now. Give me a 10 mins, tryin 2 eat as well. :p
Results 1 to 25 of 378
Page 1 of 16 1 2 3 4
HTML5 Development Center



Recent Articles