Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2003
    Posts
    83

    function to find root domain?

    Ok guys, here is what im trying to accomplish:

    I have a web browser object, a variable URL gets passed into it, it could be a url in ANY form (www.url.com, http://www.url.com, url.com, www.url.com/file.htm) etc.

    I want a script that will stript the string down to the root url, so url.com or just, url. It needs to work in all circumstances. What im trying to do with this is simple, i want to disable the user from going to web pages that do not exist in the domain,

    for example, if they go to google.com and then click on an external link (a page not on the google.com server) then it wont let them, it will revert back to teh home url. (google is a bad example cause its a search engine, but any site that links externally to another is a valid example).

    any ideas how this can be done, while still making it compatible with all URL Formats?

    Shawn

  2. #2
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    see Button Properties 'On Click'.

    Maybe there is a simpler way.

    Stefan_M
    Attached Files
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Join Date
    May 2003
    Posts
    83
    think that will do it, thanks!

Similar Threads

  1. Function: FindAndCloseProcessByName
    By Brett in forum Setup Factory 8.0 Examples
    Replies: 14
    Last Post: 01-19-2011, 07:08 AM
  2. Using a slider to show audio posiion in time
    By Randy3265 in forum AutoPlay Media Studio 5.0
    Replies: 16
    Last Post: 01-07-2006, 08:34 AM
  3. Bizarre Callback Function Behaviour - Can anyone help?
    By SRJ in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-30-2004, 09:16 PM
  4. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 PM
  5. Visaul Basic DLL - Could not find function.
    By Ivan in forum Setup Factory 6.0
    Replies: 0
    Last Post: 10-21-2003, 01:55 AM

Posting Permissions

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