Open A Window With A Variable - Refresh Page On Submit Data
Sep 30, 2010
I want to be able to open a window with a variable. For example, I will use domain.com?reference=1234- This link will open a pop up window as follows:
<a href="javascript:popUp('http://www.domain.co.uk/staff/tpr/update_action_log.php?action_reference=<?php echo $row2['action_reference']; ?>')" title="Click Here edit this entry"><?php echo $row2['action_reference']; ?></a>
When I open this window, it is always showing data put in last, it isnt refreshed. I wanted to open this pop up window, enter data and then click submit and make the data enter the database and then refresh the parent window. Every time I have done this, either the parent or the pop (or both) is showing old data.
View 9 Replies
ADVERTISEMENT
Jan 14, 2010
I struck to open a popup window after submit the page. I used the following logic . but it's not open.
out.println("<a href="javascript:ozPopup('ozPpolApptChangeStartTime.jsp?apt=RptAppt&apptId="+id+"&date="+date+"','PpolApptLov','left=100,top=60,width=640,height=300,scrollbars=yes,resizable=yes');">");
View 1 Replies
View Related
Mar 2, 2006
I know this is a Java Script fourum but since VB and Java are so closely related I thought I would look for some help here. Anyway I am running MSAccess Data Access Pages and need to know if I can open a new browser window from a page created by a parameter query? In breif here is my problem. I used the "Image Control" to bind 6 photos via a Parameter Query with the drive path to each photo stored in a table. So far this works great and the co-workers are impressed. However the photos (Thumbnails) are small and it would be great if I could use the "Image Control's" (on-click) event to open a new widow so as to see a larger image of the photo. As an interim solution I am using the Hyperlink control, however when you click on it the photo opens in the same window and when you click IE's Back arrow the Parameter query prompts the user for the value again. All this could be avoided if the Image control (or hyperlink) could open a new window (with the photo of course), and when finished merely close it. The script
<script language=vbscript for=Image0 event=onclick>
<!--
window.open.
-->
</script>
does nothing without the correct href which I don't know since that information is coming from the parameter query.
View 1 Replies
View Related
Mar 25, 2010
I have a variable with a number value. I use variable++ to increase the value of the variable. How can I pass the new varible into a new window opened with window.open?
View 8 Replies
View Related
Apr 15, 2010
So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).
My code fragments:
View 1 Replies
View Related
Jul 23, 2005
The following will submit the form data to popup by clicking the submit button. I want it will submit the form automatically to the popup, there is no submit button in this page. Basically this page should not show up.
<script type="text/javascript">
function submitmyform(f) {
f.target = 'foo'
window.open('',f.target,'menubar=no,scrollbars=no, width=800,height=800');
f.submit();
return false;
}
</script>
<form name="myform" action="popup.asp" target="_blank" method="post"
onsubmit="return submitmyform(this);">
<input type="hidden" name="item" value="item"/>
<input type="submit" value="submit to popup"/>
</form>
View 2 Replies
View Related
Sep 7, 2011
I'm trying to achieve a notification feature which you see on facebook, myspace and so on. Here the trick that I use:I've pulled a number of data that a user has not been read (where active ='0') from a database to display on a notification icon on the menubar -- the exact notification icon you will see on facebook and myspace -- says 2 unread messages in bright red.As the user click on the notification button to open up a dropdown menu and read their unread messages I process the script and update the active = '0' to active = '1' and refresh the page.The problem is when the page is refreshed, the dropdown menu and the notification both disappeared.How do I remove only that number in red and keep the dropdown menu open, I know that both facebook and myspace didn't even refresh a page.In this case, I don't even know whether I use javascript or ajax. I've stolen (borrowed) the feature from twitter.
View 1 Replies
View Related
Dec 1, 2010
I am running into a problem, that no one else in the world seems to have. When I make a form and submit the page is refreshed, or rather redirected to a state with the values filled after the ? [URL]
I have found solutions that have worked for other people, none of them work for me. I have tested my forms on multiple browsers on multiple systems and the problem persists.
Here is one example of my code where this happens.
<script type="text/javascript">
function checkCC(myForm)
{
var ccType;
var ccLength;
[Code].....
How do I get this to not happen? I've tried almost every fix I could find that worked for other people none have worked for me.
View 3 Replies
View Related
May 26, 2011
Here is what I am trying to do:
1.) Replace the submit button with an <a href"#">. I have been able to accomplish this with just using HTML Code:
[html]<a onclick="document.forms['finish_print'].submit(); return false;">
[/html]... That's easy enough.
2.) This link should then open in an new window, annnnnd that window's size should be resizable. I've been using this technique for other standard links via jquery....
jQuery('a.popup').live('click', function(){ newwindow=window.open($(this).attr('href'),'','height=350,width=600'); if (window.focus) {newwindow.focus()}
However, when attempting to combine these two, I always get an undesired affect. I would provide the entire code, but I haven't been able to get it to work.
View 3 Replies
View Related
Jul 23, 2005
Have a textbox in a form which user types in a url link.
When they click a button I'd like it to open a new window,
and attempt to display the link they've typed in the textbox.
I've got the button calling a javascript with onclick,
but I can't get the window that opens to accept the dynamic url.
The textbox name is txtlink.
var thelink = txtlink.value;
testlinkwindow = window.open();
Is there a way to get the variable as the url parameter of open() ?
The other thing I've tried is setting the location.href of the child window,
but that doesn't work either. :-(
eg
testlinkwindow = window.open();
testlinkwindow.location.href= txtlink.value;
View 4 Replies
View Related
Apr 8, 2010
if i make search then, the result of search apear in the same page without refrash
View 1 Replies
View Related
Aug 10, 2010
I have this very simple code and if I focus on the textfield or button the backgrond color changes to red. If I click submit, the page refreshes and the red background color is no more.
How can I keep this background color after a page refresh or submit? The php in the head with the parse thing is just to load some jquery and css files your can replace it with '<script src="jquery-1.4.2.min.js" type="text/javascript"></script>' etc to test the code.
This is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]....
View 4 Replies
View Related
Sep 20, 2009
I am trying to find a particular tutorial on the web that I used to create a REALLY simple script that made use of jquery.form and jquery.validate.
The script would use the simple validate command to validate inline, then when submitted, a loading graphic would appear, call upon the php script referenced in the form action, process, then spit out a message on the same page without any refresh.
I have a few questions about modifying it..
Here's the script.. noting that Im also calling jquery.validate and jquery.form:
I would like to have the message that appears, to fade out after being displayed for 5 seconds. I don't know how or where to add the fadeout command in the function above.
View 1 Replies
View Related
Nov 8, 2011
I have an application with a button that opens up another website. That website requires credentials. I'm currently using window.open to get the url open and passing a variable to the end of the URL, but when I have searched for a good way to get the credentials passed by using post and can't seem to find a solution. I tried xmlhttprequest, but the limitation of cross-domains is huge because I will have external clients connecting to the database and don't think that asking them to lower the security settings in IE would be a good way to do it. All I need is the ability to click on the button, pass the username and password and have the url open to desired page. I posted the code of the application in another thread, but all I'm getting are just views.
View 4 Replies
View Related
Apr 18, 2011
Is there a way to keep a variable value on page refresh, if I have
var x=0;
but then a users does somethibng that makes that value become
x=4;
and then the page is refreshed, is there a way to keep that value of 4 for the x variable or it will always reset to the original value?
View 4 Replies
View Related
Nov 29, 2011
In my jsp,Struts project i am using the javascript calendar control for selecting the date and by using function calcage() i am calculating the age of the user but problem occurs when the page refreshes OR when user updated the other values such as name ,contact no. Then the value of the age is set as 0 in the textfield as 0
View 2 Replies
View Related
Jun 13, 2007
I am using the following code to refresh a window that has an HTML form on it:
window.opener.location.reload();
When the page is refreshed, the data disappears.
Is there a way to refresh the page, while keeping the form data?
View 5 Replies
View Related
May 5, 2011
I have many tags. I want click each tag, then post/get the tag's value to another page. In another page, received the values and make a mysql query. Then return the resalt data to the first page(do not make an iframe).
[Code]...
View 4 Replies
View Related
Jan 11, 2012
I've a form having input feilds name , email, image and comments. I want to submit the form without page refresh and upload the file on server using ajax jquery in php language. i
View 3 Replies
View Related
Oct 23, 2009
I'm trying to write code where an ajax function, at a specified interval, calls php script to query a table and open a certian window according to the response(variable) received. After that, the ajax function will continue to call the same php script but will open another window only if the response or variable is different from the previous request(s). What kind of method should I use to achieve this?
View 7 Replies
View Related
Nov 25, 2010
I have tried all the tutorial on the net which I can search, but all of them work without showing me the confirm message.
My submit form is simple as follow:
The user put their information in, the it will be valid using [url]
After the user submit the form, all the information will be sent over the internet to a mail.php file to process the sending.
The form disappear and a message confirmation appear.
However, all this process will not make the from refresh.
View 1 Replies
View Related
Apr 13, 2009
i want to have tabs like yahoo that displays data on same page while navigation but i want to fetch my data from db im using php
View 2 Replies
View Related
Mar 1, 2010
i'm using greybox on my website, and using survey. i want when click submit button then post form data to opened greybox window.. but can't..
my form actions
<form action="anket.php?islem=ok" method="post" onSubmit="javascript:return GB_showCenter('Anket',this.action, 280, 350)" >
greybox window open, but can't show post data..
View 5 Replies
View Related
Feb 7, 2010
How can I submit form without open the page or submit to certain page without open it then open another page I have design web site and I want to submit some info to other website that not belong to my websiteI don�t know the code of that website but I know what data it will take so I want to submit this data without let the user see this website
View 1 Replies
View Related
Jun 7, 2010
i've a div that contains a form, each of these elements have their own id; the structure is something like this
<div class="art-Block-body">
<div class="art-BlockHeader">
<div class="art-header-tag-icon">[code].....
I'd want that: at the first user's click on the #register div, the div #registerForm become visible, it should remains visible also when the user click the submit button within and it should disappear if the user click a second time on the #register.I partially solved my problems with this:
$(document).ready(function(){
$("#registerForm").css("display","none");
$("#register").toggle(function(){[code]....
but i can't resolve the submit issue: whenever a user submit the form in the #loginForm div, the page refresh and the main div return invisible.
View 1 Replies
View Related
May 19, 2009
I am using a javascript code to refresh a page.
<code>
window.location.href="";
</code>
this code refereshes the whole page and focus goes at the top of the page but I want the focus of the page at the same place where I perform refresh. Actually I am using AJAX to submit a form, a form opens through ajax request but I need to refresh the page to take the effect of the dynamic data, which is being saved,updated or deleted on the page. So is there any way where focus of the page remains there when I refreshed the page
View 9 Replies
View Related