473,480 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Link Submit Ideas

Hi,

I need to pass some info in a javascript submit.

<a href="javascript:document.formName.submit();">Subm it Form</a>

Normally a link would do page.jsp?x1=1&x2=2&x3=3 and you would pull x1, x2,
x3. I have no clue how to do this with a link submit.

Thanks,
Mica
PS. Please no comments about the link submit, a button will not work as it
needs to be multi-dim'd and dynamic.
Jun 30 '06 #1
26 2874
Mica Cooper said the following on 6/29/2006 9:55 PM:
Hi,

I need to pass some info in a javascript submit.
No, you just think you do.
<a href="javascript:document.formName.submit();">Subm it Form</a>
<input type="submit" value="Submit Form">
Normally a link would do page.jsp?x1=1&x2=2&x3=3 and you would pull x1, x2,
x3. I have no clue how to do this with a link submit.
Not sure why you think you need a "link submit", just submit the form.
PS. Please no comments about the link submit, a button will not work as it
needs to be multi-dim'd and dynamic.


What makes you think that a link is "more dynamic" than a button? It isn't.

What makes you think that a button isn't "multi-dim'd"? It is.

This is Usenet. You post a thought, it gets commented on. Don't want it
commented on, don't post it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 30 '06 #2
Randy Webb wrote:
Mica Cooper said the following on 6/29/2006 9:55 PM:
Hi,

I need to pass some info in a javascript submit.


No, you just think you do.
<a href="javascript:document.formName.submit();">Subm it Form</a>


<input type="submit" value="Submit Form">
Normally a link would do page.jsp?x1=1&x2=2&x3=3 and you would pull
x1, x2, x3. I have no clue how to do this with a link submit.


Not sure why you think you need a "link submit", just submit the form.
PS. Please no comments about the link submit, a button will not work
as it needs to be multi-dim'd and dynamic.


What makes you think that a link is "more dynamic" than a button? It
isn't.
What makes you think that a button isn't "multi-dim'd"? It is.

This is Usenet. You post a thought, it gets commented on. Don't want
it commented on, don't post it.


What Randy forgot to tell you, is that your submit link will
automatically do exactly what you want as long as the form 'formName'
have its method attribute set to 'get'. x1, x2 & x3 will be sendt.

BUT! You should drop that abnomination 'javascript:' pseudo-protocol.
What if your clients have JS turned off? Change it to something like this:
<a href="NeedJsInfo.html" onclick="document.formName.submit(); return
false;">
Submit Form
</a>

--
Dag.
Jun 30 '06 #3
Mica Cooper wrote:
I need to pass some info in a javascript submit.

<a href="javascript:document.formName.submit();">Subm it Form</a>

Normally a link would do page.jsp?x1=1&x2=2&x3=3 and you would pull x1, x2,
x3. I have no clue how to do this with a link submit.

Thanks,
Mica
PS. Please no comments about the link submit, a button will not work as it
needs to be multi-dim'd and dynamic.


I think you're looking for hidden form fields, try:

<form method="get" action="http://www.google.com/" name="formName">
<input type="hidden" name="x1" value="1">
<input type="hidden" name="x2" value="2">
<input type="hidden" name="x3" value="3">
</form>
<a href="javascript:document.formName.submit();">Subm it Form</a>

--
Bart

Jun 30 '06 #4
Totally useless.

"Randy Webb" <Hi************@aol.com> wrote in message
news:XP******************************@comcast.com. ..
Mica Cooper said the following on 6/29/2006 9:55 PM:
Hi,

I need to pass some info in a javascript submit.


No, you just think you do.
<a href="javascript:document.formName.submit();">Subm it Form</a>


<input type="submit" value="Submit Form">
Normally a link would do page.jsp?x1=1&x2=2&x3=3 and you would pull x1,
x2, x3. I have no clue how to do this with a link submit.


