Re: [visualization-api] Re: Google Charts with PHP and MySQL

2016-03-09 Thread 'Hisham Al Kilani' via Google Visualization API
Hi Dears,
I think i have a solution for your problem.. contact me 
hisham.alkil...@yahoo.com please.
please attach your files in order for me to declare everything for you, i faced 
the same problem a few months ago.
Best Regards,Hisham  From: 'Daniel LaLiberte' via Google Visualization API 
<google-visualization-api@googlegroups.com>
 To: Google Visualization API <google-visualization-api@googlegroups.com> 
Cc: Bogdan Dinga <bogdan.di...@gmail.com>
 Sent: Wednesday, March 9, 2016 4:58 PM
 Subject: Re: [visualization-api] Re: Google Charts with PHP and MySQL
   
Hi Krishna,
I can help you with the chart specific questions.  Questions about how to set 
up your server side to interface with MySQL are outside of the scope of this 
forum.  You might find some help among these pages, and the link I gave before: 
 https://developers.google.com/s/results/?q=mysql=%2Fchart%2F


On Wed, Mar 9, 2016 at 4:27 AM, Ekabyte.com <k...@ekabyte.com> wrote:


| var dataSet = [ |
|  | ['Date','1st Floor', '2nd Floor', '3rd Floor', '4th Floor', '5th Floor', 
'6th Floor', '7th Floor', 'Tarrace Floor'], |
|  | ['A Block', 1, 1, 1, 0, 0, 0, 0, 0], |
|  | ['B Block', 1, 1, 1, 1, 1, 1, 1, 1], |
|  | ['C Block', 1, 1, 1, 1, 1, 1, 1, 1], |
|  | ['D Block', 1, 1, 1, 1, 1, 1, 1, 1], |
|  | ['E Block', 1, 1, 0, 0, 0, 0, 0, 0], |
|  | ['F Block', 1, 1, 0, 0, 0, 0, 0, 0], |
|  | ]; |


On Wed, Mar 9, 2016 at 2:56 PM, Ekabyte.com <k...@ekabyte.com> wrote:

Dear Daniel,
My issue is I can't populate the data from my MYSQL tables. How can I achieve 
this. I have tried using above method, but could not achieve this. Because mine 
is stacked bar chart.Please help me on this. How I can print the data like  
below:

On Tue, Mar 8, 2016 at 8:02 PM, 'Daniel LaLiberte' via Google Visualization API 
<google-visualization-api@googlegroups.com> wrote:

OK I can see an image of a chart now.  I am not clear on what your problem is.  
It sounds like you are having trouble getting data from a database, but you are 
not showing the code you use to do that.  There are several sections in the 
docs about getting data from a server.  See this one for example:  
https://google-developers.appspot.com/chart/interactive/docs/php_example
On Tue, Mar 8, 2016 at 6:06 AM, Krishna Prasad <k...@ekabyte.com> wrote:

Hi Denial,
Please find the URL http://pinnacleinfotech.in/vivera/chart.html  its working 
fine. Please help me to resolve this.

On Monday, March 7, 2016 at 7:08:15 PM UTC+5:30, Daniel LaLiberte wrote:
Hi Krishna,
Your URL is the same as before, and results in an error.
On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad <k...@ekabyte.com> wrote:


Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html
On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:
Hi,
My chart should exactly looks like this 
http://onnetsourcing.com/vivera/chart.html . Here I have entered the data in 
manual format. Please help me the script which istaking the data from DB and 
display in the chart.html page. You can see the codes as below:

| https://www.google.com/jsapi&quot</a>;> |
|  | 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2016-03-09 Thread Ekabyte.com
var dataSet = [
['Date','1st Floor', '2nd Floor', '3rd Floor', '4th Floor', '5th Floor',
'6th Floor', '7th Floor', 'Tarrace Floor'],
['A Block', 1, 1, 1, 0, 0, 0, 0, 0],
['B Block', 1, 1, 1, 1, 1, 1, 1, 1],
['C Block', 1, 1, 1, 1, 1, 1, 1, 1],
['D Block', 1, 1, 1, 1, 1, 1, 1, 1],
['E Block', 1, 1, 0, 0, 0, 0, 0, 0],
['F Block', 1, 1, 0, 0, 0, 0, 0, 0],
];

On Wed, Mar 9, 2016 at 2:56 PM, Ekabyte.com  wrote:

> Dear Daniel,
>
> *My issue is I can't populate the data from my MYSQL tables. How can
> I achieve this. I have tried using above method, but could
> not achieve this. Because mine is stacked bar chart.*
> *Please help me on this. How I can print the data like  below:*
>
>
> On Tue, Mar 8, 2016 at 8:02 PM, 'Daniel LaLiberte' via Google
> Visualization API  wrote:
>
>> OK I can see an image of a chart now.  I am not clear on what your
>> problem is.
>>
>> It sounds like you are having trouble getting data from a database, but
>> you are not showing the code you use to do that.  There are several
>> sections in the docs about getting data from a server.  See this one for
>> example:
>> https://google-developers.appspot.com/chart/interactive/docs/php_example
>>
>> On Tue, Mar 8, 2016 at 6:06 AM, Krishna Prasad  wrote:
>>
>>> Hi Denial,
>>>
>>> Please find the URL http://pinnacleinfotech.in/vivera/chart.html  its
>>> working fine. Please help me to resolve this.
>>>
>>> On Monday, March 7, 2016 at 7:08:15 PM UTC+5:30, Daniel LaLiberte wrote:

 Hi Krishna,

 Your URL is the same as before, and results in an error.

 On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad 
 wrote:


 Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html
 

 On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:

 Hi,

 My chart should exactly looks like this
 http://onnetsourcing.com/vivera/chart.html . Here I have entered the
 data in manual format. Please help me the script which istaking the data
 from DB and display in the chart.html page. You can see the codes as below:

 https://www.google.com/jsapi";>
 
 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2016-03-09 Thread Ekabyte.com
Dear Daniel,

*My issue is I can't populate the data from my MYSQL tables. How can
I achieve this. I have tried using above method, but could
not achieve this. Because mine is stacked bar chart.*
*Please help me on this. How I can print the data like  below:*


On Tue, Mar 8, 2016 at 8:02 PM, 'Daniel LaLiberte' via Google Visualization
API  wrote:

> OK I can see an image of a chart now.  I am not clear on what your problem
> is.
>
> It sounds like you are having trouble getting data from a database, but
> you are not showing the code you use to do that.  There are several
> sections in the docs about getting data from a server.  See this one for
> example:
> https://google-developers.appspot.com/chart/interactive/docs/php_example
>
> On Tue, Mar 8, 2016 at 6:06 AM, Krishna Prasad  wrote:
>
>> Hi Denial,
>>
>> Please find the URL http://pinnacleinfotech.in/vivera/chart.html  its
>> working fine. Please help me to resolve this.
>>
>> On Monday, March 7, 2016 at 7:08:15 PM UTC+5:30, Daniel LaLiberte wrote:
>>>
>>> Hi Krishna,
>>>
>>> Your URL is the same as before, and results in an error.
>>>
>>> On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad  wrote:
>>>
>>>
>>> Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html
>>> 
>>>
>>> On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:
>>>
>>> Hi,
>>>
>>> My chart should exactly looks like this
>>> http://onnetsourcing.com/vivera/chart.html . Here I have entered the
>>> data in manual format. Please help me the script which istaking the data
>>> from DB and display in the chart.html page. You can see the codes as below:
>>>
>>> https://www.google.com/jsapi";>
>>> 
>>> 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2016-03-08 Thread 'Daniel LaLiberte' via Google Visualization API
OK I can see an image of a chart now.  I am not clear on what your problem
is.

It sounds like you are having trouble getting data from a database, but you
are not showing the code you use to do that.  There are several sections in
the docs about getting data from a server.  See this one for example:
https://google-developers.appspot.com/chart/interactive/docs/php_example

On Tue, Mar 8, 2016 at 6:06 AM, Krishna Prasad  wrote:

> Hi Denial,
>
> Please find the URL http://pinnacleinfotech.in/vivera/chart.html  its
> working fine. Please help me to resolve this.
>
> On Monday, March 7, 2016 at 7:08:15 PM UTC+5:30, Daniel LaLiberte wrote:
>>
>> Hi Krishna,
>>
>> Your URL is the same as before, and results in an error.
>>
>> On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad  wrote:
>>
>>
>> Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html
>> 
>>
>> On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:
>>
>> Hi,
>>
>> My chart should exactly looks like this
>> http://onnetsourcing.com/vivera/chart.html . Here I have entered the
>> data in manual format. Please help me the script which istaking the data
>> from DB and display in the chart.html page. You can see the codes as below:
>>
>> https://www.google.com/jsapi";>
>> 
>> 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2016-03-08 Thread Krishna Prasad
Hi Denial,

Please find the URL http://pinnacleinfotech.in/vivera/chart.html  its 
working fine. Please help me to resolve this.

On Monday, March 7, 2016 at 7:08:15 PM UTC+5:30, Daniel LaLiberte wrote:
>
> Hi Krishna,
>
> Your URL is the same as before, and results in an error.
>
> On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad  > wrote:
>
>
> Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html 
> 
>
> On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:
>
> Hi,
>
> My chart should exactly looks like this 
> http://onnetsourcing.com/vivera/chart.html . Here I have entered the data 
> in manual format. Please help me the script which istaking the data from DB 
> and display in the chart.html page. You can see the codes as below:
>
> https://www.google.com/jsapi";>
> 
> 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2016-03-07 Thread 'Daniel LaLiberte' via Google Visualization API
Hi Krishna,

Your URL is the same as before, and results in an error.

On Mon, Mar 7, 2016 at 5:06 AM, Krishna Prasad  wrote:

