Link To Pages From Text Field?

Mar 28, 2009

i would like to use a small form to be placed in my website to do the following:

using a text field and a go button:

if user input is: "value a", go to "page a"

if user input is: "value b", go to "page b"

and so forth, if no value matches, go to "page c"

i saw a similar example using radio button but i could not modify it successfully to use text field

View 4 Replies


ADVERTISEMENT

Clicking And Dragging A Link To A Text Field?

Feb 1, 2010

Is it possible to click and drag a link (either text or image) to a text field (or something similar) and have it display the URL of the link?

View 1 Replies View Related

Turning A Text Link Into A Form Field?

Nov 20, 2011

I'm working on a web app where a profile is displayed to a user. The profile consists of data pulled from FB and LinkedIn via their respective API's. I'd like to provide the user with the ability to add more detail to the profile. I've scoured the web looking for a way to use Javascript to change an HTML element from a link to a form field but couldn't find exactly what I was looking for.

For example...

Profile:

Education: College Add Major

And when the user clicks the "Add Major" link, it turns into a form field. I'm not much of a front end developer but I'm working alone on this project so I have to wear a few hats.

View 6 Replies View Related

Click One Of The Link Its Have To Copy In A Form In A Text Field To Anothersite?

Feb 2, 2006

I have a popup window, and in that window i have some links

my question its:

then i click one of the link its have to copy in a form in a text field to anothersite.
its the site there i get the popup..

1. have a site whit a form there are some text field and one of the field have a link to popup.

2. then i get popup and in the popup there are some links. so then i click on link, its have to copy this linie / Text then i click on it, its have to copy into the field in site"not popup site" the site there i have the form.

View 1 Replies View Related

Any Way To Make Content Inside Input Text Field A Link

Sep 1, 2010

Is there a way with javascript I can make the content inside input text field a link? If yes can anyone direct me to that script?

View 2 Replies View Related

OnClick Adds Text Field To Page (Limit 3 - Each Text Field Displays Different Text)

Nov 22, 2010

I have a text field (field1) already displayed on the HTML page. However, there's a link where you can add additional text fields to the page as well. When the link is clicked, the second text field is added successfully (field2), and when the link is clicked again, the third text field (field3) is added successfully. However, the third field does not add itself to the page, and the text for anything greater than a third field also isn't displayed after. This obviously means that my "fields" variable is not working right

