473,394 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

java script for "post a comment "

Hello w3c,php, fedora + apache experts!

Is there code I can use for POST A COMMENT?
I am not ready for PHP yet. Anybody did it in JS?
Sep 22 '08 #1
14 10735
On Mon, 22 Sep 2008 13:33:04 -0700, te*******************@gmail.com wrote:
Hello w3c,php, fedora + apache experts!

Is there code I can use for POST A COMMENT? I am not ready for PHP yet.
Anybody did it in JS?
JavaScript is client-side only in the vast majority of cases. Where do you
intend to store these comments?

--
I told you this was going to happen.

Sep 22 '08 #2
te*******************@gmail.com meinte:
Hello w3c,php, fedora + apache experts!

Is there code I can use for POST A COMMENT?
I am not ready for PHP yet. Anybody did it in JS?
If we talk about "JavaScript in the browser" - no one sane.

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Sep 22 '08 #3
JavaScript is client-side only in the vast majority of cases. Where do you
intend to store these comments?

--
I told you this was going to happen.
I thought to html-print it right under the submission field.I didn't
plan on storing entries.
So whereare Me going now?
Sep 23 '08 #4
On 2008-09-23 04:00, te*******************@gmail.com wrote:
>JavaScript is client-side only in the vast majority of cases. Where do you
intend to store these comments?
....
I thought to html-print it right under the submission field.I didn't
plan on storing entries.
That's pretty pointless if you're not going store them, you know?
From your vague description, it sounds like you're trying to do
something like this:

<form (...)>
<textarea name="comText"></textarea>
<input name="comBtn" type="button" value="Display comment">
</form>
<div id="comDisplay"</div>

<script type="text/javascript">
document.forms[0].elements["comBtn"].onclick = function () {
document.getElementById("comDisplay").firstChild.d ata
= document.forms[0].elements["comText"].value;
};
</script>
So whereare Me going now?
That, my friend, depends on whereMe are trying to get.
- Conrad
Sep 23 '08 #5

can it be just a form function that on submit will display text after
<bror <p>
<script type="text/javascript">
function document.write("<br>");
meaning write everything that comes after <break>
Sep 24 '08 #6
On 2008-09-24 02:56, te*******************@gmail.com wrote:
function document.write("<br>");
meaning write everything that comes after <break>
No offense but I think you need to read up on JavaScript a little more.
- Conrad
Sep 24 '08 #7
On Sep 24, 1:20*am, Conrad Lender <crlen...@yahoo.comwrote:
On 2008-09-24 02:56, terrible.theterrib...@gmail.com wrote:
function document.write("<br>");
meaning write everything that comes after <break>

No offense but I think you need to read up on JavaScript a little more.

* - Conrad
If you have nothing to say Say nothing
Sep 24 '08 #8
"te*******************@gmail.com" <te*******************@gmail.comwrote
in news:87**********************************@a19g2000 pra.googlegroups.com:
On Sep 24, 1:20*am, Conrad Lender <crlen...@yahoo.comwrote:
>On 2008-09-24 02:56, terrible.theterrib...@gmail.com wrote:
function document.write("<br>");
meaning write everything that comes after <break>

No offense but I think you need to read up on JavaScript a little more.

If you have nothing to say Say nothing
What he means is that 'document.write("<br>");' does not mean to write
everything that comes after <break>.

In your example there is nothing after the <branyways. What your example
will do is just put out a blank line. Is that what you wanted? I did not
see your original message.
Sep 25 '08 #9
Mike Duffy wrote <re*****@newsgroup.only>:
"te*******************@gmail.com" wrote:
>On Sep 24, 1:20 am, Conrad Lender <crlen...@yahoo.comwrote:
>>On 2008-09-24 02:56, terrible.theterrib...@gmail.com wrote:
function document.write("<br>");
meaning write everything that comes after <break>
No offense but I think you need to read up on JavaScript a little more.
If you have nothing to say Say nothing

