Passing Input Value From One Page To Another
Jul 15, 2011
I'm trying to build a store locator and trying to figure out how to pass an input value from one page to another page. User would input their zipcode or address in a form on one page and the map and locations would be called on another page using the input. I'm using ehound store locator platform (sample - here -> [URL] The map/locator script is this
[Code]...
I've looked around on passing inputs via php and such, but this script seems to call on javascript as well and I'm having trouble implementing anything that works.
View 5 Replies
ADVERTISEMENT
Jul 31, 2009
I've been searching for a few hours and haven't been able to find a code snippet to see if this is available. I'm attempting to pass text from my website to another website that has a form setup on it. I'd like to fill in the pertinent data for my users on the page that I load for them. I cannot make any changes to the receiving page as it is run by another company. I've pasted some of the code that is available on the receiving form.
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
[Code]....
View 5 Replies
View Related
Nov 28, 2011
I am trying to call a javascript autocomplete function but I want to use a variable instead of an input field ID So this is my fuction:
$(function() {
$("#tags").autocomplete({
source: "search.php?field=field1"
});
});
<p><b>Field:</b><input type="text" input id = "tags" name="field1" size="60" ><br>
Basically I want to use the same function for numerous input fields, so how can I pass a var instead of the input id?
View 4 Replies
View Related
May 23, 2010
here is my problem :
my example url : [URL]
I need a JavaScript code that can get type , name & id from my example url and pass them to a form input value.
Code:
<form name="myform" >
<input type = "text" name = "type" value = type =111 >
<input type = "text" name = "name" value = name=jack >
<input type = "text" name = "id" value = id=2 >
</form>
i can't change my form input tag properties . i don't have access to it's value notice that i need a java-script code that it don't use a method in input tags and it can change the value of that input.
( i am creating a form using CCK in drupal & i don't want to use views module for some reason)
View 4 Replies
View Related
Aug 10, 2010
I have a PHP based calendar where the cells will change color depending on the number of clicks.. this all works fine, but is pointless if I can't send the outcome along in an email. I can do this with PHP but first need to get the values into a hidden field. This is what I have:
[Code]....
All I'm trying to do is populate value with either 'available', 'not available', 'working' or 'not set'... however, it is worth noting that each cell may have a different value, e.g. 1 cell might be working while the other is not available... so i need to pass the values of all the cells.
View 1 Replies
View Related
Mar 15, 2011
So I have a basic form and I'm unsure of how I can pass the current URL of the page to that form so that it may be processed in a PHP file and return the user to the current page. Given the nature of what I'm writing this must be done in Javascript and not PHP. However I'm not really understanding the information I'm finding online.
[Code]...
View 3 Replies
View Related
Aug 10, 2010
I have a PHP based calendar where the cells will change color depending on the number of clicks.. this all works fine, but is pointless if I can't send the outcome along in an email. I can do this with PHP but first need to get the values into a hidden field.This is what I have:
Code:
<script type="text/javascript">
function countClicks (obj){
[code]....
View 2 Replies
View Related
Mar 14, 2011
I'm using Keith Wood's jquery plugin to produce some graphs for my site. Though I've been able to produce "static" ones, I'd like the user to be able to input a new constant and then have my graph update it according to what they enter. I'm not quite sure how to add the value that the user inputs to my linear function below. So far I have:
Code:
<input type="text" size="1" id="plotit2" name="plotit2"/>
for the user to input the desired change. Then I have:
Code:
$('#plotIt1').click(function() {
var svg = $('#svgplot').svg('get');
svg.plot.noDraw().addFunction('lingraph', linear, 'blue', 3).redraw();
[code]...
I've parsed down the code to what I think are the important points but if I can clarify anything I'd be happy to do so.
View 2 Replies
View Related
Oct 10, 2006
I have an array for of input names. Input1 , input 2 etc. Can I pass the input names in a loop like document.all[input].value="xxxx"
The problem is document.all cannot be used in Safari/firefox, I tried using document.getElementById but my inputs do have any IDs. is there any way of accomplishing thsse.?
View 6 Replies
View Related
May 27, 2004
I have a bunch of forms in my page, and want to pass a reference to the current form to a javascript function - when, say, a user clicks on a particular element. Normally, within any type of input field, I'd just add something like this:
onclick="my_function(this.form)"
Then, in my_function( form ) I could refer to form. No worries.
But here's the interesting bit. I also want to run the same function when the user clicks on any <a> tag within a form, like:
<a href="javascript: my_function(this.form)"> ... </a>
Problem is, with this code, the form reference isn't passed to the javascript function. the "this.form" bit doesn't work...
I find this rather curious. So the question is, how do I pass a reference to the current form from within a non input field?
View 5 Replies
View Related
Aug 2, 2011
I have a textbox and button in html, and when something is fill in the textbox, i want to pass the value of the textbox to ajax, data: '{"name": theName}', I couldn't seems to get it to work.
Of couse when i use string value, it works just perfectly for example: data: '{"name":
"Joe"}',
HTML Code
<input type="text" id="theName" name="theName" value="" />
<input id="callAjax" type="button" value="Submit" />
<script type="text/javascript" src="Default.js">
</script>
[Code].....
View 1 Replies
View Related
Aug 20, 2001
I have a page where you can dress someone up in silly clothes using a skeleton image, and several items of clothing as gifs in dragable layers. Code:
How can I use a bit of j'script to grab the X and Y values of each layer and then put them in to a load of hidden form fields?
I then intend on having the user click the submit button when they've put all the stupid clothes in the wrong places... and saving the results in a database.
View 1 Replies
View Related
Oct 20, 2009
I have an email which has some values attached to a link in the email that get passed to an online form on a website when clicked. Problem is the value is a price and the string includes a "$" which I need to remove. I've read through many examples and everyone seems to have an opinion (surprise). One suggests something like this: text2.value=text1.value.replace(/$/g,""); While someone else says its better to remove what you don't want. I am also scratching my head over should I place the value into a hidden field, scrub it then copy that into the proper field? and I imagine the best way would be to run it with an "onload" command instead or a event handler like a keystroke since the field is not typed?
View 4 Replies
View Related
May 11, 2010
I wrote this form to try to display the value of the chosen radio button on a text input.
<form>
Choose one choice...
<input type="radio" name="group1" value="5">Five<br>
<input type="radio" name="group1" value="10">Ten<br>
<input type="button" value="Get Result!" onClick="T1.value=group1.value"><br>
[Code]...
How come the onClick="T1.value=group1.value" results in undefined instead of 5 (or 10) ?
View 1 Replies
View Related
Mar 5, 2009
To sum up this issue, I have a parent page, which holds some values in hidden input fields passed to them from the url. On this page, I have an iframe with a form in it, to which I want to pass values from these hidden fields to be displayed for the user in the iframe form. In IE, it works. To accomplish this, im just simply doing a <body onload="GetInput()">. The GetInput function does the following, but for about 10 fields:
Fnamefield=document.getElementById('firstname').value = parent.document.getElementById('firstname').value; Thats it. Once the page loads, i see my values. In firefox it does not work. I know the hidden fields are getting their values, but thats as far as it makes it. I have tried calling the GetInput function after the form is written out and not in the body tag, which still works for IE, but not FF.
View 3 Replies
View Related
Jul 23, 2005
My code works but because I'm using VBscript within JavaScript I get an error
message...the yellow tri-angle with an "!" mark.
---------------within my body-------------
<script language="JavaScript">document.write(formatCurrency(<%=Request.Form
("total")%>))</script>
------------------------------------------
My script takes the form element "total" from the previous page and sends it
to a function for formatting. Problem is...JavaScrip just doesn't like
VBscript. How do I get the form element using JavaScript?
View 3 Replies
View Related
Jan 29, 2009
i have a hidden filed with a value want to pass this value frm one page to another using
[Code]....
in second page i have used request.form("field name") but getting balnk
View 1 Replies
View Related
Jan 21, 2010
I've made a page to listen to The Dutch Top 2000 ever.. Example : [URL] After that I want my fewers/listeners to put a new youtube link to my database by giving input from my page. Example: [URL] For my database it is required that the input only 7fXaC07X5M8 instead of the complete link. [URL] My probem is how to handle the input in my form by javascript:
<td><input type="text" name="YourLink" size="256 maxlength="256" value="http://www.youtube.com/watch?v=7fXaC07X5M8&feature=player_embedded#"></td>
To a striped link :7fXaC07X5M8 what is accepteble for my database
View 4 Replies
View Related
Sep 8, 2005
I am doing this:
window.location="page2.php?subj="+subj+"&body="+body;
to send information to another page.
However, I don't want that second page to show up or display in any way.
There is only behind-the-scenes work going on in that page.
How do I pass the information to that page so that it is only processed and
does not launch a window?
View 10 Replies
View Related
Feb 12, 2006
I am trying to pass the value of a field to a PHP file like this:
<input type="hidden" name="field1" id="field1" value="123">
<input type="hidden" name="field2" id="field2" value="456">
<a href =
"test.php?c1=document.getElementById('field1').valu e&c2=document.getElementById('field2').value[color=blue]
><img src="add.gif" border="0"></a>[/color]
In test.php, when I do:
c1=$_GET['c1'] ;
echo c1;
I get:
c1 = document.getElementById('field1').
View -1 Replies
View Related
Aug 7, 2006
I've been Googling & can't find a consistent cross-browser (IE & Firefox) answer to this...
I need to pass some data from inside an iframe, to the parent page
I've got the parent page PAGE1.HTM which contains:
<div ID="mydata"></div>
:
<iframe src="page2.htm"></iframe>
And, inside PAGE2.HTM I will set mydata to a hard string. But in page2.htm do I do
var parent.document.mydata.innerHTML = "my data here'
or
var window.parent.document.all.mydata.innerHTML = "my data here"
or something else...??? to be cross-browser compatible (IE and Firefox mainly).
View 1 Replies
View Related
Jun 10, 2011
I want to pass 2 variables from a html page and collecting in another html page using javascript. Say I pass xyz and abc to a page 2.html from 1.html without using cookies. In 1.html page i have many links. each link should be able to pass different variable to 2.html. When some one clicks on a link the variables should be passed to 2.html. I want to know how to collect them and use them.
View 4 Replies
View Related
Mar 30, 2011
i'm doing my FYP, and facing the following problem.below is my code for the javaScript
<script language="JavaScript">
function deleteAccount(ckId){
alert(ckId);
[code]....
View 1 Replies
View Related
Sep 17, 2006
What I want to do is: On a site, when a viewer hits the 'contact us' button, a new page opens with a contact form which will in turn be submitted to a php script on the server.
I want to pass the url of the page that called the form to the php script in a hidden field, so that when the php form handler emails me the form result it tells me what page the viewer was on when they hit the contact me button, and then after that I want to send the viewer back to that page,
In a page I can get the page url using js to get location.href and place it in a variable. But after calling the form page I don't see how to put that variable which I think is global(?) into a hidden form field to post when the form is submitted.
Once it is at the server I have no trouble with the php to do what I want, I just can't see how to get the javascript variable to persist across site pages.
View 9 Replies
View Related
Jun 17, 2011
why this is not passing my values?
Code:
myloc="http://owl.ncl-coll.ac.uk/misc/Intraining/Employability_Resources/Confidence/E3_L1_Overcomoing_Hurdles/pages/actionplan.htm?
[code]....
View 12 Replies
View Related
Jul 27, 2011
how do I pass url value to iFrame inside the same page, for example: I would like to pass [URL] to iFrame where is the function displaying all the items with value = 1. This is all on the same page.
View 1 Replies
View Related