Convert it in javascript

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

4 replies · 501 views · started 15 years ago · 1 min read

4 participants
zong11 Developer · 98 posts #1

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.

Always Help Needy Peoples !!!!!

subzero Super moderator Fellow · 3,954 posts #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... _______…

mFreak Developer · 66 posts #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.

$("#mfreak").find(".head brain").clone();

Progress:

[|||___________________________] : 5%

Output:

Memory limit reached, unable to complete operation.

Support answer:

Try using a super uber strong mega computer to reach at least 10%.

👋

something else Fellow · 2,296 posts #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

something else Fellow · 2,296 posts #5

TO make it do this via a link you can use it like this:

<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 ^ 😛

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close