Not sure why you think you need a "link submit", just submit the form.
PS. Please no comments about the link submit, a button will not work as
it needs to be multi-dim'd and dynamic.


What makes you think that a link is "more dynamic" than a button? It
isn't.

What makes you think that a button isn't "multi-dim'd"? It is.

This is Usenet. You post a thought, it gets commented on. Don't want it
commented on, don't post it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Jun 30 '06 #5
Dag,

I need to cause a form to submit and I need many links such as

234 Anaheim CA click_link_to_submit moredata
353 Anaheim MO click_link_to_submit moredata
767 Anaheim NJ click_link_to_submit moredata
345 Anaheim NY click_link_to_submit moredata
565 Anaheim BC click_link_to_submit moredata
564 Anaheim WA click_link_to_submit moredata

Each line has user entered data that needs to be submitted and captured
therefore the submit. I would just use a normal link but I need the user
entered data on OTHER lines to be captured also so I can later restore the
state of the page.

Mica
PS. This is a corporate subscription site so all users are required to have
JS on so no problems for non-JS.
Jun 30 '06 #6
Mica Cooper said the following on 6/30/2006 8:52 AM:
Totally useless.


What's useless is your inability to read and comprehend what is written.
And just for you, the solution to your question is in my post and the
reply to it, if you can manage to read and understand it.

Based on your replies, I doubt you will.

Make your "links" a submit button. Search the archives on how to use
different submit buttons and the purpose of it.

Then, change your method to "post" and the URL will be as you want. It
will submit the data. You will find out that it is easier to use a GET
though.

If you want some kind of coded data sent to the server, that is obtuse
and insane if the only purpose is to be able to "recreate the page" as
it existed.

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 30 '06 #7
Mica Cooper said the following on 6/30/2006 8:58 AM:
PS. This is a corporate subscription site so all users are required to have
JS on so no problems for non-JS.


Corporate subscription site where the site author has no understanding
of forms, form submission, client side technology, server side
technology. Wow, I am impressed.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 30 '06 #8
Mica Cooper wrote:
Dag,

I need to cause a form to submit and I need many links such as

234 Anaheim CA click_link_to_submit moredata
353 Anaheim MO click_link_to_submit moredata
767 Anaheim NJ click_link_to_submit moredata
345 Anaheim NY click_link_to_submit moredata
565 Anaheim BC click_link_to_submit moredata
564 Anaheim WA click_link_to_submit moredata

Each line has user entered data that needs to be submitted and
captured therefore the submit. I would just use a normal link but I
need the user entered data on OTHER lines to be captured also so I
can later restore the state of the page.

Mica
PS. This is a corporate subscription site so all users are required
to have JS on so no problems for non-JS.


Either you don't understand what Randy Webb and I are trying to explain,
or we misunderstand you completely!

In your sample above...
* Are the three first columns input fields where
the user type in the number, text and state?
* What is Moredata?
* Is each row a separate form?
* Can you put this page (a simple sample) on a puplic server, so we can
see what you have done so far?

BTW...
You should be careful to reply with "Totally useless." to one of the most
knowledgeable contibutors in this NG, even if you feel insulted.
His words might seem a little bit harsh, but he *did* try to help you...

--
Dag.

Jun 30 '06 #9
Wow,
Indiscriminate judging. I've never heard of you either. Doesn't make you
less of an expert...but you are pretty liberal with the accusations. I am
just not familiar with this technique or if it even works. I can however
infer something about your people skills. I do not appreciate the attitude
or telling me what I think.
Mica

"Randy Webb" <Hi************@aol.com> wrote in message
news:_o******************************@comcast.com. ..
Mica Cooper said the following on 6/30/2006 8:58 AM:
PS. This is a corporate subscription site so all users are required to
have JS on so no problems for non-JS.


Corporate subscription site where the site author has no understanding of
forms, form submission, client side technology, server side technology.
Wow, I am impressed.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Jun 30 '06 #10
Yes,