>
> Now the URL changed as http://pinnacleinfotech.in/vivera/chart.html
> 
>
> On Tuesday, March 1, 2016 at 12:54:16 PM UTC+5:30, krishna prasad wrote:
>
>> Hi,
>>
>> My chart should exactly looks like this
>> http://onnetsourcing.com/vivera/chart.html . Here I have entered the
>> data in manual format. Please help me the script which istaking the data
>> from DB and display in the chart.html page. You can see the codes as below:
>>
>> https://www.google.com/jsapi";>
>> 
>> 
>> google.load("visualization", "1", {packages:["corechart"]});
>>
>> var dataSet = [
>> ['Date','1st Floor', '2nd Floor', '3rd Floor', '4th Floor', '5th Floor',
>> '6th Floor', '7th Floor', 'Tarrace Floor'],
>> ['A Block', 1, 1, 1, 0, 0, 0, 0, 0],
>> ['B Block', 1, 1, 1, 1, 1, 1, 1, 1],
>> ['C Block', 1, 1, 1, 1, 1, 1, 1, 1],
>> ['D Block', 1, 1, 1, 1, 1, 1, 1, 1],
>> ['E Block', 1, 1, 0, 0, 0, 0, 0, 0],
>> ['F Block', 1, 1, 0, 0, 0, 0, 0, 0],
>> ];
>>
>> // The first chart
>>
>> google.setOnLoadCallback(drawChart1);
>> function drawChart1() {
>> var data = google.visualization.arrayToDataTable( dataSet );
>>
>> var options = {
>> title: 'Project Progress Report\nTotals',
>> vAxis: {title: 'Completed Floors', maxValue: 8}, // sets the maximum value
>> backgroundColor: {strokeWidth: 2 }, // to draw a nice box all around the
>> chart
>> isStacked: 'true' // = rowstacked in gnuplot
>> };
>>
>> var chart = new
>> google.visualization.ColumnChart(document.getElementById('chart_div1'));
>> chart.draw(data, options);
>> }
>>
>> 
>>
>> 
>> 
>> 
>> ...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/98a0bd00-6f61-4426-9dcf-2085f746dea1%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte 
dlalibe...@google.com    5CC, Cambridge MA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPvPkJjjSaaMzX%2BONKB8UT3QKOQ7M1fAaM%2BNnSxibZWhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-07-13 Thread Chrystopher Medina
My friend I hope u are.so good. I just wanna tell u thanks for everithing.
how u told me. Search something wich u feel good with that. And I find
laravel really I like a lot and thanks a lot for everithing . Saludos
 El 18/06/2013 08:12, Chrystopher Medina xhav...@gmail.com escribió:

 Thanks.  I have a question for u. Could u tell me some frameworks in php
 or javascript or ruby or python please
  El 18/06/2013 03:52, Erka Bek erka2...@gmail.com escribió:

 thanks

 On Thursday, October 20, 2011 10:07:05 PM UTC+8, asgallant wrote:

 If you really don't want to use JSON, you can build the javascript with
 PHP directly.  As an example, put this inside the script:

 google.load('visualization', '**1', {packages: ['corechart']})**;
 google.setOnLoadCallback(drawC**hart);

 function drawChart () {
 var data = new google.visual**ization.DataTable();
 data.addColumn('string', '**foo');
 data.addColumn('number', '**bar');
 ?php
 // query MySQL and put results into array $results
 foreach ($results as $row) {
 echo data.addRow(['{$row['**foo']}', {$row['bar']}]);;
 }
 ?
 var chart = new google.visua**lization.BarChart('chart_div')**;
 chart.draw(data, options);
 }

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-06-18 Thread Chrystopher Medina
Thanks.  I have a question for u. Could u tell me some frameworks in php or
javascript or ruby or python please
 El 18/06/2013 03:52, Erka Bek erka2...@gmail.com escribió:

 thanks

 On Thursday, October 20, 2011 10:07:05 PM UTC+8, asgallant wrote:

 If you really don't want to use JSON, you can build the javascript with
 PHP directly.  As an example, put this inside the script:

 google.load('visualization', '**1', {packages: ['corechart']})**;
 google.setOnLoadCallback(drawC**hart);

 function drawChart () {
 var data = new google.visual**ization.DataTable();
 data.addColumn('string', '**foo');
 data.addColumn('number', '**bar');
 ?php
 // query MySQL and put results into array $results
 foreach ($results as $row) {
 echo data.addRow(['{$row['**foo']}', {$row['bar']}]);;
 }
 ?
 var chart = new google.visua**lization.BarChart('chart_div')**;
 chart.draw(data, options);
 }

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-06-11 Thread Chrystopher Medina
My friend could you tell me all frameworks mvc that u know.  Is for my
school i have to explain them for my residence please my friend
El 14/05/2013 23:21, Chrystopher Medina xhav...@gmail.com escribió:

 or please give me some examples to do some querys in pdo´s or something
 like that and i will try to change that script. please


 2013/5/14 Chrystopher Medina xhav...@gmail.com

 ok my friend really a lot of thanks.

 my friend another favor please. i wanna use pdo´s but it is really hard
 for me. i don´t understand very well. please could u teach me how i can
 change this next script:


 please i have been reading a little about pdo but i did not undestand.
 please my friend . help me to change this ... and really i would apreciate
 it if u could add some comments...

 ?php
 try
 {
 //Open database connection
 include('../conexion.php');

 //Getting records (listAction)
  if($_GET[action] == list)
 {
 //Get records from database
  $result = mysql_query(SELECT * FROM recintos;);
  //Add all records to an array
  $rows = array();
 while($row = mysql_fetch_array($result))
 {
 $rows[] = $row;
 }

 //Return result to jTable
  $jTableResult = array();
 $jTableResult['Result'] = OK;
 $jTableResult['Records'] = $rows;
  print json_encode($jTableResult);
 }
 //Creating a new record (createAction)
  else if($_GET[action] == create)
 {
 //Insert record into database
  $result = mysql_query(insert into recintos
 values('0','.$_POST['nombre_recinto'].','.$_POST['descripcion_recinto'].'););
  //Get last inserted record (to return to jTable)
 $result = mysql_query(SELECT * FROM recintos WHERE id_recinto =
 LAST_INSERT_ID(););
  $row = mysql_fetch_array($result);

 //Return result to jTable
 $jTableResult = array();
  $jTableResult['Result'] = OK;
 $jTableResult['Record'] = $row;
 print json_encode($jTableResult);
  }
 //Updating a record (updateAction)
 else if($_GET[action] == update)
  {
 //Update record in database
 $result = mysql_query(UPDATE recintos SET nombre_recinto = ' .
 $_POST[nombre_recinto] . ', descripcion_recinto = ' .
 $_POST[descripcion_recinto] . ' WHERE id_recinto =  .
 $_POST[id_recinto].;);

 //Return result to jTable
 $jTableResult = array();
 $jTableResult['Result'] = OK;
  print json_encode($jTableResult);
 }
 //Deleting a record (deleteAction)
  else if($_GET[action] == delete)
 {
 //Delete from database
  $result = mysql_query(DELETE FROM recintos WHERE id_recinto =  .
 $_POST[id_recinto] . ;);

 //Return result to jTable
  $jTableResult = array();
 $jTableResult['Result'] = OK;
 print json_encode($jTableResult);
  }

 //Close database connection
 mysql_close($con);

 }
 catch(Exception $ex)
 {
 //Return error message
 $jTableResult = array();
 $jTableResult['Result'] = ERROR;
  $jTableResult['Message'] = $ex-getMessage();
 print json_encode($jTableResult);
 }
  ?


 2013/5/14 asgallant drew_gall...@abtassoc.com

 There are two different things that you could be looking for here, so
 let's clarify a bit: having a spinner run while the page itself is loading
 might be problematic (you can't do much of anything until the page is
 loaded - your best bet would be to include an img tag at the top of your
 HTML and hide it when the page is loaded).  If you want to use a spinner
 while your AJAX calls are being fetched, that's a different story
 altogether, and the jQuery plugins will handle that for you; you just need
 to find a plugin that you like.

 On Tuesday, May 14, 2013 3:11:16 PM UTC-4, Chrystopher Medina wrote:

 well i have mi spinner , i just wanna show it before the page be
 loaded. or even i have to use jquery spinner



 2013/5/14 asgallant drew_g...@abtassoc.com

 Do you want a loading spinner (or something like it)?  There are
 jQuery plugins that can do that for you (search for jQuery spinner).


 On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote:

 hi my frined u know i have this

 $(document).on('ready',**functio**n(){
 //$(nav div ul li ul li a).on('click',function(e){
   // $(#contenido).load('vistas/' + $(this).attr('id') +
 '.php');
   //});




$(#contenido).load('vistas/ayuda.php');
 $(.menu).on('click',**function**(){
$(#contenido).load('vistas/' + $(this).attr('id') + '.php');

 });


 });

 but i just wanna show a image.gif  before load and when the page be
 load the image hides like next

  $(#cargando).show();




 2013/5/13 Chrystopher Medina xha...@gmail.com

 Thanks my friend I will keep investigating about that.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/google-visualization-**api/-zapZe7dH7Y/unsubscribe?**hl=enhttps://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+**unsubscr...@googlegroups.com.
 To post to this group, 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-14 Thread Chrystopher Medina
hi my frined u know i have this

$(document).on('ready',function(){
//$(nav div ul li ul li a).on('click',function(e){
  // $(#contenido).load('vistas/' + $(this).attr('id') + '.php');
  //});




   $(#contenido).load('vistas/ayuda.php');
$(.menu).on('click',function(){
   $(#contenido).load('vistas/' + $(this).attr('id') + '.php');

});


});

but i just wanna show a image.gif  before load and when the page be load
the image hides like next

 $(#cargando).show();




2013/5/13 Chrystopher Medina xhav...@gmail.com

 Thanks my friend I will keep investigating about that.


-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-14 Thread asgallant
Do you want a loading spinner (or something like it)?  There are jQuery 
plugins that can do that for you (search for jQuery spinner).

On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote:

 hi my frined u know i have this 

 $(document).on('ready',function(){
 //$(nav div ul li ul li a).on('click',function(e){
   // $(#contenido).load('vistas/' + $(this).attr('id') + '.php');
   //}); 
   
  

   
$(#contenido).load('vistas/ayuda.php'); 
 $(.menu).on('click',function(){
$(#contenido).load('vistas/' + $(this).attr('id') + '.php');

 });


 });

 but i just wanna show a image.gif  before load and when the page be load 
 the image hides like next 

  $(#cargando).show();




 2013/5/13 Chrystopher Medina xha...@gmail.com javascript:

 Thanks my friend I will keep investigating about that. 




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-14 Thread Chrystopher Medina
well i have mi spinner , i just wanna show it before the page be loaded. or
even i have to use jquery spinner



2013/5/14 asgallant drew_gall...@abtassoc.com

 Do you want a loading spinner (or something like it)?  There are jQuery
 plugins that can do that for you (search for jQuery spinner).


 On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote:

 hi my frined u know i have this

 $(document).on('ready',**function(){
 //$(nav div ul li ul li a).on('click',function(e){
   // $(#contenido).load('vistas/' + $(this).attr('id') + '.php');
   //});




$(#contenido).load('vistas/**ayuda.php');
 $(.menu).on('click',**function(){
$(#contenido).load('vistas/**' + $(this).attr('id') + '.php');

 });


 });

 but i just wanna show a image.gif  before load and when the page be load
 the image hides like next

  $(#cargando).show();




 2013/5/13 Chrystopher Medina xha...@gmail.com

 Thanks my friend I will keep investigating about that.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-14 Thread asgallant
There are two different things that you could be looking for here, so let's 
clarify a bit: having a spinner run while the page itself is loading might 
be problematic (you can't do much of anything until the page is loaded - 
your best bet would be to include an img tag at the top of your HTML and 
hide it when the page is loaded).  If you want to use a spinner while your 
AJAX calls are being fetched, that's a different story altogether, and the 
jQuery plugins will handle that for you; you just need to find a plugin 
that you like.

On Tuesday, May 14, 2013 3:11:16 PM UTC-4, Chrystopher Medina wrote:

 well i have mi spinner , i just wanna show it before the page be loaded. 
 or even i have to use jquery spinner



 2013/5/14 asgallant drew_g...@abtassoc.com javascript:

 Do you want a loading spinner (or something like it)?  There are jQuery 
 plugins that can do that for you (search for jQuery spinner).


 On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote:

 hi my frined u know i have this 

 $(document).on('ready',**function(){
 //$(nav div ul li ul li a).on('click',function(e){
   // $(#contenido).load('vistas/' + $(this).attr('id') + '.php');
   //}); 
   
  

   
$(#contenido).load('vistas/**ayuda.php'); 
 $(.menu).on('click',**function(){
$(#contenido).load('vistas/**' + $(this).attr('id') + '.php');

 });


 });

 but i just wanna show a image.gif  before load and when the page be load 
 the image hides like next 

  $(#cargando).show();




 2013/5/13 Chrystopher Medina xha...@gmail.com

 Thanks my friend I will keep investigating about that. 


  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-visualization-api+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-visua...@googlegroups.comjavascript:
 .
 Visit this group at 
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-14 Thread Chrystopher Medina
ok my friend really a lot of thanks.

my friend another favor please. i wanna use pdo´s but it is really hard for
me. i don´t understand very well. please could u teach me how i can change
this next script:


please i have been reading a little about pdo but i did not undestand.
please my friend . help me to change this ... and really i would apreciate
it if u could add some comments...

?php
try
{
//Open database connection
include('../conexion.php');

//Getting records (listAction)
if($_GET[action] == list)
{
//Get records from database
$result = mysql_query(SELECT * FROM recintos;);
 //Add all records to an array
$rows = array();
while($row = mysql_fetch_array($result))
{
$rows[] = $row;
}

//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = OK;
$jTableResult['Records'] = $rows;
print json_encode($jTableResult);
}
//Creating a new record (createAction)
else if($_GET[action] == create)
{
//Insert record into database
$result = mysql_query(insert into recintos
values('0','.$_POST['nombre_recinto'].','.$_POST['descripcion_recinto'].'););
//Get last inserted record (to return to jTable)
$result = mysql_query(SELECT * FROM recintos WHERE id_recinto =
LAST_INSERT_ID(););
$row = mysql_fetch_array($result);

//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = OK;
$jTableResult['Record'] = $row;
print json_encode($jTableResult);
}
//Updating a record (updateAction)
else if($_GET[action] == update)
{
//Update record in database
$result = mysql_query(UPDATE recintos SET nombre_recinto = ' .
$_POST[nombre_recinto] . ', descripcion_recinto = ' .
$_POST[descripcion_recinto] . ' WHERE id_recinto =  .
$_POST[id_recinto].;);

//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = OK;
print json_encode($jTableResult);
}
//Deleting a record (deleteAction)
else if($_GET[action] == delete)
{
//Delete from database
$result = mysql_query(DELETE FROM recintos WHERE id_recinto =  .
$_POST[id_recinto] . ;);

//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = OK;
print json_encode($jTableResult);
}

//Close database connection
mysql_close($con);

}
catch(Exception $ex)
{
//Return error message
$jTableResult = array();
$jTableResult['Result'] = ERROR;
$jTableResult['Message'] = $ex-getMessage();
print json_encode($jTableResult);
}
?


2013/5/14 asgallant drew_gall...@abtassoc.com

 There are two different things that you could be looking for here, so
 let's clarify a bit: having a spinner run while the page itself is loading
 might be problematic (you can't do much of anything until the page is
 loaded - your best bet would be to include an img tag at the top of your
 HTML and hide it when the page is loaded).  If you want to use a spinner
 while your AJAX calls are being fetched, that's a different story
 altogether, and the jQuery plugins will handle that for you; you just need
 to find a plugin that you like.

 On Tuesday, May 14, 2013 3:11:16 PM UTC-4, Chrystopher Medina wrote:

 well i have mi spinner , i just wanna show it before the page be loaded.
 or even i have to use jquery spinner



 2013/5/14 asgallant drew_g...@abtassoc.com

 Do you want a loading spinner (or something like it)?  There are
 jQuery plugins that can do that for you (search for jQuery spinner).


 On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote:

 hi my frined u know i have this

 $(document).on('ready',**functio**n(){
 //$(nav div ul li ul li a).on('click',function(e){
   // $(#contenido).load('vistas/' + $(this).attr('id') + '.php');
   //});




$(#contenido).load('vistas/ayuda.php');
 $(.menu).on('click',**function**(){
$(#contenido).load('vistas/' + $(this).attr('id') + '.php');

 });


 });

 but i just wanna show a image.gif  before load and when the page be
 load the image hides like next

  $(#cargando).show();




 2013/5/13 Chrystopher Medina xha...@gmail.com

 Thanks my friend I will keep investigating about that.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/google-visualization-**api/-zapZe7dH7Y/unsubscribe?**hl=enhttps://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+**unsubscr...@googlegroups.com.
 To post to this group, send email to google-visua...@**googlegroups.com.

 Visit this group at http://groups.google.com/**
 group/google-visualization-**api?hl=enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-14 Thread Chrystopher Medina
or please give me some examples to do some querys in pdo´s or something
like that and i will try to change that script. please


2013/5/14 Chrystopher Medina xhav...@gmail.com

 ok my friend really a lot of thanks.

 my friend another favor please. i wanna use pdo´s but it is really hard
 for me. i don´t understand very well. please could u teach me how i can
 change this next script:


 please i have been reading a little about pdo but i did not undestand.
 please my friend . help me to change this ... and really i would apreciate
 it if u could add some comments...

 ?php
 try
 {
 //Open database connection
 include('../conexion.php');

 //Getting records (listAction)
  if($_GET[action] == list)
 {
 //Get records from database
  $result = mysql_query(SELECT * FROM recintos;);
  //Add all records to an array
  $rows = array();
 while($row = mysql_fetch_array($result))
 {
 $rows[] = $row;
 }

 //Return result to jTable
  $jTableResult = array();
 $jTableResult['Result'] = OK;
 $jTableResult['Records'] = $rows;
  print json_encode($jTableResult);
 }
 //Creating a new record (createAction)
  else if($_GET[action] == create)
 {
 //Insert record into database
  $result = mysql_query(insert into recintos
 values('0','.$_POST['nombre_recinto'].','.$_POST['descripcion_recinto'].'););
  //Get last inserted record (to return to jTable)
 $result = mysql_query(SELECT * FROM recintos WHERE id_recinto =
 LAST_INSERT_ID(););
  $row = mysql_fetch_array($result);

 //Return result to jTable
 $jTableResult = array();
  $jTableResult['Result'] = OK;
 $jTableResult['Record'] = $row;
 print json_encode($jTableResult);
  }
 //Updating a record (updateAction)
 else if($_GET[action] == update)
  {
 //Update record in database
 $result = mysql_query(UPDATE recintos SET nombre_recinto = ' .
 $_POST[nombre_recinto] . ', descripcion_recinto = ' .
 $_POST[descripcion_recinto] . ' WHERE id_recinto =  .
 $_POST[id_recinto].;);

 //Return result to jTable
 $jTableResult = array();
 $jTableResult['Result'] = OK;
  print json_encode($jTableResult);
 }
 //Deleting a record (deleteAction)
  else if($_GET[action] == delete)
 {
 //Delete from database
  $result = mysql_query(DELETE FROM recintos WHERE id_recinto =  .
 $_POST[id_recinto] . ;);

 //Return result to jTable
  $jTableResult = array();
 $jTableResult['Result'] = OK;
 print json_encode($jTableResult);
  }

 //Close database connection
 mysql_close($con);

 }
 catch(Exception $ex)
 {
 //Return error message
 $jTableResult = array();
 $jTableResult['Result'] = ERROR;
  $jTableResult['Message'] = $ex-getMessage();
 print json_encode($jTableResult);
 }
  ?


 2013/5/14 asgallant drew_gall...@abtassoc.com

 There are two different things that you could be looking for here, so
 let's clarify a bit: having a spinner run while the page itself is loading
 might be problematic (you can't do much of anything until the page is
 loaded - your best bet would be to include an img tag at the top of your
 HTML and hide it when the page is loaded).  If you want to use a spinner
 while your AJAX calls are being fetched, that's a different story
 altogether, and the jQuery plugins will handle that for you; you just need
 to find a plugin that you like.

 On Tuesday, May 14, 2013 3:11:16 PM UTC-4, Chrystopher Medina wrote:

 well i have mi spinner , i just wanna show it before the page be loaded.
 or even i have to use jquery spinner



 2013/5/14 asgallant drew_g...@abtassoc.com

 Do you want a loading spinner (or something like it)?  There are
 jQuery plugins that can do that for you (search for jQuery spinner).


 On Tuesday, May 14, 2013 1:52:56 PM UTC-4, Chrystopher Medina wrote:

 hi my frined u know i have this

 $(document).on('ready',**functio**n(){
 //$(nav div ul li ul li a).on('click',function(e){
   // $(#contenido).load('vistas/' + $(this).attr('id') + '.php');
   //});




$(#contenido).load('vistas/ayuda.php');
 $(.menu).on('click',**function**(){
$(#contenido).load('vistas/' + $(this).attr('id') + '.php');

 });


 });

 but i just wanna show a image.gif  before load and when the page be
 load the image hides like next

  $(#cargando).show();




 2013/5/13 Chrystopher Medina xha...@gmail.com

 Thanks my friend I will keep investigating about that.


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/google-visualization-**api/-zapZe7dH7Y/unsubscribe?**hl=enhttps://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+**unsubscr...@googlegroups.com.
 To post to this group, send email to google-visua...@**googlegroups.com
 .

 Visit this group at http://groups.google.com/**
 group/google-visualization-**api?hl=enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-13 Thread asgallant
Sorry, I've never used it.

On Monday, May 13, 2013 1:28:57 AM UTC-4, Chrystopher Medina wrote:

 hi again my friend i have some question for u. have u ever used this 
 plugin from jquery . its name is jatable its website is jtable.org . 
 because i have some problems . i can not validate if i wanna add one user 
 but if this user name already exists


 2013/5/1 Chrystopher Medina xha...@gmail.com javascript:

 really a lof of thanks my friend , now it works perfectly. i really 
 apreciate it 


 2013/5/1 asgallant drew_g...@abtassoc.com javascript:

 Your while loop should look like this:

 while($row = mysql_fetch_array($result)) {
 $temp = array();
 $temp['DisplayText'] = $row['nombre_escolaridad'];
 $temp['Value'] = $row['id_escolaridad'];
 $rows[] = $temp;
 }

 On Wednesday, May 1, 2013 7:03:39 AM UTC-4, Chrystopher Medina wrote:

 my friend i think that i have found the answer to my problem. but could 
 you help me to generate the next format json whit php

 i have this

 ?php

 $con = mysql_connect(localhost,**root,chrystopher);
 mysql_select_db(si_caoi, $con);
 
 $result = mysql_query(SELECT * FROM escolaridad;);
 

 $rows = array();
 while($row = mysql_fetch_array($result))
 {
 $rows[] = $row;
 }

 
 $ff = array();
 $ff['Result'] = OK;
 $ff['Options'] = $rows;
 print json_encode($ff);

 ?

 and this the result in json:  


 {Result:OK,Options:[{0**:2,id_escolaridad:2,1:**
 Secundaria,nombre_**escolaridad:Secundaria},{**
 0:3,id_escolaridad:3,**1:Preparatoria,nombre_**
 escolaridad:Preparatoria},{**0:4,id_escolaridad:4,**
 1:Licanciatura,nombre_**escolaridad:Licanciatura},{**
 0:5,id_escolaridad:5,**1:Maestria,nombre_**
 escolaridad:Maestria},{0:**6,id_escolaridad:6,1:**
 primaria,nombre_escolaridad**:primaria},{0:8,id_**
 escolaridad:8,1:uj,**nombre_escolaridad:uj}]}


 and what i wanna obtain is the next format json

 {
Result:OK,
Options:[
   {
  DisplayText:**Secundaria,
  Value:2
   },
   {
  DisplayText:**Preparatoria,
  Value:3
   },
   {
  DisplayText:**Licenciatura,
  Value:4
   },
   {
  DisplayText:**Maestria,
  Value:5
   },
   {
  DisplayText:**Primaria,
  Value:6
   },
   {
  DisplayText:uj,
  Value:8
   }
]
 }



 2013/5/1 Chrystopher Medina xha...@gmail.com

 my frined have u ever used this plugin named jtable ...
 please check this 
 http://www.jtable.org/**Demo/Filteringhttp://www.jtable.org/Demo/Filtering 
 i 
 just wanna filtering but with php and in that example is in asp.net could 
 you helme please. there is not documentation about how to use it on php.  
 please my friend


 2013/4/24 Chrystopher Medina xha...@gmail.com

 i found the problem my friend i think that it was because linux is 
 sensitive to case sensitive


 2013/4/23 Chrystopher Medina xha...@gmail.com

 its a plugin to do crud aplications but it does not work on linux my 
 friend ... u know why


 2013/4/23 Chrystopher Medina xha...@gmail.com

 my friend i have the next file but this is not loaded on linux u know why. 
 because i downloaded a example from jtable.orj but i tried it on windows 
 and everything looks perfectly but on linux nothing 
  

 2013/4/23 Chrystopher Medina xha...@gmail.com
 blockqu

 ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-13 Thread Chrystopher Medina
Thanks my friend I will keep investigating about that.

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-12 Thread Chrystopher Medina
hi again my friend i have some question for u. have u ever used this plugin
from jquery . its name is jatable its website is jtable.org . because i
have some problems . i can not validate if i wanna add one user but if this
user name already exists


2013/5/1 Chrystopher Medina xhav...@gmail.com

 really a lof of thanks my friend , now it works perfectly. i really
 apreciate it


 2013/5/1 asgallant drew_gall...@abtassoc.com

 Your while loop should look like this:

 while($row = mysql_fetch_array($result)) {
 $temp = array();
 $temp['DisplayText'] = $row['nombre_escolaridad'];
 $temp['Value'] = $row['id_escolaridad'];
 $rows[] = $temp;
 }

 On Wednesday, May 1, 2013 7:03:39 AM UTC-4, Chrystopher Medina wrote:

 my friend i think that i have found the answer to my problem. but could
 you help me to generate the next format json whit php

 i have this

 ?php

 $con = mysql_connect(localhost,**root,chrystopher);
 mysql_select_db(si_caoi, $con);

 $result = mysql_query(SELECT * FROM escolaridad;);


 $rows = array();
 while($row = mysql_fetch_array($result))
 {
 $rows[] = $row;
 }


 $ff = array();
 $ff['Result'] = OK;
 $ff['Options'] = $rows;
 print json_encode($ff);

 ?

 and this the result in json:


 {Result:OK,Options:[{0**:2,id_escolaridad:2,1:**
 Secundaria,nombre_**escolaridad:Secundaria},{**
 0:3,id_escolaridad:3,**1:Preparatoria,nombre_**
 escolaridad:Preparatoria},{**0:4,id_escolaridad:4,**
 1:Licanciatura,nombre_**escolaridad:Licanciatura},{**
 0:5,id_escolaridad:5,**1:Maestria,nombre_**
 escolaridad:Maestria},{0:**6,id_escolaridad:6,1:**
 primaria,nombre_escolaridad**:primaria},{0:8,id_**
 escolaridad:8,1:uj,**nombre_escolaridad:uj}]}


 and what i wanna obtain is the next format json

 {
Result:OK,
Options:[
   {
  DisplayText:**Secundaria,
  Value:2
   },
   {
  DisplayText:**Preparatoria,
  Value:3
   },
   {
  DisplayText:**Licenciatura,
  Value:4
   },
   {
  DisplayText:**Maestria,
  Value:5
   },
   {
  DisplayText:**Primaria,
  Value:6
   },
   {
  DisplayText:uj,
  Value:8
   }
]
 }



 2013/5/1 Chrystopher Medina xha...@gmail.com

 my frined have u ever used this plugin named jtable ...
 please check this 
 http://www.jtable.org/**Demo/Filteringhttp://www.jtable.org/Demo/Filtering
  i
 just wanna filtering but with php and in that example is in asp.netcould 
 you helme please. there is not documentation about how to use it on
 php.
 please my friend


 2013/4/24 Chrystopher Medina xha...@gmail.com

 i found the problem my friend i think that it was because linux is
 sensitive to case sensitive


 2013/4/23 Chrystopher Medina xha...@gmail.com

 its a plugin to do crud aplications but it does not work on linux my
 friend ... u know why


 2013/4/23 Chrystopher Medina xha...@gmail.com

 my friend i have the next file but this is not loaded on linux u know
 why. because i downloaded a example from jtable.orj but i tried it on
 windows and everything looks perfectly but on linux nothing


 2013/4/23 Chrystopher Medina xha...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_g...@abtassoc.com escribió:

 You can use that.  The license is described here: https://jquery.org/**
 license/ https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Sel

 ...

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-01 Thread Chrystopher Medina
my frined have u ever used this plugin named jtable ...
please check this http://www.jtable.org/Demo/Filtering i just wanna
filtering but with php and in that example is in asp.net could you helme
please. there is not documentation about how to use it on php.
please my friend


2013/4/24 Chrystopher Medina xhav...@gmail.com

 i found the problem my friend i think that it was because linux is
 sensitive to case sensitive


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 its a plugin to do crud aplications but it does not work on linux my
 friend ... u know why


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 my friend i have the next file but this is not loaded on linux u know
 why. because i downloaded a example from jtable.orj but i tried it on
 windows and everything looks perfectly but on linux nothing


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_gall...@abtassoc.com escribió:

 You can use that.  The license is described here:
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains
 this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * 
 http://docs.jquery.com/UI/**Selectable#theminghttp://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay ,,,


 2013/4/20 asgallant drew_g...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a
 full HTML doc into another HTML doc.  The structure:

 html
 body
 html
  /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be
 causing you problems, if it doesn't want to act like a div, but I would
 test everything else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina
 wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button
 the file gerencias.html is loaded into my index. but the file
 gerencias.html is loaded but with out styles and it doesnt make
 nothin.. pleame my friend open the files ... i have this problem 
 since
 1 week and i dont know what i can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutori**als/php/php-database-**access-**
 are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tu**torial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tut**orials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina
 wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos
 . Because y was reading the pdos document in the web site from php.  But 
 I
 if I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

  With PDO's, setting the PDO variable ($db in your script) to null
 closes the connection.  Most sources I have read also say to set all
 prepared statement variables ($query in your script) to null as well, but
 I'm not certain that this is strictly necessary.  You are setting both of
 them to null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina
 wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$
 **password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM
 roles a, usuarios b WHERE a.id_rol = b.id_rol AND b.password =
 MD5(:password) AND b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario'
 = $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-01 Thread Chrystopher Medina
my friend i think that i have found the answer to my problem. but could you
help me to generate the next format json whit php

i have this

?php

$con = mysql_connect(localhost,root,chrystopher);
mysql_select_db(si_caoi, $con);

$result = mysql_query(SELECT * FROM escolaridad;);


$rows = array();
while($row = mysql_fetch_array($result))
{
$rows[] = $row;
}


$ff = array();
$ff['Result'] = OK;
$ff['Options'] = $rows;
print json_encode($ff);

?

and this the result in json:


{Result:OK,Options:[{0:2,id_escolaridad:2,1:Secundaria,nombre_escolaridad:Secundaria},{0:3,id_escolaridad:3,1:Preparatoria,nombre_escolaridad:Preparatoria},{0:4,id_escolaridad:4,1:Licanciatura,nombre_escolaridad:Licanciatura},{0:5,id_escolaridad:5,1:Maestria,nombre_escolaridad:Maestria},{0:6,id_escolaridad:6,1:primaria,nombre_escolaridad:primaria},{0:8,id_escolaridad:8,1:uj,nombre_escolaridad:uj}]}


and what i wanna obtain is the next format json

{
   Result:OK,
   Options:[
  {
 DisplayText:Secundaria,
 Value:2
  },
  {
 DisplayText:Preparatoria,
 Value:3
  },
  {
 DisplayText:Licenciatura,
 Value:4
  },
  {
 DisplayText:Maestria,
 Value:5
  },
  {
 DisplayText:Primaria,
 Value:6
  },
  {
 DisplayText:uj,
 Value:8
  }
   ]
}



2013/5/1 Chrystopher Medina xhav...@gmail.com

 my frined have u ever used this plugin named jtable ...
 please check this http://www.jtable.org/Demo/Filtering i just wanna
 filtering but with php and in that example is in asp.net could you helme
 please. there is not documentation about how to use it on php.
 please my friend


 2013/4/24 Chrystopher Medina xhav...@gmail.com

 i found the problem my friend i think that it was because linux is
 sensitive to case sensitive


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 its a plugin to do crud aplications but it does not work on linux my
 friend ... u know why


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 my friend i have the next file but this is not loaded on linux u know
 why. because i downloaded a example from jtable.orj but i tried it on
 windows and everything looks perfectly but on linux nothing


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_gall...@abtassoc.com escribió:

 You can use that.  The license is described here:
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina
 wrote:

 my friend i found a plugin to do crud aplications . but it contains
 this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * 
 http://docs.jquery.com/UI/**Selectable#theminghttp://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay
 ,,,


 2013/4/20 asgallant drew_g...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a
 full HTML doc into another HTML doc.  The structure:

 html
 body
 html
  /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be
 causing you problems, if it doesn't want to act like a div, but I would
 test everything else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina
 wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button
 the file gerencias.html is loaded into my index. but the file
 gerencias.html is loaded but with out styles and it doesnt make
 nothin.. pleame my friend open the files ... i have this problem 
 since
 1 week and i dont know what i can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutori**als/php/php-database-**access-**
 are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tu**torial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tut**orials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-01 Thread asgallant
Your while loop should look like this:

while($row = mysql_fetch_array($result)) {
$temp = array();
$temp['DisplayText'] = $row['nombre_escolaridad'];
$temp['Value'] = $row['id_escolaridad'];
$rows[] = $temp;
}

On Wednesday, May 1, 2013 7:03:39 AM UTC-4, Chrystopher Medina wrote:

 my friend i think that i have found the answer to my problem. but could 
 you help me to generate the next format json whit php

 i have this

 ?php

 $con = mysql_connect(localhost,root,chrystopher);
 mysql_select_db(si_caoi, $con);
 
 $result = mysql_query(SELECT * FROM escolaridad;);
 

 $rows = array();
 while($row = mysql_fetch_array($result))
 {
 $rows[] = $row;
 }

 
 $ff = array();
 $ff['Result'] = OK;
 $ff['Options'] = $rows;
 print json_encode($ff);

 ?

 and this the result in json:  



 {Result:OK,Options:[{0:2,id_escolaridad:2,1:Secundaria,nombre_escolaridad:Secundaria},{0:3,id_escolaridad:3,1:Preparatoria,nombre_escolaridad:Preparatoria},{0:4,id_escolaridad:4,1:Licanciatura,nombre_escolaridad:Licanciatura},{0:5,id_escolaridad:5,1:Maestria,nombre_escolaridad:Maestria},{0:6,id_escolaridad:6,1:primaria,nombre_escolaridad:primaria},{0:8,id_escolaridad:8,1:uj,nombre_escolaridad:uj}]}


 and what i wanna obtain is the next format json

 {
Result:OK,
Options:[
   {
  DisplayText:Secundaria,
  Value:2
   },
   {
  DisplayText:Preparatoria,
  Value:3
   },
   {
  DisplayText:Licenciatura,
  Value:4
   },
   {
  DisplayText:Maestria,
  Value:5
   },
   {
  DisplayText:Primaria,
  Value:6
   },
   {
  DisplayText:uj,
  Value:8
   }
]
 }



 2013/5/1 Chrystopher Medina xha...@gmail.com javascript:

 my frined have u ever used this plugin named jtable ...
 please check this http://www.jtable.org/Demo/Filtering i just wanna 
 filtering but with php and in that example is in asp.net could you helme 
 please. there is not documentation about how to use it on php.  
 please my friend


 2013/4/24 Chrystopher Medina xha...@gmail.com javascript:

 i found the problem my friend i think that it was because linux is 
 sensitive to case sensitive


 2013/4/23 Chrystopher Medina xha...@gmail.com javascript:

 its a plugin to do crud aplications but it does not work on linux my 
 friend ... u know why


 2013/4/23 Chrystopher Medina xha...@gmail.com javascript:

 my friend i have the next file but this is not loaded on linux u know why. 
 because i downloaded a example from jtable.orj but i tried it on windows 
 and everything looks perfectly but on linux nothing 
  

 2013/4/23 Chrystopher Medina xha...@gmail.com javascript:

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_g...@abtassoc.com javascript: 
 escribió:

 You can use that.  The license is described here: 
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Sel

 ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-05-01 Thread Chrystopher Medina
really a lof of thanks my friend , now it works perfectly. i really
apreciate it


2013/5/1 asgallant drew_gall...@abtassoc.com

 Your while loop should look like this:

 while($row = mysql_fetch_array($result)) {
 $temp = array();
 $temp['DisplayText'] = $row['nombre_escolaridad'];
 $temp['Value'] = $row['id_escolaridad'];
 $rows[] = $temp;
 }

 On Wednesday, May 1, 2013 7:03:39 AM UTC-4, Chrystopher Medina wrote:

 my friend i think that i have found the answer to my problem. but could
 you help me to generate the next format json whit php

 i have this

 ?php

 $con = mysql_connect(localhost,**root,chrystopher);
 mysql_select_db(si_caoi, $con);

 $result = mysql_query(SELECT * FROM escolaridad;);


 $rows = array();
 while($row = mysql_fetch_array($result))
 {
 $rows[] = $row;
 }


 $ff = array();
 $ff['Result'] = OK;
 $ff['Options'] = $rows;
 print json_encode($ff);

 ?

 and this the result in json:


 {Result:OK,Options:[{0**:2,id_escolaridad:2,1:**
 Secundaria,nombre_**escolaridad:Secundaria},{**
 0:3,id_escolaridad:3,**1:Preparatoria,nombre_**
 escolaridad:Preparatoria},{**0:4,id_escolaridad:4,**
 1:Licanciatura,nombre_**escolaridad:Licanciatura},{**
 0:5,id_escolaridad:5,**1:Maestria,nombre_**
 escolaridad:Maestria},{0:**6,id_escolaridad:6,1:**
 primaria,nombre_escolaridad**:primaria},{0:8,id_**
 escolaridad:8,1:uj,**nombre_escolaridad:uj}]}


 and what i wanna obtain is the next format json

 {
Result:OK,
Options:[
   {
  DisplayText:**Secundaria,
  Value:2
   },
   {
  DisplayText:**Preparatoria,
  Value:3
   },
   {
  DisplayText:**Licenciatura,
  Value:4
   },
   {
  DisplayText:**Maestria,
  Value:5
   },
   {
  DisplayText:**Primaria,
  Value:6
   },
   {
  DisplayText:uj,
  Value:8
   }
]
 }



 2013/5/1 Chrystopher Medina xha...@gmail.com

 my frined have u ever used this plugin named jtable ...
 please check this 
 http://www.jtable.org/**Demo/Filteringhttp://www.jtable.org/Demo/Filtering 
 i
 just wanna filtering but with php and in that example is in asp.netcould you 
 helme please. there is not documentation about how to use it on
 php.
 please my friend


 2013/4/24 Chrystopher Medina xha...@gmail.com

 i found the problem my friend i think that it was because linux is
 sensitive to case sensitive


 2013/4/23 Chrystopher Medina xha...@gmail.com

 its a plugin to do crud aplications but it does not work on linux my
 friend ... u know why


 2013/4/23 Chrystopher Medina xha...@gmail.com

 my friend i have the next file but this is not loaded on linux u know
 why. because i downloaded a example from jtable.orj but i tried it on
 windows and everything looks perfectly but on linux nothing


 2013/4/23 Chrystopher Medina xha...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_g...@abtassoc.com escribió:

 You can use that.  The license is described here: https://jquery.org/**
 license/ https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Sel

 ...

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-24 Thread Chrystopher Medina
i found the problem my friend i think that it was because linux is
sensitive to case sensitive


2013/4/23 Chrystopher Medina xhav...@gmail.com

 its a plugin to do crud aplications but it does not work on linux my
 friend ... u know why


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 my friend i have the next file but this is not loaded on linux u know
 why. because i downloaded a example from jtable.orj but i tried it on
 windows and everything looks perfectly but on linux nothing


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_gall...@abtassoc.com escribió:

 You can use that.  The license is described here:
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains
 this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * 
 http://docs.jquery.com/UI/**Selectable#theminghttp://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay ,,,


 2013/4/20 asgallant drew_g...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a
 full HTML doc into another HTML doc.  The structure:

 html
 body
 html
  /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be causing
 you problems, if it doesn't want to act like a div, but I would test
 everything else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the
 file gerencias.html is loaded into my index. but the file gerencias.html 
 is
 loaded but with out styles and it doesnt make nothin.. pleame my 
 friend
 open the files ... i have this problem since 1 week and i dont know what i
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutori**als/php/php-database-**access-**
 are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tu**torial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tut**orials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina
 wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos
 . Because y was reading the pdos document in the web site from php.  But I
 if I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

  With PDO's, setting the PDO variable ($db in your script) to null
 closes the connection.  Most sources I have read also say to set all
 prepared statement variables ($query in your script) to null as well, but
 I'm not certain that this is strictly necessary.  You are setting both of
 them to null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina
 wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$*
 *password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM
 roles a, usuarios b WHERE a.id_rol = b.id_rol AND b.password =
 MD5(:password) AND b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario'
 = $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**
 [0]['rol'];
 echo 0;
  }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com
 blockquote style=ma

 ...

  --
 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-23 Thread asgallant
You can use that.  The license is described here: 
https://jquery.org/license/

On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * http://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay ,,, 


 2013/4/20 asgallant drew_g...@abtassoc.com javascript:

 I suspect that your primary problem is that you are trying to load a full 
 HTML doc into another HTML doc.  The structure:

 html
 body
 html
 /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without 
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be causing you 
 problems, if it doesn't want to act like a div, but I would test everything 
 else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good. 


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the 
 file gerencias.html is loaded into my index. but the file gerencias.html is 
 loaded but with out styles and it doesnt make nothin.. pleame my friend 
 open the files ... i have this problem since 1 week and i dont know what i 
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutorials/php/php-database-**
 access-are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tutorial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tutorials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos . 
 Because y was reading the pdos document in the web site from php.  But I if 
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

  With PDO's, setting the PDO variable ($db in your script) to null closes 
 the connection.  Most sources I have read also say to set all prepared 
 statement variables ($query in your script) to null as well, but I'm not 
 certain that this is strictly necessary.  You are setting both of them to 
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php 
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasename,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles 
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND 
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' = 
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**ASSOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com
 blockquote style=ma

 ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-23 Thread Chrystopher Medina
Thanks my friend
El 23/04/2013 10:59, asgallant drew_gall...@abtassoc.com escribió:

 You can use that.  The license is described here:
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * 
 http://docs.jquery.com/UI/**Selectable#theminghttp://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay ,,,


 2013/4/20 asgallant drew_g...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a full
 HTML doc into another HTML doc.  The structure:

 html
 body
 html
 /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be causing
 you problems, if it doesn't want to act like a div, but I would test
 everything else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the
 file gerencias.html is loaded into my index. but the file gerencias.html is
 loaded but with out styles and it doesnt make nothin.. pleame my friend
 open the files ... i have this problem since 1 week and i dont know what i
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutori**als/php/php-database-**access-**
 are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tu**torial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tut**orials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

  With PDO's, setting the PDO variable ($db in your script) to null closes
 the connection.  Most sources I have read also say to set all prepared
 statement variables ($query in your script) to null as well, but I'm not
 certain that this is strictly necessary.  You are setting both of them to
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**
 [0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com
 blockquote style=ma

 ...

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-23 Thread Chrystopher Medina
my friend i have the next file but this is not loaded on linux u know why.
because i downloaded a example from jtable.orj but i tried it on windows
and everything looks perfectly but on linux nothing


2013/4/23 Chrystopher Medina xhav...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_gall...@abtassoc.com escribió:

 You can use that.  The license is described here:
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * 
 http://docs.jquery.com/UI/**Selectable#theminghttp://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay ,,,


 2013/4/20 asgallant drew_g...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a
 full HTML doc into another HTML doc.  The structure:

 html
 body
 html
  /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be causing
 you problems, if it doesn't want to act like a div, but I would test
 everything else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the
 file gerencias.html is loaded into my index. but the file gerencias.html is
 loaded but with out styles and it doesnt make nothin.. pleame my friend
 open the files ... i have this problem since 1 week and i dont know what i
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutori**als/php/php-database-**access-**
 are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tu**torial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tut**orials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

  With PDO's, setting the PDO variable ($db in your script) to null
 closes the connection.  Most sources I have read also say to set all
 prepared statement variables ($query in your script) to null as well, but
 I'm not certain that this is strictly necessary.  You are setting both of
 them to null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM
 roles a, usuarios b WHERE a.id_rol = b.id_rol AND b.password =
 MD5(:password) AND b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**
 [0]['rol'];
 echo 0;
  }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com
 blockquote style=ma

 ...

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-23 Thread Chrystopher Medina
its a plugin to do crud aplications but it does not work on linux my friend
... u know why


2013/4/23 Chrystopher Medina xhav...@gmail.com

 my friend i have the next file but this is not loaded on linux u know why.
 because i downloaded a example from jtable.orj but i tried it on windows
 and everything looks perfectly but on linux nothing


 2013/4/23 Chrystopher Medina xhav...@gmail.com

 Thanks my friend
 El 23/04/2013 10:59, asgallant drew_gall...@abtassoc.com escribió:

 You can use that.  The license is described here:
 https://jquery.org/license/

 On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote:

 my friend i found a plugin to do crud aplications . but it contains this


  * jQuery UI Selectable 1.8.16
  *
  * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
  * Dual licensed under the MIT or GPL Version 2 licenses.
  * http://jquery.org/license
  *
  * 
 http://docs.jquery.com/UI/**Selectable#theminghttp://docs.jquery.com/UI/Selectable#theming
  */

 what it means , i can use this in my applicacion or a have to pay ,,,


 2013/4/20 asgallant drew_g...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a
 full HTML doc into another HTML doc.  The structure:

 html
 body
 html
  /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be causing
 you problems, if it doesn't want to act like a div, but I would test
 everything else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the
 file gerencias.html is loaded into my index. but the file gerencias.html is
 loaded but with out styles and it doesnt make nothin.. pleame my friend
 open the files ... i have this problem since 1 week and i dont know what i
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutori**als/php/php-database-**access-**
 are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tu**torial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tut**orials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

  With PDO's, setting the PDO variable ($db in your script) to null
 closes the connection.  Most sources I have read also say to set all
 prepared statement variables ($query in your script) to null as well, but
 I'm not certain that this is strictly necessary.  You are setting both of
 them to null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM
 roles a, usuarios b WHERE a.id_rol = b.id_rol AND b.password =
 MD5(:password) AND b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario'
 = $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**
 [0]['rol'];
 echo 0;
  }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com
 blockquote style=ma

 ...

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-22 Thread Chrystopher Medina
my friend i found a plugin to do crud aplications . but it contains this


 * jQuery UI Selectable 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Selectable#theming
 */

what it means , i can use this in my applicacion or a have to pay ,,,


2013/4/20 asgallant drew_gall...@abtassoc.com

 I suspect that your primary problem is that you are trying to load a full
 HTML doc into another HTML doc.  The structure:

 html
 body
 html
 /html
 /body
 /html

 is not a valid structure.  You need to write gerencias.html without
 html, head, and body tags or it won't load correctly.

 There is also a slim possibility that the section tag could be causing you
 problems, if it doesn't want to act like a div, but I would test everything
 else first.

 On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good.


 2013/4/20 Chrystopher Medina xha...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the
 file gerencias.html is loaded into my index. but the file gerencias.html is
 loaded but with out styles and it doesnt make nothin.. pleame my friend
 open the files ... i have this problem since 1 week and i dont know what i
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com

 Try these:

 http://net.tutsplus.com/**tutorials/php/php-database-**
 access-are-you-doing-it-**correctly/http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_**Tutorial_for_MySQL_Developershttp://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/**tutorials/using-php-data-**objectshttp://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

 With PDO's, setting the PDO variable ($db in your script) to null closes
 the connection.  Most sources I have read also say to set all prepared
 statement variables ($query in your script) to null as well, but I'm not
 certain that this is strictly necessary.  You are setting both of them to
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasename,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**ASSOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd
 my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**loa**d('vistas/' +
 $(this).attr('id') + '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**att**r(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-20 Thread asgallant
I suspect that your primary problem is that you are trying to load a full 
HTML doc into another HTML doc.  The structure:

html
body
html
/html
/body
/html

is not a valid structure.  You need to write gerencias.html without html, 
head, and body tags or it won't load correctly.

There is also a slim possibility that the section tag could be causing you 
problems, if it doesn't want to act like a div, but I would test everything 
else first.

On Saturday, April 20, 2013 1:52:44 AM UTC-4, Chrystopher Medina wrote:

 but if i open just the file gerenciad.html it looks good. 


 2013/4/20 Chrystopher Medina xha...@gmail.com javascript:

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the 
 file gerencias.html is loaded into my index. but the file gerencias.html is 
 loaded but with out styles and it doesnt make nothin.. pleame my friend 
 open the files ... i have this problem since 1 week and i dont know what i 
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xha...@gmail.com javascript:

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_g...@abtassoc.com javascript:

 Try these:


 http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos . 
 Because y was reading the pdos document in the web site from php.  But I if 
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

 With PDO's, setting the PDO variable ($db in your script) to null closes 
 the connection.  Most sources I have read also say to set all prepared 
 statement variables ($query in your script) to null as well, but I'm not 
 certain that this is strictly necessary.  You are setting both of them to 
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php 
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles 
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND 
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' = 
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with 
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript 


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd 
 my friend 
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' + $(this).attr('id') 
 + '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting 
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:
 blockquote style=margin:0;margin-left:0.8ex;border-left:1px #ccc 
 solid;padding-left:

 ...

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-19 Thread Chrystopher Medina
my frined could you help me whit something please...
well i have this index.html

and into it i have a jquery function that when i click on a button the file
gerencias.html is loaded into my index. but the file gerencias.html is
loaded but with out styles and it doesnt make nothin.. pleame my friend
open the files ... i have this problem since 1 week and i dont know what i
can do

 
index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


 
gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



2013/4/18 Chrystopher Medina xhav...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_gall...@abtassoc.com

 Try these:


 http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

 With PDO's, setting the PDO variable ($db in your script) to null closes
 the connection.  Most sources I have read also say to set all prepared
 statement variables ($query in your script) to null as well, but I'm not
 certain that this is strictly necessary.  You are setting both of them to
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM
 roles a, usuarios b WHERE a.id_rol = b.id_rol AND b.password =
 MD5(:password) AND b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks
 againd my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' +
 $(this).attr('id') + '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ....
 script$(function(){



  $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a
 basic way that i think it could be work but im sure that im wrong. i just
 want to join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-19 Thread Chrystopher Medina
but if i open just the file gerenciad.html it looks good.


2013/4/20 Chrystopher Medina xhav...@gmail.com

 my frined could you help me whit something please...
 well i have this index.html

 and into it i have a jquery function that when i click on a button the
 file gerencias.html is loaded into my index. but the file gerencias.html is
 loaded but with out styles and it doesnt make nothin.. pleame my friend
 open the files ... i have this problem since 1 week and i dont know what i
 can do

  
 index.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web


  
 gerencias.htmlhttps://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web



 2013/4/18 Chrystopher Medina xhav...@gmail.com

 thanks my friend , the links are pretty interesting .


 2013/4/17 asgallant drew_gall...@abtassoc.com

 Try these:


 http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

 With PDO's, setting the PDO variable ($db in your script) to null
 closes the connection.  Most sources I have read also say to set all
 prepared statement variables ($query in your script) to null as well, but
 I'm not certain that this is strictly necessary.  You are setting both of
 them to null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM
 roles a, usuarios b WHERE a.id_rol = b.id_rol AND b.password =
 MD5(:password) AND b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario'
 = $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks
 againd my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' +
 $(this).attr('id') + '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is
 selecting the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ....
 script$(function(){



  $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a
 basic way that i think it could be work but im sure that im wrong. i just
 want to join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string
 that looks like this [0] or this [1] when you run that code, which
 would be interpreted as an array with one element which is either a 0 or a
 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-18 Thread Chrystopher Medina
thanks my friend , the links are pretty interesting .


2013/4/17 asgallant drew_gall...@abtassoc.com

 Try these:


 http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
 http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 http://www.netmagazine.com/tutorials/using-php-data-objects


 On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos .
 Because y was reading the pdos document in the web site from php.  But I if
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com escribió:

 With PDO's, setting the PDO variable ($db in your script) to null closes
 the connection.  Most sources I have read also say to set all prepared
 statement variables ($query in your script) to null as well, but I'm not
 certain that this is strictly necessary.  You are setting both of them to
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasenam**e,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**AS**SOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results**[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd
 my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' + $(this).attr('id')
 + '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ....
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a
 basic way that i think it could be work but im sure that im wrong. i just
 want to join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-17 Thread Chrystopher Medina
my friend how can i  close the database here in this script .

?php
if ($_POST['user']!= ''  $_POST['pwd']!= ''){
$username = root;
$password = chrystopher;
$databasename = si_caoi;
try {
   $db = new PDO(mysql:dbname=$databasename,$username,$password);
}
catch (PDOException $e) {
die ($e-getMessage());
}
$query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles
a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND
b.nombre_usuario = :usuario');
$query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
$_POST['user']));
$results = $query-fetchAll(PDO::FETCH_ASSOC);
$query = null;
$db = null;
if (count($results) == 1) {
 //session_start();
//$_SESSION[autentificado]= true;
//$_SESSION[usuario]= $_POST[usuario].|.$results[0]['rol'];
echo 0;
}
else {
die ('Error message!');
echo 1;
}
}else{
echo 2;
}
?


2013/4/5 asgallant drew_gall...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd
 my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' + $(this).attr('id') +
 '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ....
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a basic
 way that i think it could be work but im sure that im wrong. i just want to
 join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of
 the cause without being able to test it.  My suggestion would be to move

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-17 Thread Chrystopher Medina
i just wanna close the connexion to the database


2013/4/17 Chrystopher Medina xhav...@gmail.com

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$databasename,$username,$password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_ASSOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$results[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_gall...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks
 againd my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' + $(this).attr('id') +
 '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ....
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a basic
 way that i think it could be work but im sure that im wrong. i just want to
 join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter
 cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-17 Thread asgallant
With PDO's, setting the PDO variable ($db in your script) to null closes 
the connection.  Most sources I have read also say to set all prepared 
statement variables ($query in your script) to null as well, but I'm not 
certain that this is strictly necessary.  You are setting both of them to 
null already, so you don't have to do anything else.

On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php 
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$databasename,$username,$password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles 
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND 
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' = 
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_ASSOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$results[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com javascript:

 I have never used arduino; you'll have to look elsewhere for help with 
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript 


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd 
 my friend 
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**load('vistas/' + $(this).attr('id') + 
 '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting 
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a , for 
 example i have a file named page1.html and the id from my first element a 
 is =page1 so i want to get that value and then i just want to get 
 somethin like this 

 well I guess it could be something like:




 ....
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a basic way 
 that i think it could be work but im sure that im wrong. i just want to 
 join the id from the element a whitch i click , and this .html 


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that 
 looks like this [0] or this [1] when you run that code, which would 
 be interpreted as an array with one element which is either a 0 or a 1.
  
 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion 

 well i have a form and i send my data to the server in order to check if 
 the user and passwor are ok. 
 i do this jus to test. 

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0; 
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in 
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in 
 json format.. 

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1; 
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits 
 and drawbacks, and which you use largely depends on what you need to 
 accomplish; neither one is inherently better than the other.  Basically, 
 the difference a

 ...

-- 
You received this message because you are 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-17 Thread Chrystopher Medina
Ok my friend thanks . And could you  help me to learn more about pdos .
Because y was reading the pdos document in the web site from php.  But I if
I could give me some links. To read more about this.  Thanks
El 17/04/2013 09:59, asgallant drew_gall...@abtassoc.com escribió:

 With PDO's, setting the PDO variable ($db in your script) to null closes
 the connection.  Most sources I have read also say to set all prepared
 statement variables ($query in your script) to null as well, but I'm not
 certain that this is strictly necessary.  You are setting both of them to
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasename,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' =
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**ASSOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd
 my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**loa**d('vistas/' + $(this).attr('id') +
 '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**att**r(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ..**..
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr(**'id') + .html);   //this is a basic
 way that i think it could be work but im sure that im wrong. i just want to
 join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-17 Thread asgallant
Try these:

http://net.tutsplus.com/tutorials/php/php-database-access-are-you-doing-it-correctly/
http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
http://www.netmagazine.com/tutorials/using-php-data-objects

On Wednesday, April 17, 2013 4:02:03 PM UTC-4, Chrystopher Medina wrote:

 Ok my friend thanks . And could you  help me to learn more about pdos . 
 Because y was reading the pdos document in the web site from php.  But I if 
 I could give me some links. To read more about this.  Thanks
 El 17/04/2013 09:59, asgallant drew_g...@abtassoc.com javascript: 
 escribió:

 With PDO's, setting the PDO variable ($db in your script) to null closes 
 the connection.  Most sources I have read also say to set all prepared 
 statement variables ($query in your script) to null as well, but I'm not 
 certain that this is strictly necessary.  You are setting both of them to 
 null already, so you don't have to do anything else.

 On Wednesday, April 17, 2013 4:11:21 AM UTC-4, Chrystopher Medina wrote:

 my friend how can i  close the database here in this script .

 ?php 
 if ($_POST['user']!= ''  $_POST['pwd']!= ''){
 $username = root;
 $password = chrystopher;
 $databasename = si_caoi;
 try {
$db = new PDO(mysql:dbname=$**databasename,$username,$**
 password);
 }
 catch (PDOException $e) {
 die ($e-getMessage());
 }
 $query = $db- prepare('SELECT a.rol, b.nombre_usuario FROM roles 
 a, usuarios b WHERE a.id_rol = b.id_rol AND b.password = MD5(:password) AND 
 b.nombre_usuario = :usuario');
 $query-execute(array( 'password' = $_POST['pwd'], 'usuario' = 
 $_POST['user']));
 $results = $query-fetchAll(PDO::FETCH_**ASSOC);
  $query = null;
 $db = null;
 if (count($results) == 1) {
  //session_start();
 //$_SESSION[autentificado]= true;
  //$_SESSION[usuario]= $_POST[usuario].|.$**results[0]['rol'];
 echo 0;
 }
  else {
 die ('Error message!');
 echo 1;
 }
 }else{
 echo 2;
 }
 ?


 2013/4/5 asgallant drew_g...@abtassoc.com

 I have never used arduino; you'll have to look elsewhere for help with 
 that.


 On Friday, April 5, 2013 4:43:18 AM UTC-4, Chrystopher Medina wrote:

 well i just want to know if i have to use php or javascript 


 2013/4/5 Chrystopher Medina xha...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xha...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd 
 my friend 
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).**loa**d('vistas/' + $(this).attr('id') + 
 '.html');

});


 2013/4/4 asgallant drew_g...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).**att**r(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting 
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a , for 
 example i have a file named page1.html and the id from my first element a 
 is =page1 so i want to get that value and then i just want to get 
 somethin like this 

 well I guess it could be something like:




 ..**..
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr(**'id') + .html);   //this is a basic 
 way that i think it could be work but im sure that im wrong. i just want to 
 join the id from the element a whitch i click , and this .html 


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that 
 looks like this [0] or this [1] when you run that code, which would 
 be interpreted as an array with one element which is either a 0 or a 1.
  
 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

  thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion 

 well i have a form and i send my data to the server in order to check if 
 the user and passwor are ok. 
 i do this jus to test. 

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0; 
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in 
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-05 Thread Chrystopher Medina
my friend u know how to use arduino with some aplication web .


2013/4/4 Chrystopher Medina xhav...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd
 my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).load('vistas/' + $(this).attr('id') +
 '.html');

});


 2013/4/4 asgallant drew_gall...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ..**..
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr(**'id') + .html);   //this is a basic way
 that i think it could be work but im sure that im wrong. i just want to
 join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter
 cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of
 the cause without being able to test it.  My suggestion would be to move
 any jQuery that acts on the content in secondpage.html into
 secondpage.html, and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
  });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

  my friend could you explain me something please.. look,  i have my
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**f**unction(){
  $(content).load('secondpage.html');
 });

  $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and
 when i click in the button id=firstbutton, the second page named
 secondpage.html is loaded inside my index.html in the div with
 id=content.. until here everything works fine..but
 but when I click on the second button 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-05 Thread Chrystopher Medina
well i just want to know if i have to use php or javascript


2013/4/5 Chrystopher Medina xhav...@gmail.com

 my friend u know how to use arduino with some aplication web .


 2013/4/4 Chrystopher Medina xhav...@gmail.com

 i did something like this my friend  and it works perfectly thanks againd
 my friend
 $(#colorNav ul li ul li a).on(click,function(){
  $(#contenedorprincipal).load('vistas/' + $(this).attr('id') +
 '.html');

});


 2013/4/4 asgallant drew_gall...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ..**..
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr(**'id') + .html);   //this is a basic
 way that i think it could be work but im sure that im wrong. i just want to
 join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string
 that looks like this [0] or this [1] when you run that code, which
 would be interpreted as an array with one element which is either a 0 or a
 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter
 cuestion

 well i have a form and i send my data to the server in order to check
 if the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their
 benefits and drawbacks, and which you use largely depends on what you need
 to accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of
 the cause without being able to test it.  My suggestion would be to move
 any jQuery that acts on the content in secondpage.html into
 secondpage.html, and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
  });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

  my friend could you explain me something please.. look,  i have my
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**f**unction(){
  $(content).load('secondpage.html');
 });

  $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and
 when i click in the button id=firstbutton, the second page named
 secondpage.html is loaded inside my 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-04 Thread Chrystopher Medina
my friend i have this file
for example how can i know what is the value of the each element a , for
example i have a file named page1.html and the id from my first element a
is =page1 so i want to get that value and then i just want to get
somethin like this

well I guess it could be something like:





script$(function(){



$(div a).on(click,function(){

$(#content).load($this.attr('id') + .html);   //this is a basic way that
i think it could be work but im sure that im wrong. i just want to join the
id from the element a whitch i click , and this .html


});


});
/script


nav id=menu
a href=# id=page1page1/a
a href=# id=page2page2/a
a href=# id=page3page3/a
/nav
section id=content
/section



2013/4/3 asgallant drew_gall...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of
 the cause without being able to test it.  My suggestion would be to move
 any jQuery that acts on the content in secondpage.html into
 secondpage.html, and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
 });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',**inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**function(){
  $(content).load('secondpage.**html');
 });

 $(#secondbutton).on('click',**function(){
 alert(i am the second button);
 });

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and
 when i click in the button id=firstbutton, the second page named
 secondpage.html is loaded inside my index.html in the div with
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script
 javascript in my index.html and as the second page is being loaded into my
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this.







 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them



 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5 or
 sesions with php


 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-04 Thread asgallant
You are close.  You need one small change:

$(#content).load($(this).attr('id') + '.html');

I would also check to make sure that your selector 'div a' is selecting the 
correct elements.

On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a , for 
 example i have a file named page1.html and the id from my first element a 
 is =page1 so i want to get that value and then i just want to get 
 somethin like this 

 well I guess it could be something like:




 
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr('id') + .html);   //this is a basic way that 
 i think it could be work but im sure that im wrong. i just want to join the 
 id from the element a whitch i click , and this .html 


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com javascript:

 At a glance, everything else looks OK.  You would get a JSON string that 
 looks like this [0] or this [1] when you run that code, which would 
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion 

 well i have a form and i send my data to the server in order to check if 
 the user and passwor are ok. 
 i do this jus to test. 

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0; 
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in 
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in 
 json format.. 

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1; 
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits 
 and drawbacks, and which you use largely depends on what you need to 
 accomplish; neither one is inherently better than the other.  Basically, 
 the difference as I understand it is that PHP's sessions tie data to a 
 particular connection to the server for the duration of the session while 
 sessionstorage keeps data locally in the browser, tied to a particular tab 
 and a particular domain.  If you need to access the data to do things on 
 the server, you probably want to use PHP's sessions; if what you want to do 
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of the 
 cause without being able to test it.  My suggestion would be to move any 
 jQuery that acts on the content in secondpage.html into secondpage.html, 
 and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
  });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

  my friend could you explain me something please.. look,  i have my 
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',**inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**function(){
  $(content).load('secondpage.**html');
 });  

  $(#secondbutton).on('click',**function(){
 alert(i am the second button);
 });  

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and 
 when i click in the button id=firstbutton, the second page named 
 secondpage.html is loaded inside my index.html in the div with 
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me 
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script 
 javascript in my index.html and as the second page is being loaded into my 
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this. 







 2013/4/3 Chrystopher 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-04 Thread Chrystopher Medina
i did something like this my friend  and it works perfectly thanks againd
my friend
$(#colorNav ul li ul li a).on(click,function(){
 $(#contenedorprincipal).load('vistas/' + $(this).attr('id') +
'.html');

   });