What he means is that 'document.write("<br>");' does not mean to write
everything that comes after <break>.
I do not think this is what he means at all, but instead that the above code
is as invalid as your sender address.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Sep 26 '08 #10
Thomas 'PointedEars' Lahn <Po*********@web.dewrote in
news:48**************@PointedEars.de:
Mike Duffy wrote <re*****@newsgroup.only>:
>"te*******************@gmail.com" wrote:
>>On Sep 24, 1:20 am, Conrad Lender <crlen...@yahoo.comwrote:
On 2008-09-24 02:56, terrible.theterrib...@gmail.com wrote:
function document.write("<br>");
meaning write everything that comes after <break>
No offense but I think you need to read up on JavaScript a little
more.
If you have nothing to say Say nothing

What he means is that 'document.write("<br>");' does not mean to
write everything that comes after <break>.

I do not think this is what he means at all, but instead that the
above code is as invalid as your sender address.
1) You are no doubt correct. I was trying to see what the OP wanted without
bothering to do a web search to find the original post.

2) I assume that you realize I am hiding my address from spammers. Are you
of the opinion that we should always put it in human-only readable form,
such as:

mduffyAvideotron.ca (Replace the obvious with the obvious.) My ISP recently
dropped its NNPT service. My use of aioe is not because I want to hide.
Sep 27 '08 #11
Allow me to step in here, even if your post wasn't directed at me. I'm
also going a wee bit off-topic here, but there are things that have to
be said once in a while.

On 2008-09-27 02:42, Mike Duffy wrote:
Thomas 'PointedEars' Lahn <Po*********@web.dewrote [..]
>I do not think this is what he means at all, but instead that the
above code is as invalid as your sender address.

1) You are no doubt correct. I was trying to see what the OP wanted without
bothering to do a web search to find the original post.
You are both correct. And I now regret what I wrote, or at least the way
I put it. I thought it was friendly enough, the OP obviously didn't.
It's just... I don't know how to help people who *really* have no clue
what they're doing. I thought a little effort on their part could be
expected. People who refuse to get involved, and people who randomly
copy scripts from dubious websites are (IMHO) the main reason why
JavaScript has such a bad reputation today.

Low barrier of entry is fine. Great even. But after they've managed to
find their way to Usenet, you'd expect them to be a *little* more
interested. Maybe it's just Google Groups, idk...
2) I assume that you realize I am hiding my address from spammers. Are you
of the opinion that we should always put it in human-only readable form,
such as:

mduffyAvideotron.ca (Replace the obvious with the obvious.)
I think what Thomas meant is that you should put your real address
there, not an obfuscated version, or a fake address. The spam's not as
bad as you would expect. In the last 2 weeks, I had 3 spam messages sent
to my Yahoo account, and all 3 were correctly filed as spam. At this
rate, why should I use a fake address?
My ISP recently dropped its NNPT service.
I've heard about this. Many ISPs have been abandoning their Usenet
caches lately. This is a sad turn indeed, but it's hardly the end of
Usenet, as some people have prophesied. It's just the local caches that
are going away. I for one have subscribed to Supernews, and while there
are many cheaper alternatives, they have excellent support, excellent
speed, and excellent retention. Well worth the 3.95 a month for a
frequent user like me (it's tax deductable too ;-).
My use of aioe is not because I want to hide.
Aioe is quite okay. I have their server added as a fallback, and it
seems to work alright. The retention's not too hot though, around 2-3
weeks max. But what can you expect, it's free to use and free to post.
Okay. That was far more off-topic than I'd intended.
Sorry :-)
- Conrad
Sep 27 '08 #12
Conrad Lender <cr******@yahoo.comwrote in
news:EN*********************@supernews.com:
... The spam's not as bad as you would expect.
... why should I use a fake address?
My experience is that it will always get worse & worse until you are forced
to change it (and send out a change notice to all your contacts, etc.)

To maximize the time between these events, you need to minimize the
exposure of your address.

Is it considered "okay" just to put a link to a personal website as a
signature? I have a human-readable .GIF email address at the bottom of my
homepage. Or is that more bother than de-obfuscating "mduffyAvideotron.ca"?

--
http:://pages.videotron.ca/duffym
Sep 27 '08 #13
Mike Duffy wrote:
Conrad Lender <cr******@yahoo.comwrote in
news:EN*********************@supernews.com:
>... The spam's not as bad as you would expect.
... why should I use a fake address?

