Results 1 to 3 of 3

Thread: How to construct dynamic url hyperlinks?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    How to construct dynamic url hyperlinks?

    Hi all i am trying to construct a list of dynamic url hyperlinks from dynamic values of sResult(N)(holds movie url) and textbox6(holds movie name) and N (holds episode number) and place them in richtexbox. I tried the following but the richtextbox showed no value! could you guys help me construct these hyperlinks ?thanks in advance.


    Code:
    RichTextBox3.Text = RichTextBox3.Text & "" & sResult(N) & ".flv&title=" & Text6.Text & N & " " > "&Text6.Text & N & ""</a> <br />" & vbCrLf

    example of constructed url:

    <a href="./Player.php?id=http://www.somesite.com/2 &title=MovieName Episode 1">MovieName Episode 1</a> <br />
    Last edited by tony007; Oct 24th, 2012 at 11:43 AM.

  2. #2
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: How to construct dynamic url hyperlinks?

    You must pay attention when you need insert quotation " inside a string

    Try this
    Code:
    RichTextBox3.Text = RichTextBox3.Text & sResult(n) & ".flv&title=""" & Text6.Text & n & """ > " & Text6.Text & n & "</a> <br />" & vbCrLf



  3. #3
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: How to construct dynamic url hyperlinks?

    HTML supports single quote marks ' instead of double quote marks ". This means you can use ' instead of " in your HTML URL string


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

Posting Permissions

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



Click Here to Expand Forum to Full Width