I need to recreate the whole page. It is the customers requirement. I did
say this. I don't think you listened.

I need to leave the page, storing all the user entered data, then return,
restoring the data. The link the user clicks on determines the next page.
Since its dynamic, I don't want to have to create a bunch of name=button_1
name=button_2 then check for them in the submit. I would prefer to pull
link?ID=1.

Mica

"Randy Webb" <Hi************@aol.com> wrote in message
news:_o******************************@comcast.com. ..
Mica Cooper said the following on 6/30/2006 8:52 AM:
Totally useless.


What's useless is your inability to read and comprehend what is written.
And just for you, the solution to your question is in my post and the
reply to it, if you can manage to read and understand it.

Based on your replies, I doubt you will.

Make your "links" a submit button. Search the archives on how to use
different submit buttons and the purpose of it.

Then, change your method to "post" and the URL will be as you want. It
will submit the data. You will find out that it is easier to use a GET
though.

If you want some kind of coded data sent to the server, that is obtuse and
insane if the only purpose is to be able to "recreate the page" as it
existed.

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Jun 30 '06 #11
JRS: In article <_o******************************@comcast.com>, dated
Fri, 30 Jun 2006 09:46:00 remote, seen in news:comp.lang.javascript,
Randy Webb <Hi************@aol.com> posted :
Mica Cooper said the following on 6/30/2006 8:58 AM:
PS. This is a corporate subscription site so all users are required to have
JS on so no problems for non-JS.


Corporate subscription site where the site author has no understanding
of forms, form submission, client side technology, server side
technology. Wow, I am impressed.


The post is coming from GMT-5 but not .ca - what else do you expect but
a combination of arrogance, ignorance, and stupidity?

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jun 30 '06 #12
Mica Cooper wrote:
I need to recreate the whole page. It is the customers requirement. I did
say this. I don't think you listened.
Your problem description is vague, unclear and not coherent. You don't
seem to have basic knowledge how client side scripts work.
I need to leave the page, storing all the user entered data,
Javascript can't do that. Where are you storing your data ?
then return, restoring the data.
Then you should read the stored data from the source you saved it to.
The link the user clicks on determines the next page.
Yes, that is how hyperlinks work.
Since its dynamic, I don't want to have to create a bunch of name=button_1
name=button_2 then check for them in the submit. I would prefer to pull
link?ID=1.


My best guess is that you mean something like this:

<a href="link.htm?ID=1&name=abc">link 1</a>
<a href="link.htm?ID=2&name=xyz">link 2</a>

If the query string depends on form values, see my earlier post in this
thread.

--
Bart

Jul 1 '06 #13
Ok,

How do I capture the user entered data so I can recreate the page??? This is
the third time I have stated that this is a requirement. Everyone skips over
this and criticizes me for being stupid but NO ONE answers the question. A
link will not allow that to happen. I need to submit the page to capture
that data and then forward.

It seems to me, everyone here is quick to judge and not read!

Mica

"Bart Van der Donck" <ba**@nijlen.com> wrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Mica Cooper wrote:
I need to recreate the whole page. It is the customers requirement. I did
say this. I don't think you listened.


Your problem description is vague, unclear and not coherent. You don't
seem to have basic knowledge how client side scripts work.
I need to leave the page, storing all the user entered data,


Javascript can't do that. Where are you storing your data ?
then return, restoring the data.


Then you should read the stored data from the source you saved it to.
The link the user clicks on determines the next page.


Yes, that is how hyperlinks work.
Since its dynamic, I don't want to have to create a bunch of
name=button_1
name=button_2 then check for them in the submit. I would prefer to pull
link?ID=1.


My best guess is that you mean something like this:

<a href="link.htm?ID=1&name=abc">link 1</a>
<a href="link.htm?ID=2&name=xyz">link 2</a>

If the query string depends on form values, see my earlier post in this
thread.

