Closed Thread Icon

Topic awaiting preservation: Novice Help Please Pages that link to <a href="https://ozoneasylum.com/backlink?for=8969" title="Pages that link to Topic awaiting preservation: Novice Help Please" rel="nofollow" >Topic awaiting preservation: Novice Help Please\

 
Author Thread
g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-15-2003 03:30

I am looking for a java script that will take the attributes in a link like email address etc. and fill taxt boxes in a form at the bottom of a page.

In other words you have a list of companies on a page. Each list has a link to contact that company. When a person clicks that link the screen scrolls to the bottom of the page and the attributes of that comapny are filled into the form automatically.

The reason this needs to be java script is because the form will be on a cdrom and will only connect to the internet when it is sent.

Thank you ahead of time,
G

Alevice
Paranoid (IV) Inmate

From: Mexico
Insane since: Dec 2002

posted posted 12-15-2003 05:26

<form name="myform">
<input type="text" name="mytext" value="something" />
<input type="textfield" name="mytextfield" value="something else here" />
</form>

<a href="javascript: document.myform.mytext.value='haha';document.myform.mytextfield.value='more laughter';return true;">Click me</a>

Replace the names and values with whatever you want. Same logic applies for any input type. I would explain a bit more about it, but hopefully this link will suffice. =)

__________________________________


Sexy Demoness cel

[This message has been edited by InI (edited 12-15-2003).]

g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-15-2003 08:44

Alevice,
Thank you for your help. I noticed though your link did not work.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 12-15-2003 11:43

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-15-2003 21:09

Alevice
For some reason I could not get your code to work. Could you check it for me? I have double checked it on my side.


Thanks,
G

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 12-16-2003 10:32

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-16-2003 21:26

http://www.sldjyellowpages.com/yellow/yellowresult.php?goal=Browse&category=Accessories&recordDisplay=complete&cat_id=1&choice=category

The request a quote link

Alevice
Paranoid (IV) Inmate

From: Mexico
Insane since: Dec 2002

posted posted 12-16-2003 22:22

You from has to have a name. Dont use 'innerHTML' for the input content, its 'value'.

__________________________________


Sexy Demoness cel

g-ma
Nervous Wreck (II) Inmate

From:
Insane since: Dec 2003

posted posted 12-19-2003 11:37

Okay he has gotten one link working with one form, but wishes to have the other link not only fill in a vaiable on the form he wants it to display a company name on the form and place focus on that form. Please see the below URL and click on the Request a Quote Link http://www.sldjyellowpages.com/yellow/yellowresult.php?goal=Browse&category=Music+Services+%28Clubs%2C+CD+Compilations%2C+45%27s%2C+Remixers%2C+Remix+Services%2C+12%22+Singles%2C+e -singles%29&recordDisplay=complete&cat_id=59&choice=category


norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 12-19-2003 16:37

g-ma:

You can tell me to go to hell if you want, but I've just got to ask-

Are you actually TRYING to code this yourself(reading books & tutorials, and trying out your own code), or are you fishing around to get someone to write this for you?

If the second case is true you should just come right out and ask to have this coded for you. I bet there are some folks around here who would appreciate the honesty enough to oblige.

And if this is a commercial endeavor (you know, involving money)and you aren't interested in writting your own code, the solution is called CONTRACTING.......

/* Sure, go ahead and code in your fancy IDE. Just remember: it's all fun and games until someone puts an $i out */

« BackwardsOnwards »

Show Forum Drop Down Menu