Click here to Skip to main content
15,906,569 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Notification of file downloaded from server Pin
subai4-Jul-08 18:15
subai4-Jul-08 18:15 
Questionmessenger on custom web page [modified] Pin
amitsunnuu30-Jun-08 22:12
amitsunnuu30-Jun-08 22:12 
QuestionHTML Select DropDown Width Pin
Ahmet GULBAY30-Jun-08 1:14
Ahmet GULBAY30-Jun-08 1:14 
AnswerRe: HTML Select DropDown Width Pin
Shog930-Jun-08 8:19
sitebuilderShog930-Jun-08 8:19 
GeneralRe: HTML Select DropDown Width Pin
Ahmet GULBAY2-Jul-08 1:48
Ahmet GULBAY2-Jul-08 1:48 
AnswerRe: HTML Select DropDown Width Pin
Rao Rafique30-Jun-08 18:16
Rao Rafique30-Jun-08 18:16 
GeneralRe: HTML Select DropDown Width Pin
Shog91-Jul-08 4:25
sitebuilderShog91-Jul-08 4:25 
QuestionHow to add another activex control to web page dynamically. Pin
vies0028-Jun-08 5:44
vies0028-Jun-08 5:44 
I would like to add an IHTMLElement dynamically to the HTML that contain an "A" ActiveX control.
That I want to add is another "B" ActiveX control.
So.. I programmed in "A" activex source code as below.
I created new element.

/* I deleted bstr, SysFreeString, VARIANT etc.. to understand easily */
IHTMLElement* pObjectElement=NULL;
m_pDoc2->createElement("<object>", &pObjectElement);
pObjectElement->setAttribute("classid", "clsid:AF0DDB60-76F8-4ADC-BF58-563EB7DF2B9D", 0); // "B" ActiveX control's Clsid
pObjectElement->setAttribute("width", "600");
pObjectElement->setAttribute("height", "400");

and.. attached it to the bodyElement.

m_pDoc2->get_body(&pElement);
pElement->QueryInterface(IID_IHTMLBodyElement, (LPVOID*)&pBody);
pBody->QueryInterface (IID_IHTMLDOMNode, (LPVOID*)&pParent);
pObjectElement->QueryInterface (IID_IHTMLDOMNode, (LPVOID*)&pChild);
pParent->appendChild (pChild, NULL);

It works well.
And.. I created another new element "param" to send "MyValue" to the "B" ActiveX control.

/* I deleted bstr, SysFreeString, VARIANT etc.. to understand easily */
IHTMLElement* pParamElement=NULL;
m_pDoc2->createElement("<param>", &pParamElement);
pParamElement->setAttribute("name", "src");
pParamElement->setAttribute("value", "MyValue");

and... attached it to the object element.

/* I inserted this code before object element is appended to the body element. like this..
* pChild->appendChild (pParam, NULL);
* pParent->appendChild (pChild, NULL);
*/
pParamElement->QueryInterface (IID_IHTMLDOMNode, (LPVOID*)&pParam);
pChild->appendChild (pParam, NULL);

But It doesn't work.
"B" ActiveX control couldn't receive "MyValue".
There are any problems in "B" ActiveX control. It works well in common situation.
so.. I thought it failed to append <param> to <object> element.
so, I appended a code to confirm whether param element is contained or not.
Surprisingly, <param> could find in it.
...I really really... don't know how I can solve this problem.
If anybody knows it, please answer me.
AnswerRe: How to add another activex control to web page dynamically. Pin
Shog928-Jun-08 7:05
sitebuilderShog928-Jun-08 7:05 
GeneralRe: How to add another activex control to web page dynamically. Pin
vies0028-Jun-08 22:36
vies0028-Jun-08 22:36 
QuestionAjax ModalPop up and IE 6.0 UI Issue [modified] Pin
Sandeep Akhare28-Jun-08 5:28
Sandeep Akhare28-Jun-08 5:28 
AnswerRe: Ajax ModalPop up and IE 6.0 UI Issue Pin
Shog928-Jun-08 6:34
sitebuilderShog928-Jun-08 6:34 
GeneralRe: Ajax ModalPop up and IE 6.0 UI Issue Pin
Sandeep Akhare28-Jun-08 20:37
Sandeep Akhare28-Jun-08 20:37 
GeneralRe: Ajax ModalPop up and IE 6.0 UI Issue Pin
Shog929-Jun-08 10:47
sitebuilderShog929-Jun-08 10:47 
Question.net 1.1 & 3.5 Pin
Hakmeh Mohannad27-Jun-08 19:23
Hakmeh Mohannad27-Jun-08 19:23 
AnswerRe: .net 1.1 & 3.5 Pin
Christian Graus27-Jun-08 19:48
protectorChristian Graus27-Jun-08 19:48 
GeneralRe: .net 1.1 & 3.5 Pin
Hakmeh Mohannad27-Jun-08 19:57
Hakmeh Mohannad27-Jun-08 19:57 
GeneralRe: .net 1.1 & 3.5 Pin
Christian Graus27-Jun-08 19:59
protectorChristian Graus27-Jun-08 19:59 
GeneralRe: .net 1.1 & 3.5 Pin
Hakmeh Mohannad27-Jun-08 20:20
Hakmeh Mohannad27-Jun-08 20:20 
GeneralRe: .net 1.1 & 3.5 Pin
Christian Graus27-Jun-08 20:29
protectorChristian Graus27-Jun-08 20:29 
GeneralRe: .net 1.1 & 3.5 Pin
Hakmeh Mohannad27-Jun-08 20:41
Hakmeh Mohannad27-Jun-08 20:41 
AnswerRe: .net 1.1 & 3.5 Pin
SomeGuyThatIsMe30-Jun-08 8:52
SomeGuyThatIsMe30-Jun-08 8:52 
Questionhotel reservation Pin
brukti27-Jun-08 1:31
brukti27-Jun-08 1:31 
AnswerRe: hotel reservation Pin
Ashfield27-Jun-08 2:23
Ashfield27-Jun-08 2:23 
AnswerRe: hotel reservation Pin
Ariel Kazeed27-Jun-08 2:38
Ariel Kazeed27-Jun-08 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.