--
Bart

Jul 1 '06 #14
JRS: In article <36***************************@ALLTEL.NET>, dated Sat,
1 Jul 2006 09:51:32 remote, seen in news:comp.lang.javascript, Mica
Cooper <Mi*********@removethis.aisus.composted :
>
It seems to me, everyone here is quick to judge and not read!
If *you* were to read and heed the newsgroup FAQ about how to use News,
then it might be considered that you were actually worth helping.

In addition, you need to learn how, in asking a question, the
information that is necessary for the sort of answer that you hope for.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 1 '06 #15
Is calling someone stupid by Randy Webb condoned then?
I need to pass some info in a javascript submit.
Randy Webb-No, you just think you do.

Because thats what he did! I did not make a mistake in my statement. I need
to pass info in a js submit. I suspected this was not a common thing so I
turned to the newsgroup. What I got was rudeness, judgement, and general ill
manners. I am not a newbie or a student and have been using newsgroups for
over 10 years. Read the posts. You are lecturing the wrong person.

I guess this can't be done by anyone here. Instead of creative help, I got
dumped on. I didn't want to create dynamic buttons tied to hidden data but
it will work even if its ugly.

Mica Cooper
"Dr John Stockton" <jr*@merlyn.demon.co.ukwrote in message
news:gl**************@merlyn.demon.co.uk...
JRS: In article <36***************************@ALLTEL.NET>, dated Sat,
1 Jul 2006 09:51:32 remote, seen in news:comp.lang.javascript, Mica
Cooper <Mi*********@removethis.aisus.composted :
>>
It seems to me, everyone here is quick to judge and not read!

If *you* were to read and heed the newsgroup FAQ about how to use News,
then it might be considered that you were actually worth helping.

In addition, you need to learn how, in asking a question, the
information that is necessary for the sort of answer that you hope for.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4
©
<URL:http://www.jibbering.com/faq/>? JL/RC: FAQ of
news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htmjscr maths, dates,
sources.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/jscr/&c, FAQ items,
links.

Jul 2 '06 #16
Mica Cooper wrote:
Is calling someone stupid by Randy Webb condoned then?
>I need to pass some info in a javascript submit.
Randy Webb-No, you just think you do.

Because thats what he did! I did not make a mistake in my statement.
I need to pass info in a js submit. I suspected this was not a common
thing so I turned to the newsgroup. What I got was rudeness,
judgement, and general ill manners. I am not a newbie or a student
and have been using newsgroups for over 10 years. Read the posts. You
are lecturing the wrong person.
I guess this can't be done by anyone here. Instead of creative help,
I got dumped on. I didn't want to create dynamic buttons tied to
hidden data but it will work even if its ugly.
Of course it can be done!

We only try to tell you that it is unneccessary complex and fragile
compared to the normal, standard way of just submitting a form.

The point that you don't understand what we mean because you have
your mind set on that it can't be done is a completely different question!

* If you want to use submit, that implies a <formelement.
* When a form is submitted, it is the content of the <input>, <select>
and other form fields that is _automaticlly_ submitted.
* whatever data you want to send to the server *must* be in one
of the form fields to be sendt by the form submission.
* If you want to send some additional data, depending on, ie. where
the user clicked, you use JS to set the content ao a hidden <input>
field before you execute submit.

* you can also of course send the content of several input fields
by clicking a link <a>, without having a form element at all.
_But then we're not talking about submitting at all!_
It is then a qouestion of building a request-string manually,
append it to the url, and forward. (see below):

function linkClicked(sender) {
var x1 = document.getElementById("x1").value;
var x2 = document.getElementById("x2").value;
var sId = sender.id;

var url = "receivingPage.php?x1=" + x1 + "&x2=" + x2 + "&linkId=" + sId;
window.location.href = url;
return false;
}

...
<a id="a1" href="NoJS.html" onclick="linkClicked(this); return
false;">Link a1</a>

