Passing Url Vars And Popup?

Jul 22, 2009

This sends variables to the page okay (on a version without the onClick, opening a normal page).

Problem seems when onClick is added: where the # would normally be following the url to open the popup from colors.htm

PHP Code:

if ($row_results['Mcolor']> 2) {echo'<a href="'.$row_results['UsrID'].'" class="linebar" onClick="MM_openBrWindow('../s/shades.php','','status=yes,scrollbars=yes,width=620,height=450')">more</a>';} 

Is there always a conflict between javascript and php when sending vars since javascript is client side and php is server side? Is there another way to size the opened page, for instance, on... /shades.php itself? - Only doing the popup for this reason.

Inserted this in head of the destination page; shades.php itself, but not as a function. Might there be a way to activate this when the page loads, without onClick of a button from prior page?:

windowresize.To(400, 600);

View 7 Replies


AJAX :: Passing POST Vars In IE7/IE8?

Jul 12, 2010

Note: answers along the lines of 'use jquery' or 'use (insert wellknown framework)' is not helpful.Frameworks such as jquery includes alot of extra code which is not nessary at all for what I am doing. 'But, you can include one from Google', yes that may be the case, but I prefer to keep to my own code. With that in mind, lets proceed to the problem.

I have an ajax call which doesn't pass POST vars through on IE7/IE8, but only on odd occasions. It appears to be extremely random and the majority of the time it does work. I am had a look at jquery and cannot see much difference in the way it works compared to this custom one.


View 3 Replies View Related

Passing Vars/multiple Instances?

Aug 27, 2010

I'm building a comment system modeled after Tumblr's, where each post will have it's own comments. I've modded a system from 9lessons and am having an issue implementing it for multiple instances on a page. Each post has its own ID, so I'm trying to set this up using the post's ID. It works fine for a single post, but when there's more than one on a page it doesn't work.

Code Javascript:


View 3 Replies View Related

Passing Vars To

Feb 23, 2009

I want to pass window size variables to javascript's 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('', 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:

function open_win(URLtoOpen, windowFeatures) {, "myWin", windowFeatures);

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 Vars From Window To Window

Apr 8, 2002

i have 2 file.. the 1st file have this code :

document.write('<form name="fHtmlEditor" method="GET" action="">');
document.write('<textarea name="EditorValue" style="display: none;">' + editorvalue + '</textarea>');

and there button when onclick will open new window, i need to pass vars from there to the opener window !

i got no error and no result !

View 11 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

View 2 Replies View Related

Passing Variable To Popup

Oct 4, 2006

I've perused the posts on popups and variable and can't seem to get what I need. Can someone take a look at my code and tell me what I'm missing.

I want to open a popup window and provide a variable that I grab from a select list on the main page using javascript. This code works to grab the selected option in the list and open a new page but I want it to do this in a pop up so I can still see the main page.

HTML Code:

View 1 Replies View Related

Passing Variables To A Popup Window

Aug 31, 2005

<a href="view_details.php"

Have got this so far but need to get the width and height set. Cannot seem
to get he syntax right.

View 1 Replies View Related

Passing A Reference To The Popup Window

Nov 23, 2005

Is there a way, I could pass the reference to a pop up window to
another function?

Basically, this is what I want to
var win="x.htm".....)


function SetValue (win, ctlID)
var obj=win.getElementByID(ctlID);

View 1 Replies View Related

Passing Variables To Popup Window?

Feb 28, 2009

I want to pass variables to pop up window.How can i do this.

The code to pop up new window is as follows

<td id="add" bgcolor="#FFFFFF" width="80" height="16" onMouseOver="'#EFEFEF'" onMouseOut="'#FFFFFF'"> <a href=" "


basically i want to pass values of "xcoord" and "ycoord" to pop up window.

View 1 Replies View Related

Passing Value From Popup To Parent Window

Jul 1, 2009

All three values are received at the JavaScript function. Have problems in translating and passing it to the parent. Trying to do the following from popup

