PDA

View Full Version : Dialog with tabs.



DemCkUa
23 Apr 2007, 3:08 PM
Hello.
Sorry for my bad English.

I am a beginning programmer, work with PHP+MySQL. I have a problem with using your liabrary (dynamic dialog). I have own site with the list of advertisements. At present there are a list of advertisements with short description and full description opens in a new window. I want to use your dialogs with tabs, when user wont to view full description. Every advertisement have such parametres: message info (1 tab), contact info (2 tab), photo (3 tab) and database ID. I need a dynamic dialog with dynamic content in the tabs. How can I realize that. I seen UpdateManager - but ...
Can you give me link to the example with the dynamic dialog (with tabs or without)?

Thank you. Sorry for taking your time.

P. S. This is a great library. Respect and congratulations.

KimH
26 Apr 2007, 11:59 PM
Try searching the forum or see this (http://extjs.com/forum/showthread.php?t=3550&highlight=dialog+tabpanel).

DemCkUa
28 Apr 2007, 1:50 AM
Thanks, I have tried to search, but I have still this problem. :(

tryanDLS
28 Apr 2007, 12:59 PM
Have you tried working with the examples? Once you understand the dialog and tab examples, it should be simple to combine the 2 concepts.

DemCkUa
30 Apr 2007, 9:17 AM
Have you tried working with the examples? Once you understand the dialog and tab examples, it should be simple to combine the 2 concepts.

Yes, I have. But I need to load information into dialog from MySQL.

tryanDLS
30 Apr 2007, 9:45 AM
What you do on the back end is up to you - the tabs example illustrates how to update a tab via Ajax by loading an html snippet. It doesn't matter if you're updating a tab or a dialog body. You have to write the code on the server to populate that html snippet with data from SQL.

DemCkUa
1 May 2007, 2:41 AM
Thanks tryanDLS. I have tried to use the tabs example (updating a tab via Ajax). There is a problem with the charset windows-1251 :( .
And how can I send an ID to script?

brian.moeskau
1 May 2007, 3:01 AM
If you can post your code and the error that you are getting related to your charset setting, that would help other people in assisting you.

DemCkUa
2 May 2007, 11:22 AM
About charset:

examples/tabs/tabs.html
--->ajax1.htm
--->ajax2.htm

I use my charset - windows-1251 in ajax1.htm, then in browser I see like this ?? ???.

(<meta http-equiv="Content-Type" content="text/html; charset=windows-1251""> is present)

Thanks.