LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2007, 03:18 AM   #1
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
Web: How to send html information back and forth windows... client side only.


As the name suggests, how do I send information back and forth to different windows on a clients computer, but without any help from a server? I thought AJAX was my solution to the problem, but it requires the help of a server. I just want to send the 'src' information for an element in another window, to show a picture. Any suggestions?

Thanks in advance!
 
Old 02-16-2007, 06:54 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Hi

Javascript can do this, no? If the other window is opened with window.open, you can get to the elements as long as they have a id property.

E.g.
Other window has an image tag like

<img src="somepicture.gif" id="idOfTheImage" alt="Picture">

If it's a popup:
otherwindow = window.open("otherwindow.html")
otherwindow.document.getElementById('idOfTheImage').src = "otherpicture.gif"

if it's in a frame, maybe:
top.frams.nameOfTheFrame.document.getElementById('idOfTheImage').src = = "otherpicture.gif";
 
Old 02-16-2007, 04:31 PM   #3
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Thanks a lot! I forgot about that.
 
Old 02-16-2007, 07:29 PM   #4
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Seems like I cannot just add to the window immediatly... how do I know when the popup window has been fully opened, so I can edit it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux terminal Server for windows client web browsing? hawkpaul Linux - Enterprise 6 09-24-2005 06:04 PM
how to convert text(html) back to html. d1l2w3 Linux - Software 4 04-08-2005 08:16 PM
side mouse buttons - forward and back? Moebius Linux - Software 3 08-07-2004 11:14 AM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM
Linux Client to Windows Web Server Problems anathema Linux - Networking 1 11-12-2003 09:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration