Open.window() And Passing URL String

Aug 25, 2005

I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below.

When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template)

<a href="##"
,'prop1','location,menubar,height=600,width=800,sc rollbars,resizable,toolbar=yes');
return false;"><img src="#trim(photodir)#/#photoname4#" width="90"
height="60" hspace="2" vspace="2" border="2"></a>

View 29 Replies


ADVERTISEMENT

Passing Value In Window.open?

Apr 9, 2009

passing values with url

alert(document.Form1.pid.value )
window.open('test.aspx?id=" + document.Form1.pid.value ','','scrollbars=yes,resizable=yes,width=800,height=400');

i have made this function and want to pass value.

in test page i use

x= request.querystring("id").ToString.Trim but in alert i do getthe value i am not getting any value

View 10 Replies View Related

Passing Vars To Window.open()?

Feb 23, 2009

I want to pass window size variables to javascript's window.open() function from a flash movie (actionscript) to javascript embedded in an html page. The idea is to generate a pop-up window when the user clicks a button in the flash movie. I've programmed the flash movie button like this:

on (release) {
getURL("javascript:open_win('http://www.mysite.com', winfeatures)"); }

where winfeatures is a string containing the pop-up window options, e.g. width=400,height=300,resizable=1 . I have 'traced' the string to make sure it is formed properly. These variables may change so I don't want to just insert them verbatim as the arguments. They are read from an xml file and made into a string - e.g.

(var winfeatures:String = "width="+myxml.attributes.width+",height="+myxml.attributes.height);

In the html page I have the following javascript:

<SCRIPT LANGUAGE=JavaScript>
function open_win(URLtoOpen, windowFeatures) {
newWindow=window.open(URLtoOpen, "myWin", windowFeatures);
}
</SCRIPT>

but it's not working. It seems the windowFeatures isn't being read (or read properly) and the pop-up opens with a default size.

View 2 Replies View Related

Passing Text String To A New Window?

Jul 23, 2005

Would there ever be any problems with the following script depending
on what type of characters are in the text string? I am appending the
value of hidden form field to the query string.

//Assume JavaScript enabled browsers and popups allowed....

View 2 Replies View Related

Passing An Increment Variable Into A Window.open Page?

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

Code - Void Window.open - Link Would Open In The Same Window?

Feb 7, 2009

I have this piece of code which is opening link in new window:

How to change this code so link would open in the same window?

Probably I should change this part: javascript:void window.open

View 1 Replies View Related

Links That Uses Window.open Then Open A New Designated Window

Jan 17, 2012

I have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:

function linkA()
{
window.open('link_a.html','link','width=300,height=200,resizable=yes');
}

now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.

View 7 Replies View Related

Open A Link On The Same Window Using Window.open Or Any Other Method?

Oct 19, 2011

How to open a link on the same window using window.open or any other method in JavaScript.

View 2 Replies View Related

Child Window Close Event - Opening Another Link In A Separate Window Using Window.open()

Jan 29, 2010

I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.

View 4 Replies View Related

Open In New Browser Window (like With Target="_blank", Not Window.open)

Dec 1, 2011

Code: window.location but have it open in new browser window (like with target="_blank", not window.open)

View 7 Replies View Related

Thru Window.open Open A Word Document In Print Preview Mode

Jul 23, 2005

Through window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out.

View 1 Replies View Related

Window.Open In FireFox - Click Very Quickly - Multiple Windows Open

Nov 16, 2009

I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.

View 8 Replies View Related

Window.open - How To Open A Local File (xml) With Firefox

Apr 2, 2008

my file is located at c:AdminFiles.xml

i tried the following ways

window.open("c:/AdminFiles.xml",'HeavyXml');
window.open("c:AdminFiles.xml",'HeavyXml');
window.open("c:\AdminFiles.xml",'HeavyXml');

in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"

window.open("file:///c:\AdminFiles.xml",'HeavyXml');

the last attempt give to respond at all...

View 5 Replies View Related

Passing String From PHP

Dec 15, 2003

<html>
<script>
function dodelete(a)
{
alert(a);
}

</script>>

<?

$abc='salman'

echo("<A href='javascript:dodelete($abc);'>click here </A>");

?>
</html>

This is the code...i want to pass a string variable of PHP to a javascript function but it returns an error...kindly could someone help me?

View 2 Replies View Related

Passing XML In Query String

Jul 23, 2005

i want to pass XML data in querystring from one to another asp page.
it is about 10000 characters long, i cannot use FORM because it is
already nested in one.

What i do is i have IFRAME and im passing some xml data
in QUERYSTRING. It doesnt work somehow, im using javascript escape
method to substitute escape characters, but most of characters are
being truncated (about 300-500 left).

Are there limits in querystring length?
what else should i try?

View 3 Replies View Related

Passing A String To A Popup

Dec 21, 2005

I want to popup a page, but I want to send a string through to the
popup. Then I want to set a multiline Textbox on the popup equal to that
string.

View 2 Replies View Related

Passing PHP String To Function?

Sep 27, 2010

i can pass numeric value to my javascript function but when i try to pass a string the javascript function will not work..

<script type="text/javascript">
function prompt1(prov_id)
{
var pf = document.getElementById('pForm1');
pf.style.display = 'block';

[Code].....

View 5 Replies View Related

Passing Checkbox Value To URL String?

Mar 9, 2010

pass a value from a checkbox when it selected by a user and place it in part of the url and equally remove it from the url when it the checkbox is deselected? there will be more than one checkbox. e.g.

Checkbox one has value [VALUE1]
Checkbox two has value [VALUE2]

they are placed on page located at: www.mysite.com/site.html

when the checkbox is selected the url goes to:

www.mysite.com/site[VALUE1].html

if second checkbox is then selected it goes to:

www.mysite.com/site[VALUE1][VALUE2].html

View 7 Replies View Related

Passing Variables From One Window To A Newly Opened Window

Jan 3, 2011

Here is the program: [URL] Basically, I want to input a number in the input box, which assigns a number to the variable numval located at document.box1.b1. When clicking on the "new window" button, an alert displays the input box value, then another window opens and displays the integers 1 through 12 and the amount squared.

I would like the new window to obtain the number from the previous window so that the new window will display integers (and their squares) from 1 to the value of numval.

View 3 Replies View Related

Way Of Passing Variable From Parent Window To Popup Window

Jun 27, 2002

I need the most efficient way of passing a variable from a parent window to a popup window.The reason i say "most efficient" is because i currently do it like this from the parent:[code]But this is inefficient because at times it randomly alerts "undefinded".Anyways, can someone tell me a more fail safe way to pass a var to a popup so that i will be able to access it 100% correctly.

View 1 Replies View Related

Window.open() Doesn't Open New Window In FF, Only New Tab

Feb 14, 2011

window.open() doesn't open an entirely new window in FF3.6, just a new tab

Edit: Yeah, ok, so if i specify a size smaller than the current standard window, it'll be forced to open a new window. but what if i want a new standard sized window to open entirely?

View 4 Replies View Related

Passing The String-name Of The Function To AddEvent

Dec 14, 2006

I would like to separate my javascript completely from my xhtml. in the
end there should be only

<script type="text/javascript" src="javalib.js"></script>
in the head-tag to my javascript.

Because I want to use some ajax-requests and other javascript-functions
on my xhtml, I need to dynamically add event handlers to any possible
dom-elements. All solutions I found so fare are for specific, pre-known
dom-elements: like 'all <imgof a certain <span>-class get an
onmouseover event handler'. But I need a function, which runs onload of
the window and dynamically determines, which dom-elments need an event
handler and which ones don't. Code:

View 4 Replies View Related

Passing A Text String As An Img Src Alt Variable?

Oct 10, 2010

var months = "April Showers";
document.write('<p><img src="ad11.jpg");
document.write(" alt=");
document.write(months);
document.write(">");
document.write(months);

How come when I display my output to a browser without the presence of the
ad11.jpg file, only the first word (April) in the text string "April Showers" is dispayed where the .jpg file is suppose to be...but the last line displays the entire text string.

View 8 Replies View Related

Passing String / Parameter To GetElemntById()

Aug 27, 2009

Before any elaboration.. see the code first.

[Code]...

Here i don understant why but id="test" doesn't seem to be passed through getElementById(id)....do i need to use some escape character or something?

View 2 Replies View Related

Passing Variables Through Query String?

May 26, 2009

I want to pass some variables from one page to the other. Question is, why the following won't work?

<script>
var sq1;
function assignVar(value){

[Code].....

The value of sq1 will remain undefined. It is updating actually, but why it stays the same in query string?

View 2 Replies View Related

JQuery :: Passing A Anchor Id To Open Accordion?

Aug 2, 2010

I have created a simple accordion that hides and shows span tags when the corresponding h3 header is clicked.

The Jquery:
$(".accordion span").addClass("answer");
$(".answer").hide();
$(".accordion h3").click(

[Code]....

However, I cannot work out how to test for the anchor and open the associated span tag

View 2 Replies View Related







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