473,560 Members | 2,965 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaScript controlling frame contents

Hi. I would like to know if the following is feasible in JavaScript.

I would create a frameset where the top frame includes JavaScript. The
bottom frame would be directed to the login page of an existing content
management system. The javascript would then fill in the login name and
password of the form, and submit the form to log in. If this works then
the bottom frame would be replaced with another page requesting that a
link be followed to log in properly. The JavaScript in the top frame
would then make the bottom frame follow the link, so that the user's
home page would appear in the bottom frame. The JavaScript would then
follow two more links so that some content of interest would appear in
the bottom frame.

The top frame with the JavaScript would include a form. The JavaScript
would load all or some of the source code of the bottom frame into a
form variable, and then submit that frame to a cgi script, allowing the
contents to be stored.

In short I want a robot that will keep track of content in the content
management system. I've tried writing a perl program to login to the
system and poll the page in question, but it doesn't work, for reasons
unknown (seems to obtain a valid sessionId, but requests to the page of
interest return an empty page). Hence, I'm looking at a JavaScript
solution.

The robot would only work for one page on one content management
system. It would not have to be compatible with more than one browser.
All else being equal I'd prefer to use mozilla as the host.

I have programmed in JavaScript in the past, but am rusty.

Any comments?

Cheers,

Ross-c

Jul 23 '05 #1
1 1878
PS: I don't know if I'll get a reply, but I thought I'd just mention
that I've overcome one hurdle. Since my JavaScript containing frame
source is stored on my local hard drive, I am able to overcome the
security restrictions involved in reading and setting document
properties across different domains and with different protocols (http
versus https).

Cheers,

Ross-c

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4441
by: Steve | last post by:
Hi, I have a private website for 20 people that is similar to a web email client like hotmail. There are two frames, one on the left with links for "New", "History", "Todays" and a frame on the right with a table for viewing the contents of these messages. The left pane checks back with the server every few seconds to see if any new...
8
1717
by: Rob Gordon | last post by:
Hat's off to Kaeli! I've been trying for months to get some code that would allow me to break the contents out of the main frame in my frame based navigation system- and he has almost solved this problem with just a few lines of code: <a href="#" onClick="window.open(top.frames .document.location,'','');return false;">click here to open...
3
32132
by: DCB | last post by:
Hello. I have an easy question, likely, that has me in a headspin. I have an include file to a frames based site that basically forces frames on the end user if they visit the site and hit a non-frames created page... Simply, it is: if (parent != self)
3
2153
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... I am trying to write a webpage in Javascript. The page loads with three frames, a top, left and right frame. Depending on the users actions the...
2
2886
by: tombraun | last post by:
Hello! This is my first posting here! :-) I hope you can help me... To sum it up: I have a question about the possibility to influence the execution of JavaScript in another frame. I cannot modify that other frame's code, but it does come from the same server. Therefore, there should not be an issue with any cross-side scripting...
1
2281
by: mailing | last post by:
Hello, I am hoping that someone can point me in the right direction. I have 4 frames to my site. Two Rows, Two Columns. |--------------------------------|-------------------------| | | | | 1 | 2 | | | ...
4
2318
by: lmarceglia | last post by:
Hi, I have this website that doesn't work in Firefox 1.5: www.pianetaluca.com The HTML source is: <TITLE>PianetaLuca</TITLE> </HEAD>
2
3443
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in advance for responding. I have made a stub of the codes for better understanding. Situation: I have a Java servlet (HelloWorldServlet) running on a...
0
7556
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8068
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5459
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5176
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
882
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.