473,554 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10784
On Mon, 22 Sep 2008 13:33:04 -0700, te************* ******@gmail.co m 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.co m 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 fr 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.co m 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.getEle mentById("comDi splay").firstCh ild.data
= 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.co m 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.theter rib...@gmail.co m 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.c om" <te************ *******@gmail.c omwrote
in news:87******** *************** ***********@a19 g2000pra.google groups.com:
On Sep 24, 1:20*am, Conrad Lender <crlen...@yahoo .comwrote:
>On 2008-09-24 02:56, terrible.theter rib...@gmail.co m 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*****@newsgr oup.only>:
"te************ *******@gmail.c om" wrote:
>On Sep 24, 1:20 am, Conrad Lender <crlen...@yahoo .comwrote:
>>On 2008-09-24 02:56, terrible.theter rib...@gmail.co m 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 bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Sep 26 '08 #10

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

Similar topics

1
5392
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 = http://www.domain.com/cgi-bin/cart.pl?name=Book+Title&Stk=D123456&price=5.00 $co = new CGI; print $co->redirect($cartStr); print $co->start_html; $co->end_html;
1
3193
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 code behind. D) Go .NET So I re-wrote the whole application in .NET code behind.
4
1785
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 downloaded before it starts or will it show in the forground and continue downloading in the background? I have a lot of pic's but many will try to view...
1
5577
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 to load a simple xml file, which is in the server machine itself. The script is within a JSP page running apache tom-cat. I am running it with IE6...
5
2451
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 they do not show up, If i place a button on the same form that is a server control, click it, i'd expect the lists to be posted back too... but...
34
3296
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 solutions, but I thought I remember that there was a way to 'compile' java script and use that instead of the actual script?
2
6665
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: "userid=uidTest&password=pwTest" However, submit button represented on page via hyper link: <A href="javascript:login()" onBlur ="foc()"><IMG align=middle border=0...
3
12946
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 the string generated by htmlentities it shows ', /&quot;, ... Is there a java script command to change ' to '
6
14817
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, ENT_QUOTES)); echo "<script type = 'text/javascript'>"; echo "function set_old_data() {"; echo "my_form.input1.value = var_old_data;";
0
7605
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7530
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7808
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8047
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7570
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7893
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5441
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2022
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
845
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.