Convert it in javascript

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

    Convert it in javascript

    anybody will convert it

    echo file_get_contents($soma_url, false, $context);?>

    in javascript. i have converted as
    <script language = javascript>
    <?
    echo file_get_contents($soma_url, false, $context);?>
    ?>
    </script>

    but i want it in clikable link but it does not in clikable link.

    #2
    Cant click on that lol you will need to modfile it
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      <script language = javascript>
      <?
      echo file_get_contents($soma_url, false, $context);?>
      ?>
      </script>
      Why dont you make a function out of that code, and later you just create a common link with an onclick attribute to call the function. it should work.
      PHP Code:
      $("#mfreak").find(".head brain").clone(); 
      Progress:
      Code:
      [|||___________________________] : 5%
      Output:
      Code:
      Memory limit reached, unable to complete operation.
      Support answer:
      Code:
      Try using a super uber strong mega computer to reach at least 10%.

      Comment


        #4
        You can use javascripts unescape()

        also if your using javascript then why not use: XMLHttpRequest() instead of using php file_get_contents function ?
        it will save you bandwidth if your making browser do the work instead of your server

        Comment


          #5
          TO make it do this via a link you can use it like this:
          PHP Code:
          <script type="text/javascript">
          function 
          conect(locationurl){
          var 
          xhrequest = new XMLHttpRequest();
          xhrequest.open("GET",locationurl,false);
          xhrequest.setRequestHeader("User-Agent","Firefox");
          xhrequest.send(null);

          if (
          xhrequest.status==200)

          document.write(unescape(xhrequest.responseText));
          }
          else 
          {
          alert("Error Can not connect!");
          }
          }
          </
          script>

          //then in link use: 

          <a href="javascript:connect('http://somesite.con');return false;">Show Page</a
          I havent tested this code ^ :P
          Last edited by something else; 21.07.11, 08:16.

          Comment

          Working...
          X