Ok, so i'm finally stepping out of the z80 asm help section to ask for some help of my own. What i want to do is write a Firefox bookmark that will let me type in a keyword followed by a word, then pass that word to a dictionary website and get the definition.
For Firefox, normally i will create a bookmark, eg. http://www.wordreference.com/fren/%s, give it the keyword fren, and then to get a French to English definition i can type "fren salut" in the URL bar.
However, the website i'm trying to use now seems a bit more complicated, it uses frames for one. I found the page sercxu.pl which lets me add a value like i normally would, (http://reta-vortaro.de/cgi-bin/sercxu.pl?sercxata=helpi), but it doesn't send the information. Also, since the information is loaded in the other frame, nothing happens when i click "trovu" (find). I've written a small script that will fill out the form on the homepage and send it:
Code:
However, where i'm having trouble is opening the website and filling in the form once the site has loaded. The problem is that the code above gets run before the other page loads, so nothing happens. Here's the full code i've got so far:
Code:
If anyone's got any ideas (or a way that works), please let me know
For Firefox, normally i will create a bookmark, eg. http://www.wordreference.com/fren/%s, give it the keyword fren, and then to get a French to English definition i can type "fren salut" in the URL bar.
However, the website i'm trying to use now seems a bit more complicated, it uses frames for one. I found the page sercxu.pl which lets me add a value like i normally would, (http://reta-vortaro.de/cgi-bin/sercxu.pl?sercxata=helpi), but it doesn't send the information. Also, since the information is loaded in the other frame, nothing happens when i click "trovu" (find). I've written a small script that will fill out the form on the homepage and send it:
Code:
window.frames[1].document.forms[0].sercxata.value="helpi";
window.frames[1].document.forms[0].submit();
However, where i'm having trouble is opening the website and filling in the form once the site has loaded. The problem is that the code above gets run before the other page loads, so nothing happens. Here's the full code i've got so far:
Code:
javascript:window.location="http://reta-vortaro.de/revo/";
window.frames[1].document.forms[0].sercxata.value="helpi";
window.frames[1].document.forms[0].submit();
If anyone's got any ideas (or a way that works), please let me know