need JavaScript Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    need JavaScript Help

    i am trying this but not being !

    code here this:
    PHP Code:
    <script type="text/javascript">
    var 
    uid=3;
    var 
    adult=1;

    var 
    av_path="http://adzvilla.com/serve/index.php?UID="+uid+"&ADULT="+adult;
    document.write('<script type="text/javascript" src="'+av_path+'"></sc')
    document.write('ript>')
    </
    script>   
    <
    noscript><a href="http://adzvilla.com/serve/ads/3/adult">Great mobile sites</a></noscript
    if i do document.write(av_path) then it will show http://adzvilla.com/serve/index.php?UID=3&ADULT=1 and exactly this is needed, but next there may be something wrong happening in my code , how can i search the content of that page using the javascript, i mean i need to show ads using the js from the following page http://adzvilla.com/serve/index.php?UID=3&ADULT=1 what will be the correct code anybody can help me ?

    #2
    The Correct way of doing it is: (No need for document.write on the clients side)
    PHP Code:
    <script type="text/javascript" src="http://adzvilla.com/serve/index.php?UID=3&ADULT=1""></script> 
    You are trying to call on an external javascript file, however the file contains no javascript making your code fail

    Comment


      #3
      Originally posted by something else View Post
      The Correct way of doing it is: (No need for document.write on the clients side)
      PHP Code:
      <script type="text/javascript" src="http://adzvilla.com/serve/index.php?UID=3&ADULT=1""></script> 
      You are trying to call on an external javascript file, however the file contains no javascript making your code fail
      its not working , check here domo link i just put the code http://adzvilla.com/a.php

      Comment


        #4
        you have no javascript inside the file: http://adzvilla.com/serve/index.php?UID=3&ADULT=1

        Comment

        Working...
        X