Results 1 to 6 of 6

Thread: Hyperlink to other web site uses wrong URL ...

  1. #1
    James Lamb Guest

    Hyperlink to other web site uses wrong URL ...

    Hello all - can anyone please give me a pointer to where I am going wrong with these links to other websites? I have a field in my db which uses magiccell to treat the cell contents as a hyperlink - this is based on the
    Example 6 at http://www.aspdb.com/apps/mh-part1.asp. Each cell contains data such as www.new_site.com and the site is hosted on www.mydomain.com.

    Trouble is, when I click on the hyperlink, the browser tries to link to the URL http://www.mydomain.com/www.new_site.com instead of http://www.new_site.com .

    Any ideas where I am going wrong ? How can I force the linked URL to www.new_site.com ?

    Many thanks for any ideas - James.

  2. #2
    Mark Guest

    Hyperlink to other web site uses wrong URL ... (reply)

    James,
    Show us your source code for dbMagicCell and give an example of the complete URL that you are trying to link to.
    Thanks.
    Mark.


    ------------
    James Lamb at 10/16/00 10:14:31 AM

    Hello all - can anyone please give me a pointer to where I am going wrong with these links to other websites? I have a field in my db which uses magiccell to treat the cell contents as a hyperlink - this is based on the
    Example 6 at http://www.aspdb.com/apps/mh-part1.asp. Each cell contains data such as www.new_site.com and the site is hosted on www.mydomain.com.

    Trouble is, when I click on the hyperlink, the browser tries to link to the URL http://www.mydomain.com/www.new_site.com instead of http://www.new_site.com .

    Any ideas where I am going wrong ? How can I force the linked URL to www.new_site.com ?

    Many thanks for any ideas - James.

  3. #3
    James Lamb Guest

    Hyperlink to other web site uses wrong URL ... (reply)

    Thanks Mark - here is the line where I use magiccell:

    MyDb.dbMagicCell = "3,,#3#,index,indexanchor;
    15,,<A HREF=mailto:#(15)#>#15#<A>;
    19,,<A HREF=#19# target=newwindow>#19#</A>;
    Country,,<IMG SRC=../images/flags/#Country#.gif >&#34;

    As you can see, I do a number of things with this line: field 3 is formatted a link between grid & form ; field 15 is an email link which fires up the default email package and this works fine; field 19 is the link to the webpage
    and the filed &#39;country&#39; links to a flag image.

    Please take a look and let me know what you think - many thanks, James.





    ------------
    Mark at 10/16/00 10:19:18 AM

    James,
    Show us your source code for dbMagicCell and give an example of the complete URL that you are trying to link to.
    Thanks.
    Mark.



  4. #4
    James Lamb Guest

    Hyperlink to other web site uses wrong URL ... (reply)

    I&#39;ve solved it!I changed the entry in the database from www.new_site.com to http://www.new_site.com and it works fine now.

    I&#39;ll just have to make sure that all the entered links are preceeded with the http:// when they are entered into the database.

    So it seems that if you have http:// the component recognises a link to new domain but if there is no http:// the component assumes that it is a link to a file/directory on the host domain. Hope this helps some you too.

  5. #5
    James Lamb Guest

    Hyperlink to other web site uses wrong URL ... (reply)

    I&#39;ve solved it!I changed the entry in the database from www.new_site.com to http://www.new_site.com and it works fine now.

    I&#39;ll just have to make sure that all the entered links are preceeded with the http:// when they are entered into the database.

    So it seems that if you have http:// the component recognises a link to new domain but if there is no http:// the component assumes that it is a link to a file/directory on the host domain. Hope this helps some of you too.

  6. #6
    Daraius Guest

    Hyperlink to other web site uses wrong URL ... (reply)

    Hi James:

    You do not need to modify your data base to include the http://. You can do it just as easily in the dbMagicCell as follows:
    = 19,,<A HREF=http://#19# target=newwindow>#19#</A>;

    This is an HTML behavior, not specific to ASPDB.

    Daraius


Posting Permissions

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