473,657 Members | 2,504 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 10892
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 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.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
5394
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
3197
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
1788
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 on 56k dial-up. thanks for any help - tmb
1
5581
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 from an windows administrative acc straight on the server so there shouldn't be any access prob.
5
2454
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 they dont appear to be because the collections for the list boxes were empty, how do you get a list...
34
3313
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
6666
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 height=15 src="images/submit.gif" width=64></A>
3
12959
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
14829
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
8421
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8518
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.