2013/4/4 asgallant drew_gall...@abtassoc.com

 You are close.  You need one small change:

 $(#content).load($(this).attr(**'id') + '.html');

 I would also check to make sure that your selector 'div a' is selecting
 the correct elements.


 On Thursday, April 4, 2013 3:06:08 AM UTC-4, Chrystopher Medina wrote:

 my friend i have this file
 for example how can i know what is the value of the each element a ,
 for example i have a file named page1.html and the id from my first element
 a is =page1 so i want to get that value and then i just want to get
 somethin like this

 well I guess it could be something like:




 ..**..
 script$(function(){



 $(div a).on(click,function(){

 $(#content).load($this.attr(**'id') + .html);   //this is a basic way
 that i think it could be work but im sure that im wrong. i just want to
 join the id from the element a whitch i click , and this .html


 });


 });
 /script


 nav id=menu
 a href=# id=page1page1/a
 a href=# id=page2page2/a
 a href=# id=page3page3/a
 /nav
 section id=content
 /section



 2013/4/3 asgallant drew_g...@abtassoc.com

 At a glance, everything else looks OK.  You would get a JSON string that
 looks like this [0] or this [1] when you run that code, which would
 be interpreted as an array with one element which is either a 0 or a 1.

 On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of
 the cause without being able to test it.  My suggestion would be to move
 any jQuery that acts on the content in secondpage.html into
 secondpage.html, and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
  });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

  my friend could you explain me something please.. look,  i have my
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**f**unction(){
  $(content).load('secondpage.html');
 });

  $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and
 when i click in the button id=firstbutton, the second page named
 secondpage.html is loaded inside my index.html in the div with
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me
 the alert(i am the second button)

 I thought I just had to include the jQuery 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
my friend u think that is better that i use sessionstorage from html5 or
sesions with php


2013/4/2 asgallant drew_gall...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or
 may not want to include them, depending on whether you want caching enabled
 or not).  The last one helps the browser interpret the data, and looks
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a lot
 , and i think that i´m learning a lot abount that.


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example

 this is a button ...  and when i click on it  i want to
 go to the php script, and obtain values from my database... then i want to
 div  id=values/div send the values to the div with id=values


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
could you gime some diferences between both of them



2013/4/3 Chrystopher Medina xhav...@gmail.com

 my friend u think that is better that i use sessionstorage from html5 or
 sesions with php


 2013/4/2 asgallant drew_gall...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or
 may not want to include them, depending on whether you want caching enabled
 or not).  The last one helps the browser interpret the data, and looks
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a
 lot , and i think that i´m learning a lot abount that.


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example

 this is a button ...  and when i click on it  i want
 to go to the php script, and obtain values from my database... then i want
 to
 div  id=values/div send the values to the div with id=values


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
my friend could you explain me something please.. look,  i have my
index.html some like this:
scripthere is the jquery library /script

script
window.addEvenListener('load',inicia,false);
function inicia(){
$(#firstbutton).on('click',function(){
$(content).load('secondpage.html');
});

$(#secondbutton).on('click',function(){
alert(i am the second button);
});

}
/script
div id=contenthellow world/div
input type=button value=ok id=firstbutton

and then i have another file html named secondpage.html
this file has something like this:

divthis is the second page/div
input type=button value=ok id=secondbutton

well, i have my javascript file just in the first page(index.html) and when
i click in the button id=firstbutton, the second page named secondpage.html
is loaded inside my index.html in the div with id=content.. until here
everything works fine..but
but when I click on the second button in my second page does not show me
the alert(i am the second button)

I thought I just had to include the jQuery library and the script
javascript in my index.html and as the second page is being loaded into my
index.html, this second page could run the scripts included in my index.

i hope u can explain me this.







2013/4/3 Chrystopher Medina xhav...@gmail.com

 could you gime some diferences between both of them



 2013/4/3 Chrystopher Medina xhav...@gmail.com

 my friend u think that is better that i use sessionstorage from html5 or
 sesions with php


 2013/4/2 asgallant drew_gall...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or
 may not want to include them, depending on whether you want caching enabled
 or not).  The last one helps the browser interpret the data, and looks
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a
 lot , and i think that i´m learning a lot abount that.


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example

 this is a button ...  and when i click on it  i want
 to go to the php script, and obtain values from my database... then i want
 to
 div  id=values/div send the values to the div with id=values


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.







-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread asgallant
Like most things, sessionstorage and server sessions have their benefits 
and drawbacks, and which you use largely depends on what you need to 
accomplish; neither one is inherently better than the other.  Basically, 
the difference as I understand it is that PHP's sessions tie data to a 
particular connection to the server for the duration of the session while 
sessionstorage keeps data locally in the browser, tied to a particular tab 
and a particular domain.  If you need to access the data to do things on 
the server, you probably want to use PHP's sessions; if what you want to do 
is all in javascript, then you might want to use sessionstorage.

