Use The Input And Selections Made From The User To Adapt The Next Webpage
Jun 2, 2011
i am looking to create a simple travel website where the user inputs details into a form or selects options from a drop down menu. When they submit their details they are taken to another webpage were simple adverts on the side of the webpage will relate to the options they selected from the drop down menus. For example: I select New York, and some dates. The advert on the next page will say 'Going to New York, stay at this hotel'
It will say the same if another city is selected but with the city name changed and the hotel name changed. On the second page i will ask the user to fill in personal details in a form, and again after they click submit, they are taken to another webpage and the advert will change, maybe including their name and some other details.
Is this possible and how would i go about it? The adverts only need to include some simple text for now. If the text can srcoll or move that would be a bonus. I have looked through many books and searched the web and cant find anything. I just want to use the input and selections made from the user to adapt the next webpage.
View 1 Replies
ADVERTISEMENT
Mar 1, 2010
I'm not one for making my own scripts, so not quite sure about the best way to go about doing this. I've got a form with 2 different sets of radio buttons. Upon submitting, I'd like to redirect the user to a certain page, based on the selections they made among the radio buttons.
View 2 Replies
View Related
Sep 29, 2010
Issues with Safari in relation to javascript compatibility? I have a page that loads dynamically through user selections as follows:
There is a set of three radio buttons. The user selects one and a div opens revealing a select box populated with entries related to the radio button selection.
When the user makes a selection from the select box, one of two things happen.
1) If there are child records relating to their selection, a second div opens revealing another select box containing the child entries relating to the first select box choice. Or
2) if there are no child entries relating to the selection in the first select box, a div opens displaying a description relating to the selection they made in the first select box.
The data is all coming from prepopulated javascript arrays. This works like a dream in IE and Chrome. Unfortunately, when we were in the final stages of testing before release to a live environment, we discovered it works in Safari only as far as the user makes a selection from the three radio buttons driving the opening of the first div layer containing the first select. At this point it stops working completely. On top of that, I cannot find where in the latest release of Safari, that I can see any javascript errors (or if I even can).
View 5 Replies
View Related
Jan 22, 2009
how to set a cookie for this jquery script so that on page refresh it remembers the layout the user made? [URL]
View 1 Replies
View Related
Aug 19, 2011
Why is the input type = radio on this page is not getting the value assigned to it after the user clicks on the related selection? Here is the page under development: dreamdates.com - TOTALLY FREE online dating service - You can see this by selecting a choice for "I am a: " Radio button selection. I have set up Javascript code, alert, which will tell you that that selection is "Undefined" even though you have selected male or female.
View 4 Replies
View Related
Feb 24, 2009
I need help with user input. I need to restrict the user to input age greater than 17 and weight restricted to the range of 80-300.
My code is not working:
View 6 Replies
View Related
Aug 8, 2011
Trying to adapt my working email code to work on a different page... I have VERY little javascript experience...and don't know proper syntax. I want to put this on a page that is created with a while loop (php) and has many members on one page. So it needs a unique identifier for the form (and I think each field in the form) so it will properly update back to the correct section of the while loop (instead of just the top one like it does now.).
Javascript
var thisRandNum = "<?php echo $thisRandNum; ?>";
// Start Private Messaging stuff
$('#pmForm').submit(function(){$('input[type=submit]', this).attr('disabled', 'disabled');});
function sendPM ( ) {
var pmSubject = $("#pmSubject");
[Code]...
View 3 Replies
View Related
May 5, 2010
I want to give the user possibility to paste an image into a webform. I don't need to display the image, all I need is the image's location.I know it's possible because the guys at CKEditor(and other editors) are doing it. If you go here, [URL] and paste an image you copied and then right click on it and go to image properties you'll see they have the image's address. How can this be done?
View 2 Replies
View Related
Mar 18, 2010
I am a newbie in web development. I need to create a function that works whenever user print a web page, I would like to get the date and record that date into database. Additionally, the function must work on IE & Firefox. There is onbeforeprint() event in JavaScript, but that only works in IE.
View 2 Replies
View Related
Oct 20, 2011
I wish to automate the population of a page by prefilling form values such as select boxes as well as fire off the change event after the value has been set. However there are at least 3/4 select boxes on one page which need populating automatically.
This works fine for the first element but not for subsequent elements all in one go when use the Trigger method of Jquery.
e.g.
$('#category').val(5);
$('#category').trigger('change'); <-- stops here.
$('#unit').val(8);
$('#unit').trigger('change');
The change event on category seems to break the flow and does not pass control back to carry on the order of processing.
View 1 Replies
View Related
Jun 15, 2011
I am trying to create a text area input filed for user input, and i want to be able to allow the user to format thier text, just like the ones used in this user forum. I am writing my website in html, php, javascript and css with a MySql database. I am trying to understand how to create such an format-able text area for input.
View 1 Replies
View Related
Dec 2, 2011
I'm trying to set up a web page to display a video when a user clicks on a link. So far, it works fine in IE and Chrome, but it won't work in Firefox.[URL]
View 2 Replies
View Related
Sep 6, 2011
Im modifying some open source code and in this instance I would like to write some data to a file (possibly for the user to download). In this code the user can toggle the hidden exportData to be shown on the webpage. However, I would like to give the option of downloading/saving the data as a file (only the exportData which I believe is the document.getElementById("path")). I have tried various tricks found online, but have yet to produce the hoped for result.
Code:
View 1 Replies
View Related
Mar 28, 2006
I would like to use a date picker on a web page input form. I found one which does what I want but the date format it outputs is not correct for my form. The script contains the following:
// datetime parsing and formatting routimes. modify them if you wish other
datetime format
function str2dt (str_datetime) {
var re_date = /^(d+)-(d+)-(d+)s+(d+):(d+):(d+)$/;
if (!re_date.exec(str_datetime))
return alert("Invalid Datetime format: "+ str_datetime);
return (new Date (RegExp.$3, RegExp.$2-1, RegExp.$1, RegExp.$4,
[Code] .....
I am not familiar with JavaScript and have not been able to figure out what changes I need to make in order to get the output I want. I tried to contact the author, but his email address no longer works. What modifications are necessary. The output format I'm looking for is YYYY-MM-DD (no time).
View 5 Replies
View Related
Jan 4, 2011
I created a web page having textbox and an update button. My need is to display data in the text box when page is loaded. After that when I click on the textbox it will become an input textbox and can enter data. when data entered completely, click on the update button, after that newly entered data must be displayed on the text box. i.e same text box will be used for input and output data.
I created my web page using html. I knew that, by using ajax i can implement the above functionality. but i didn't get any idea to write the code.
View 4 Replies
View Related
Sep 1, 2011
I'm now working on kind of invoice form which in it the user can add as much input field as he wants.
The problem is that after adding a new input field - the content in the other fields is deleted.
Code:
View 8 Replies
View Related
Jan 16, 2010
On a single form, I need to capture the users input on this input box
HTML Code:
<p>
<label for="Student ID">Student ID
</label>
<input type="text" name="sesStudID" />
</p>
to this input box HTML Code: <p><label for="User Name">User Name</label><input type="text" name="sesUserName" disabled="disabled" /></p> so as the user inputs to the first input box it will at the same time appear on the second input box.
View 5 Replies
View Related
Mar 17, 2011
I am trying to design a web page with multiple input fields to use the keypad, but I also want the prompt to change with each field
View 1 Replies
View Related
Apr 17, 2006
I want to restrict the user from being entering the value in <input type="file">. It works fine in IE but not in Mozilla. I am sending my code also which works in IE and not in Mozilla...
View 2 Replies
View Related
Sep 16, 2011
I haven't been able to find out how to get input from the user. What would be the equivalent way to this line of code in javascript?
do {
String str1;
cout << "blah blah code" << endl;
cin >> str1;
[Code].....
I would like to get '10_01_root_raw.txt' as a string variable from the user, so I could use a different text file as needed.
View 2 Replies
View Related
Jan 18, 2006
I have a textfield where i would like the user to input only Y or N.
can somebody tell me how can i restrict the user from entering any other character, number or special character.
View 10 Replies
View Related
Jul 20, 2005
Is it possible to open a browser window from a javascript for the purpose of
gathering user input on a form and then use data from the form in the
javascript? How do you get the data from the form into the script?
View 4 Replies
View Related
Nov 26, 2011
I just joined the forums (literally) and just started coding (mainly with CSS and HTML) about 3-4 weeks ago. I'd really like to get into JavaScript to make cool things happen on my website. With that being said, I've come up with a pretty cool idea but am not sure how to go about my problem.
Enough with the chit chat. What I'm trying to do is add text to a user's input. For instance, if they write "Hello", the function should automatically add "World" to the output. I'd ideally like for the output to be searched on Google (think search engine) with the results displayed on a new page.
View 5 Replies
View Related
Jun 10, 2011
I'm adding the ability for the user to input his own values into 6 input fields, some or all of which may be left blank. I have already an array populated (thanks to Paul Wilkins) with default values. How do I get the user's values into that array so the calculations will be performed on it?I got this far, but was unable to understand the problems brought up by JSHint.com.
User input:
HTML Code:
<tr><td>
Alternate spur values:
<input class="display3" type="number" size="14" value="" name="spur1"><br>
[code]....
View 3 Replies
View Related
May 28, 2010
I want a js that will have the user select from a drop down list a venue, then enter their username in one textbox, and password in another, so they're taken to /venue/username/password.html. Eg. If the soccer player frankie has password 1111, he'll be taken to /soccer/frankie/1111.html.My code at the moment is this:
<!-- Begin
site = "http://www.mysite.com.au/photos"; //
function combineMenus(frm, menu1, text1, text2) {
[code]....
View 4 Replies
View Related
Oct 17, 2011
I'm new to javascript and am failing at something quite basic. I'm trying to route users to a specific page based on what they input in a text field. I need to list some zipcodes (in the javascript?) and if they enter a valid zipcode, they are directed to one page and if it's not on the list they will go to another. Please could someone let me know what's wrong with the code?
[Code]...
View 4 Replies
View Related