Click here to Skip to main content
15,908,634 members
Home / Discussions / Web Development
   

Web Development

 
QuestionAjax in SharePoint 2007. How to make the original error message to show up? Pin
bin_bin12-Jul-08 20:09
bin_bin12-Jul-08 20:09 
AnswerRe: Ajax in SharePoint 2007. How to make the original error message to show up? Pin
Shog96-Jul-08 6:32
sitebuilderShog96-Jul-08 6:32 
QuestionImport JavaScript in JavaScript File Pin
Ahmet GULBAY2-Jul-08 1:55
Ahmet GULBAY2-Jul-08 1:55 
AnswerRe: Import JavaScript in JavaScript File Pin
led mike2-Jul-08 5:45
led mike2-Jul-08 5:45 
AnswerRe: Import JavaScript in JavaScript File Pin
Shog92-Jul-08 7:06
sitebuilderShog92-Jul-08 7:06 
GeneralRe: Import JavaScript in JavaScript File Pin
JohnFernandez7-Jul-08 8:59
JohnFernandez7-Jul-08 8:59 
GeneralRe: Import JavaScript in JavaScript File Pin
Shog97-Jul-08 9:03
sitebuilderShog97-Jul-08 9:03 
Questionhow to enable web content for flash Pin
ranipriya 20102-Jul-08 1:50
ranipriya 20102-Jul-08 1:50 
AnswerRe: how to enable web content for flash Pin
JohnFernandez7-Jul-08 9:04
JohnFernandez7-Jul-08 9:04 
QuestionNotification of file downloaded from server Pin
RaymondM1-Jul-08 11:16
RaymondM1-Jul-08 11:16 
AnswerRe: Notification of file downloaded from server Pin
RaymondM1-Jul-08 11:27
RaymondM1-Jul-08 11:27 
GeneralRe: Notification of file downloaded from server Pin
subai1-Jul-08 22:24
subai1-Jul-08 22:24 
GeneralRe: Notification of file downloaded from server Pin
RaymondM2-Jul-08 6:37
RaymondM2-Jul-08 6:37 
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 

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.