PDA

View Full Version : My First App with yui-ext


vedovelli
01-26-2007, 12:04 PM
Hello everybody! Greetings from Brazil!

First of all I would like to thank Jack so much for his great job!

I'm developing my first application with yui-ext and I'd like to invite anyone to help with the tests. It consists in a form to register companies data. The initial screen shows a grid with the companies already in database. When click in a record, it's possible to view all data for the record selected on the panel below the grid and edit or delete the record by clicking the buttons above the grid. The system is in Portuguese but I think you'll be able to help me inserting some bogus data.

URL: http://www.vedsa.com.br/comercial/index.php
User: admin
Password: 123456

Very important: the systm main window opens in a popup window, so if you have a popup blocker please authorize the domain to open popups.

Thanks!

Vedovelli

Animal
01-26-2007, 12:23 PM
Looks nice! What your clients and boss think?

vedovelli
01-26-2007, 12:28 PM
Looks nice! What your clients and boss think?

Hello Animal! It's not a big system but a beggining. It's my personal training to develop a biggest one.

In fact, this job is for me and my partners. No bosses or clients involved (thank God! :D ). This one will give support to the main system that I'll start very soon.

Thanks for the visit.

Vedovelli

BernardChhun
01-26-2007, 02:22 PM
it is pretty awesome!!

rodiniz
01-26-2007, 02:55 PM
Tá ficando maneiro...vai ficar melhor ainda com o yui-ext 4.0.
Na exclusão ,por exemplo só tem botão para confirmar..não tem de cancelar.
precisando de ajuda no javascript tamos ai... quanto a php sou um zero a esquerda

For english readers:
Very cool !!

vedovelli
01-27-2007, 07:04 PM
Hello everybody!

I'd like to thank all the people that have accessed my application and submited some data!

But I don't see any feedback here about bugs, so I'm assuming that the app is running well... I'll make some more little implementations, like loading indicators and stuff and organize the include files, but no code correction.

If anyone has any comment to do, it'll be very appreciated!

Thanks and greetings from Brazil,

Ved

lostxp
01-28-2007, 07:44 AM
Vedovelli you do a great job, it looks very nice...

there is one thing i see it's not a bug but
When you click a record, i think you should show progress information, "loading", "getting data"...

vedovelli
01-28-2007, 07:48 AM
Vedovelli you do a great job, it looks very nice...

there is one thing i see it's not a bug but
When you click a record, i think you should show progress information, "loading", "getting data"...

Heloo lostxp! Thanks for your feedback!

In fact there are some things to implement e it wont be forgot. Yesterday night I have read all posts at Jack's blog and learnt a lot so it's time to make my app better!

Greetings from Brazil,

Ved

brian.moeskau
01-28-2007, 10:31 AM
Curious why you're also using prototype.js?

vedovelli
01-28-2007, 10:50 AM
Curious why you're also using prototype.js?

Hello bmoeskau! Thanks for the visit.

I'm using prototype.js to the AJAX calls. It's just because I'm more confortable with and I'm spending my time to learn about other issues on YUI-EXT.

But I'll gonna use YUI-EXT to do that very soon. Do you have any link that explains that feature???

Thanks,

Ved

arnaud
02-02-2007, 09:15 AM
Hi,

nice work. I would have the detail area a bit bigger, it looks a bit compacted at the bottom.

An error showed in firebug, here is the full trace if that may help.

POST http://www.vedsa.com.br/comercial/sistema.php (22886ms)prototype.js (line 651)

