SunQuest
 
           JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 21st, 2005, 05:37 AM
ThatDeadDude ThatDeadDude is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 2 ThatDeadDude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 55 sec
Reputation Power: 0
Automation...

Hi there.

I've been trying to build a system to automate the somewhat tedious process I have to go through of manually putting up a few property adverts per day on a certain website. On this website, you just use a normal form to enter all the details of an ad, and then click upload, at which point it supplies you with a posting reference.

Now, having done this for months, I got sick of it, and built a system that integrated with our database program, so with one click the ad was added, I just then had to copy the reference from the one frame I used for the website, and put it into the database. I still obviously had to do this one ad at a time however.

What I am looking to do now, is have it so I can click once, and have everything done. I've got the database stuff done, and the automated posting done, but stupidly enough, I can't work out how to get the posting reference out of the page that is supplied to me.

Trying things like
self.window[0].document.body.innerText (when using an iFrame)
just give me errors along the lines of access denied, depending on which browser I am using.

I've also tried things like document.getElementById('adFrame').innerHTML

Unfortunately my DOM knowledge is a little rusty these days, so I don't know where I'm going wrong. I also remember reading on MSDN that interaction between frames of different sites is limited for security reasons. Could this be it?

Reply With Quote
  #2  
Old September 21st, 2005, 06:40 AM
Itsacon's Avatar
Itsacon Itsacon is offline
Command Line Warrior
Click here for more information
 
Join Date: Aug 2004
Location: Sector ZZ9 Plural Z Alpha
Posts: 956 Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)Itsacon User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2Folding Points: 682581 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 6 Days 8 h 23 m 34 sec
Reputation Power: 4
Send a message via ICQ to Itsacon
Could very well be.
Imagine someone writing a similar script, keeping track of any other windows you have open and snooping out passwords?

Remember however that an iFrame is a subclass of the document class of the parent document:
Code:
document.getElementById('iframename').contentDocum  ent
__________________
This is my code. Is it not nifty?

"The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools."
---Douglas Adams


Join the Itsacon fanclub!    
Zero Tolerance: Spammers banned so far: 264

Last edited by Itsacon : September 22nd, 2005 at 02:04 PM.

Reply With Quote
  #3  
Old September 21st, 2005, 08:05 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Avoid frames; problem solved =)

I do believe it is a strong security concern if you were able to manipulate an external site across frames, although I don't see any need for that in your example.

Are you running two sites? Or are both pages hosted on the same site?

Reply With Quote
  #4  
Old September 22nd, 2005, 08:30 AM
ThatDeadDude ThatDeadDude is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 2 ThatDeadDude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by MadCowDzz
Are you running two sites? Or are both pages hosted on the same site?


It's a case of I've written a page which is basically local (it's running off the built in web server of the database software), and I'm posting the ads to a public site. It's not ours in any way. Which is I think what's causing the difficulties.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Automation...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway