Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

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:
  #1  
Old January 21st, 2004, 08:34 AM
wellburn wellburn is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 wellburn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
window.opener.function(param) problems

Hi there

We are using the excellent fckeditor (URL) on several of our projects. We have been uploading images with an upload script that we call from a parent window.

The child window then uses
Quote:
window.opener.setImage('url');

to send the name of the image and its url back tothe parent page.

this works fine when everything is one one server. The problem is that we need to upload images to a different server for external publishing. the maintenace tools are on one server and the inormation is published on an external facing server.

We call a different upload script which resides on the externallly facign server and all uploading happens correctly. But the wondow.opener line doesn't pass anything back. I get no errors when this happens

Is there a problem with using windows.opener accross servers? I thought that javascrip was all client side so this kind of thing should be possible, but some times I get very confused!

Regards

Matt Price

Reply With Quote
  #2  
Old January 21st, 2004, 09:33 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Yes, there often is a problem when trying to do javascript across servers. Js is client side, which is actually why it's important to prevent cross-server attacks, so that a person performing actions on one site can't get nailed by js from or accessing another that may be malicious.

Reply With Quote
  #3  
Old January 21st, 2004, 09:34 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
If you try executing your js in Mozilla, btw, I suspect you'll see the error in the js debugging tool.

Reply With Quote
  #4  
Old October 5th, 2004, 04:42 PM
tdgraphix tdgraphix is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 tdgraphix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Same problem...

Hello, I have the full FCKeditor working, and the upload functions working... however after the file uploads and it apears in the browse window... I click OK and it only closes the window and does not insert the image into the main browser window...

Any thoughts on this?
tdgraphix

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > window.opener.function(param) problems


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 3 hosted by Hostway