* I asked you a list of specific questions regarding your requirements
in response to your post 2006-06-30 14:58:00 UTC+2, but you have still
not responded.

* When so many people ask questions about your approach, and show confusion
about what you are trying to achieve, you *might* consider that what you
think is a brilliant explanation was noting but confusing to the rest of
the
world...

* Answer my questions from the 30th, and stop whining, and I'll still help
you.

--
Dag.
Jul 2 '06 #17
Mica Cooper said the following on 6/30/2006 4:55 PM:
Wow,
Indiscriminate judging.
Nope, an observation based on your behavior. And from your other posts
in this thread, I was dead on.
I've never heard of you either.
Good thing I guess.
Doesn't make you less of an expert...
Doesn't make me more of one either.
but you are pretty liberal with the accusations.
Again, that wasn't an accusation, it was an observation.
I am just not familiar with this technique or if it even works.
It can be made to work. But the way you are trying to go about it is the
wrong approache.
I can however infer something about your people skills.
And you are welcome to your observations. You can even post them. I bet
your thoughts about me don't bother me near as bad as my observations
about you bothered you though.
I do not appreciate the attitude or telling me what I think.
Attitude? Deal with it. It comes from about 10 years of putting up with
people like you.

As for telling you what you think, I haven't even come close to doing that.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 4 '06 #18
Dr John Stockton said the following on 6/30/2006 6:18 PM:
JRS: In article <_o******************************@comcast.com>, dated
Fri, 30 Jun 2006 09:46:00 remote, seen in news:comp.lang.javascript,
Randy Webb <Hi************@aol.composted :
>Mica Cooper said the following on 6/30/2006 8:58 AM:
>>PS. This is a corporate subscription site so all users are required to have
JS on so no problems for non-JS.
Corporate subscription site where the site author has no understanding
of forms, form submission, client side technology, server side
technology. Wow, I am impressed.

The post is coming from GMT-5 but not .ca - what else do you expect but
a combination of arrogance, ignorance, and stupidity?
Aside from your anti-American bias and your general assumption that
anybody that posts from a particular Time Zone must be an idiot? Your
assumption is what is arrogant, ignorant and stupid John. It only
detracts from you, not complements it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 4 '06 #19
Mica Cooper said the following on 6/30/2006 4:55 PM:
Yes,

I need to recreate the whole page. It is the customers requirement. I did
say this. I don't think you listened.
I did. You just didn't listen/read my response. If you want all the data
on the server, then submit a form, have the server recreate what it
needs. If you only want certain parts submitted, then you use separate
submit buttons and each can set flags to tell the server what to process
and what to ignore.
I need to leave the page, storing all the user entered data, then return,
restoring the data.
Submit it to the server, save it on the server, have the server recreate it.
The link the user clicks on determines the next page.
Makes sense. The next page is determined/created based on the link.
Simple enough.
Since its dynamic, I don't want to have to create a bunch of name=button_1
name=button_2 then check for them in the submit. I would prefer to pull
link?ID=1.
<input type="submit"
onclick="
document.forms.someHiddenField.value="this.id"
id="IDForThisRow">

Then the server gets the IDForThisRow and acts based on it.

