Click here to Skip to main content
15,881,882 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Problem accessing QueryString Pin
Nilesh Hapse10-Feb-10 20:06
Nilesh Hapse10-Feb-10 20:06 
AnswerRe: Problem accessing QueryString Pin
thatraja10-Feb-10 20:24
professionalthatraja10-Feb-10 20:24 
GeneralRe: Problem accessing QueryString Pin
Nilesh Hapse10-Feb-10 20:28
Nilesh Hapse10-Feb-10 20:28 
GeneralRe: Problem accessing QueryString [modified] Pin
thatraja10-Feb-10 23:04
professionalthatraja10-Feb-10 23:04 
GeneralRe: Problem accessing QueryString Pin
sduffield11-Feb-10 10:07
sduffield11-Feb-10 10:07 
QuestionPersonal website engine recommendation. Pin
Giorgi Dalakishvili10-Feb-10 7:34
mentorGiorgi Dalakishvili10-Feb-10 7:34 
QuestionLocations of aspnet files on Windows 7 Pin
Richard Jones10-Feb-10 6:23
Richard Jones10-Feb-10 6:23 
Questionput_innerText / CHTMLView::PutProperty Pin
GBrook10-Feb-10 5:51
GBrook10-Feb-10 5:51 
I'm working in a CHTMLView and trying to pass information to a print template.

I have found one method that works. Since I dynamically build the document I can place a non-display tag with an ID:
<div id="IEFooter">
My footer
</div>

That I can access in the print template with:
dialogArguments.__IE_BrowseDocument.getElementById(id)

that works, but I'd like more flexibility. When the document is loaded but before print/print preview I'd like to set the value. I can get the value but put_innerText always sets it to a NULL string:
IDispatch *pHtml = GetHtmlDocument();
IHTMLDocument3 *pHtmlDoc = NULL;
IHTMLElement *pDiv = NULL;

pHtml->QueryInterface(IID_IHTMLDocument3, (void **)&pHtmlDoc);
pHtmlDoc->getElementById(L"IEFooter", &pDiv);

if ( pDiv )
{
    // found the footer tag
    BSTR text;
    pDiv->get_innerText(&text);
    text = L"this is my dynamic footer text";
    HRESULT hr = pDiv->put_innerText(text);
    hr = pDiv->get_innerText(&text);
}

I've moved IEFooter around in the document but that doesn't seem to matter.

I tried a separate approach, using CHTMLView::PutProperty. That appears to work in that I can retrieve the string with GetProperty in my app but have no idea how to get to that property in JScript.

Any suggestions will be appreciated.
AnswerRe: put_innerText / CHTMLView::PutProperty Pin
GBrook11-Feb-10 4:53
GBrook11-Feb-10 4:53 
QuestionAccess Web application using IP from others system(In Office)... Pin
spalanivel9-Feb-10 2:28
spalanivel9-Feb-10 2:28 
QuestionEmbedding Flash Version 10 Pin
Paul McGann9-Feb-10 2:00
professionalPaul McGann9-Feb-10 2:00 
QuestionProblem after deployment. Pin
rksdev9-Feb-10 1:17
rksdev9-Feb-10 1:17 
Questionexporting to excel Pin
mabrahao8-Feb-10 8:34
mabrahao8-Feb-10 8:34 
AnswerRe: exporting to excel Pin
Gaurav Dudeja India8-Feb-10 20:15
Gaurav Dudeja India8-Feb-10 20:15 
GeneralRe: exporting to excel [modified] Pin
mabrahao9-Feb-10 1:18
mabrahao9-Feb-10 1:18 
QuestionNot able to start IIS (Default Web Site) Pin
Ankur.Bakliwal8-Feb-10 4:29
Ankur.Bakliwal8-Feb-10 4:29 
AnswerRe: Not able to start IIS (Default Web Site) Pin
R. Giskard Reventlov8-Feb-10 4:40
R. Giskard Reventlov8-Feb-10 4:40 
Questionhow to refresh (not redirect) a HTTPS page with simple html code Pin
john13698-Feb-10 3:04
john13698-Feb-10 3:04 
AnswerRe: how to refresh (not redirect) a HTTPS page with simple html code Pin
thatraja8-Feb-10 6:26
professionalthatraja8-Feb-10 6:26 
QuestionCSS Pin
Morgs Morgan8-Feb-10 0:02
Morgs Morgan8-Feb-10 0:02 
JokeRe: CSS Pin
Smithers-Jones8-Feb-10 0:50
Smithers-Jones8-Feb-10 0:50 
AnswerRe: CSS Pin
daveyerwin8-Feb-10 0:54
daveyerwin8-Feb-10 0:54 
GeneralRe: CSS Pin
Morgs Morgan8-Feb-10 2:54
Morgs Morgan8-Feb-10 2:54 
GeneralRe: CSS Pin
daveyerwin8-Feb-10 3:37
daveyerwin8-Feb-10 3:37 
GeneralRe: CSS Pin
molesworth8-Feb-10 6:48
molesworth8-Feb-10 6:48 

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.