www.webdeveloper.com
Results 1 to 7 of 7

Thread: help with getting url

  1. #1
    Join Date
    Jul 2007
    Posts
    37

    Exclamation help with getting url

    hi!!
    im doing an extension in firefox and i need help:
    the function "content.document.location.length" is taking the location of a page (like: http://www.webdeveloper.com/, http://groups.google.com/, etc), but i want that the var "len" will be like: webdeveloper.com/, google.com/ etc. understand? great! plz help me!!!!

  2. #2
    Join Date
    May 2005
    Location
    Dirty Jersey
    Posts
    1,401
    Quote Originally Posted by arnoni
    understand?
    negative. ive never seen that type of DOM, and cant for the life of me figure out why "length" equates to a URL?

    sounds proprietary to extension making..?

    1. If you reply to my post, and your reply would then appear directly beneath my post, DON'T QUOTE MY ENTIRE POST!!! IT'S REDUNTANT!!! IT'S ASININE!!!! IT'S REDUNDANTLY ASININE!!!!! DON'T DO IT!!!!
    2. jQuery extends the functionality of JavaScript. If you don't know JavaScript, give up on that jQuery script and learn JavaScript. You'll save yourself a lot of frustration, I promise.
    3. Use the [code][/code] tags. Otherwise, you may be left wondering why no one responded to your eyesore of a thread.


  3. #3
    Join Date
    Jul 2007
    Posts
    37
    you dont understand!!
    the var "len" is just an example (like: lek, moy, blob).

  4. #4
    Join Date
    May 2005
    Location
    Dirty Jersey
    Posts
    1,401
    sorry, i dont understand what youre doing at all.

    1. If you reply to my post, and your reply would then appear directly beneath my post, DON'T QUOTE MY ENTIRE POST!!! IT'S REDUNTANT!!! IT'S ASININE!!!! IT'S REDUNDANTLY ASININE!!!!! DON'T DO IT!!!!
    2. jQuery extends the functionality of JavaScript. If you don't know JavaScript, give up on that jQuery script and learn JavaScript. You'll save yourself a lot of frustration, I promise.
    3. Use the [code][/code] tags. Otherwise, you may be left wondering why no one responded to your eyesore of a thread.


  5. #5
    Join Date
    May 2007
    Posts
    205
    Quote Originally Posted by arnoni
    hi!!
    im doing an extension in firefox and i need help:
    the function "content.document.location.length" is taking the location of a page (like: http://www.webdeveloper.com/, http://groups.google.com/, etc), but i want that the var "len" will be like: webdeveloper.com/, google.com/ etc. understand? great! plz help me!!!!

    I have no idea what you're talking about...but I think you may be looking for split()...or something along those lines....

  6. #6
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    Are you just trying to grab the domain name, i.e., instead of "http://www.yourWebsite.com", you want to extract "yourWebsite.com"?
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill

  7. #7
    Join Date
    Jul 2007
    Posts
    37
    yes exatly

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles