(javascript)dynamic value to variable in src

Discussion in 'JavaScript' started by alexrozario, Jul 12, 2007.

  1. #1
    Hi talents..

    well.. i am new to javascript itself.. :)

    i am creating a project in facelet, there i need to use javascript code within my project..
    like..
    <script type="text/javascript" src="http://<sitename>?var1=a&var2=aa">
    </script>
    like this..... :cool:

    here i want to give a value a to the variable var1 dynamically...

    that is, based on the first page result, the value ll changed as a (or) b (or) c....... like that..

    now i dont know what to do.. :confused:

    please help me..
    what should i need to change in my coding..
    and how can i give dynamic value to the variable..
     
    alexrozario, Jul 12, 2007 IP
  2. malkassem

    malkassem Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am not sure if you do that.

    What kind of framework are you using (PHP, ASP...etc)?
     
    malkassem, Jul 13, 2007 IP