Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36357 > unrolled thread
| Started by | rinku <rinku@copperpodip.com> |
|---|---|
| First post | 2019-04-17 22:53 -0700 |
| Last post | 2019-04-17 23:56 -0700 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.javascript
I need to change the border color of input text of form on form submit rinku <rinku@copperpodip.com> - 2019-04-17 22:53 -0700
Re: I need to change the border color of input text of form on form submit "R.Wieser" <address@not.available> - 2019-04-18 08:35 +0200
Re: I need to change the border color of input text of form on form submit Julio Di Egidio <julio@diegidio.name> - 2019-04-17 23:51 -0700
Re: I need to change the border color of input text of form on form submit "R.Wieser" <address@not.available> - 2019-04-18 10:34 +0200
Re: I need to change the border color of input text of form on form submit Julio Di Egidio <julio@diegidio.name> - 2019-04-17 23:56 -0700
| From | rinku <rinku@copperpodip.com> |
|---|---|
| Date | 2019-04-17 22:53 -0700 |
| Subject | I need to change the border color of input text of form on form submit |
| Message-ID | <8706cd97-ca2d-4278-b6a2-59c6ff83c7b8@googlegroups.com> |
I m bit confused how to make this, i have below situation
<form action='receiver.php' method='post'>
<input type='text' name='fname' value='Rink'>
<input type='submit'>
</form>
i want when the user clicks submit button the data go to receiver.php page and also do change the border color of input type by modifying its css property {border-color:green;}
[toc] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2019-04-18 08:35 +0200 |
| Message-ID | <q995sf$1fss$1@gioia.aioe.org> |
| In reply to | #36357 |
rinku,
> i want when the user clicks submit button the data go to
> receiver.php page
It already does.
> and also do change the border color of input type by modifying
> its css property {border-color:green;}
The server will return /a different page/, yes ? In that case, why not
simply include a CSS style in the HTML file itself or by way of seperate,
small(!) CSS file redefining the borders color ? Heck, you could even
put it in the input tag itself (as a style= property).
But why don't you first try to actually change the color in what you posted,
so you get a feel for what needs to be done ? You seem to be a bit outof
your depth here ...
Also, none of this has anything to do with JS. So, why did you post your
question here ? If you think I'm mistaken, what was/is your idea about
using JS, and why didn't you mention it ? We are not not mind-readers you
know ...
Regards,
Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2019-04-17 23:51 -0700 |
| Message-ID | <b0eea48f-2b9f-4ef8-9d0a-2151c6b83dd0@googlegroups.com> |
| In reply to | #36358 |
On Thursday, 18 April 2019 08:36:05 UTC+2, R.Wieser wrote:
> rinku,
>
> > i want when the user clicks submit button the data go to
> > receiver.php page
>
> It already does.
>
> > and also do change the border color of input type by modifying
> > its css property {border-color:green;}
>
> The server will return /a different page/, yes ? In that case, why not
> simply include a CSS style in the HTML file itself or by way of seperate,
> small(!) CSS file redefining the borders color ? Heck, you could even
> put it in the input tag itself (as a style= property).
>
> But why don't you first try to actually change the color in what you posted,
> so you get a feel for what needs to be done ? You seem to be a bit outof
> your depth here ...
>
> Also, none of this has anything to do with JS. So, why did you post your
> question here ?
That goes with 99% of the questions around here, and so it's been for
almost two decades now. And asking now to care about that is also quite
anachronistic, as 99% of the Usenet groups are dead anyway.
Moreover you simply mess the point, which was that of *not* changing page.
> If you think I'm mistaken, what was/is your idea about
> using JS, and why didn't you mention it ? We are not not mind-readers
> you know ...
Speak for yourself, troll...
Julio
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2019-04-18 10:34 +0200 |
| Message-ID | <q99crn$g6f$1@gioia.aioe.org> |
| In reply to | #36360 |
Julio, > And asking now to care about that is also quite anachronistic, > as 99% of the Usenet groups are dead anyway. So I should just "lie down, and think of England" ? Really ? Also, if that - the groups being dead - why are you still here ? > Moreover you simply mess the point, which was that > of *not* changing page. Somehow I don't think you posess the gift of mind-reading ... Also, Whoosh! Why do you think I asked the OP why he posted here and asked him about how JS should be involved in his example ? Furthermore, if it is actually a request to get some help to have JS do what the form currently does, than I expect to see examples and/or descriptions of what has already been tried. In that case even some minor googeling would have done the OP a wealth of good. Currently the question looks as if the OP hasn't got the foggiest about what he's busy with, and expect us to deliver everything - on a siver platter. For that matter, it could rather easily be a teachers assignment - which /we/ are not supposed to solve anyway. > Speak for yourself, troll... Funny, funny. Someone who "just knows" what the OP means without having any info to substanciate it and than trying to whack others with those "facts" calls other people trolls. Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2019-04-17 23:56 -0700 |
| Message-ID | <d73333c0-0746-4c5b-a8f7-8c4da964e755@googlegroups.com> |
| In reply to | #36357 |
On Thursday, 18 April 2019 07:53:39 UTC+2, rinku wrote:
> I m bit confused how to make this, i have below situation
>
> <form action='receiver.php' method='post'>
> <input type='text' name='fname' value='Rink'>
> <input type='submit'>
> </form>
>
> i want when the user clicks submit button the data go to receiver.php page and also do change the border color of input type by modifying its css property {border-color:green;}
As a first approx.:
To send data without changing page, you'd have to use AJAX, otherwise a form
in an iframe (so that just the iframe gets submitted). And you can still have
a form as you show there and have a form submit handler that actually prevents
the submit of the form and just packs data into an AJAX request: anyway, lots
of minor variations are possible there.
Also, if you stay on the same page, you can simply change styles and whatnot
from that same handler.
Julio
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web