As far as the other problem you are having goes, I can't be certain of the 
cause without being able to test it.  My suggestion would be to move any 
jQuery that acts on the content in secondpage.html into secondpage.html, 
and wrap it in a document.ready event handler:

$(function () {
// javascript that does things on the contents of secondpage.html
});

On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my 
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',function(){
 $(content).load('secondpage.html');
 });  

 $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });  

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and 
 when i click in the button id=firstbutton, the second page named 
 secondpage.html is loaded inside my index.html in the div with 
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me 
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script 
 javascript in my index.html and as the second page is being loaded into my 
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this. 







 2013/4/3 Chrystopher Medina xha...@gmail.com javascript:

 could you gime some diferences between both of them 



 2013/4/3 Chrystopher Medina xha...@gmail.com javascript:

 my friend u think that is better that i use sessionstorage from html5 or 
 sesions with php


 2013/4/2 asgallant drew_g...@abtassoc.com javascript:

 The first two header lines tell IE not to cache the results (you may or 
 may not want to include them, depending on whether you want caching 
 enabled 
 or not).  The last one helps the browser interpret the data, and looks 
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to 
 the script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a 
 lot , and i think that i´m learning a lot abount that. 


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example 
  
 this is a button ...  and when i click on it  i want 
 to go to the php script, and obtain values from my database... then i 
 want 
 to 
 div  id=values/div send the values to the div with 
 id=values


  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-visualization-api+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-visua...@googlegroups.comjavascript:
 .
 Visit this group at 
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  






-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
My friend but  there is something that I did not understand. If the second
page is gonna be loaded in a div inside my index.html i have to put also
this in the second page script src=jquery19.jsscript or its enough if
I just put the jquery library in my index.html

El miércoles, 3 de abril de 2013, asgallant drew_gall...@abtassoc.com
escribió:
 Like most things, sessionstorage and server sessions have their benefits
and drawbacks, and which you use largely depends on what you need to
accomplish; neither one is inherently better than the other.  Basically,
the difference as I understand it is that PHP's sessions tie data to a
particular connection to the server for the duration of the session while
sessionstorage keeps data locally in the browser, tied to a particular tab
and a particular domain.  If you need to access the data to do things on
the server, you probably want to use PHP's sessions; if what you want to do
is all in javascript, then you might want to use sessionstorage.
 As far as the other problem you are having goes, I can't be certain of
the cause without being able to test it.  My suggestion would be to move
any jQuery that acts on the content in secondpage.html into
secondpage.html, and wrap it in a document.ready event handler:
 $(function () {
 // javascript that does things on the contents of secondpage.html
 });

 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my
index.html some like this:
 scripthere is the jquery library /script
 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',function(){
 $(content).load('secondpage.html');
 });
 $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });
 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:
 divthis is the second page/div
 input type=button value=ok id=secondbutton
 well, i have my javascript file just in the first page(index.html) and
when i click in the button id=firstbutton, the second page named
secondpage.html is loaded inside my index.html in the div with
id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me
the alert(i am the second button)
 I thought I just had to include the jQuery library and the script
javascript in my index.html and as the second page is being loaded into my
index.html, this second page could run the scripts included in my index.

 i hope u can explain me this.






 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them


 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5
or sesions with php

 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may
or may not want to include them, depending on whether you want caching
enabled or not).  The last one helps the browser interpret the data, and
looks correct if you are returning a JSON string.

 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.
 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to
the script that json is the type of data that im gonna send ... am i ok ?
 because i´ve forgot it ... about jquery with ajax i´ve been studing
a lot , and i think that i´m learning a lot abount that.

 2013/3/27 Chrystopher Medina xha...@gmail.com

 please my friend. for example

 this is a button ...  and when i click on it  i
want to go to the php script, and obtain values from my database... then i
want to
 div  id=values/div send the values to the div with
id=values

 --
 You received this message because you are subscribed to a topic in
the Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
.
 To unsubscribe from this group and all its topics, send an email to
google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to google-visua...@googlegroups.com.
 Visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.





 --
 You received this message because you are subscribed to a topic in the
Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
.
 To unsubscribe from this group and all its topics, send an email to
google-visualization-api+unsubscr...@googlegroups.com.

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
Well I think that I understand.. What. U mean is that I have to remove the
function wich is for the secondpage from my index and put it in my second
page. Something like this
Secondpage.html
html
head
script
$(document).on(ready,function(){
$(#mybutton).on(click,function(){
Alert(I am a button);
});
});
/script
/head
body
input type=button id=mybutton value=click me
/body
/html
And I just have to put the jquery library in my index. And it was wrong
because I always have to verify if the document was loaded. Am i ok my
friend.

Is this the same :
$(function(){});
And
$(document).on(ready,function
(
){});
And this
$(document).ready(
function(){}
);

El miércoles, 3 de abril de 2013, Chrystopher Medina xhav...@gmail.com
escribió:
 My friend but  there is something that I did not understand. If the
second page is gonna be loaded in a div inside my index.html i have to put
also this in the second page script src=jquery19.jsscript or its
enough if I just put the jquery library in my index.html

 El miércoles, 3 de abril de 2013, asgallant drew_gall...@abtassoc.com
escribió:
 Like most things, sessionstorage and server sessions have their benefits
and drawbacks, and which you use largely depends on what you need to
accomplish; neither one is inherently better than the other.  Basically,
the difference as I understand it is that PHP's sessions tie data to a
particular connection to the server for the duration of the session while
sessionstorage keeps data locally in the browser, tied to a particular tab
and a particular domain.  If you need to access the data to do things on
the server, you probably want to use PHP's sessions; if what you want to do
is all in javascript, then you might want to use sessionstorage.
 As far as the other problem you are having goes, I can't be certain of
the cause without being able to test it.  My suggestion would be to move
any jQuery that acts on the content in secondpage.html into
secondpage.html, and wrap it in a document.ready event handler:
 $(function () {
 // javascript that does things on the contents of secondpage.html
 });

 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my
index.html some like this:
 scripthere is the jquery library /script
 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',function(){
 $(content).load('secondpage.html');
 });
 $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });
 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:
 divthis is the second page/div
 input type=button value=ok id=secondbutton
 well, i have my javascript file just in the first page(index.html) and
when i click in the button id=firstbutton, the second page named
secondpage.html is loaded inside my index.html in the div with
id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show
me the alert(i am the second button)
 I thought I just had to include the jQuery library and the script
javascript in my index.html and as the second page is being loaded into my
index.html, this second page could run the scripts included in my index.

 i hope u can explain me this.






 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them


 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5
or sesions with php

 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may
or may not want to include them, depending on whether you want caching
enabled or not).  The last one helps the browser interpret the data, and
looks correct if you are returning a JSON string.

 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.
 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to
the script that json is the type of data that im gonna send ... am i ok ?
 because i´ve forgot it ... about jquery with ajax i´ve been studing
a lot , and i think that i´m learning a lot abount that.

 2013/3/27 Chrystopher Medina xha...@gmail.com

 please my friend. for example



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread asgallant
You don't need to include jQuery in secondpage.html.

Also, yes, the three methods you listed should be functionally equivalent.

On Wednesday, April 3, 2013 3:27:35 PM UTC-4, Chrystopher Medina wrote:


 Well I think that I understand.. What. U mean is that I have to remove the 
 function wich is for the secondpage from my index and put it in my second 
 page. Something like this
 Secondpage.html
 html
 head
 script
 $(document).on(ready,function(){
 $(#mybutton).on(click,function(){
 Alert(I am a button);
 });
 });
 /script
 /head
 body
 input type=button id=mybutton value=click me
 /body
 /html
 And I just have to put the jquery library in my index. And it was wrong 
 because I always have to verify if the document was loaded. Am i ok my 
 friend.

 Is this the same :
 $(function(){});
 And
 $(document).on(ready,function
 (
 ){});
 And this 
 $(document).ready(
 function(){}
 );

 El miércoles, 3 de abril de 2013, Chrystopher Medina 
 xha...@gmail.comjavascript: 
 escribió:
  My friend but  there is something that I did not understand. If the 
 second page is gonna be loaded in a div inside my index.html i have to put 
 also this in the second page script src=jquery19.jsscript or its 
 enough if I just put the jquery library in my index.html
 
  El miércoles, 3 de abril de 2013, asgallant 
  drew_g...@abtassoc.comjavascript: 
 escribió:
  Like most things, sessionstorage and server sessions have their 
 benefits and drawbacks, and which you use largely depends on what you need 
 to accomplish; neither one is inherently better than the other.  Basically, 
 the difference as I understand it is that PHP's sessions tie data to a 
 particular connection to the server for the duration of the session while 
 sessionstorage keeps data locally in the browser, tied to a particular tab 
 and a particular domain.  If you need to access the data to do things on 
 the server, you probably want to use PHP's sessions; if what you want to do 
 is all in javascript, then you might want to use sessionstorage.
  As far as the other problem you are having goes, I can't be certain of 
 the cause without being able to test it.  My suggestion would be to move 
 any jQuery that acts on the content in secondpage.html into 
 secondpage.html, and wrap it in a document.ready event handler:
  $(function () {
  // javascript that does things on the contents of secondpage.html
  });
 
  On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:
 
  my friend could you explain me something please.. look,  i have my 
 index.html some like this:
  scripthere is the jquery library /script
  script
  window.addEvenListener('load',inicia,false);
  function inicia(){
  $(#firstbutton).on('click',function(){
  $(content).load('secondpage.html');
  });  
  $(#secondbutton).on('click',function(){
  alert(i am the second button);
  });  
  }
  /script
  div id=contenthellow world/div
  input type=button value=ok id=firstbutton
 
  and then i have another file html named secondpage.html
  this file has something like this:
  divthis is the second page/div
  input type=button value=ok id=secondbutton
  well, i have my javascript file just in the first page(index.html) and 
 when i click in the button id=firstbutton, the second page named 
 secondpage.html is loaded inside my index.html in the div with 
 id=content.. until here everything works fine..but
  but when I click on the second button in my second page does not show 
 me the alert(i am the second button)
  I thought I just had to include the jQuery library and the script 
 javascript in my index.html and as the second page is being loaded into my 
 index.html, this second page could run the scripts included in my index.
 
  i hope u can explain me this. 
 
 
 
 
 
 
  2013/4/3 Chrystopher Medina xha...@gmail.com
 
  could you gime some diferences between both of them 
 
 
  2013/4/3 Chrystopher Medina xha...@gmail.com
 
  my friend u think that is better that i use sessionstorage from 
 html5 or sesions with php
 
  2013/4/2 asgallant drew_g...@abtassoc.com
 
  The first two header lines tell IE not to cache the results (you 
 may or may not want to include them, depending on whether you want caching 
 enabled or not).  The last one helps the browser interpret the data, and 
 looks correct if you are returning a JSON string.
 
  On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina 
 wrote:
 
  mi friend could you explain me this again please.
  header('Cache-Control: no-cache, must-revalidate');
  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  header('Content-type: application/json');// well this is to tell 
 to the script that json is the type of data that im gonna send ... am i ok ?
  because i´ve forgot it ... about jquery with ajax i´ve been 
 studing a lot , and i think that i´m learning a lot abount that. 
 
  2013/3/27 Chrystopher Medina xha...@gmail.com
 
  please my friend. for example 
   
  

-- 
You received this message because you are 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
Thanks a lot my friend take care
El miércoles, 3 de abril de 2013, asgallant drew_gall...@abtassoc.com
escribió:
 You don't need to include jQuery in secondpage.html.
 Also, yes, the three methods you listed should be functionally equivalent.

 On Wednesday, April 3, 2013 3:27:35 PM UTC-4, Chrystopher Medina wrote:

 Well I think that I understand.. What. U mean is that I have to remove
the function wich is for the secondpage from my index and put it in my
second page. Something like this
 Secondpage.html
 html
 head
 script
 $(document).on(ready,function(){
 $(#mybutton).on(click,function(){
 Alert(I am a button);
 });
 });
 /script
 /head
 body
 input type=button id=mybutton value=click me
 /body
 /html
 And I just have to put the jquery library in my index. And it was wrong
because I always have to verify if the document was loaded. Am i ok my
friend.

 Is this the same :
 $(function(){});
 And
 $(document).on(ready,function
 (
 ){});
 And this
 $(document).ready(
 function(){}
 );

 El miércoles, 3 de abril de 2013, Chrystopher Medina xha...@gmail.com
escribió:
  My friend but  there is something that I did not understand. If the
second page is gonna be loaded in a div inside my index.html i have to put
also this in the second page script src=jquery19.jsscript or its
enough if I just put the jquery library in my index.html
 
  El miércoles, 3 de abril de 2013, asgallant drew_g...@abtassoc.com
escribió:
  Like most things, sessionstorage and server sessions have their
benefits and drawbacks, and which you use largely depends on what you need
to accomplish; neither one is inherently better than the other.  Basically,
the difference as I understand it is that PHP's sessions tie data to a
particular connection to the server for the duration of the session while
sessionstorage keeps data locally in the browser, tied to a particular tab
and a particular domain.  If you need to access the data to do things on
the server, you probably want to use PHP's sessions; if what you want to do
is all in javascript, then you might want to use sessionstorage.
  As far as the other problem you are having goes, I can't be certain
of the cause without being able to test it.  My suggestion would be to move
any jQuery that acts on the content in secondpage.html into
secondpage.html, and wrap it in a document.ready event handler:
  $(function () {
  // javascript that does things on the contents of secondpage.html
  });
 
  On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina
wrote:
 
  my friend could you explain me something please.. look,  i have my
index.html some like this:
  scripthere is the jquery library /script
  script
  window.addEvenListener('load',inicia,false);
  function inicia(){
  $(#firstbutton).on('click',function(){
  $(content).load('secondpage.html');
  });
  $(#secondbutton).on('click',function(){
  alert(i am the second button);
  });
  }
  /script
  div id=contenthellow world/div
  input type=button value=ok id=firstbutton
 
  and then i have another file html named secondpage.html
  this file has something like this:
  divthis is the second page/div
  input type=button value=ok id=secondbutton
  well, i have my javascript file just in the first page(index.html)
and when i click in the button id=firstbutton, the second page named
secondpage.html is loaded inside my index.html in the div with
id=content.. until here everything works fine..but
  but when I click on the second button in my second page does not
show me the alert(i am the second button)
  I thought I just had to include the jQuery library and the script
javascript in my index.html and as the second page is being loaded into my
index.html, this second page could run the scripts included in my index.
 
  i hope u can explain me this.
 
 
 
 
 
 
  2013/4/3 Chrystopher Medina xha...@gmail.com
 
  could you gime some diferences between both of them
 
 
  2013/4/3 Chrystopher Medina xha...@gmail.com
 
  my friend u think that is better that i use sessionstorage from
html5 or sesions with php
 
  2013/4/2 asgallant drew_g...@abtassoc.com
 
  The first two header lines tell IE not to cache the results (you
may or may not want to include them, depending on whether you want caching
enabled or not).  The last one helps the browser interpret the data, and
looks correct if you are returning a JSON string.
 
  On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina
wrote:
 
  mi friend could you explain me this again please.
  header('Cache-Control: no-cache, must-revalidate');
  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  header('Content-type: application/json');// well this is to tell
to the script that json is the type of data that im gonna send ... am i ok ?
  because i´ve forgot it ... about jquery with ajax i´ve been
studing a lot , and i think that i´m learning a lot abount that.
 
  2013/3/27 Chrystopher Medina xha...@gmail.com
 
  please my friend. for example
 
 

 --
 You received this message because you 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
my friend it works perfectly thanks. my friend i have anoter cuestion

well i have a form and i send my data to the server in order to check if
the user and passwor are ok.
i do this jus to test.

thi is my php file

if($_post['user']=='xhava'  $_post['password']=='12345'){
echo 1;
}else {
echo 0;
}

and in my javascript file i jus have this

well i have mi function in order to send the data to the server and in
order to receive the values i do thi

function(data){
if(data===1){
alert(you have logged);
}else{
alert(you have not logged in );
}
}

but how i can send from my php file to the javascript file the data in json
format..

i had done somethin like this but it did not work.

$myarray = array();

if($_post['user']=='xhava'  $_post['password']=='12345'){
$myarray[0] = 1;
}else {
$myarray[0]=0;
}

echo jsonencode($myarray);









2013/4/3 asgallant drew_gall...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of the
 cause without being able to test it.  My suggestion would be to move any
 jQuery that acts on the content in secondpage.html into secondpage.html,
 and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
 });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',**inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**function(){
 $(content).load('secondpage.**html');
 });

 $(#secondbutton).on('click',**function(){
 alert(i am the second button);
 });

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and
 when i click in the button id=firstbutton, the second page named
 secondpage.html is loaded inside my index.html in the div with
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script
 javascript in my index.html and as the second page is being loaded into my
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this.







 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them



 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5
 or sesions with php


 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may
 or may not want to include them, depending on whether you want caching
 enabled or not).  The last one helps the browser interpret the data, and
 looks correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to
 the script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a
 lot , and i think that i´m learning a lot abount that.


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example

 this is a button ...  and when i click on it  i
 want to go to the php script, and obtain values from my database... 
 then i
 want to
 div  id=values/div send the values to the div with
 id=values


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/google-visualization-**api/-zapZe7dH7Y/unsubscribe?**hl=enhttps://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread asgallant
The PHP function is json_encode, not jsonencode.

On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion 

 well i have a form and i send my data to the server in order to check if 
 the user and passwor are ok. 
 i do this jus to test. 

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0; 
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in 
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in 
 json format.. 

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1; 
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com javascript:

 Like most things, sessionstorage and server sessions have their benefits 
 and drawbacks, and which you use largely depends on what you need to 
 accomplish; neither one is inherently better than the other.  Basically, 
 the difference as I understand it is that PHP's sessions tie data to a 
 particular connection to the server for the duration of the session while 
 sessionstorage keeps data locally in the browser, tied to a particular tab 
 and a particular domain.  If you need to access the data to do things on 
 the server, you probably want to use PHP's sessions; if what you want to do 
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of the 
 cause without being able to test it.  My suggestion would be to move any 
 jQuery that acts on the content in secondpage.html into secondpage.html, 
 and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
 });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my 
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',**inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**function(){
 $(content).load('secondpage.**html');
 });  

 $(#secondbutton).on('click',**function(){
 alert(i am the second button);
 });  

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and 
 when i click in the button id=firstbutton, the second page named 
 secondpage.html is loaded inside my index.html in the div with 
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me 
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script 
 javascript in my index.html and as the second page is being loaded into my 
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this. 







 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them 



 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5 or 
 sesions with php
  

 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or 
 may not want to include them, depending on whether you want caching enabled 
 or not).  The last one helps the browser interpret the data, and looks 
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the 
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a lot 
 , and i think that i´m learning a lot abount that. 


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example 
  
 this is a button ...  and when i click on it  i want to 
 go to the php script, and obtain values from my database... then i want to 
 div  id=values/div send the values to the div with id=values


  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread Chrystopher Medina
thanks my friend u are right .. but everithing else looks ok.


2013/4/3 asgallant drew_gall...@abtassoc.com

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion

 well i have a form and i send my data to the server in order to check if
 the user and passwor are ok.
 i do this jus to test.

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0;
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in
 json format..

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1;
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits
 and drawbacks, and which you use largely depends on what you need to
 accomplish; neither one is inherently better than the other.  Basically,
 the difference as I understand it is that PHP's sessions tie data to a
 particular connection to the server for the duration of the session while
 sessionstorage keeps data locally in the browser, tied to a particular tab
 and a particular domain.  If you need to access the data to do things on
 the server, you probably want to use PHP's sessions; if what you want to do
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of
 the cause without being able to test it.  My suggestion would be to move
 any jQuery that acts on the content in secondpage.html into
 secondpage.html, and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
 });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**f**unction(){
 $(content).load('secondpage.html');
 });

 $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and
 when i click in the button id=firstbutton, the second page named
 secondpage.html is loaded inside my index.html in the div with
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script
 javascript in my index.html and as the second page is being loaded into my
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this.







 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them



 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5 or
 sesions with php


 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or
 may not want to include them, depending on whether you want caching enabled
 or not).  The last one helps the browser interpret the data, and looks
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a lot
 , and i think that i´m learning a lot abount that.


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my friend. for example

 this is a button ...  and when i click on it  i want to
 go to the php script, and obtain values from my database... then i want to
 div  id=values/div send the values to the div with id=values


  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-03 Thread asgallant