<script language="javascript">
fields = 1;
function addMore() {
if (fields = 1) {
document.getElementById('addedMore').innerHTML = "<input type='text' name='field2' size='25' /> <span>Field 2.</span>";
[Code]....

View 2 Replies View Related

Linking Html Pages - Link Two Html Pages?

Jul 19, 2011

How to link two html pages? If we use <a> then what do wr give value to href?

View 3 Replies View Related

Fun Way To Link 2 Pages Together

Aug 10, 2004

I was experimenting and I figured out a fun and cool way to two pages together by going back one page in history. The codes can be found here (MUST be named page_one and page_two and be placed in same folder/directory)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
<head>
<title>Home</title>
</head>
<body>

<div align="center">
<font color="black" face="verdana" size="2"><b>
You are at home. If you want to go to school, go
<a style ="text-decoration:underline;color:#000000;size:2" href="page_two.html">
here
</b></font>
</a>
</div>

</body>
</html>


...And page two..


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>School</title>
<script type="text/javascript">
<!--
function question()
{
if(confirm("If you are homesick click OK. If not click Cancel"))
{
history.go(-1);
}
else
{
alert("Not homesick? Stay here then")
}
}
//-->
</script>
</head>

<body>
<div align="center">
<font face="verdana" color="black" size="2"><b>
Your at school. Are you homesick? If so, go
<a style ="text-decoration:underline;color:#000000; "href="#" onclick="question();">
here
</a>
</b></font>
</div>
</body>
</html>

View 1 Replies View Related

One Link Opening Two Pages

Sep 27, 2003

I want one link to open two pages inside two imageframes (just to make it easier).

View 4 Replies View Related

Hidden Link On All Over The Pages?

Oct 9, 2010

I'm searching for code for hide link in all over my site pages, it could be java script or anything.For example; when a visitors enter my site then when he first click to any link or anywhere in the page including blank white section of the page then automatically load another link in new tab (not new window) for one time only, this site using same thing what I'm wanting. After page load When you click anywhere in this site a new tab open with the link of top66.ro for one time only. One time per one visitor.

View 1 Replies View Related

"Read More" Link / Button To Show / Hide Complete Text Field's Output Content

Jul 18, 2010

I have one long text field in HTML to feed text as input in my page. the entered text will be shown as output text after some operations.In this context, i need to display few text(say 200 chars) only and i need to provide READMORE link/button which would show me the complete content of that text field. I need to achieve this shortly!

View 2 Replies View Related

Link Images From Different Pages With Zoom In / Out

May 1, 2009

I have several images that I want to link from different pages but I also want to have the ability to zoom in and out on the images. My initial thought was to build HTML pages for each image with the zoom function added to each page but thought there would be an easier way so here is my question: Can I create a page with the zoom function and an empty DIV and have the links from other pages open a new window and load the image into the div? I have something similar using iFrames but am wanting to avoid frames if possible.

View 9 Replies View Related

Disabling The Link For Nav (parent) Pages?

Sep 19, 2009

Am trying to disable the links for my drop down menu, just the parent links because there is no page for the parent links only the drop down. I dreamweaver I simply used a hash in my code but now am in wordpress and this is not possible.. gave me the code

Code:
<script type="text/javascript">
var $j = jQuery.noConflict();[code]....

Which did work, but for some reason does not now.. I would only like to disable those links that have a drop down menu bit[url]....

View 4 Replies View Related

Form Text Field/SUBMIT Links To Onsite URL - On Home Page - Text Field And Submit Button ?

Feb 22, 2009

I have a website containing 26 subdirectories 'a' to 'z'

On the home page I want a text field and submit button

If someone for example types 'j' it will go to the 'j' folder home page

Does anyone know where I might find code like this?

View 1 Replies View Related

Same Text - Different Pages?

Mar 7, 2009

You know when you have a menu on a page, and have.. let's say.. a 100 other pages.

Say the menu is like this:

Now: you want to add a page to this menu. Instead of adding a page to every single menu, could you have (earlier) edited in this:

Or wouldn't this work?

I asked about how to do this in another place once, and got a reply about using 'PHP inputs', but I'm using tutorials for JavaScript now, and it seems like this would do it. Would it work?

View 3 Replies View Related

Require Text Field Only If Another Text Field Is Not Blank

Oct 10, 2007

I am trying to create a javascript form validation that will make a text field be required only if a previous text field is populated. If the first text field is blank, then the second field can be blank as well.

View 2 Replies View Related

Pre Populate Text Field Based On Another Text Field

Jan 23, 2010

I'm developing a web page. It includes 2 text boxes. One text box for city and another text box for std code. I wrote the code for auto suggestion to city. Now i want to pre populate the STD code when ever a known city is selected (when city is selected from the recommendations displayed for city field).

View 8 Replies View Related

JQuery :: Highlight A Radio Field And Then Pop Up An Input Text Box Field?

May 13, 2010

I am trying to make some dynamic effect to a HTML page using JQuery.<br/> 1.<br/> When the user clicks a Radio field, the field will be highlighted.<br/> 2.<br/> When the user clicks the Radio 'Man', <br/>a Input text box will be provided immeditely just below it.

Here is my simple HTML page, but I don't know how to do with the JQuery part:

<Table>
<TR>
<TD>Gender</TD>
<TD>

[Code]....

View 1 Replies View Related

Dynamically Showing Field Based On Text Value From Another Field?

Nov 18, 2009

I have a text field, call it income, that when the input is > 0 I need to dynamically show the next text box, and if it is blank hide the next text box. I would like to use onBlur but can't seem to get it to work.

View 5 Replies View Related

JQuery :: Including External Pages / Selecting Text Fragments?

Jan 9, 2011

I want users to specify external sites, a) include them, and let b) users annotate certain paragraphs of text.

a)

