I dont know a lot about Javascript or AJAX. But, what I am wanting to do is to have two forms and what ever is entered in either will open a new window with that info.
[URL]
In form one I want what is entered to be placed where the 77777 is in the URL in a new window.
In form two I want what is entered to replace IRN=77777 with Username=88888 and where the 88888 is will be what is entered in the field.
Im trying to create a hidden form field in a parent window from within a child window (popup). I am trying to use jQuery, but unfortunately the hidden field does not get created.
I found an article [URL] that allows a user to search Google directions from a web page. It works very well, however is it possible to have the resulting page open in a popup window?
I am trying to create a form which when the submit button is selected will open a new window with 1 of 4 URLs based on the the combination of data in 2 select boxes.
For example:
if select box 1 = a and select box 2 = a then open new window with URL 1 if select box 1 = a and select box 2 = b then open new window with URL 2 if select box 1 = b and select box 2 = a then open new window with URL 3 if select box 1 = b and select box 2 = b then open new window with URL 4
I want to open a new browser-window with javascript and fill some input-fields in this window with predefined values. So the User does not have to edit the input-fields manually but only has to submit the form.
.... var childWindow = window.open("http://anyForm.html"); childWindow.document.getElementsByName('anyinputfi eld')[0].value='hello' ....
Unfortunately this does not work... Mozilla throws an error:
"Error: uncaught exception: Permission denied to get property Window.PropertyIterator"
Is it possible to remote modify an already open window form from a local HTML file? Example (simplified):
1. I have a local HTML file, where I have some kind of link. When this link is pressed, then I need to add a "searchstring" into... 2. the second already opened window form (e.g. Google)
I need to do this to avoid any copy / pasting of these values.
All I have read about is that this is possible if I use Parent/Child windows, but I would like to know if this is possible to do between two independant pages?
This code is supposed to create a new row so i can add more data to it, but the thing is that when i hit the enter key to create a new field it will delete the information i just entered.[code]For now, just ignore the fact that the submit button is disabled, that one should be enabled once i had validated every entry against a database using ajax.
What I need to do, is to change a form field value in a new window (window2) based on input from the parent window. The new window (window2) will pull up an existing site, with a form, which I can't change the code on. I will only be able to work with the code on the parent window.
After I load the new window (window2), with the onload function, the error says: ('window2' is undefined).
For example, here is the basic code I have been trying to work with:
I am created a site where personal messages will be sent to other members. To do this I want to allow users to either type in the users seperating their name by ; (ie Joe Bloggs; Michael Jackson; Fred Flintstone). or alternativly have a popup box where all the names on the database are displayed in a list with a check box next to the names. I will be using PHP to interact with the database and know about this
My problem is getting details from the popup box and displaying them in the text field on the main browsers form? So if in the popup box the user checked Michael Jackson's name how would I get Michael Jackson to dispaly in the main browers field (input name ="to")?
I found this forum while running out of ideas and being extremely desperate to fixing a probably small javascript error in a script. the script is supposed to open a small form window that allows the user to input an email address and update it to proceed. the form item is initially unchecked, but as the user clicks it and enter his email address, it updates the value of the email address and the box becomes "checkable". the problem is that with both IE and firefox, the box doesn't close again, doesn't get checkable and basically doesn't work. in the firefox debugging console, I found the following error:
Quote:
The part responsible in the javascript for this section is:
Quote:
And the html code that is supposed to pop up the box is:
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.
I'd like to create a quick and dirty validation method for a form. It's not meant to be very secure.
The way I picture it working is this - there is an input field that asks for a password. If the user types in the password correctly, the "submit" div tag will change from "none" to "block". , which will display the submit button. I just am not familiar with JS enough to know if that's possible.
I am a new Javascript user and have a question i cant seem to get my teacher to explain to me (darn online classes). My problem is i am being instructed to [URL].. to the body of my file to create a link to another file. The instructions say i cant add an html a tag for the link and I'm not really sure how to make this work without it. Here is what I have so far....(note there are a bunch of other things i need to accomplish in this and i think i probably just dont have things in the right order and I'm not sure where the onclick tag needs to sit within the javascript sections)..
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.
I have a form which open in a jQuery Fancybox Window. The fancybox window opens automatically when the page loads. When it loads, I would like it to set focus on the username field in the form in the Fancybox window. I have found that this must be done when fancybox is envoked, thus I have tried the below code which does not work :
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.
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.
I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed and cause the form to fail.
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"
I have a Cisco ASA that I use as a proxy server as such. I have a internal site that it will not pass credentials to so I was looking for a way to do that. Not being a site developer the only way I can come up with is to maybe pass it by using a cookie to store the password and ID. Below is the code I am trying to use. I can create the cookie with the code below but it will not change the PATH or the Domain for some reason. Also I do not think it is reading from the cookie not sure why. Basically I need it to set the cookie with the user info and then grab the info from the cookie to auto log the user in to the internal site.
<script type="text/javascript" language="JavaScript"> <!-- function writeCookie( ) { var username = document.form.username.value; // Get the user's name
i know that there is a mailto: script to use but it is unsecure and all that, so what would be the best way to go about sending form information to an email address in javascript?