<a href="#" onclick="javascript: post_value('<%=key%>', '<%=val%>', '<%=callingElement%>');"></a>
function post_value(partNumber, partDesc, callingElement){
opener.document.caseLineupDetailForm[productNum[callingElement]].value = partNumber.replace(/`/g, "'");

View 1 Replies View Related

Passing Parameter To A Popup Window Without Using Querystring

Jul 20, 2005

I have a search page im the user enter the criterias in
textboxes and dropdownlists and on submit i want the results to be
displayed in a popup window.

so the easy way is to pass the criterias in a querystring to the new
window. but if it's possible i don't want to use query string.

in asp, i could use the folowing:
i open a temporary blank window, on load I take the values of the search
page using the window.opener and submit them to the server.
Unfortunately this can't be done in coz window.opener isn't

so is there a way to do that ? or the only way is to pass the parameters
in a querystring ?

View 3 Replies View Related

Passing Values From Popup Window To The Many Page

Dec 30, 2007

Suppose that I have a main page with a link that opens a popup window which has a link with a parameter and I want to pass the parameter to a text input in the main page,
how to do that?

View 2 Replies View Related

Passing Variables From A Popup To Main Window

Jul 24, 2004

I have two PHP scripts. The popup script (calendar.php) is linked from the main navigation of the website. When it is clicked, the calendar popups up and the dates are linked. For example; the 24th July 2004 would read: events.php?day=24&month=7&year=2004

However, I require this information to be passed back to the MAIN window so that it can be displayed in a full screen.

View 6 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

While Statement Not Using My Vars?

Nov 14, 2011

I have a two fold question:1) Why would my while statement not be workingI have cleaned up my code a little (although not perfect) but my while statement is not behaving, it does not output any numbers on a console.debug (using google chrome, or any other browser for that matter) which from my understanding it should?and 2) Slightly out of the remit of this forum I suppose, but this code is quite lengthy and I know there are ways to make this more efficient I just dont know what they are?

function generatePurchaseFields(dom) {
new Ajax.Request('/control/?page=tldmaxyears&domain=' + dom, {
method: 'get',


View 1 Replies View Related

Getting Functions To See Vars?

Nov 8, 2010

I'm struggling a bit with trying to make sure when I set an event handler (or listener) on some element which calls a function I've got elsewhere, that the function can't see necessary vars because they've already been garbage collected.I'm following the type of setup as in Simply Javascript or the Javascript Live course.o I have stuff like this

var SomeObj = {
init: function() {


View 12 Replies View Related

How To Deal With Vars In This Form

Feb 19, 2006

I have found whit google this form in this group. But i'n not good in
javascript :(. I try and error normal but i only error now.

Whit i now want to now how can i get access to the vars vis and inv. Normal
when i submit a form then is see something link


But i dont see that in this form. I want the use data form this form to set it in a databse whit php. I cant get use nog $_GET['vis'] is wil give nothing.

Is there someone who can helpen me ?

The script:

View 1 Replies View Related

Vars In Complicated Class?

Dec 3, 2010

this is a simple question, but it's had me stumped for months now.If you program a lot in javascript, this class implementation may not be so complicated, but:

// say I have a class call classA
var classA=


View 1 Replies View Related

How To Concatenate Vars For This Code

Apr 26, 2010

I have the following code:Code:

Event.observe($('store_locator_form'), 'submit', function() {
$('storelocator-results').style.visibility = 'visible';


View 4 Replies View Related

Accessing GET And POST Vars Through The Dom?

Nov 23, 2005

I am doing this project. It is a flash app that the final output will open a borwser window. The flash app will send vars in the URL, ex/invoice.html?num=1&blablabla=blabla). In the HTML doc there will be a template invoice that I need to replace some of the content (prices) with the sent GET / POST vars.

It all needs to be client side that's why I need someone's javascript help. the app needs to be able to run without internet or any server side processing. so I figured some javascript would work.

View 3 Replies View Related

Url Vars Going To Html Form?

Aug 28, 2010

i have repeated this code(which works btw) and changed the ('field_') bit and it reads the first and third but not the second var why?


if i cahange the substring to correspond to the var to (2) it reads f and d if i add the third one calling substring (3) it wont read (2) but reads 1 and 3.

<SCRIPT type=text/javascript>
window.onload=function() {


View 1 Replies View Related

JQuery :: Get Vars From One Event Function To Another?

Aug 12, 2009

I am confused about how to do this the right way.I have a change event which grabs the value of the selected optionlist and sets that as a var. But, I would like to add that to the endof my post string when I submit the form, how would I do this?

$('select').change(function() {
$('select option:selected').each(function() {
var my_val = $(this).val();


View 4 Replies View Related

Style Output That Is Outputting Several Vars?

Mar 30, 2009

Is it possible to style output that is outputting several vars?

The following code is what I need to style, I have an external .css file. Should I use that (how?) or add separate styles within the output (how?)...

View 2 Replies View Related

Applying JS To Dynamically Created Vars

Jun 15, 2006

How can I apply javascript validations and functions to dynamically generated form fields which can be 10, 20, or 30 in number?

I am creating dynamically generated form fields so there can be 10 or 20 or 30 and so on (in groups of 10, and up to 50)

I need to apply javascript validation to those fields.

My question is how can I predict the number of fields there will be?

I need to do things such as this:

If field1 = "Null", Set field2, 3, 4, 5 to "NULL"

View 5 Replies View Related

Running/ Setting Vars With SetTimeout?

Dec 7, 2009

I am creating a mp3 playlist player for a mobile page on my website. Got the music to play fine and everything the only thing I have left to do is get my page to display the timer for the running time for each song. The one problem I am running into is phone and I'm sure many other phones/mobile devices support javascript, but not javascript functions. For example I can run a <body onload="setTimeout('blah',1000)"> function on my phone and anything in the body onload statement, if it's in javascript will run. However, refer to a function and the code won't work. Here is the code that will wok in a standard web browser with javascript support:PHP Code:



View 9 Replies View Related

Copyrights 2005-15, All rights reserved