4

While I was in the review queue for low quality posts, I was given an audit:

Open a popup containing ASPX postback result

I have an aspx page with many fields that generate a PDF documents when I click a "export to pdf" button.

I'd now like to have a "print pdf" button that does something like this : w=window.open(?);w.print();w.close(); where "?" will perform the same postback as my "export to pdf" button.

I failed the audit when I attempted to flag/close this question. The question does not seem to me to be a good fit as it does not go into any detail of what the problem the poster is experiencing, nor what effort s/he's taken to get to this point.

Please guide me as to why I am mistaken in my feeling on this post!

3
  • 2
    I think the upvotes on the post made the queue recognise it as valid.
    – Walker
    Mar 11, 2014 at 20:27
  • 1
    Upvotes did it, I have no idea how a post like that got that many updates though.
    – Joe
    Mar 11, 2014 at 20:30
  • I'd like to plug SOUP here, but it currently only shows answers to questions in the close vote review queue. Shouldn't be hard to fix, though, I just need to tweak one regex and test it to make sure nothing breaks. Mar 11, 2014 at 21:49

2 Answers 2

5

That question is fine but to fully grasp it you need to understand how asp.net pages work and how window.open works.

I have an aspx page with many fields that generate a PDF documents when I click a "export to pdf" button.

Basically tells that a html form is POSTed

I'd now like to have a "print pdf" button that does something like this : w=window.open(?);w.print();w.close(); where "?" will perform the same postback as my "export to pdf" button.

Asks how you can still POST the data while you only can perform a GET (because that is what window.open does) and in asp.net it is not trivial to change a page to handle GETs instead of POSTs

To me it explains clearly what the OP has, what he needs, what he tried.

The OP didn't use too much context and I would have preferred a code sample to illustrate the issue. Despite that the question is clear and answerable for me.

For questions that are not tagged in your comfort zone skip might be a better option...
Or use a filter as suggested by Ilmari Karonen with the added benefit that audits are a little easier to spot...

2
  • ...and I'd normally recommend just filtering the queue to only give you questions on topics you're familiar with, but due to the way audits are currently implemented, you're still going to get random questions for those, just with faked tags. Does make them somewhat easier to spot, though. Mar 11, 2014 at 21:23
  • @IlmariKaronen I edited that in, tnx!
    – rene
    Mar 11, 2014 at 21:42
4

First, a couple of points:

  1. "Demonstration of effort" is not a good metric for closing a question. I know that the community feels this is a requirement for asking questions on Stack Overflow, but it isn't.

  2. Stack Overflow questions don't have to encompass a problem, in the sense of "I have this problem with this code, how do I fix it?" ...even though that is the form that most Stack Overflow questions take.

That said, I found the question unclear, though it is apparent that the answerer did not. Sometimes this happens; the right person shows up at the right time with a working crystal ball (or the correct expertise), and is able to divine the correct meaning from the question.

Not the answer you're looking for? Browse other questions tagged .