Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi all once again ;)

I am facing a strange problem in displaying the HTML page dynamically.

I have a HTML page which i am using to show that my application is initializing...(Splash Screen) later i am calling the other HTML page once the timer ends.

My problem here is.... I am using a static HTML page now. Instead of calling the HTML page, i want to call a function which creates the same sort of HTML page dynamically. When i call the function, simulator is not displaying any thing. Where as if i use the static page it is displaying the html content.

Is there anything like.... When the application is starting, we cannot create dynamic HTML page? Because... i can able to create other HTML pages dynamically in the similar way.

Expecting a reply..... :confused:

Regards,
Syed

Hi friends,
These are the codes i am using to display a splash screen.
Code related to static html page (splash.htm)is::
My Program

My ProgramInitializing...

Code corresponding to display the above page dynamically i am using the below code.
static void HTML_Splash(MyApp *pMe)
{
char* szHtmlData = NULL;
int nLen;
nLen = SNPRINTF(NULL,0,"My ProgramMy ApplicationInitializing...");
szHtmlData = (char*)MALLOC(nLen * sizeof(char));
nLen = SNPRINTF(szHtmlData,nLen,"My ProgramMy ApplicationInitializing...");
IHTMLVIEWER_SetActive(pMe->pIHTMLViewer, TRUE);
if(szHtmlData != NULL)
IHTMLVIEWER_SetData ( pMe->pIHTMLViewer, szHtmlData, -1 );
FREEIF(szHtmlData);
ISHELL_SetTimer(pMe->a.m_pIShell, 2000, MyProgram_SplashCB, (void*)pMe);

This is how i am calling my HTML page
case EVT_APP_START:
MyProgram_DisplayMenu(pMe, "file:///splash.htm");
//HTML_Splash(pMe);
return TRUE;
So when i call HTML_Splash(pMe), it is not displaying anything. Don't know what is happening. Please tell me where is the mistake?

Hi friends,
These are the codes i am using to display a splash screen.
Code related to static html page (splash.htm)is::
My Program

My ProgramInitializing...

Code corresponding to display the above page dynamically i am using the below code.
static void HTML_Splash(MyApp *pMe)
{
char* szHtmlData = NULL;
int nLen;
nLen = SNPRINTF(NULL,0,"My ProgramMy ApplicationInitializing...");
szHtmlData = (char*)MALLOC(nLen * sizeof(char));
nLen = SNPRINTF(szHtmlData,nLen,"My ProgramMy ApplicationInitializing...");
IHTMLVIEWER_SetActive(pMe->pIHTMLViewer, TRUE);
if(szHtmlData != NULL)
IHTMLVIEWER_SetData ( pMe->pIHTMLViewer, szHtmlData, -1 );
FREEIF(szHtmlData);
ISHELL_SetTimer(pMe->a.m_pIShell, 2000, MyProgram_SplashCB, (void*)pMe);

This is how i am calling my HTML page
case EVT_APP_START:
MyProgram_DisplayMenu(pMe, "file:///splash.htm");
//HTML_Splash(pMe);
return TRUE;
So when i call HTML_Splash(pMe), it is not displaying anything. Don't know what is happening. Please tell me where is the mistake?