|
Which browser?
I've just been trying to replicate and I can't. All script is (meant to be) stripped out or HTML encoded.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Okay, I tried it again and didn't get it. I compared the last version to check what was it that caused this issue?
And the following test could replicate it.
I removed the PRE tags and selected the code-snippet and clicked 'code block'. All fine.
Now I tried adding language to the PRE tag. I started writing lang="j and the alert box popped up.
I think, if you roll it over to the last version and try editing for formatting, you could see the behavior again.
This is a very rare case, but I hope you will look into the issue and show us a solution.
..Go Green..
|
|
|
|
|
Well done. I've added a bug entry.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
|
Thanks.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
I think it might be useful to be able to be able to promote a comment to an answer (say the comment actually answers the question). Conversely it might be a good idea to demote a question to a comment (e.g. when the OP posts an Answer to their own question in reponse to an answer)
ragnaroknrol The Internet is For Porn[^]
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Based on earlier discussions here, 'Answer conversion to a Comment' is already on TO-DO list and pretty high.
|
|
|
|
|
I really should've checked that thing.....
ragnaroknrol The Internet is For Porn[^]
Pete o'Hanlon: If it wasn't insulting tools, I'd say you were dumber than a bag of spanners.
|
|
|
|
|
Correct.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Here you go; yet another spammer. Clickety[^]
|
|
|
|
|
Thank you, sir.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
The text area to provide comments for the vote shows hovering mouse over radio buttons. I think it should come up once the member has selected any radio button. BTW I am using FF 3.6.8.
|
|
|
|
|
We used to have this but we stopped because if members didn't have javascript enabled they couldn't vote, and/or the layout was screwed (depending on which path we chose).
Our current method relies on CSS, not javascript, to show the comment box so it works either way.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
You can use both CSS and JavaScript, that way those with JavaScript get the best behavior and those with CSS still get functioning behavior. Applying styles directly to the elements using JavaScript will override the CSS (or you could change a class using the JavaScript, which would have the same effect).
|
|
|
|
|
Yes you can.
What logic flow would you suggest? We've tried a few and I'm open to suggestions.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Have some CSS classes that popup the textbox when the user mouses over certain elements... you'd use a hover pseudo class for that (I'm guessing you do this now). Set the classes on the HTML elements so this CSS gets used.
When the page loads, have some JavaScript to remove those classes (so they will not be used by those who have JavaScript enabled). When a radio button is selected, add a class (using JavaScript) that displays the textbox.
When "Vote" is clicked, hide the textbox, change the vote average, reset the radio buttons, and show the "Reason for my vote of x" comment. If JavaScript is enabled, this can be done using AJAX. If there is no JavaScript, this can be done with a postback (I imagine you do this now).
|
|
|
|
|
What a good idea
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
This user[^] has 20 answers in the Q&A section and he links to the same site in all of them. Maybe he's advertising, maybe I'm wrong.
The bearing of a child takes nine months, no matter
how many women are assigned.
|
|
|
|
|
Yeah that's some fairly obvious and blatant advertising. The user needs to be banned.
|
|
|
|
|
Thank you
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
This site[^] seems to contain copies of several CP forum messages by different authors, such as this ons[^].
|
|
|
|
|
That's truly odd. As long as they don't squrid us up I'm not too worried.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
How did you found that site?
|
|
|
|
|
I wrote a little app that compares all web pages, similar to my TextFileDiff article.
Or maybe I just googled squrid and found it to be an exceptional word.
|
|
|
|
|
Luc Pattyn wrote: I wrote a little app that compares all web pages
That would still be faster than the file compare utility of TFS.
Luc Pattyn wrote: squrid
It reminds me of Giant Squid. What an amazing creature they are.
|
|
|
|