How much simpler can it get?

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 4 '06 #20
On Fri, 30 Jun 2006 07:58:24 -0500, in comp.lang.javascript "Mica
Cooper" <Mi*********@removethis.aisus.com>
<38***************************@ALLTEL.NETwrote:
>| Dag,
|
| I need to cause a form to submit and I need many links such as
|
| 234 Anaheim CA click_link_to_submit moredata
| 353 Anaheim MO click_link_to_submit moredata
| 767 Anaheim NJ click_link_to_submit moredata
| 345 Anaheim NY click_link_to_submit moredata
| 565 Anaheim BC click_link_to_submit moredata
| 564 Anaheim WA click_link_to_submit moredata
|
| Each line has user entered data that needs to be submitted and captured
| therefore the submit. I would just use a normal link but I need the user
| entered data on OTHER lines to be captured also so I can later restore the
| state of the page.
|
| Mica
| PS. This is a corporate subscription site so all users are required to have
| JS on so no problems for non-JS.
You don't really need a form.
On the 'click_link_to_submit' just put the proposed code into the a
href tag. The first entry would look like:
<a href="page.jsp?x1=234&x2=Anaheim&x3=CA">click_link _to_submit</a>
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 4 '06 #21
Mica Cooper wrote:
Is calling someone "s"tupid by anyone condoned then?
Name calling in general gets frowned upon. Can you point
out where anyone called you a name? Go back through
and re-read everything from the start. And then answer
one question... who said the "s" word? Seriously... you
might enjoy a jovial laugh if you can extract yourself out of
yourself and re-read the whole message without feeling
like others are calling you names.

I can relay stories where the living a$$umed things and then
starved themselves to death based upon those lines of
thoughts, even when they were surrounded by their native
food. All quite disgusting but I can relay the story to you
if you're interested. :-(
I need to pass some info in a javascript submit.
Why do "you need" to do this? Can you provide an example
of the code your employing? Others have pointed out that
the commonly accepted way to do this involves server side
code to store the data. Can you provide an example of
what you need javascript to do? Can you provide a link to
the site you're developing or a link to the code you employ?

Perhaps you mean something along the lines of...

http://www.microcosmotalk.com/tech/scripts/

The javascript located there provides a way for an end-user
(client) to select any country, and get a list of filled states within
that country. It's kind of a neat thing. It also provides a very
quick way to get the list of the city / states for all countries,
all in a javascript array.

The javascript is pretty easy to read too, I think. It's all js and
nothing server side going on there.

Hope this helps.

--
Jim Carlock
Post replies to the group.
Stories CBS, NBC, ABC, Fox, and CNN avoid like the
plague...

From The Twilight Zone ...

"You wanna see something really scary?"

George Walker Bush Junior, William Jefferson Clinton,
Osama bin Laden, Aspartame and Gulf War Syndrome,
Kevin Ives, Don Henry, Ian Spiro, Gail Spiro, Adam Spiro,
Dina Spiro, Sara Spiro and the FBI. Some cases the FBI
refuse to solve. Kids murdered ending up in United States
Presidents and the FBI working together to cover things up?

http://www.sandiegomag.com/issues/oc...5/murder.shtml
http://www.idfiles.com/
Jul 4 '06 #22
Mica Cooper said the following on 7/1/2006 9:28 PM:
Is calling someone stupid by Randy Webb condoned then?
>I need to pass some info in a javascript submit.
Randy Webb-No, you just think you do.
That's not calling you stupid, that is showing a flaw in your reasoning.
Because thats what he did! I did not make a mistake in my statement.
While you may or may not have made a mistake in your statement, you
still have not explained what it is you are trying to do. And that is
with at least 3 people asking you to clarify what it is you are wanting
to do.
I need to pass info in a js submit.
There is no "js submit". And your problem can actually be solved without
using JS at all.
I suspected this was not a common thing so I turned to the newsgroup.
It is quite common actually if I am guessing the scenario properly.
What I got was rudeness, judgement, and general ill manners.
You got none of that until you warranted it.
I am not a newbie or a student and have been using newsgroups for
over 10 years. Read the posts. You are lecturing the wrong person.
Then why do people keep having to ask you to further clarify what you
are trying to do?
I guess this can't be done by anyone here.
You are entitled to your opinion, however wrong it may be.
Instead of creative help, I got dumped on.
More of your self induced mis-guided delusions?
I didn't want to create dynamic buttons tied to hidden data but
it will work even if its ugly.
Nobody said anything about "dynamic buttons tied to hidden data". At
least I didn't and I can solve your problem in at least 3 different ways
if your problem is what I believe it to be but to date you have not
fully clarified what it is your "problem" is.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices -
Jul 5 '06 #23
Randy,

