Hi Guys,

I've tried to read up on possible soln(s) but can't seem to find what I'm looking for.
Also, I'm not a front-end guy, so have no understanding of eg javascript and associated techniques/jargon; strictly a back-end programmer.

Anyway, we want to setup an http check from a nagios server (no gui) to login to a remote website/page and time how long it takes.
Problem is that from a browser, using show src, there seems to be no difference whether logged in or not.
It appears (see below) that the username/passwd area is inside a frame loaded by javascript. (I think?)
Hopefully the below will help explain, obfuscated where reqd.

<title>My Frame</title> <script type="text/javascript"> function frameLoad() { var frame = document.getElementById('my-frame'); blah blah } more stuff ... <div id="content"> <div class="padded"> <iframe id="my-frame" src="/some/path/myframe" scrolling="no" width="100%" height="0" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" onload="frameLoad()" > </iframe> </div> </div>
So, I need to somehow 'trigger' the frame or get it? so that I can then put in user/passwd and submit it

If you need more info, just ask.
As I say, I'm not familiar with this sort of programming, so apologies if its a bit vague.

Cheers
Chris

PS Used to have pm acct yrs ago :) , but its been while since I posted last.


In reply to www::scripter & javascript frame by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.