Re: Newbie : A simple question, please help me !

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dear Agoston Bejo

I put all my effort to search websites and newgroups, I view over thousand
of message in google, but no exactly answer. Forget me, I have try my best.
In Google, a guys said that he just want to make the user more comfortable,
don't get him wrong. For me, I just hope that the users can search how many
invoice in April, and the result come out in a table format, then they
simply click the "Print" button in the end of the row, without opening the
page, print the invoice no they want. Why so difficult ?

After viewing over hundred of message, I believe that I need to give up. For
over hundred of people can't find the right way, neither me! But the truth
is that, thousand of softwares written by java and asp can do that. My
clients start to contact them. Meanwhile, the onclick"return comfirm" don't
work in ME but work in Xp, thus my program is called "rubblish", agree ?

Once again, Can anyone tell me why all other programmer can do that, what
kind of softwares they used? What newsgroup can I join to get the answer?


"Agoston Bejo" <gusz1@xxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:e8BraK8SFHA.2096@xxxxxxxxxxxxxxxxxxxxxxx
>
>
>
> "Alan" <alan@xxxxxxxxx> wrote in message
> news:Oz2YW21SFHA.1040@xxxxxxxxxxxxxxxxxxxxxxx
>> Thanks for yr help. I am advanced in ASP but no sense in JScript. Thus I
>> just build a link like this :
>>
>> While not rs.eof
>> WInv = rs("InvoiceNo")
>> <td><%=rs("InvoiceNo")%></td>
>> <td><%=rs("Name")%></td>
>> <td><a href="InvoicePrint.asp?WInv=<%=WInv%>"></td>
>> rs.MoveNext
>> Wend
>
> You are mixing server-side and client-side code. (The rs object that
> exists
> while the server creates the HTML code has nothing to do with any code run
> on client side.)
>
> There are quite a few discussions on this, you'd better search on the net
> or
> some news archive.
>
>>
>> Now user needs to click the link to open the invoice, and then select
>> File--Print from the menu to print it out, and then return back to print
>> another. As the table is very long, they need to scroll again to find the
>> next one. Such a rubbish program. I check all the ASP web site and try
>> all
>> my best, but I don't know how to insert the variable in
>> "printHidden("InvoicePrint.asp?WInv="+Winv);" with JScript. However, if
>> no
>> variable, it works !
>> printHidden("InvoicePrint.asp?WInv=1001");"
>> printHidden("InvoicePrint.asp?WInv=1002");"
>> .......
>>
>> Please help me !
>>
>>
>> > I post a message "how to print a hidden page" but no answer, thus I try
>> > over
>> > two week then I succes. I can create a table with a "Print" button in
> each
>> > row, when I click one of them, it popup the "Printer" box, however, the
>> > print job name is ("InvoicePrint.asp?WInv=undefined"), that means I
> can't
>> > bring the variable into the function. Please kindly help me how to make
> it
>> > work ?
>> >
>> > <script defer src="printHid.js"></script>
>> >
>> > While not rs.eof
>> > WInv = rs("InvoiceNo")
>> > <td><%=rs("InvoiceNo")%></td>
>> > <td><%=rs("Name")%></td>
>> > <td><input name="idPrintHidden" type="button" value="Print hidden
>> > page" onclick="printURL(this.WInv)"></td>
>> > rs.MoveNext
>> > Wend
>> >
>> > <script defer>
>> > function printURL(Winv) {
>> > idPrintHidden.disabled = true;
>> > window.onprintcomplete = function() {
>> > idPrintHidden.disabled = false;
>> > }
>> > printHidden("InvoicePrint.asp?WInv="+Winv);
>> > }
>> > </script>
>> >
>> >
>> > The "PrintHid.js" downloaded from microsoft.com is as below :
>> >
>> > function printHidden(url) {
>> > document.body.insertAdjacentHTML("beforeEnd",
>> > "<iframe name=printHiddenFrame width=0 height=0></iframe>");
>> > var doc = printHiddenFrame.document;
>> > doc.open();
>> > doc.write("<body onload=\"setTimeout('parent.onprintHiddenFrame()',
>> > 0)\">");
>> > doc.write("<iframe name=printMe width=0 height=0 src=\"" + url +
>> > "\"></iframe>");
>> > doc.write("</body>");
>> > doc.close();
>> > }
>> >
>> > function onprintHiddenFrame() {
>> > function onfinish() {
>> > printHiddenFrame.outerHTML = "";
>> > if ( window.onprintcomplete ) window.onprintcomplete();
>> > }
>> > printFrame(printHiddenFrame.printMe, onfinish);
>> > }
>> >
>> >
>> > Thanks very very very much !
>> >
>>
>> >> Please post only plain text to this newsgroup.
>> > >Please provide a hint as to your problem in the subject line.
>> > >You seem to be defining a variable named WInv in your ASP code
>> > >and then trying to access it as an attribute of an input button.
>>
>>
>
>


.



Relevant Pages

  • Re: Extreme SEO
    ... so again do you know of a 5 page web site that gets high traffic? ... If Google accepted content that is appended to sites en masse, ... > my clients own web sites to make money. ... > The sites selling Amazon products increase Amazon's sales (I'll ...
    (alt.internet.search-engines)
  • Re: Paid SEO
    ... almost certainly going to fail in Google. ... their clients sites to link to theirs ... that SERP in the top 20 :-) shouldn't you already know how Google ... Tell me are your SEO consultant links all from SEO consultant relevant ...
    (alt.internet.search-engines)
  • Re: c-block linking -- site ownership
    ... > clients' sites, which link back to him and potentially attract some clients ... > out of business because they work together, ... I hope that Google will not penalize for all cases of interlinking by ... hosting them on their hosting reseller package it's going to be the same ...
    (alt.internet.search-engines)
  • Re: Google Pipe Smokers
    ... available in google, i came to find it via google and i use google web ... My problem with it is that it *will* detract from ASP. ... About the same thing has happened to other usenet groups. ... the members started a blog and many of the members of the usenet group ...
    (alt.smokers.pipes)
  • Re: ASP& Other Boards
    ... moderated.On the other hand asp is not moderated at all.A lot of good ... forums but I never post there because it's too much trouble to log in, etc., ... On some newsgroups that I once used ... I'll just Google for what I need if it comes to that. ...
    (alt.smokers.pipes)