I have a page which spawns a popup browser window. I have a JavaScript variable in the parent browser window and I would like to pass it to the popped-up browser ...
I need to pass a variable that php is aware of to my javascript code and I'm wondering what the correct way to do this is.
I already know that I could ...
I've been struggling with this and can't find a single tutorial on what seems to be a very simple idea.
I've written to the settings in the settings.html file using:
I have several functions that are written in JS that do error checking on my site. On one instance I want to disable two of the checks if a certain ...
Looking to pass variables from c# to javascript to use some jquery code. Passing doubles, ints, strings, arrays. Does anyone know how to do this?
for example if I have this code ...
I've seen how to pass an Objective-C variable to JavaScript right here, passing objective c variable to javascript, but how do I pass a variable from JavaScript to Objective-C when ...
Our application uses a lot of configuration options. Those options need to be reflected on the client side in the form of User preferences, site wide preferences, etc.
Currently, we pass server ...
I've ran into some really weird behavior with javascript today. I think I got it somehow figured out now, but I'd like to know if what I think is going on ...
I've tried 2 ways that both work but neither feel very clean.
The first is to have some inline javascript that accepts the variable from the view template like:
OK. I spent all day on this problem with no solution. I've got a client-side html page that I am wanting to embed another server-side html page into that would contain ...
if i have: function someFunction(){ var original = "Original Variable"; anotherFunction(original); } function anotherFuntion(){ /* 1.does the original variable automatically get passed? 2. will var transformed = original + "Transformed" give me a result of "Original Variable Transformed"? 3. Or does it have to be declared in the function: anotherFunction(original) */ } thanks for any help
hi, I am building a web app, I have a list of towns and a list of counties as you can see here: http://www.mypubspace.com/mobile/#home (best viewed in Safari) What I would like to do is to pass through the Town value as a variable and then change my SQL query based on which town is selected here is the code Code: ...
Hi, I'm having one javascript function which will return the variable and I need to pass that variable to command button action.Please find the below code and let me know how I can achieve this.
Hi ,, im trying to access cells in the excel , but when iam using variabel inActiveSheet.Cells(1,k) im getting error "Expected :". Could you please help me. Big Thanks in Advance
Hello! I've got an external JavaScript file which uses the document.write method to write a navigation bar onto each page of my website. It works fine to copy the content onto the page but the link to the page that is currently selected should be a different colour in the menu than the other links. I want to do this by ...
function JSHTTPRequestSynchronous(inURL, inData) { var http = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP') ; var data = 'JSPInvocation=' + SerializeAsXML(inData); http.open("post", inURL, false); http.setRequestHeader("Content-type","application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", data.length); http.setRequestHeader("Connection","close"); // send it away http.send(data); if (http.statusText == 'OK') { return http.responseText; } return null; } // serializes a variable into XML format function SerializeAsXML(inData) { switch (type_of(inData)) { case 'date': return "" ...
Alright gang, let's see if you can help me with this one. I'm coding a media player for my website, and I've completed the windows media version, however upon attempting to do the same with real media, I'm having problems. I need to know how to pass variables from javascript into the embedded real media player such as the song title, ...
Is it possible to pass variables from one HTML page to another? That is: If one page, such as a fill-in form, use javascript to create variables and pass them to another HTML page for further Javascript processing without the need for server processing such as ASP, PHP, CFM, JSP? For example will this type of coding work:
I couldnt really understand ur problem but i can tell u what i know abt passing variables from one page to another.What u do is make a form in html & make a hidden variable using: When u calculate any value (val)in java script & u want to pass it to any other page ,use: document.formname.var.value = ...
from one page to another? Out of curiosity, what kind of information would you be passing? The only option that I can think of off the top of my head would be to write the information to a cookie and then retrieve it on the next page, but that could be cumbersome....
Hi I am attaching a jpg file for illustration. I am a novice to JavaScript. I need to popup a browser window and display the names I got from a database. Each of those names are hyperlinks. When I choose(click) the name in the child window(pop-up), it should close by itself and return the choosen name to the parent window's text ...
I'm using this line in my pages (on freehosts, so no php or includes allowed) - I need to pass the php the page referrer information. I used javascript to find the referrer and have given it the variable "ref" . How can I pass on ref to the php in this format - - ...
Hi - any help would be much appreciated as this is causing me a huge problem. I'm pretty new to Javascript so really need some help here! I have a default html form page that has a text box, a drop down box and a submit button. On hitting submit a javascript is called that opens a new window. The url ...
Hello, I am scratching my head to find a solution in PHP where by I can open a new browser in a foreach loop for each instance whilst passing variables. This needs to happen automatically, no input by the user so something like this: foreach ($array as $data) { echo "link"; } wouldnt work as it requires a click! Is ...
I've pretty much wasted two days trying to pass variables to an I-frame. The initial passing the first time is no problem, all variables pass as they should. But when changes are made inside a form within that I-frame and the page inside the I-frame needs to be refreshed (called via the form) it not only gets the new GET values, ...
//============================================================+ //Used to open 'popup' windows to display print documents. //Takes the parameters url, name of the submitting form, the //radio button name, the width, the height and the discipline ID //============================================================+ function popup(url, frmName, ctrlName, hw, hh, typeID) { //============================================================+ //Check if the radio button has been selected and get it's value. //============================================================+ clickedOn=''; for (var i=0; i < document.PTWSelect.UniqueID.length; ...
Hi I am trying to make a PHP mail script, where -based on customer feedback- e-mail template can be sent. Emails template are listed in drop down list at the top of the page. Underneath, is a display of customer records. Each record has a button ,if clicked, it will send the e-mail template as selected in the dropdown list. I ...
Hi guys, I have the following HTML: The above display() works fine if I pass in one variable "value". However, when I need to pass in another variable, say a flag, it fails to work. For example, if I do: onchange="display(value, 'month')" it never works. ...
I have a javascript function that i need to pass variables so i can call it in php. What it does now is gives me the error: document.getElementById(...); is null or not an object. The thing is total1 and total2 are both global javascript variables. What happens now is it gives me the error, and than it shows the link, and ...
Hi, I have added in a drag and drop function from a tutorial and it works well. The problem I am having is that I need my variable g_objName to be associated with dragobj. Has anyone any ideas? Code: [Select] function showObject (){ if (request.readyState == 4) { var returned = request.responseText; var splitResult = returned.split(" "); var h = splitResult[0]; ...
im having trouble with passing variables between functions....below is a cut down version of my script. when i try the document.write after calling isSub("no") its just saying 'undefined'. If i change 'theSub = getSub.value' to 'theSub = getSub' the document write is correct (says "no"). I need to keep the getSub.value because thats the only way i could get the value ...
Oh yeah, thanks!! But I have another question. Ok, I am making a form where the user can add/remove "Jobs" which is basically a row of a table. But what I want to do is have another button/link that lets them add "Rooms" to the jobs(room will be selected with a drop down menu). I need the user to be able ...
Best way to pass a variable dynmically I'm trying to overcome one feat, and I've just ran the course of my little knowledge of javascript. Here is the code that concerns us. Code: function loadXMLDoc() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if ...