That is what I need. I have stated my need and it seemed clear (to me). I
need to let the user modify text fields of an entire form, click a link, pop
up a page, fill and submit that page, then return to the parent page with
all of the user data.

I will make the button appear to look like a link with CSS.

I don't know why this was so hard to communicate except that perhaps this is
just not a common thing to do and everyone assumed I didn't really need to
do this. I have never seen a submit in this fashion so had no clue as to how
or if it could be done. I am a Java server side guy...not client.

Thank You,
I'm off to try it out.
Mica

"Randy Webb" <Hi************@aol.comwrote in message
news:Hr******************************@comcast.com. ..
Mica Cooper said the following on 6/30/2006 4:55 PM:
>Yes,

I need to recreate the whole page. It is the customers requirement. I did
say this. I don't think you listened.

I did. You just didn't listen/read my response. If you want all the data
on the server, then submit a form, have the server recreate what it needs.
If you only want certain parts submitted, then you use separate submit
buttons and each can set flags to tell the server what to process and what
to ignore.
>I need to leave the page, storing all the user entered data, then return,
restoring the data.

Submit it to the server, save it on the server, have the server recreate
it.
> The link the user clicks on determines the next page.

Makes sense. The next page is determined/created based on the link. Simple
enough.
>Since its dynamic, I don't want to have to create a bunch of
name=button_1 name=button_2 then check for them in the submit. I would
prefer to pull link?ID=1.

<input type="submit"
onclick="
document.forms.someHiddenField.value="this.id"
id="IDForThisRow">

Then the server gets the IDForThisRow and acts based on it.

How much simpler can it get?

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Jul 5 '06 #24
Mica Cooper said the following on 7/5/2006 4:18 PM:
Randy,

That is what I need. I have stated my need and it seemed clear (to me).
What is clear to you is not always clear to the reader. And at least 3
readers said it wasn't clear to them (myself included).
I need to let the user modify text fields of an entire form, click a link, pop
up a page, fill and submit that page, then return to the parent page with
all of the user data.
I have to ask the question of "Why?" when you say you have to use a
popup. But that is another question all together.
I will make the button appear to look like a link with CSS.
Why? Users are used to buttons, know what buttons do, and expect links
to do something differently. Especially if the button says "Modify this
record" or something similar.
I don't know why this was so hard to communicate except that perhaps this is
just not a common thing to do and everyone assumed I didn't really need to
do this.
It is not uncommon. What was uncommon was your explanation.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 6 '06 #25
See,
your comment :
>Why? Users are used to buttons, know what buttons do, and expect links to
do something differently. Especially if the button says "Modify this
record" or something similar.
Is typical of the problem. You haven't set in endless meetings, met with
users, run thru requirements, etc yet you feel fully qualified to judge. Why
is it so hard to accept a stated requirement?

In this case, the users in a form, click one of multiple links to go to a
subform and fill out information regarding that link, submit, and return to
the original form without losing any data. The links are currently links and
the company does not want the confusion of presenting a change to them of
buttons. Changing the style to look like a link solves that issue.

You seem to want to argue the requirements and not help resolve the problem.
I know people submit idiot stuff and newbies try to get homework done. That
does not mean an assumption should be made about everyone here. People
should be able to state a problem without having to justify the problem.
That is my issue! I don't need to justify this to anyone except the ones who
made the requirements.

Mica

"Randy Webb" <Hi************@aol.comwrote in message
news:Zb******************************@comcast.com. ..
Mica Cooper said the following on 7/5/2006 4:18 PM:
>Randy,

That is what I need. I have stated my need and it seemed clear (to me).

