www.webdeveloper.com

Search:

Type: Posts; User: Chris252

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    3,538

    Detecting if a site is online.

    Hello everyone, I was wondering if it is possible to detect if a site is online using JavaScript. For example if google.com is online then alert("Online"); and if google.com is offline then...
  2. Replies
    6
    Views
    5,678

    I have not got this working. For those who...

    I have not got this working. For those who stumble across this thread in the future, here is my code.


    function isUrl(s) {
    var regexp =...
  3. Replies
    6
    Views
    5,678

    How can I run code on every item in an array? For...

    How can I run code on every item in an array? For example:


    function isUrl(s) {
    var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/
    return...
  4. Replies
    6
    Views
    5,678

    Thanks for that, I know http:// is optional but...

    Thanks for that, I know http:// is optional but if it was compulsory in my website then is there a way I can use "for each" for everything that begins with http:// without spaces?
  5. Replies
    6
    Views
    5,678

    [RESOLVED] Recognizing URL's in textarea

    Hello. I would like to know how I can find multiple URL's in a textarea then use "for each" to run code that I want to run on each URL.

    For example, if the user typed this into the textarea...
Results 1 to 5 of 5
HTML5 Development Center



Recent Articles