I gang

JavaScript text

I want to get the text of an externally loaded JavaScript file.

i.e. ... this works ...

<script id="inline" type="text/javascript">

... some javascript code

</script>

<script>

alert([url removed, login to view]("inline").text);

</script>

the second script will output the text of the first script.

... this does not work

<script id="external" type="text/javascript" src="[url removed, login to view]"></script>

<script>

alert([url removed, login to view]("external").text);

</script>

the second script simply outputs an empty string.

I need this solved.

Thank you and happy bidding!

Færdigheder: Javascript

Se mere: text javascript, text string, text alert, script alert, javascript text, inline, string javascript, tomcat253, javascript output file, 2011 text, 2011 javascript, text bidding, text code, javascript bidding, happy bidding text, bidding javascript, getelementbyid, output file javascript, javascript output text file, text script, external text file, script type text file, bidding javascript code, type text file, javascript string

Om arbejdsgiveren:
( 21 bedømmelser ) Ottawa, Canada

Projekt-ID: #968908

Tildelt til:

w3FreeWalker

already finished...pls chk my pm...

$30 USD in 0 dage
(0 bedømmelser)
1.0

8 freelancere byder i gennemsnit $31 for dette job

acesolution

you have inbox.thanks

$30 USD in 0 dage
(33 bedømmelser)
5.5
mhanif

Get it done now :)

$39 USD på 1 dag
(21 bedømmelser)
4.2
javaguru75

Let me do it.

$30 USD på 1 dag
(2 bedømmelser)
3.1
guiqul

I will send you a demo later.

$30 USD på 1 dag
(4 bedømmelser)
3.1
zhaozw

check your pmb please:)

$30 USD in 0 dage
(2 bedømmelser)
2.9
kioluong

I can do it now !

$30 USD in 0 dage
(3 bedømmelser)
2.2
tranducmille

I can do it ASAP

$30 USD på 1 dag
(0 bedømmelser)
0.0