What is clear to you is not always clear to the reader. And at least 3
readers said it wasn't clear to them (myself included).
>I need to let the user modify text fields of an entire form, click a
link, pop up a page, fill and submit that page, then return to the parent
page with all of the user data.

I have to ask the question of "Why?" when you say you have to use a popup.
But that is another question all together.
>I will make the button appear to look like a link with CSS.

Why? Users are used to buttons, know what buttons do, and expect links to
do something differently. Especially if the button says "Modify this
record" or something similar.
>I don't know why this was so hard to communicate except that perhaps this
is just not a common thing to do and everyone assumed I didn't really
need to do this.

It is not uncommon. What was uncommon was your explanation.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Jul 6 '06 #26
Mica Cooper said the following on 7/6/2006 10:46 AM:
See,
your comment :
>Why? Users are used to buttons, know what buttons do, and expect links to
do something differently. Especially if the button says "Modify this
record" or something similar.

Is typical of the problem.
No, it is typical of the solution.
You haven't set in endless meetings, met with users, run thru requirements,
etc yet you feel fully qualified to judge.
I haven't? I sit in a meeting every Monday morning that lasts a minimum
of 4 hours and listen to the very whining that you are doing now. The
difference is I know how to tell them why what they want is wrong and
can be done better and/or simpler. And WHY it is better and/or simpler.
The fact that you lack that doesn't change my opinions.
Why is it so hard to accept a stated requirement?
I didn't reject it. I said it was a dumb requirement. You want links?
Use links.
In this case, the users in a form, click one of multiple links to go to a
subform and fill out information regarding that link, submit, and return to
the original form without losing any data. The links are currently links and
the company does not want the confusion of presenting a change to them of
buttons. Changing the style to look like a link solves that issue.
See? You give information after the fact that might have changed what I
said. And then you call me judgmental. Nice.
You seem to want to argue the requirements and not help resolve the problem.
I didn't argue the requirements at all. I said there was a better
alternative *before* you gave the requirements. Hard to argue with
something I don't know.
I know people submit idiot stuff and newbies try to get homework done.
Tis true, but Summer is here so no students.

That does not mean an assumption should be made about everyone here.
True, but this is Usenet, not a help desk. You post (It doesn't even
have to be a question), it gets discussed. IF you get an answer, great.
If you don't, you move on.
People should be able to state a problem without having to justify the problem.
When the problem is part of the solution, sure they can.
That is my issue! I don't need to justify this to anyone except the ones who
made the requirements.
I never said differently.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 6 '06 #27

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

Similar topics

4
2164
by: Dodo | last post by:
Is it possible to create a link that can post a value to an ASP page without java?
4
3919
by: A.S. | last post by:
I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will click on a link and will not be taken to another...
1
8303
by: Stanimir Stamenkov | last post by:
Here's an example: <form action="bogus" method="post"> <p> <a href="prev.cgi"><input type="submit" name="prev" value="< Back"></a> <a href="next.cgi"><input type="submit" name="next"...
2
2073
by: Matt | last post by:
Can we click a link and it will submit the form to the other page? Usually we will submit the form to other page by clicking a submit button. Now I need to do the following, but what if I have...
4
16232
by: dschruth | last post by:
Hello. Can anybody solve this problem? I am using a server-side language (PERL) to *try* to POST data to a HTTPS login script that doesn't have a standard "submit" button. The form appears...
4
2696
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
11
11504
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the...
1
3275
by: Adrock952 | last post by:
I have a link on my site which obviously says "Login" where users log in. I would like that link to be changed to "Logout" when the user has successfully logged in and the session has been created...
7
5686
by: Steve Swift | last post by:
How close can you get to making a submit button look like a link? Answers to the inevitable questions: 1. Because I don't want my email address (which would have to be part of the URL in a...
0
7041
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,...
0
7043
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,...
1
6737
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...
0
6921
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...
1
4776
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...
0
2995
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...
0
2984
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
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 ...
0
179
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...

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.