My experience is that it will always get worse & worse until you are forced
to change it (and send out a change notice to all your contacts, etc.)
I've been posting - prolifically, in some years - to Usenet since
1991, using non-obfuscated email addresses. I use those same addresses
on numerous email lists, many of which have open archives.

Those accounts don't receive a bothersome amount of spam, and what
they do receive is almost entirely caught by Thunderbird's Bayesian
filter, which I trained implicitly (ie, by marking the occasional spam
message as spam until the rate of false negatives dropped close to
zero). I haven't had the filter return a false positive in months or
years - it happens so rarely that I only check the junk messages once
a week or so.

Obfuscation is bothersome, and many people find it rude. Filtering is
the graceful solution; it lets the owner of the account assume a small
burden, rather than putting a more tiresome one on correspondents.

--
Michael Wojcik
Micro Focus
Rhetoric & Writing, Michigan State University
Sep 30 '08 #14
In comp.lang.javascript message <gb*********@news2.newsguy.com>, Tue, 30
Sep 2008 09:02:37, Michael Wojcik <mw*****@newsguy.composted:
>Obfuscation is bothersome, and many people find it rude. Filtering is
the graceful solution; it lets the owner of the account assume a small
burden, rather than putting a more tiresome one on correspondents.
There are may different types of mail-reading systems, ranging from such
as a self-programmable UNIX box which is an Internet host with a dotted
quad of its own to a simple Web mail account.

Very little of the available advice is universally applicable.

The only universal example that comes immediately to mind is "do not
publish, in a directly readable form, anything looking like E-mail
address that you do not have permission to use.". (Much spam is still
aimed at full or Turnpike message-IDs recognisably from before
2004-01-10 13:37:04 UTC = UNIX time_t $40000000; a Tm-ID left part,
though compliant with Mail RFCs, is a very unlikely E-mail address left
part).

ASIDE : One should be careful to reply to the Reply-To address and not
to the From address (though possibly to the sender address).

--
(c) John Stockton, nr London UK. replyYYWW merlyn demon co uk Turnpike 6.05.
Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html-Timo Salmi: Usenet Q&A.
Web <URL:http://www.merlyn.demon.co.uk/news-use.htm: about usage of News.
No Encoding. Quotes precede replies. Snip well. Write clearly. Mail no News.
Oct 1 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wet Basement | last post by:
I am passing data to a putcart.pl , parsing it, then building the query string to put the item in the shopping cart: $cartStr =...
1
by: Jim Mitchell | last post by:
OK, have I come full circle.... ? 1) .NET with VS Studio seemed to be the answer to all my prayers. A) No more worries about coding for Netscape vs. IE. B) Quick Deployment C) All code in...
4
by: tmb | last post by:
I want to do a slide show with a script something like http://www.abiglime.com/webmaster/articles/jscript/021298.htm My Question: Will the client wait on all pic's in the slice show to be...
1
by: Darren Lew | last post by:
Hi there, I have this problem which is really driving me nuts for a couple of days. Glad if any help or suggestion is given Javascript will give me a pop-up error "Access is denied" when i try...
5
by: Brian Henry | last post by:
I am trying to add some items to a list box in java script, they add just fine, the values and text are how they should be. The problem though is when I try to access these added items from asp.net...
34
by: kpg | last post by:
Hello all, I have an asp.net web application with tons of Java script files. I would like to protect the Java Script somehow so it can't be seen by a remote user. I found several 3rd party...
2
by: Victor | last post by:
Hi, I have a problem with logging into web site via screen scraping. User name and password field contain 'name' property, and therefore I can easily do assignment to them:...
3
by: Stefan Mueller | last post by:
Because the characters ', ", ... make troubles in my input boxes I use the following PHP command while generating the page htmlentities($my_var, ENT_QUOTES); However, if I use in my java scripts...
6
by: Stefan Mueller | last post by:
I read data (e.g. äöüÄÖÜçéàè"') from my MySQL database which I'd like to show in an input box. <?php $mysql_data = "äöüÄÖÜçéàè\"'"; $html_data = addslashes(htmlentities($mysql_data,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.