Click here to Skip to main content
16,004,227 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Change date format in javascript Pin
Richard Deeming10-Nov-04 8:21
mveRichard Deeming10-Nov-04 8:21 
GeneralAutomated file processing by proxy server Pin
D1_DRE6-Nov-04 10:32
D1_DRE6-Nov-04 10:32 
GeneralCalling script function from IE Activex Control Pin
gradiov6-Nov-04 3:32
gradiov6-Nov-04 3:32 
QuestionCan a Web App that is running in an iframe take over the whole screen? Pin
mterzich5-Nov-04 23:47
mterzich5-Nov-04 23:47 
AnswerRe: Can a Web App that is running in an iframe take over the whole screen? Pin
benjymous12-Nov-04 5:24
benjymous12-Nov-04 5:24 
QuestionHow can I open the source Pin
Muad-Dib5-Nov-04 12:04
Muad-Dib5-Nov-04 12:04 
GeneralRe: How do you do an inline a:hover in a tag? Pin
Paul Ingles5-Nov-04 4:24
Paul Ingles5-Nov-04 4:24 
GeneralVC++ Addind checkbox element besides Anchor tag on the fly Pin
mehtas4-Nov-04 18:24
mehtas4-Nov-04 18:24 
Hello Folks,

I want to add a checkbox element before anchor tag on a webpage on the fly without any manual intervention.

I have tried IHTMLElement2::insertAdjacentElement and also IHTMLDOMNode::insertBefore function but I am not able to do the same.

Code:
1st Approach
IHTMLElement *pInputElement;
hr = m_ctrlWeb.m_pHtmlDoc->createElement(L"INPUT", &pInputElement);

IHTMLDOMNode *pDOMNode;
hr = pAnch->QueryInterface(__uuidof( IHTMLDOMNode),(void**)&pDOMNode);

IHTMLDOMNode *pNewDOMNode;
hr = pInputElement->QueryInterface(__uuidof( IHTMLDOMNode),(void**)&pNewDOMNode);

pDOMNode->insertBefore(pNewDOMNode, vIndex, &pNewDOMNode);
//here vIndex is the postion of the pAnch(IHTMLAnchorElement)
//I am not very sure of the third parameter as to what has to be given there.

2nd Approach
IHTMLElement *pInputElement;
hr = m_ctrlWeb.m_pHtmlDoc->createElement(L"INPUT", &pInputElement);

IHTMLElement2 *elem3;
hr = pDisp->QueryInterface(IID_IHTMLElement2, (void**) &elem3);
hr = elem3->insertAdjacentElement(L"beforeBegin", pInputElement, &pInputElement);

//Here also I am not sure as to what the 3rd parameter has to be provided.

Please let me know if theres any specific approach to be followed.

Thanks in advance,
Swati
Questionhow to a:hover inline Pin
cdmlb@hotmail.com4-Nov-04 15:39
cdmlb@hotmail.com4-Nov-04 15:39 
AnswerRe: how to a:hover inline Pin
rgoyal8-Nov-04 23:21
rgoyal8-Nov-04 23:21 
GeneralJava connection to MS Access Pin
Red Sunday4-Nov-04 13:03
Red Sunday4-Nov-04 13:03 
GeneralRe: Java connection to MS Access Pin
David Salter8-Nov-04 23:29
David Salter8-Nov-04 23:29 
Generalasp, jsp and unix Pin
includeh104-Nov-04 5:42
includeh104-Nov-04 5:42 
GeneralRe: asp, jsp and unix Pin
V.4-Nov-04 21:29
professionalV.4-Nov-04 21:29 
GeneralRe: asp, jsp and unix Pin
raouls4-Nov-04 21:37
raouls4-Nov-04 21:37 
GeneralRe: asp, jsp and unix Pin
Peff7-Nov-04 7:27
Peff7-Nov-04 7:27 
Questioninclude or import in html? Pin
includeh104-Nov-04 5:40
includeh104-Nov-04 5:40 
AnswerRe: include or import in html? Pin
Peff7-Nov-04 7:34
Peff7-Nov-04 7:34 
GeneralServer side validation using Perl Pin
Member 9697024-Nov-04 3:25
Member 9697024-Nov-04 3:25 
GeneralRe: Server side validation using Perl Pin
alex.barylski5-Nov-04 10:29
alex.barylski5-Nov-04 10:29 
GeneralASP Error Pin
Marwa Bahaa3-Nov-04 22:02
Marwa Bahaa3-Nov-04 22:02 
GeneralRe: ASP Error Pin
Chris Quick4-Nov-04 1:54
Chris Quick4-Nov-04 1:54 
GeneralRe: ASP Error Pin
hakanaktan5-Nov-04 13:43
hakanaktan5-Nov-04 13:43 
GeneralASP REMOTE_USER Server Variable Pin
Kevin kelly3-Nov-04 11:13
Kevin kelly3-Nov-04 11:13 
GeneralASP Logout Problem Pin
Chaitanya Puri3-Nov-04 1:27
Chaitanya Puri3-Nov-04 1:27 

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.