At a glance, everything else looks OK.  You would get a JSON string that 
looks like this [0] or this [1] when you run that code, which would be 
interpreted as an array with one element which is either a 0 or a 1.

On Wednesday, April 3, 2013 5:51:11 PM UTC-4, Chrystopher Medina wrote:

 thanks my friend u are right .. but everithing else looks ok.


 2013/4/3 asgallant drew_g...@abtassoc.com javascript:

 The PHP function is json_encode, not jsonencode.


 On Wednesday, April 3, 2013 5:31:22 PM UTC-4, Chrystopher Medina wrote:

 my friend it works perfectly thanks. my friend i have anoter cuestion 

 well i have a form and i send my data to the server in order to check if 
 the user and passwor are ok. 
 i do this jus to test. 

 thi is my php file

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 echo 1;
 }else {
 echo 0; 
 }

 and in my javascript file i jus have this

 well i have mi function in order to send the data to the server and in 
 order to receive the values i do thi

 function(data){
 if(data===1){
 alert(you have logged);
 }else{
 alert(you have not logged in );
 }
 }

 but how i can send from my php file to the javascript file the data in 
 json format.. 

 i had done somethin like this but it did not work.

 $myarray = array();

 if($_post['user']=='xhava'  $_post['password']=='12345'){
 $myarray[0] = 1; 
 }else {
 $myarray[0]=0;
 }

 echo jsonencode($myarray);









 2013/4/3 asgallant drew_g...@abtassoc.com

 Like most things, sessionstorage and server sessions have their benefits 
 and drawbacks, and which you use largely depends on what you need to 
 accomplish; neither one is inherently better than the other.  Basically, 
 the difference as I understand it is that PHP's sessions tie data to a 
 particular connection to the server for the duration of the session while 
 sessionstorage keeps data locally in the browser, tied to a particular tab 
 and a particular domain.  If you need to access the data to do things on 
 the server, you probably want to use PHP's sessions; if what you want to do 
 is all in javascript, then you might want to use sessionstorage.

 As far as the other problem you are having goes, I can't be certain of the 
 cause without being able to test it.  My suggestion would be to move any 
 jQuery that acts on the content in secondpage.html into secondpage.html, 
 and wrap it in a document.ready event handler:

 $(function () {
 // javascript that does things on the contents of secondpage.html
 });


 On Wednesday, April 3, 2013 7:49:31 AM UTC-4, Chrystopher Medina wrote:

 my friend could you explain me something please.. look,  i have my 
 index.html some like this:
 scripthere is the jquery library /script

 script
 window.addEvenListener('load',inicia,false);
 function inicia(){
 $(#firstbutton).on('click',**f**unction(){
  $(content).load('secondpage.html');
 });  

 $(#secondbutton).on('click',function(){
 alert(i am the second button);
 });  

 }
 /script
 div id=contenthellow world/div
 input type=button value=ok id=firstbutton

 and then i have another file html named secondpage.html
 this file has something like this:

 divthis is the second page/div
 input type=button value=ok id=secondbutton

 well, i have my javascript file just in the first page(index.html) and 
 when i click in the button id=firstbutton, the second page named 
 secondpage.html is loaded inside my index.html in the div with 
 id=content.. until here everything works fine..but
 but when I click on the second button in my second page does not show me 
 the alert(i am the second button)

 I thought I just had to include the jQuery library and the script 
 javascript in my index.html and as the second page is being loaded into my 
 index.html, this second page could run the scripts included in my index.

 i hope u can explain me this. 







 2013/4/3 Chrystopher Medina xha...@gmail.com

 could you gime some diferences between both of them 



 2013/4/3 Chrystopher Medina xha...@gmail.com

 my friend u think that is better that i use sessionstorage from html5 or 
 sesions with php
  

 2013/4/2 asgallant drew_g...@abtassoc.com

 The first two header lines tell IE not to cache the results (you may or 
 may not want to include them, depending on whether you want caching enabled 
 or not).  The last one helps the browser interpret the data, and looks 
 correct if you are returning a JSON string.


 On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the 
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a lot 
 , and i think that i´m learning a lot abount that. 


 2013/3/27 Chrystopher Medina xha...@gmail.com


 please my 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-02 Thread Chrystopher Medina
mi friend could you explain me this again please.

header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');// well this is to tell to the
script that json is the type of data that im gonna send ... am i ok ?

because i´ve forgot it ... about jquery with ajax i´ve been studing a lot ,
and i think that i´m learning a lot abount that.


2013/3/27 Chrystopher Medina xhav...@gmail.com


 please my friend. for example

 this is a button ...  and when i click on it  i want to
 go to the php script, and obtain values from my database... then i want to
 div  id=values/div send the values to the div with id=values


-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-04-02 Thread asgallant
The first two header lines tell IE not to cache the results (you may or may 
not want to include them, depending on whether you want caching enabled or 
not).  The last one helps the browser interpret the data, and looks correct 
if you are returning a JSON string.

On Tuesday, April 2, 2013 4:05:56 AM UTC-4, Chrystopher Medina wrote:

 mi friend could you explain me this again please.

 header('Cache-Control: no-cache, must-revalidate');
 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
 header('Content-type: application/json');// well this is to tell to the 
 script that json is the type of data that im gonna send ... am i ok ?

 because i´ve forgot it ... about jquery with ajax i´ve been studing a lot 
 , and i think that i´m learning a lot abount that. 


 2013/3/27 Chrystopher Medina xha...@gmail.com javascript:


 please my friend. for example 
  
 this is a button ...  and when i click on it  i want to 
 go to the php script, and obtain values from my database... then i want to 
 div  id=values/div send the values to the div with id=values




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-27 Thread Chrystopher Medina
please my friend. for example

this is a button ...  and when i click on it  i want to go
to the php script, and obtain values from my database... then i want to
div  id=values/div send the values to the div with id=values

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-26 Thread Chrystopher Medina
hi my friend how are u doing? it´s me again . my friend i have a question ,
please just give some idea for this. .   i have a database with some
employes, name number phone adress etc etc.i just want to put this
values into a div . and then i just wanna do put a image in fron of each
value in order to delete or update each value something like this my friend:


name:   num.phone:country:
salvador22342433323  mexico  *delete*   *update*
medina 33434334333  e.u   * delete*   *update*
*
*

so i just wanna click in some option .. if i click in delete ..
that value has to be droped from the database.

i dunno if  u are understand me  my friend  i just want some idea
for that ... how can i obtain that values from a database and then put them
into a div. but with the options delete and update... please my friend

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-26 Thread asgallant
Yes, you can do that.  I can't give you specifics about setting it up, but 
it would work similar in principle to the other AJAX functions you have 
used before.  Use SQL DROP and UPDATE statements to delete and update 
the data in the database.

On Tuesday, March 26, 2013 2:15:53 AM UTC-4, Chrystopher Medina wrote:

 hi my friend how are u doing? it´s me again . my friend i have a question 
 , please just give some idea for this. .   i have a database with some 
 employes, name number phone adress etc etc.i just want to put this 
 values into a div . and then i just wanna do put a image in fron of each 
 value in order to delete or update each value something like this my friend:


 name:   num.phone:country:
 salvador22342433323  mexico  *delete*   *update*
 medina 33434334333  e.u   * delete*   *update*
 *
 *

 so i just wanna click in some option .. if i click in delete .. 
 that value has to be droped from the database.

 i dunno if  u are understand me  my friend  i just want some idea 
 for that ... how can i obtain that values from a database and then put them 
 into a div. but with the options delete and update... please my friend


-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-26 Thread Chrystopher Medina
Ok my friend.  And could you help with some example. How can i send the
values of a query sql in formar json from the server to the client side.
And then How i can make a table with that json array. Well i think that i
know How make an array with the values of my sql query And then with
encode_json() i send the array to de client side.
El mar 26, 2013 1:46 p.m., asgallant drew_gall...@abtassoc.com escribió:

 Yes, you can do that.  I can't give you specifics about setting it up, but
 it would work similar in principle to the other AJAX functions you have
 used before.  Use SQL DROP and UPDATE statements to delete and update
 the data in the database.

 On Tuesday, March 26, 2013 2:15:53 AM UTC-4, Chrystopher Medina wrote:

 hi my friend how are u doing? it´s me again . my friend i have a question
 , please just give some idea for this. .   i have a database with some
 employes, name number phone adress etc etc.i just want to put this
 values into a div . and then i just wanna do put a image in fron of each
 value in order to delete or update each value something like this my friend:


 name:   num.phone:country:
 salvador22342433323  mexico  *delete*   *update*
 medina 33434334333  e.u   * delete*   *update*
 *
 *

 so i just wanna click in some option .. if i click in delete ..
 that value has to be droped from the database.

 i dunno if  u are understand me  my friend  i just want some idea
 for that ... how can i obtain that values from a database and then put them
 into a div. but with the options delete and update... please my friend

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google Visualization API group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-08 Thread Ian Haylock
it worked  thanks again 

On Thursday, March 7, 2013 3:36:41 PM UTC-6, asgallant wrote:

 You'll have to debug the output from the database to figure out whether 
 the query is wrong or the PHP is wrong.  Use var_dump to examine the 
 contents of the returned data:

 while($r = mysql_fetch_assoc($sth)) {
 /*
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']);
 $temp[] = array('v' = (int) $r['capacidadMW']);
 $temp[] = array('v' = (int) $r['disponibilidadmw']);
 $rows[] = array('c' = $temp);
 */
 var_dump($r);
 echo 'br /';
 }

 Open the data source in a browser and examine the contents.  You should 
 see a bunch of arrays with planta, capacidadMW, and disponibilidadmw 
 keys; check the values in the disponibilidadmw key to see if they match 
 your database.  If they do, there is a problem with the PHP.  If they 
 don't, then there is a problem with the SQL.


 On Thursday, March 7, 2013 4:18:25 PM UTC-5, Ian Haylock wrote:

 for some reason is not working for me ... it works fine without adding the 
 new column (showing only the capacidadmw data without the new 
 disponibilidadmw) but when i add the disponibilidadmw that column gets back 
 empty, even though it appears in the column titles, but its value comesback 
 as 0 in all... but when i try the same query in phpmyadmin it returns 
 values properly fot that column too

 this is what i have after adding the new info to the data table:

 
 testing-double-axis.php




 
 On Thursday, March 7, 2013 1:58:37 PM UTC-6, asgallant wrote:

 You also need to add it to the list of columns:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta);

 $table = array();
 $table['cols'] = array(
 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number'),
 array('label' = 'disponibilidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']);
 $temp[] = array('v' = (int) $r['capacidadMW']);
 $temp[] = array('v' = (int) $r['disponibilidadmw']);
 $rows[] = array('c' = $temp);
 }

 On Thursday, March 7, 2013 2:41:42 PM UTC-5, Ian Haylock wrote:

 so is possible.. great !!! : this is what i have: 

 
 $sth = mysql_query(SELECT planta, capacidadMW FROM planta);
 $rows = array();
 $flag = true;

 $table = array();
 $table['cols'] = array(

 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']); 
 $temp[] = array('v' = (int) $r['capacidadMW']); 
 $rows[] = array('c' = $temp);
 }

 $table['rows'] = $rows;

 $jsonTable = json_encode($table);

 echo $jsonTable;
 ?

 

 i changed: $sth = mysql_query(SELECT planta, capacidadMW FROM planta); 
 ...and now i retrieved one more data  (disponibilidadmw) so it looks like 
 this now:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta); 

 my question is... wehere to i add that to my data table??? is it as easy 
 as to add the line: $temp[] = array('v' = (int) $r['disponibilidadMW']);  
 ?? cause is not working for me...

 sorry to trouble you for something im sure is basic for you ... and thanks 
 again man.. 


 On Thursday, March 7, 2013 10:35:15 AM UTC-6, Ian Haylock wrote:

 Hi asgallant... i was wondering if you could help me, i have the grapgh 
 working fine showing one bar per x axis data, what i need now is to use a 
 bar chart to show two or more bars per each  x axis data, not stacked but 
 side by side like when you group, see (
 https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es) 
 ... can i do it following this same example? if so , how do i retrieve 
 and add the other data to the code?


 On Wednesday, December 12, 2012 3:51:13 PM UTC-6, Ian Haylock wrote:

 it worked !!! cant say thank you enough. i wish there were more 
 people like you. 

 On Wednesday, December 12, 2012 3:39:22 PM UTC-6, asgallant wrote:

 You have a couple of unnecessary lines in your javascript:

 alert(typeof(jsonData));
 console.log(jsonData);

 The first is what pops up that message.  The second is dumping the 
 contents of the json to the developers console - this will cause the script 
 to bomb in older versions of IE, as they don't have a console object. 
  Delete or comment these two lines and you should be fine.

 On Wednesday, December 12, 2012 4:24:30 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-07 Thread Ian Haylock
Hi asgallant... i was wondering if you could help me, i have the grapgh 
working fine showing one bar per x axis data, what i need now is to use a 
bar chart to show two or more bars per each  x axis data, not stacked but 
side by side like when you group, see 
(https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es 
) ... can i do it following this same example? if so , how do i retrieve 
and add the other data to the code?


On Wednesday, December 12, 2012 3:51:13 PM UTC-6, Ian Haylock wrote:

 it worked !!! cant say thank you enough. i wish there were more 
 people like you. 

 On Wednesday, December 12, 2012 3:39:22 PM UTC-6, asgallant wrote:

 You have a couple of unnecessary lines in your javascript:

 alert(typeof(jsonData));
 console.log(jsonData);

 The first is what pops up that message.  The second is dumping the 
 contents of the json to the developers console - this will cause the script 
 to bomb in older versions of IE, as they don't have a console object. 
  Delete or comment these two lines and you should be fine.

 On Wednesday, December 12, 2012 4:24:30 PM UTC-5, Ian Haylock wrote:


 https://lh4.googleusercontent.com/-sbGpcUatdqI/UMj1-PVHiqI/ALM/1muCotW-3_0/s1600/string.png
 json generated:

 {cols:[{label:planta,type:string},{label:capacidad en 
 MW,type:number}],rows:[{c:[{v:Francisco 
 Morazan},{v:300}]},{c:[{v:Lufussa 
 III},{v:267.4}]},{c:[{v:Enersa},{v:259}]},{c:[{v:EEHSA - 
 Mesoamerica},{v:102}]},{c:[{v:Elcosa},{v:80}]},{c:[{v:Lufussa 
 II},{v:80}]},{c:[{v:Rio Lindo},{v:80}]},{c:[{v:Emce 
 Choloma},{v:55}]},{c:[{v:Lufussa I},{v:40}]},{c:[{v:Enersa 
 (excedente de 30 
 MW)},{v:30}]},{c:[{v:Nacaome},{v:30}]},{c:[{v:Ca\u00f1averal},{v:29}]},{c:[{v:La
  
 Ceiba},{v:26}]},{c:[{v:La Grecia - 
 Celsur},{v:25.5}]},{c:[{v:Cahsa - Azucarera 
 Hondure\u00f1a},{v:25}]},{c:[{v:El 
 Nispero},{v:22.5}]},{c:[{v:Envasa},{v:21}]},{c:[{v:Elcatex},{v:21}]},{c:[{v:Chumbagua},{v:20}]},{c:[{v:Nacional
  
 de Ingenieros},{v:20}]},{c:[{v:La Puerta MEX - 
 Hitachi},{v:18}]},{c:[{v:Celsur},{v:18}]},{c:[{v:La Puerta 
 ENEE- General Electric},{v:15}]},{c:[{v:CISA - La 
 Esperanza},{v:12.7}]},{c:[{v:Cuyamapa},{v:12.2}]},{c:[{v:Ampac
  
 (American Pacific)},{v:10.1}]},{c:[{v:Azunosa ( IHSA 
 )},{v:10}]},{c:[{v:Geen Valley - Park 
 Dale},{v:10}]},{c:[{v:AYSA},{v:8}]},{c:[{v:Cuyamel},{v:8}]},{c:[{v:Tres
  
 Valles},{v:7.8}]},{c:[{v:El 
 Cisne},{v:7}]},{c:[{v:Cortecito},{v:6}]},{c:[{v:La 
 Gloria},{v:5.3}]},{c:[{v:Santa Fe},{v:5}]},{c:[{v:Rio 
 Blanco},{v:5}]},{c:[{v:Coronado},{v:4.5}]},{c:[{v:Babilonia},{v:4.3}]},{c:[{v:San
  
 Carlos},{v:4}]},{c:[{v:Cececapa},{v:3.5}]},{c:[{v:El 
 Coyolar},{v:1.7}]},{c:[{v:Mangungo 
 I},{v:1.5}]},{c:[{v:Santa Maria del 
 Real},{v:1.2}]},{c:[{v:Eda},{v:1.2}]},{c:[{v:Aceydesa},{v:1.1}]},{c:[{v:Yodeco},{v:1}]},{c:[{v:Zacapa},{v:0.8}]},{c:[{v:Yojoa},{v:0.6}]},{c:[{v:Aguan},{v:0.5}]},{c:[{v:Lean},{v:0.5}]},{c:[{v:La
  
 Nieve},{v:0.5}]}]} 

 javascript: 

 html
   head
meta charset=utf-8
 script type=text/javascript src=https://www.google.com/jsapi
 /script
  script type=text/javascript src=
 http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js;/script
 script type=text/javascript
   google.load(visualization, 1, {packages:[corechart]});
   google.setOnLoadCallback(drawChart);
  
   function drawChart() {
var jsonData =$.ajax({
   url: plantas_capacidad_chart_info.php,
   dataType:json,
   async: false
   }).responseText;

   alert(typeof(jsonData)); 
   console.log(jsonData); 
  
 var data = new 
 google.visualization.DataTable(JSON.parse(jsonData));
 var options = {'title':'Capacidad Instalada de Plantas',
'width':800,
'height':600,
'hAxis.showTextEvery':2,
'backgroundColor': '',
'bar.groupWidth' : '90%'
};

 var chart = new 
 google.visualization.ColumnChart(document.getElementById('chart_div'));
 chart.draw(data,options);
   }
 /script
   /head
   body
 div id=chart_div /div
   /body
 /html




 image  string: 

 On Wednesday, December 12, 2012 2:30:17 PM UTC-6, asgallant wrote:

 I've never seen any  (string)  message.  Can you post a screenshot, your 
 javascript code, and a sample of the json returned by your query?

 On Wednesday, December 12, 2012 12:55:49 PM UTC-5, Ian Haylock wrote:

 query solved  thank you. 
 now my only problem is that before the browsers shows the graphs i keep 
 getting the   (string)  message and have to click on it to see the graph 
 ... any ideas ??? i have changed the types, added options, etc and still 
 nothing

 On Wednesday, December 12, 2012 11:38:06 AM UTC-6, asgallant wrote:

 This isn't causing your problem, but since your capacidadMW is a decimal 
 type, and not an integer, you should probably 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-07 Thread asgallant
You just need to add more columns to your DataTable.  Stacking columns and 
grouping them side-by-side is the same thing as far as the data is 
concerned.

On Thursday, March 7, 2013 11:35:15 AM UTC-5, Ian Haylock wrote:

 Hi asgallant... i was wondering if you could help me, i have the grapgh 
 working fine showing one bar per x axis data, what i need now is to use a 
 bar chart to show two or more bars per each  x axis data, not stacked but 
 side by side like when you group, see (
 https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es) 
 ... can i do it following this same example? if so , how do i retrieve 
 and add the other data to the code?


-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-07 Thread Ian Haylock
so is possible.. great !!! : this is what i have: 

$sth = mysql_query(SELECT planta, capacidadMW FROM planta);
$rows = array();
$flag = true;

$table = array();
$table['cols'] = array(

array('label' = 'planta', 'type' = 'string'),
array('label' = 'capacidad en MW', 'type' = 'number')
);