As this sites are external (not on the same domain) I cannot use iframes since I cannot select text then, as I understood, right? So I need to create a proxy page which integrates them in the local domain. If this works, I guess the problem are relative urls - does anyone know a good way to correct these? Furthermore, do I need an iframe, or is there another way?

b)

I would like users to be able to select text paragraphs and add a description. Ideally I would get XPath for the selection. Is there a tool/plugin to do this? Like select some text and get the XPath for it?

View 1 Replies View Related

Replace Link Text And Change Link Behaviour

Jun 24, 2010

Can anyone explain why replace doesn't work in the code below, the anchor text doesn't change when I click on the link.I will be happy if someone can tell me

1. how to change the linktext to "Hide information" when I click on the link.
2. how to hide the showInfoText (which has been visible when I clicked the first time) when I click on the link - now with the text "Hide information" - again.
3. how to make the link clickable again. Just now it is only clickable once.

View 3 Replies View Related

Go To Next Page - Load The First Page Of A Series Of Pages Into An Iframe When You Click A Link

Aug 15, 2006

1. Load the first page of a series of pages into an iframe when you click a link
2. On each click load the next in order page
3. When last page has loaded if clicked again will start from the beginning.

What I am doing: I am creating a tutorial for a friend who cannot figure out how to use her new rental management program. I could use a manual slide show to have her click for the next image however, there are a LOT of tutorial images which show her what to do at that point. Her program contains a great number of setup screens, report screens etc. This means the slide show would be sitting there loading all these images before it will work. So, I figured, OK make a page with an iframe, and then I could put each image on it's own little page i.e. page1, page2 etc. Place a little button, or a next link, then have the link load the pages into the iframe in order.

View 5 Replies View Related

How To Separate A Html Text In Order To Print Each Part In Individual Pages?

Jul 23, 2005

I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.

In other words, I have a single html text that contains different
informations that are displayed alltogether in the same browser.
When I print this page, the browser should put each different subject
in a separate page and not having it all mixed up.
Is it possible? How should i do it?

View 4 Replies View Related

Linking Text Field To Hidden Field?

Apr 2, 2009

I have created a html purchase request form that people will fill out and submit to make purchase requests within my company. In this html form, I have a text field that is automatically populated when the page is pulled up. The text field is populated with the name of the person who is logged in and it is read only so they cannot be deceitful or anything.To get to this HTML Request form, you must log in through a webclient thus the server knows to populate your name because you are the one logged in. The text field populates because of its <input NAME = "OBProperty_CurrentUserRealName", which is a keyword the program identifies and knows to populate with the logged in users name into that particular text field.

That works all fine and dandy, so here is where the problem lies. When submitting the overall form request, the populated name isnt being saved/ carried over to the admin page so we do not know who it was submitted by.To make the persons name carry over and save, another field name keyword must be used.

Which is OBKey__163_1. Which it was suggested to me to make that the input name of a hidden field. I need "text field A" to continue to populate the form with the persons name using OBKey_CurrentUserRealName, then pass the persons name off to a hidden field containing the input name=OBKey__164_1, which will thus save/pass the persons name on with the rest of the filled out request form when its submitted.

Here is what I have:

<input name="OBProperty_CurrentUserRealName" type="text" id="buyer" style="width:100%" readonly="readonly">
<input name="OBKey__163_1" type="hidden" id="OBKey__163_1">

View 3 Replies View Related

Get The Cursor Start And End Position Of A Selected Range In A Text-field Or Text-area

Jun 17, 2010

I want to get the cursor start and end position of a selected range in a text-field or text-area. i tried lot of functions in various forums. but when the last character of the selection is a new line character JavaScript ignore it in IE6. any one having idea ?

View 1 Replies View Related

Force Insert Text Into Form Text Input Field Onload

Apr 13, 2010

Have a small problem with a cms whereby when i try to insert default text into an input text field using the "value" attribute it gets deleted. I was thinking to force insert the text in there when the page load with javascript but not sure exactly how...

<p><input name="vericode" id="vericode" value="This text doesn't display!!" type="text" onclick="value=''"/></p>

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved