Jump to content

php/javascript


alin19

Recommended Posts

php works, java doesn't work

 

and i need javascript to change that var

 

 

<script language="javascript">

<!--

var x="0.0,100|34.156378600823,75.9945130315";

-->

</script>

 

</head>

 

<?php

 

$x="0.0,100|34.156378600823,75.9945130315";

 

?>

 

 

<body>

 

 

<img src="http://chart.apis.google.com/chart?

&chs=1000x300

&chd=t:

 

 

<?php

echo $x;

?>

 

 

&cht=lc

&chco=ffffff,000000

&chxt=x,y

&chg=20,10,2,10

 

&chxl=0:|3|5|1:|0|73"alt="Sample chart"/>

 

 

</body>

 

<script language="javascript">

<!--

var x="0.0,100|34.156378600823,75.9945130315";

-->

</script>

 

</head>

 

<?php

 

$x="0.0,100|34.156378600823,75.9945130315";

 

?>

 

 

<body>

 

 

<img src="http://chart.apis.google.com/chart?

&chs=1000x300

&chd=t:

 

 

<script language='javascript'>

document.write(x);

</script>

 

 

&cht=lc

&chco=ffffff,000000

&chxt=x,y

&chg=20,10,2,10

 

&chxl=0:|3|5|1:|0|73"alt="Sample chart"/>

 

 

</body>

Link to comment
Share on other sites

Steps to successfully getting help for a problem

 

1) State the overall goal of your script

2) State the goal of what you are trying to do in the step where the problem is arising

3) State what you want to happen in that step

4) State what is actually happening in that step

5) (this is a big one) Ask a question

 

 

Link to comment
Share on other sites

1)i want to use this google grafic chart to create a dinamic crafic

2)after i use a php script and get data from a file; i insert that data into a javascript var and that javascript var into my grafic

 

3) to use

 

"<img src="http://chart.apis.google.com/chart?

&chs=1000x300

&chd=t:

 

 

<script language='javascript'>

document.write(x);

</script>  /// javascript  is in center

 

 

&cht=lc

&chco=ffffff,000000

&chxt=x,y

&chg=20,10,2,10

 

&chxl=0:|3|5|1:|0|73"alt="Sample chart"/>"

 

as

 

"< img src="http://chart.apis.google.com/chart?

&chs=1000x300

&chd=t:0.0,100|34.156378600823,75.9945130315

&cht=lc

&chco=ffffff,000000

&chxt=x,y

&chg=20,10,2,10

 

&chxl=0:|3|5|1:|0|73"alt="Sample chart"/ > "

 

 

4) the date dosn't reach the grafic

 

 

<script language='javascript'>

document.write(x);    //this is not writen in google grafic char

</script>

5)

what i forgot?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.