$rows = array();
while($r = mysql_fetch_assoc($sth)) {
$temp = array();
$temp[] = array('v' = (string)$r['planta']); 
$temp[] = array('v' = (int) $r['capacidadMW']); 
$rows[] = array('c' = $temp);
}

$table['rows'] = $rows;

$jsonTable = json_encode($table);

echo $jsonTable;
?


i changed: $sth = mysql_query(SELECT planta, capacidadMW FROM planta); 
...and now i retrieved one more data  (disponibilidadmw) so it looks like 
this now:

$sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
planta); 

my question is... wehere to i add that to my data table??? is it as easy as 
to add the line: $temp[] = array('v' = (int) $r['disponibilidadMW']);  ?? 
cause is not working for me...

sorry to trouble you for something im sure is basic for you ... and thanks 
again man.. 


On Thursday, March 7, 2013 10:35:15 AM UTC-6, Ian Haylock wrote:

 Hi asgallant... i was wondering if you could help me, i have the grapgh 
 working fine showing one bar per x axis data, what i need now is to use a 
 bar chart to show two or more bars per each  x axis data, not stacked but 
 side by side like when you group, see (
 https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es) 
 ... can i do it following this same example? if so , how do i retrieve 
 and add the other data to the code?


 On Wednesday, December 12, 2012 3:51:13 PM UTC-6, Ian Haylock wrote:

 it worked !!! cant say thank you enough. i wish there were more 
 people like you. 

 On Wednesday, December 12, 2012 3:39:22 PM UTC-6, asgallant wrote:

 You have a couple of unnecessary lines in your javascript:

 alert(typeof(jsonData));
 console.log(jsonData);

 The first is what pops up that message.  The second is dumping the 
 contents of the json to the developers console - this will cause the script 
 to bomb in older versions of IE, as they don't have a console object. 
  Delete or comment these two lines and you should be fine.

 On Wednesday, December 12, 2012 4:24:30 PM UTC-5, Ian Haylock wrote:


 https://lh4.googleusercontent.com/-sbGpcUatdqI/UMj1-PVHiqI/ALM/1muCotW-3_0/s1600/string.png
 json generated:

 {cols:[{label:planta,type:string},{label:capacidad en 
 MW,type:number}],rows:[{c:[{v:Francisco 
 Morazan},{v:300}]},{c:[{v:Lufussa 
 III},{v:267.4}]},{c:[{v:Enersa},{v:259}]},{c:[{v:EEHSA - 
 Mesoamerica},{v:102}]},{c:[{v:Elcosa},{v:80}]},{c:[{v:Lufussa 
 II},{v:80}]},{c:[{v:Rio Lindo},{v:80}]},{c:[{v:Emce 
 Choloma},{v:55}]},{c:[{v:Lufussa I},{v:40}]},{c:[{v:Enersa 
 (excedente de 30 
 MW)},{v:30}]},{c:[{v:Nacaome},{v:30}]},{c:[{v:Ca\u00f1averal},{v:29}]},{c:[{v:La
  
 Ceiba},{v:26}]},{c:[{v:La Grecia - 
 Celsur},{v:25.5}]},{c:[{v:Cahsa - Azucarera 
 Hondure\u00f1a},{v:25}]},{c:[{v:El 
 Nispero},{v:22.5}]},{c:[{v:Envasa},{v:21}]},{c:[{v:Elcatex},{v:21}]},{c:[{v:Chumbagua},{v:20}]},{c:[{v:Nacional
  
 de Ingenieros},{v:20}]},{c:[{v:La Puerta MEX - 
 Hitachi},{v:18}]},{c:[{v:Celsur},{v:18}]},{c:[{v:La Puerta 
 ENEE- General Electric},{v:15}]},{c:[{v:CISA - La 
 Esperanza},{v:12.7}]},{c:[{v:Cuyamapa},{v:12.2}]},{c:[{v:Ampac
  
 (American Pacific)},{v:10.1}]},{c:[{v:Azunosa ( IHSA 
 )},{v:10}]},{c:[{v:Geen Valley - Park 
 Dale},{v:10}]},{c:[{v:AYSA},{v:8}]},{c:[{v:Cuyamel},{v:8}]},{c:[{v:Tres
  
 Valles},{v:7.8}]},{c:[{v:El 
 Cisne},{v:7}]},{c:[{v:Cortecito},{v:6}]},{c:[{v:La 
 Gloria},{v:5.3}]},{c:[{v:Santa Fe},{v:5}]},{c:[{v:Rio 
 Blanco},{v:5}]},{c:[{v:Coronado},{v:4.5}]},{c:[{v:Babilonia},{v:4.3}]},{c:[{v:San
  
 Carlos},{v:4}]},{c:[{v:Cececapa},{v:3.5}]},{c:[{v:El 
 Coyolar},{v:1.7}]},{c:[{v:Mangungo 
 I},{v:1.5}]},{c:[{v:Santa Maria del 
 Real},{v:1.2}]},{c:[{v:Eda},{v:1.2}]},{c:[{v:Aceydesa},{v:1.1}]},{c:[{v:Yodeco},{v:1}]},{c:[{v:Zacapa},{v:0.8}]},{c:[{v:Yojoa},{v:0.6}]},{c:[{v:Aguan},{v:0.5}]},{c:[{v:Lean},{v:0.5}]},{c:[{v:La
  
 Nieve},{v:0.5}]}]} 

 javascript: 

 html
   head
meta charset=utf-8
 script type=text/javascript src=https://www.google.com/jsapi
 /script
  script type=text/javascript src=
 http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js;/script
 script type=text/javascript
   google.load(visualization, 1, {packages:[corechart]});
   google.setOnLoadCallback(drawChart);
  
   function drawChart() {
var jsonData =$.ajax({
   url: plantas_capacidad_chart_info.php,
   dataType:json,
   async: false
   }).responseText;

   alert(typeof(jsonData)); 
   console.log(jsonData); 
  
 var data = new 
 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-07 Thread asgallant
You also need to add it to the list of columns:

$sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
planta);

$table = array();
$table['cols'] = array(
array('label' = 'planta', 'type' = 'string'),
array('label' = 'capacidad en MW', 'type' = 'number'),
array('label' = 'disponibilidad en MW', 'type' = 'number')
);

$rows = array();
while($r = mysql_fetch_assoc($sth)) {
$temp = array();
$temp[] = array('v' = (string)$r['planta']);
$temp[] = array('v' = (int) $r['capacidadMW']);
$temp[] = array('v' = (int) $r['disponibilidadmw']);
$rows[] = array('c' = $temp);
}

