The ultimate goal of this project is to set up a link on a co-worker's web tool that leads to one of my web-based tools. I want the link to not only bring up the front page of my web application, but to also pass some data to my tool which then automatically queries for that data and returns the results.
It's no problem to get the link to open up my tool and pass data to it. I have it set so that the data to be passed (in this case an IP address) is appended to the URL of my tool. For instance:
<a href='
http://myapp.com/mytool.html?ip=$ip_address target='_blank'>My Totally Awesome App</a>"
The tool that I have consists of three web pages. One of which contains a frame set and the other two are frames. One frame has a form on it which is used to query a database. The other frame provides room for the results of that query. So I want the page holding the frame set to be able to grab the IP address appended on the end of the URL in the link (works fine) and send it to the frame with the form. Then I want it to submit that form and display the results (as it normally does by itself) in the bottom frame. So when a user click on the link, my tool will pop up with the query already processed and results already presented. This saves the user time and facilitates research (by not having to manually open my tool, enter the information in, then click the submit button).
Right now I'm having a problem with the frame set page. I can grab the IP address passed, but I can't place it in the query frame nor submit that information. So I've been trying to just access the query frame first. I have in the code the line:
topFrame.document.user_inp
ut.ip.valu
e = ip;
This works fine in Internet Explorer, but I can't figure out how to get it to work in Firefox. Does anyone know what formation/convention to use?
Secondly, I'm having trouble getting it to submit the information automatically. I'm currently using the line:
topFrame.document.user_inp
ut.submit(
);
This doesn't work in neither IE nor Firefox. I have two alerts: one before these two lines and one after. In this case I know the submit line is the problem, because the second alert is not being reached.
Any ideas? I haven't found anything useful yet from hours of google searching. Thanks.
Sorry for the verboseness of the question, I just wanted to make sure it was clear.
Start Free Trial