Pass Infor Between Web Pages In The Same Window
Nov 2, 2005
I want to supply the previous page in current window with a string from
current page and the content in the previous one is changed
accordingly. I use <DIV> innerHTML to accomplish the DHTML and run
below JS in current page when deciding to go back.
window.history.go(-1);
document.getElementById('ObjA').innerHTML='my string'
But the "document" still refers to current page, even though I add a
document.clear() and location.replace() statements right after
window.history.go(-1).
I find the archieve of this Group mentions a few solutions for a
similar problem, however they don't seems to work for my scenario.
The first solutin is to append the string to the previous URL. But my
first page was actually loaded from a HTML file and there is no CGI
program to receive the string.
The second solution is to use cookie to pass the infor. It seems the
string is to saved in the "document" object though. Since the
"document" is not updated, I won't be better off. Another problem is
this solution requires cookie to be turned on in the browser.
View 2 Replies
ADVERTISEMENT
Mar 15, 2011
I am new to jquery. The project reuirements specify using jquery and java scripting. I have several web pages that set variables. I need to access these variables on another page.
What is the best way of doing this? Can yoy give me an example?
View 1 Replies
View Related
Mar 15, 2011
On the response to my first post, "Passing Variables", I see how to use the cookies. How would I use session variables? I thought you could not access them via jquery.
View 7 Replies
View Related
Oct 21, 2009
I need to pass values from one html page to another without using forms. Is this possible . Can i access these values using javascript.. Please help me with a code sample
View 1 Replies
View Related
Dec 8, 2010
I am trying to set up a page that will allow a user to enter their name into a text field and click a submit button. When the button is clicked, the name that the user entered is passed into a cookie, and displayed on the page at the same time.
However, I am having issues getting the name (i.e. the value of the cookie) to be passed along to other pages within the site as well.
I am using jquery to code the JS with. I have the first page all set up and it works beautifully, but when I try to use the getter for the cookie on the second page I get nothing. I am using a cookie plugin for jquery that I found here.
View 3 Replies
View Related
Dec 18, 2011
I have an array that has user accounts and need to pass it to another page. How can i do this? My teacher said we can only use html and javascript.
View 6 Replies
View Related
Sep 23, 2010
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.
View 3 Replies
View Related
Jun 22, 2009
My scenario is like this.
1. Click on button and pop up child window.
2. Select multiple checkbox and submit array which send back to parent window and value store in a hidden variable.
i manage to do pop up child window, pass textfield value to parent window. But it cant send php array to parent window. Please help. I'm not good in js. code...
View 3 Replies
View Related
Jan 19, 2003
how I can populate the value of an input field on a parent window from a selected item (of a form - listmenu) on a pop-up window? Basically, I need to pass the value of one form to another form located on a different page...
View 1 Replies
View Related
Jun 2, 2011
Basically I have created 3 pages - index.html, page1.html + page2.html
I have 2 links in index.html that link off to page1.html + page2.html
My question is, can I use javascript in such a way that if I click link 1 then page1.html opens in a new window but if I then click link 2 then page2.html appears in the window that currently has page1.html?
View 3 Replies
View Related
Sep 19, 2009
My sites has a menu on the home page linking to a dozen other pages. My intention is to open those items into a main iframe also on the home page.
I have put the <base target="iframe" > in the <Head> area and all seems to work in Opera but Internet Explorer and Firefox will both open new windows instead of loading into the iframe.
Having said that. Links from WITHIN the iframe will open correctly in all browsers.
View 4 Replies
View Related
Feb 15, 2005
how to pass a value from radio button in a window to a popup window using asp javascript?n in the popup window,there is a textfield to enter data to search from database.. the value from the textfield then is used to generate report.
View 1 Replies
View Related
Jan 8, 2010
i want to send a html / javascript 'document.write' object from the first window to the textarea of second window to send it to email, The code snippet is thus:
FIRST WINDOW
_____________________________________________________________________________
<html>
<head>
<script language="javascript">
[Code]....
View 6 Replies
View Related
Mar 29, 2005
May I know how to pass my value, insert the <td></td>, to the popup window's text field?
after that, can I pass the value that i change oledi, back to the page that open the popup window?
View 3 Replies
View Related
Feb 25, 2009
I have a web page that has javascript code that computes some values.
I want to pass thses computed values to the next popup page for some calculation.
The code is as below..
to print calculated values on the screen.the problem is how to pass these values to next page.
View 1 Replies
View Related
Jan 10, 2010
I need to pass a value from parent JSP to child window / pop up window.
in pop up window, i have a textbox which has id as rs and name as remSeconds
from parent i need to pass the value calculated from a timer which is remainingTime. code...
View 13 Replies
View Related
May 27, 2011
I want to be able to pass the width of a window to CSS properties. Specifically I would like the width and left-padding of a DIV to be the exact pixel width of the browser window. Ideally, if the user resizes the window, the CSS would update. What is the simplest way to do this?
View 4 Replies
View Related
Mar 29, 2002
I was just wondering two things about javascript:
1. Is it possible to open a new window and pass in some HTML code? For example:
Code:
window.open('<HTML><HEAD></HEAD<BODY>Hello World</BODY></HTML>', 'test_window', 'width=400,height=200');
2. Is it possible to pass in HTML code (using javascript) to an iframe window on the same page? I just want to update the text in the iframe. For example:
Code:
Some HTML code...
<iframe name="STATUS" src="" </iframe>
<script LANGUAGE=JavaScript>
document.write.iframe.STATUS('<HTML><HEAD></HEAD<BODY>Hello World</BODY></HTML>');
</script>
View 1 Replies
View Related
Oct 25, 2011
<table border="1" bgcolor="#C0C0C0" cellpadding="3" cellspacing="3"width="250">
I want to display value of label "word file.doc" etc in pop up window when i check checkbox and click on button.
View 2 Replies
View Related
Jul 23, 2005
I'm trying to figure out how to tackle this problem: I have an XML
table with a cool grid in which users can select a table row. When
they right-click on a cell, they get a modal dialog window with a
selection menu. What I want this thing to do is display the different
values in the row, so that users can make a selection: eventually I
want it to be a filter option > in the selection menu, users can
select the value on which they want the whole table to be filtered.
However, I'm seriously lacking js-skills so I don't know how I should
pass the values from the table row to the selection menu. Code:
View 3 Replies
View Related
Dec 21, 2009
How do I pass a PHP variable into a window.onload event function? I have a URL that I need to pass to the JavaScript file that has this function in it. The JavaScript file itself is being linked from the PHP file that will pass the variable and I've seen many examples of how this is done via embedded JavaScript, but none where someone is linking to an external JavaScript file. I suppose this is probably a trivial matter to most of you, but I've never done this before and could use some guidance!
View 16 Replies
View Related
May 6, 2011
I have this [code]...
It works perfectly fine in IE but it won't work in firefox. Both link and var does not appear in the URL when I get to index.php.
Can anyone explain why? How is it not working in firefox?
View 1 Replies
View Related
Jul 3, 2007
I would like to print a Web page with javascript method window.print() without pages number and footer.
View 7 Replies
View Related
May 13, 2010
I have a text box in a popup window and i need to pass the value from the textbox to the parent page.My problem is iam able to pass the value at the 1st time,but the next time when i try to do this im not getting the value.The thing is if i referesh the parent page every time iam able to pass the value.
View 8 Replies
View Related
Sep 27, 2009
I coded the following JavaScript:
var el = document.createElement("iframe");
el.setAttribute('id', 'ifrm');
document.body.appendChild(el);
el.setAttribute('height', 250);
[Code].....
And am putting it between <script type="text/javascript"> and </script> tags in the <body> section of my site. But, it only works in certain areas of the page.
View 6 Replies
View Related
Aug 3, 2010
I need to pass the current window location through a hidden input to a php form handler. I tried this:
Code: <input type='hidden' name='curpage' value='javascript:window.location'>
And this: Code: <input type='hidden' name='curpage' value='javascript:print window.location;'>
View 2 Replies
View Related