this.dom.parentNode has no properties
hide()prototype.js (line 860)
onComplete()ajax.js (line 79)
dispatch(Object)prototype.js (line 577)
(no name)(Object)prototype.js (line 217)
_each(function())prototype.js (line 410)
_each(function())prototype.js (line 561)
each(function())prototype.js (line 215)
dispatch("onComplete", Object containers=Object transport=XMLHttpRequest, XMLHttpRequest channel=[xpconnect wrapped nsIChannel], null)prototype.js (line 574)
respondToReadyState(4)prototype.js (line 727)
onStateChange()prototype.js (line 685)
bind()
[Break on this error] return proxy;},createShim:function(){var config={tag:'iframe',frameBorder:'no',c...

vedovelli
02-02-2007, 10:23 AM
Hi,

nice work. I would have the detail area a bit bigger, it looks a bit compacted at the bottom.

An error showed in firebug, here is the full trace if that may help.

POST http://www.vedsa.com.br/comercial/sistema.php (22886ms)prototype.js (line 651)

this.dom.parentNode has no properties
hide()prototype.js (line 860)
onComplete()ajax.js (line 79)
dispatch(Object)prototype.js (line 577)
(no name)(Object)prototype.js (line 217)
_each(function())prototype.js (line 410)
_each(function())prototype.js (line 561)
each(function())prototype.js (line 215)
dispatch("onComplete", Object containers=Object transport=XMLHttpRequest, XMLHttpRequest channel=[xpconnect wrapped nsIChannel], null)prototype.js (line 574)
respondToReadyState(4)prototype.js (line 727)
onStateChange()prototype.js (line 685)
bind()
[Break on this error] return proxy;},createShim:function(){var config={tag:'iframe',frameBorder:'no',c...

Arnaud, thanks for the visit and feedback!

I'm gonna think about your consideration about details area.

And about the error, I'll leave prototype.js to use Update Manager from Yui-ext.

Greetings from Brazil,

Ved

xbartv
02-05-2007, 12:50 PM
Can you put the code my friend ? So all of us we can learn from your example.

Thanks.

vedovelli
02-05-2007, 12:55 PM
Can you put the code my friend ? So all of us we can learn from your example.

Thanks.

Hello xbartv! Thanks for the visit.

It's very simple to understand my code.... you just have to look to my .js and .css includes at the header of HTML code and download it to your machine. Then, save the entire HTML and the things should work properly.

Anyway, I'm posting my PHP code for the grid.

Greetings from Brazil,

Vedovelli

function grid($q){
global $db;
if($q) $where="WHERE nome_rsocial LIKE '%$q%' OR contato LIKE '%$q%' OR nomefantasia LIKE '%$q%'";
$rs=$db->Execute("SELECT nome_rsocial,cadid,tipo,contato,estado FROM m002cadastro $where ORDER BY cadid");
$xml[]="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
$xml[]= "<empresas>";
while(!$rs->EOF){
$cadid=$rs->fields['cadid'];
$tipo=$rs->fields['tipo'];
$nome_rsocial=$rs->fields['nome_rsocial'];
$contato=$rs->fields['contato'];
$estado=$rs->fields['estado'];
$xml[]= "<empresa>";
$xml[]= "<cadid>$cadid</cadid>";
$xml[]= "<tipo>$tipo</tipo>";
$xml[]= "<rsocial>$nome_rsocial</rsocial>";
$xml[]= "<contato>$contato</contato>";
$xml[]= "<estado>$estado</estado>";
$xml[]= "</empresa>";
$rs->MoveNext();
}
$xml[]= "</empresas>";
header("Content-Type: text/xml");
header("Cache-Control: no-cache, must-revalidate");
echo implode("\n",$xml);
}

antoniopcbr
02-13-2007, 08:21 AM
Nao pode disponibilizar o sistema.php? ja que é um exemplo... eu queria ver como vc monta o formulario, que ficou bem legal..

Obrigado,

Antonio de Padua

vedovelli
02-13-2007, 08:33 AM
Nao pode disponibilizar o sistema.php? ja que é um exemplo... eu queria ver como vc monta o formulario, que ficou bem legal..

Obrigado,

Antonio de Padua

Antonio, bom dia! Me envie uma mensagem para vedovelli@gmail.com que eu empacoto o sistema e te envio por email!

Abraço,

Vedovelli

English: Antonio good morning! Send me an email message at vedovelli@gmail.com and I'll zip the system files and send back to you!