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 <[email protected] <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.html<https://docs.google.com/file/d/0B2ZCg90z2iS0ZW5QaHJmalZPOVU/edit?usp=drive_web>
>
>
>
> gerencias.html<https://docs.google.com/file/d/0B2ZCg90z2iS0cFpReVRkaHpvalk/edit?usp=drive_web>
>
>
>
> 2013/4/18 Chrystopher Medina <[email protected] <javascript:>>
>
> thanks my friend , the links are pretty interesting .
>
>
> 2013/4/17 asgallant <[email protected] <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" <[email protected]> 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 <[email protected]>
>
> 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 <[email protected]>
>
> my friend u know how to use arduino with some aplication web .
>
>
> 2013/4/4 Chrystopher Medina <[email protected]>
>
> 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 <[email protected]>
>
> 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:
> <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 [email protected].
To post to this group, send email to [email protected].
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.