On Thursday, March 7, 2013 2:41:42 PM UTC-5, Ian Haylock wrote:

 so is possible.. great !!! : this is what i have: 

 
 $sth = mysql_query(SELECT planta, capacidadMW FROM planta);
 $rows = array();
 $flag = true;

 $table = array();
 $table['cols'] = array(

 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']); 
 $temp[] = array('v' = (int) $r['capacidadMW']); 
 $rows[] = array('c' = $temp);
 }

 $table['rows'] = $rows;

 $jsonTable = json_encode($table);

 echo $jsonTable;
 ?

 

 i changed: $sth = mysql_query(SELECT planta, capacidadMW FROM planta); 
 ...and now i retrieved one more data  (disponibilidadmw) so it looks like 
 this now:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta); 

 my question is... wehere to i add that to my data table??? is it as easy 
 as to add the line: $temp[] = array('v' = (int) $r['disponibilidadMW']);  
 ?? cause is not working for me...

 sorry to trouble you for something im sure is basic for you ... and thanks 
 again man.. 


 On Thursday, March 7, 2013 10:35:15 AM UTC-6, Ian Haylock wrote:

 Hi asgallant... i was wondering if you could help me, i have the grapgh 
 working fine showing one bar per x axis data, what i need now is to use a 
 bar chart to show two or more bars per each  x axis data, not stacked but 
 side by side like when you group, see (
 https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es) 
 ... can i do it following this same example? if so , how do i retrieve 
 and add the other data to the code?


 On Wednesday, December 12, 2012 3:51:13 PM UTC-6, Ian Haylock wrote:

 it worked !!! cant say thank you enough. i wish there were more 
 people like you. 

 On Wednesday, December 12, 2012 3:39:22 PM UTC-6, asgallant wrote:

 You have a couple of unnecessary lines in your javascript:

 alert(typeof(jsonData));
 console.log(jsonData);

 The first is what pops up that message.  The second is dumping the 
 contents of the json to the developers console - this will cause the script 
 to bomb in older versions of IE, as they don't have a console object. 
  Delete or comment these two lines and you should be fine.

 On Wednesday, December 12, 2012 4:24:30 PM UTC-5, Ian Haylock wrote:


 https://lh4.googleusercontent.com/-sbGpcUatdqI/UMj1-PVHiqI/ALM/1muCotW-3_0/s1600/string.png
 json generated:

 {cols:[{label:planta,type:string},{label:capacidad en 
 MW,type:number}],rows:[{c:[{v:Francisco 
 Morazan},{v:300}]},{c:[{v:Lufussa 
 III},{v:267.4}]},{c:[{v:Enersa},{v:259}]},{c:[{v:EEHSA - 
 Mesoamerica},{v:102}]},{c:[{v:Elcosa},{v:80}]},{c:[{v:Lufussa 
 II},{v:80}]},{c:[{v:Rio Lindo},{v:80}]},{c:[{v:Emce 
 Choloma},{v:55}]},{c:[{v:Lufussa I},{v:40}]},{c:[{v:Enersa 
 (excedente de 30 
 MW)},{v:30}]},{c:[{v:Nacaome},{v:30}]},{c:[{v:Ca\u00f1averal},{v:29}]},{c:[{v:La
  
 Ceiba},{v:26}]},{c:[{v:La Grecia - 
 Celsur},{v:25.5}]},{c:[{v:Cahsa - Azucarera 
 Hondure\u00f1a},{v:25}]},{c:[{v:El 
 Nispero},{v:22.5}]},{c:[{v:Envasa},{v:21}]},{c:[{v:Elcatex},{v:21}]},{c:[{v:Chumbagua},{v:20}]},{c:[{v:Nacional
  
 de Ingenieros},{v:20}]},{c:[{v:La Puerta MEX - 
 Hitachi},{v:18}]},{c:[{v:Celsur},{v:18}]},{c:[{v:La Puerta 
 ENEE- General Electric},{v:15}]},{c:[{v:CISA - La 
 Esperanza},{v:12.7}]},{c:[{v:Cuyamapa},{v:12.2}]},{c:[{v:Ampac
  
 (American Pacific)},{v:10.1}]},{c:[{v:Azunosa ( IHSA 
 )},{v:10}]},{c:[{v:Geen Valley - Park 
 Dale},{v:10}]},{c:[{v:AYSA},{v:8}]},{c:[{v:Cuyamel},{v:8}]},{c:[{v:Tres
  
 Valles},{v:7.8}]},{c:[{v:El 
 Cisne},{v:7}]},{c:[{v:Cortecito},{v:6}]},{c:[{v:La 
 Gloria},{v:5.3}]},{c:[{v:Santa Fe},{v:5}]},{c:[{v:Rio 
 Blanco},{v:5}]},{c:[{v:Coronado},{v:4.5}]},{c:[{v:Babilonia},{v:4.3}]},{c:[{v:San
  
 Carlos},{v:4}]},{c:[{v:Cececapa},{v:3.5}]},{c:[{v:El 
 Coyolar},{v:1.7}]},{c:[{v:Mangungo 
 I},{v:1.5}]},{c:[{v:Santa Maria del 
 Real},{v:1.2}]},{c:[{v:Eda},{v:1.2}]},{c:[{v:Aceydesa},{v:1.1}]},{c:[{v:Yodeco},{v:1}]},{c:[{v:Zacapa},{v:0.8}]},{c:[{v:Yojoa},{v:0.6}]},{c:[{v:Aguan},{v:0.5}]},{c:[{v:Lean},{v:0.5}]},{c:[{v:La

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-07 Thread Ian Haylock
for some reason is not working for me ... it works fine without adding the 
new column (showing only the capacidadmw data without the new 
disponibilidadmw) but when i add the disponibilidadmw that column gets back 
empty, even though it appears in the column titles, but its value comesback 
as 0 in all... but when i try the same query in phpmyadmin it returns 
values properly fot that column too

this is what i have after adding the new info to the data table:

testing-double-axis.php




On Thursday, March 7, 2013 1:58:37 PM UTC-6, asgallant wrote:

 You also need to add it to the list of columns:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta);

 $table = array();
 $table['cols'] = array(
 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number'),
 array('label' = 'disponibilidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']);
 $temp[] = array('v' = (int) $r['capacidadMW']);
 $temp[] = array('v' = (int) $r['disponibilidadmw']);
 $rows[] = array('c' = $temp);
 }

 On Thursday, March 7, 2013 2:41:42 PM UTC-5, Ian Haylock wrote:

 so is possible.. great !!! : this is what i have: 

 
 $sth = mysql_query(SELECT planta, capacidadMW FROM planta);
 $rows = array();
 $flag = true;

 $table = array();
 $table['cols'] = array(

 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']); 
 $temp[] = array('v' = (int) $r['capacidadMW']); 
 $rows[] = array('c' = $temp);
 }

 $table['rows'] = $rows;

 $jsonTable = json_encode($table);

 echo $jsonTable;
 ?

 

 i changed: $sth = mysql_query(SELECT planta, capacidadMW FROM planta); 
 ...and now i retrieved one more data  (disponibilidadmw) so it looks like 
 this now:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta); 

 my question is... wehere to i add that to my data table??? is it as easy 
 as to add the line: $temp[] = array('v' = (int) $r['disponibilidadMW']);  
 ?? cause is not working for me...

 sorry to trouble you for something im sure is basic for you ... and thanks 
 again man.. 


 On Thursday, March 7, 2013 10:35:15 AM UTC-6, Ian Haylock wrote:

 Hi asgallant... i was wondering if you could help me, i have the grapgh 
 working fine showing one bar per x axis data, what i need now is to use a 
 bar chart to show two or more bars per each  x axis data, not stacked but 
 side by side like when you group, see (
 https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es) 
 ... can i do it following this same example? if so , how do i retrieve 
 and add the other data to the code?


 On Wednesday, December 12, 2012 3:51:13 PM UTC-6, Ian Haylock wrote:

 it worked !!! cant say thank you enough. i wish there were more 
 people like you. 

 On Wednesday, December 12, 2012 3:39:22 PM UTC-6, asgallant wrote:

 You have a couple of unnecessary lines in your javascript:

 alert(typeof(jsonData));
 console.log(jsonData);

 The first is what pops up that message.  The second is dumping the 
 contents of the json to the developers console - this will cause the script 
 to bomb in older versions of IE, as they don't have a console object. 
  Delete or comment these two lines and you should be fine.

 On Wednesday, December 12, 2012 4:24:30 PM UTC-5, Ian Haylock wrote:


 https://lh4.googleusercontent.com/-sbGpcUatdqI/UMj1-PVHiqI/ALM/1muCotW-3_0/s1600/string.png
 json generated:

 {cols:[{label:planta,type:string},{label:capacidad en 
 MW,type:number}],rows:[{c:[{v:Francisco 
 Morazan},{v:300}]},{c:[{v:Lufussa 
 III},{v:267.4}]},{c:[{v:Enersa},{v:259}]},{c:[{v:EEHSA - 
 Mesoamerica},{v:102}]},{c:[{v:Elcosa},{v:80}]},{c:[{v:Lufussa 
 II},{v:80}]},{c:[{v:Rio Lindo},{v:80}]},{c:[{v:Emce 
 Choloma},{v:55}]},{c:[{v:Lufussa I},{v:40}]},{c:[{v:Enersa 
 (excedente de 30 
 MW)},{v:30}]},{c:[{v:Nacaome},{v:30}]},{c:[{v:Ca\u00f1averal},{v:29}]},{c:[{v:La
  
 Ceiba},{v:26}]},{c:[{v:La Grecia - 
 Celsur},{v:25.5}]},{c:[{v:Cahsa - Azucarera 
 Hondure\u00f1a},{v:25}]},{c:[{v:El 
 Nispero},{v:22.5}]},{c:[{v:Envasa},{v:21}]},{c:[{v:Elcatex},{v:21}]},{c:[{v:Chumbagua},{v:20}]},{c:[{v:Nacional
  
 de Ingenieros},{v:20}]},{c:[{v:La Puerta MEX - 
 Hitachi},{v:18}]},{c:[{v:Celsur},{v:18}]},{c:[{v:La Puerta 
 ENEE- General Electric},{v:15}]},{c:[{v:CISA - 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-03-07 Thread asgallant
You'll have to debug the output from the database to figure out whether the 
query is wrong or the PHP is wrong.  Use var_dump to examine the contents 
of the returned data:

while($r = mysql_fetch_assoc($sth)) {
/*
$temp = array();
$temp[] = array('v' = (string)$r['planta']);
$temp[] = array('v' = (int) $r['capacidadMW']);
$temp[] = array('v' = (int) $r['disponibilidadmw']);
$rows[] = array('c' = $temp);
*/
var_dump($r);
echo 'br /';
}

Open the data source in a browser and examine the contents.  You should see 
a bunch of arrays with planta, capacidadMW, and disponibilidadmw 
keys; check the values in the disponibilidadmw key to see if they match 
your database.  If they do, there is a problem with the PHP.  If they 
don't, then there is a problem with the SQL.


On Thursday, March 7, 2013 4:18:25 PM UTC-5, Ian Haylock wrote:

 for some reason is not working for me ... it works fine without adding the 
 new column (showing only the capacidadmw data without the new 
 disponibilidadmw) but when i add the disponibilidadmw that column gets back 
 empty, even though it appears in the column titles, but its value comesback 
 as 0 in all... but when i try the same query in phpmyadmin it returns 
 values properly fot that column too

 this is what i have after adding the new info to the data table:

 
 testing-double-axis.php




 
 On Thursday, March 7, 2013 1:58:37 PM UTC-6, asgallant wrote:

 You also need to add it to the list of columns:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta);

 $table = array();
 $table['cols'] = array(
 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number'),
 array('label' = 'disponibilidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']);
 $temp[] = array('v' = (int) $r['capacidadMW']);
 $temp[] = array('v' = (int) $r['disponibilidadmw']);
 $rows[] = array('c' = $temp);
 }

 On Thursday, March 7, 2013 2:41:42 PM UTC-5, Ian Haylock wrote:

 so is possible.. great !!! : this is what i have: 

 
 $sth = mysql_query(SELECT planta, capacidadMW FROM planta);
 $rows = array();
 $flag = true;

 $table = array();
 $table['cols'] = array(

 array('label' = 'planta', 'type' = 'string'),
 array('label' = 'capacidad en MW', 'type' = 'number')
 );

 $rows = array();
 while($r = mysql_fetch_assoc($sth)) {
 $temp = array();
 $temp[] = array('v' = (string)$r['planta']); 
 $temp[] = array('v' = (int) $r['capacidadMW']); 
 $rows[] = array('c' = $temp);
 }

 $table['rows'] = $rows;

 $jsonTable = json_encode($table);

 echo $jsonTable;
 ?

 

 i changed: $sth = mysql_query(SELECT planta, capacidadMW FROM planta); 
 ...and now i retrieved one more data  (disponibilidadmw) so it looks like 
 this now:

 $sth = mysql_query(SELECT planta, capacidadMW, disponibilidadmw FROM 
 planta); 

 my question is... wehere to i add that to my data table??? is it as easy 
 as to add the line: $temp[] = array('v' = (int) $r['disponibilidadMW']);  
 ?? cause is not working for me...

 sorry to trouble you for something im sure is basic for you ... and thanks 
 again man.. 


 On Thursday, March 7, 2013 10:35:15 AM UTC-6, Ian Haylock wrote:

 Hi asgallant... i was wondering if you could help me, i have the grapgh 
 working fine showing one bar per x axis data, what i need now is to use a 
 bar chart to show two or more bars per each  x axis data, not stacked but 
 side by side like when you group, see (
 https://developers.google.com/chart/interactive/docs/gallery/barchart?hl=es) 
 ... can i do it following this same example? if so , how do i retrieve 
 and add the other data to the code?


 On Wednesday, December 12, 2012 3:51:13 PM UTC-6, Ian Haylock wrote:

 it worked !!! cant say thank you enough. i wish there were more 
 people like you. 

 On Wednesday, December 12, 2012 3:39:22 PM UTC-6, asgallant wrote:

 You have a couple of unnecessary lines in your javascript:

 alert(typeof(jsonData));
 console.log(jsonData);

 The first is what pops up that message.  The second is dumping the 
 contents of the json to the developers console - this will cause the script 
 to bomb in older versions of IE, as they don't have a console object. 
  Delete or comment these two lines and you should be fine.

 On Wednesday, December 12, 2012 4:24:30 PM UTC-5, Ian Haylock wrote:


 

Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-02-27 Thread Chrystopher Medina
My friend i found a certified in php And mysql in w3 school certified.  I
just wanna know if u think Or if u know that It is a good way .
El ene 31, 2013 7:12 p.m., asgallant drew_gall...@abtassoc.com escribió:

 Contact your PC's manufacturer tech support about that.

 On Thursday, January 31, 2013 7:54:58 PM UTC-5, Chrystopher Medina wrote:

 My friend u know what is this the chassis fan is to low. When i turn
 on my computer this mensage apears. In the display
 El ene 29, 2013 11:34 p.m., asgallant drew_g...@abtassoc.com
 escribió:

 The setInterval function takes two arguments: a function to call and a
 time in milliseconds:

 // do something every 5 seconds
 setInterval(function () {
 // do something
 }, 5000);

 On Tuesday, January 29, 2013 11:48:49 PM UTC-5, Chrystopher Medina wrote:

 my friend could u help me to use the javascript setinterval function to
 call the ajax query every x miliseconds


 2013/1/28 asgallant drew_g...@abtassoc.com

 The way to handle that in AJAX is to write an AJAX query to the server
 to fetch the updated user data and display it for your superuser; then use
 the javascript setInterval function to call the AJAX query every X
 milliseconds.


 On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser interface.
 u know .

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading the
 page

  --
 You received this message because you are subscribed to the Google
 Groups Google Visualization API group.
 To post to this group, send email to google-visua...@**googlegroups.**
 com.
 To unsubscribe from this group, send email to
 google-visualization-api+**unsub**scr...@googlegroups.com.
 Visit this group at http://groups.google.com/**group**
 /google-visualization-**api?hl=**enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**grou**ps/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 You received this message because you are subscribed to the Google
 Groups Google Visualization API group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to google-visualization-api+**unsubscr...@googlegroups.com.
 To post to this group, send email to google-visua...@**googlegroups.com.
 Visit this group at http://groups.google.com/**
 group/google-visualization-**api?hl=enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .



  --
 You received this message because you are subscribed to the Google Groups
 Google Visualization API group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-02-27 Thread asgallant
In my personal opinion, W3Schools is terrible (their information is 
frequently incomplete, mistaken, or outright wrong).  I think I mentioned 
before that I'm not a fan of certifications in general (here is the US, 
certifications don't mean much of anything to programmers).  If you need to 
get certified, then try talking with people who work in your field in your 
country.  They are more likely to be able to tell you what looks good on a 
resume there than I can.

On Wednesday, February 27, 2013 8:28:47 AM UTC-5, Chrystopher Medina wrote:

 My friend i found a certified in php And mysql in w3 school certified.  I 
 just wanna know if u think Or if u know that It is a good way .
 El ene 31, 2013 7:12 p.m., asgallant drew_g...@abtassoc.comjavascript: 
 escribió:

 Contact your PC's manufacturer tech support about that.

 On Thursday, January 31, 2013 7:54:58 PM UTC-5, Chrystopher Medina wrote:

 My friend u know what is this the chassis fan is to low. When i turn 
 on my computer this mensage apears. In the display
 El ene 29, 2013 11:34 p.m., asgallant drew_g...@abtassoc.com 
 escribió:

 The setInterval function takes two arguments: a function to call and a 
 time in milliseconds:

 // do something every 5 seconds
 setInterval(function () {
 // do something
 }, 5000);

 On Tuesday, January 29, 2013 11:48:49 PM UTC-5, Chrystopher Medina 
 wrote:

 my friend could u help me to use the javascript setinterval function 
 to call the ajax query every x miliseconds


 2013/1/28 asgallant drew_g...@abtassoc.com

 The way to handle that in AJAX is to write an AJAX query to the 
 server to fetch the updated user data and display it for your superuser; 
 then use the javascript setInterval function to call the AJAX query 
 every X 
 milliseconds.


 On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina 
 wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser 
 interface. u know . 

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading 
 the page

  -- 
 You received this message because you are subscribed to the Google 
 Groups Google Visualization API group.
 To post to this group, send email to google-visua...@**googlegroups.*
 *com.
 To unsubscribe from this group, send email to 
 google-visualization-api+**unsub**scr...@googlegroups.com.
 Visit this group at http://groups.google.com/**group**
 /google-visualization-**api?hl=**enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**grou**ps/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  


  -- 
 You received this message because you are subscribed to the Google 
 Groups Google Visualization API group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to google-visualization-api+**unsubscr...@googlegroups.com.
 To post to this group, send email to google-visua...@**googlegroups.com
 .
 Visit this group at http://groups.google.com/**
 group/google-visualization-**api?hl=enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Visualization API group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-visualization-api+unsubscr...@googlegroups.comjavascript:
 .
 To post to this group, send email to 
 google-visua...@googlegroups.comjavascript:
 .
 Visit this group at 
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-02-19 Thread Chrystopher Medina
my friend i hope u are so good. u know I'll stick with joomla . really i
like ajax , jquery, and i know a little about that things. but i have made
some interesting things with joomla and php and jquery, i really like
joomla, so. we are in touch my friend. take care.

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-02-19 Thread Chrystopher Medina
thanks for helping me

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-31 Thread Chrystopher Medina
My friend u know what is this the chassis fan is to low. When i turn on
my computer this mensage apears. In the display
El ene 29, 2013 11:34 p.m., asgallant drew_gall...@abtassoc.com
escribió:

 The setInterval function takes two arguments: a function to call and a
 time in milliseconds:

 // do something every 5 seconds
 setInterval(function () {
 // do something
 }, 5000);

 On Tuesday, January 29, 2013 11:48:49 PM UTC-5, Chrystopher Medina wrote:

 my friend could u help me to use the javascript setinterval function to
 call the ajax query every x miliseconds


 2013/1/28 asgallant drew_g...@abtassoc.com

 The way to handle that in AJAX is to write an AJAX query to the server
 to fetch the updated user data and display it for your superuser; then use
 the javascript setInterval function to call the AJAX query every X
 milliseconds.


 On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser interface. u
 know .

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading the
 page

  --
 You received this message because you are subscribed to the Google
 Groups Google Visualization API group.
 To post to this group, send email to google-visua...@**googlegroups.com.
 To unsubscribe from this group, send email to google-visualization-api+*
 *unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/**
 group/google-visualization-**api?hl=enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 You received this message because you are subscribed to the Google Groups
 Google Visualization API group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-visualization-api+unsubscr...@googlegroups.com.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-31 Thread asgallant
Contact your PC's manufacturer tech support about that.

On Thursday, January 31, 2013 7:54:58 PM UTC-5, Chrystopher Medina wrote:

 My friend u know what is this the chassis fan is to low. When i turn 
 on my computer this mensage apears. In the display
 El ene 29, 2013 11:34 p.m., asgallant drew_g...@abtassoc.comjavascript: 
 escribió:

 The setInterval function takes two arguments: a function to call and a 
 time in milliseconds:

 // do something every 5 seconds
 setInterval(function () {
 // do something
 }, 5000);

 On Tuesday, January 29, 2013 11:48:49 PM UTC-5, Chrystopher Medina wrote:

 my friend could u help me to use the javascript setinterval function to 
 call the ajax query every x miliseconds


 2013/1/28 asgallant drew_g...@abtassoc.com

 The way to handle that in AJAX is to write an AJAX query to the server 
 to fetch the updated user data and display it for your superuser; then use 
 the javascript setInterval function to call the AJAX query every X 
 milliseconds.


 On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser interface. 
 u know . 

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading the 
 page

  -- 
 You received this message because you are subscribed to the Google 
 Groups Google Visualization API group.
 To post to this group, send email to google-visua...@**googlegroups.com
 .
 To unsubscribe from this group, send email to google-visualization-api+
 **unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/**
 group/google-visualization-**api?hl=enhttp://groups.google.com/group/google-visualization-api?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  


  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Visualization API group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-visualization-api+unsubscr...@googlegroups.comjavascript:
 .
 To post to this group, send email to 
 google-visua...@googlegroups.comjavascript:
 .
 Visit this group at 
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-29 Thread Chrystopher Medina
my friend could u help me to use the javascript setinterval function to
call the ajax query every x miliseconds


2013/1/28 asgallant drew_gall...@abtassoc.com

 The way to handle that in AJAX is to write an AJAX query to the server to
 fetch the updated user data and display it for your superuser; then use the
 javascript setInterval function to call the AJAX query every X milliseconds.


 On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser interface. u
 know .

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading the page

  --
 You received this message because you are subscribed to the Google Groups
 Google Visualization API group.
 To post to this group, send email to
 google-visualization-api@googlegroups.com.
 To unsubscribe from this group, send email to
 google-visualization-api+unsubscr...@googlegroups.com.
 Visit this group at
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-29 Thread asgallant
The setInterval function takes two arguments: a function to call and a time 
in milliseconds:

// do something every 5 seconds
setInterval(function () {
// do something
}, 5000);

On Tuesday, January 29, 2013 11:48:49 PM UTC-5, Chrystopher Medina wrote:

 my friend could u help me to use the javascript setinterval function to 
 call the ajax query every x miliseconds


 2013/1/28 asgallant drew_g...@abtassoc.com javascript:

 The way to handle that in AJAX is to write an AJAX query to the server to 
 fetch the updated user data and display it for your superuser; then use the 
 javascript setInterval function to call the AJAX query every X milliseconds.


 On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser interface. u 
 know . 

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading the 
 page

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google Visualization API group.
 To post to this group, send email to 
 google-visua...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-visualization-api+unsubscr...@googlegroups.com javascript:.
 Visit this group at 
 http://groups.google.com/group/google-visualization-api?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-28 Thread Chrystopher Medina
my friend how can i do this:

i want to send this values to the server:

place: type text
date: type text
imagen: type file

and im gonna be an user .

and a superuser have to watch this values in his superuser interface. u
know .

i just want that when i send this values ,
immediately the superuser can view these values without reloading the page

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-28 Thread asgallant
The way to handle that in AJAX is to write an AJAX query to the server to 
fetch the updated user data and display it for your superuser; then use the 
javascript setInterval function to call the AJAX query every X milliseconds.

On Monday, January 28, 2013 5:23:56 AM UTC-5, Chrystopher Medina wrote:

 my friend how can i do this:

 i want to send this values to the server:

 place: type text
 date: type text
 imagen: type file

 and im gonna be an user .

 and a superuser have to watch this values in his superuser interface. u 
 know . 

 i just want that when i send this values ,
 immediately the superuser can view these values without reloading the page



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-28 Thread Chrystopher Medina
ok my friend thanks. my friend u know some script in php or something to
 send text messages .

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-28 Thread asgallant
Many mobile carriers expose a method of sending email to a cell number, 
which will arrive as a text message.  This requires that you know the 
user's mobile carrier and the methodology used by the carrier to address 
email to the phone (as an example, here in the US you can email 10-digit 
phone number@vtext.com to send a text message to a Verizon Wireless 
customer).  If you can get that information for all of the carriers that 
serve your users, then you can use PHP's mail function to send text 
messages.

There may also be services you can subscribe to that will handle the 
texting for you.

On Tuesday, January 29, 2013 2:10:44 AM UTC-5, Chrystopher Medina wrote:

 ok my friend thanks. my friend u know some script in php or something to 
  send text messages .




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-27 Thread Chrystopher Medina
 my friend do u have some book about hltm5 in pdf. u know i was reading a
lot  of html5 but the book wich i have is from 2 years ago. so the book
tells that some APIS are being developed.. so  i just want something new.
thanks my friend ... really im learning a lot with your help..

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-26 Thread Chrystopher Medina
i could do it my friend i read what u send me and it works. thanks again
... my friend do u have some book about hltm5 in pdf. u know i was reading
a lot  of html5 but the book wich i have is from 2 years ago. so the book
tells that some APIS are being developed.. so  i just want something new.
thanks my friend ... really im learning a lot with your help..

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-25 Thread Chrystopher Medina
my friend i wanna do a cron job in order to do a database backup...could u
explain me a little . hot it works

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-25 Thread asgallant
I'm glad you got it working.

On Friday, January 25, 2013 2:40:19 AM UTC-5, Chrystopher Medina wrote:


 and thanks a lot really a lot of thanks  

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-25 Thread asgallant
You probably should use something like this instead:

w.document.write('img src=' + document.getElementById('img').src + ' 
/');

On Friday, January 25, 2013 2:47:58 AM UTC-5, Chrystopher Medina wrote:

 my friend so here i can put some image or something like thar tell me i 
 can do this.

 img src=imagen.png style=display:none id=img


 var w = window.open();
 w.document.write('stylediv {float:left;}/style');

 w.document.write(document.getElementById('img').innerHTML); /// i 
 can do this . or i can put here the path of my image
 w.document.write(document.getElementById('chart_div1').innerHTML);
 w.document.write(document.getElementById('chart_div2').innerHTML);

 w.print();
 w.close();




-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-25 Thread Chrystopher Medina
thanks my friend really im ging to check them. really thanks ... we are in
touch my friend  take care.

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
my friend do u remember that u helped me to print the pie charts with a
javascript function

u know i have my pie charts like this


here is one  here is one

here is one  here is one

but when i print them. u know in the view for printing them ... is like this

here is one

here is one

here is one..

I want to keep the styles. and adding a header to the sheet to be printed

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread asgallant
Post the code you are using to print and I'll take a look at it.

On Thursday, January 24, 2013 3:20:21 AM UTC-5, Chrystopher Medina wrote:

 my friend do u remember that u helped me to print the pie charts with a 
 javascript function

 u know i have my pie charts like this


 here is one  here is one

 here is one  here is one 

 but when i print them. u know in the view for printing them ... is like 
 this

 here is one

 here is one 

 here is one..

 I want to keep the styles. and adding a header to the sheet to be printed



-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread asgallant
You'll have to add the additional elements to the printing page manually, 
eg:

function printDiv (container) {
var w = window.open();
w.document.write('style type=text/htmldiv {float: left;}/style');
w.document.write(container.innerHTML);
w.print();
w.close();
}

Printing in landscape mode is controlled entirely by the browser's print 
dialogue box, it's not something you can set in javascript.

On Thursday, January 24, 2013 3:36:37 PM UTC-5, Chrystopher Medina wrote:

 my friend here is some code . in order to print the pie charts.. when i 
 print them the pie charts are showed 

 like this 

 1pie chart
 2pie chart
 3pie chart..

 and in my interface they are showed like this.

 1 pie chart   2pie chart

 3pie chart4pie chart.

 i just want to keep this style. and add a header in the file wich is gonna 
 be print.
 and if its possible i want to print the sheet horizontally

   scriptfunction printDiv (container) {
 var w = window.open();
 w.document.write(container.innerHTML);
 w.print();
 w.close();
 }/script 
 style
 .container div {
 float: left;
 }
 .clear {
 clear: both;
 display: none;

 }
 /style

 div id=contain class=container
 div id=pie_chart_1_div/div
 div id=pie_chart_2_div/div
 div id=pie_chart_3_div/divbr/br/
 div id=pie_chart_4_div/div
 div id=pie_chart_5_div/div
 div id=pie_chart_6_div/divbr/
 div id=pie_chart_7_div/div
 div id=pie_chart_8_div/div
 div id=pie_chart_9_div/divbr/br/
 div id=pie_chart_10_div/div
 div id=pie_chart_11_div/div
 div id=pie_chart_12_div/divbr/br/
 div id=pie_chart_13_div/div
 div id=pie_chart_14_div/div
 div id=pie_chart_15_div/divbr/br/br/
 div id=pie_chart_16_div/div
 div id=pie_chart_17_div/div
 div id=pie_chart_18_div/divbr/br/br/
 div id=pie_chart_19_div/div
 div id=pie_chart_20_div/div
 div id=pie_chart_21_div/divbr/br/
 div id=pie_chart_22_div/div
 div id=pie_chart_23_div/div
 div id=pie_chart_24_div/divbr/br/
 div id=pie_chart_25_div/div
 div id=pie_chart_26_div/div
 div id=pie_chart_27_div/divbr/br/
 div id=pie_chart_28_div/div
 div id=pie_chart_29_div/div
 div id=pie_chart_30_div/divbr/br/br/
 div id=pie_chart_31_div/div
 div id=pie_chart_32_div/div
 div id=pie_chart_33_div/divbr/
 
 /div
 div class=clear/div
  

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
i do that my friend
función printDiv (contenedor) {
var w = window.open ();
w.document.write ('style type=text/html div {float: left;} / style');
w.document.write (container.innerHTML);
w.print ();
w.close ();
}
but the pie charts keep like this:

1
2
3
4
5..

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
i do some like this  script
 function printDiv (container) {
var w = window.open();
w.document.write(container.innerHTML);

w.document.write('style#pie_chart_2_div{float:left;clear:both;}/style');
w.print();
w.close();
}/script  but this doen´t work too.

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread asgallant
Take the clear: both part out of there - that prevents the float from 
working - and see if it works.

On Thursday, January 24, 2013 5:14:00 PM UTC-5, Chrystopher Medina wrote:

 i do some like this  script
  function printDiv (container) {
 var w = window.open();
 w.document.write(container.innerHTML);
 
 w.document.write('style#pie_chart_2_div{float:left;clear:both;}/style');
 w.print();
 w.close();
 }/script  but this doen´t work too.


-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
my friend this is ok..

if i do this...


function print(){

var boton = document.getElementById=('buttonforprint');
boton.addEventListener('click',print2,false);
}

function print2(){

var w = window.open();
w.document.write('stylediv {float:left;}/style');
w.document.write(document.getElementById('chart_div1').innerHTML);
w.document.write(document.getElementById('chart_div2').innerHTML);
w.print();
w.close();

}

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
sorry my friend i didn´t watch the size of each chart. and i just had to
put  sheet horizontally

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
and thanks a lot really a lot of thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-24 Thread Chrystopher Medina
my friend so here i can put some image or something like thar tell me i can
do this.

img src=imagen.png style=display:none id=img


var w = window.open();
w.document.write('stylediv {float:left;}/style');

w.document.write(document.getElementById('img').innerHTML); /// i
can do this . or i can put here the path of my image
w.document.write(document.getElementById('chart_div1').innerHTML);
w.document.write(document.getElementById('chart_div2').innerHTML);

w.print();
w.close();

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-23 Thread Chrystopher Medina
or please u can help me to do something in order to change the ñ for n and
the á for a and the í for i and the ó for o.. i want to change
these special characters before inserting them into the database

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-23 Thread Chrystopher Medina
my friend or u can help to change  special characters before inserting them
into data base .

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-23 Thread Chrystopher Medina
or please u can help me to do something in order to change the ñ for n and
the á for a and the í for i and the ó for o.. i want to change
these special characters before inserting them into the database

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-23 Thread Chrystopher Medina
or please u can help me to do something in order to change the ñ for n and
the á for a and the í for i and the ó for o.. i want to change
these special characters before inserting them into the database

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



Re: [visualization-api] Re: Google Charts with PHP and MySQL

2013-01-23 Thread Chrystopher Medina
my friend or u can help me please to change the values ñ,ó,á,í before
inserting them into data base

-- 
You received this message because you are subscribed to the Google Groups 
Google Visualization API group.
To post to this group, send email to google-visualization-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-visualization-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.



  1   2   3   >