Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1689 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Java? PHP? HTML?

Thread title: Java? PHP? HTML?
Closed Thread    
    Thread tools Search this thread Display Modes  
11-28-2005, 02:16 AM
#1
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old  Java? PHP? HTML?

I'm not sure what you have to use to create something like this, but I'm wanting to make a script like what is used in VB.

If you notice, when you add an attachment to a thread/post a small window pops up and you upload your attachment via that window, once it is uploaded it the small window shows the change and the base window refreshes and shows the change as well...

How do you go about doing this?

I have the upload and the changes working in the pop-up window, but I dont' know how to get the base window to auto-refresh upon upload.

If anyone knows how to do this some advice would be fantastic.

Cheers

11-28-2005, 03:03 AM
#2
Sketch is offline Sketch
Sketch's Avatar
Status: Member
Join date: Aug 2005
Location: Melbourne, Australia
Expertise:
Software:
 
Posts: 419
iTrader: 0 / 0%
 

Sketch is on a distinguished road

  Old

Someone sent me a link http://www.irt.org/script/40.htm .. Just in case anyone else is looking for the same thing, here is the solution.

Within the original window:

Code:
<script language="JavaScript">function newWindow(file,window) {
    msgWindow=open(file,window,'resizable=no,width=200  ,height=200');
    if (msgWindow.opener == null) msgWindow.opener = self;
}
//--></script>

<form>
<input type="button" value="Open New Window" onClick="newWindow('a.html','window2')">
</form>
Within the new window:

Code:
<script language="JavaScript">function load(file,target) {
    if (target != '')
        target.window.location.href = file;
    else
        window.location.href = file;
}
//--></script>

<a href="javascript:load('b.html',top.opener)">load document into opener</a>
<p>
<a href="javascript:load('b.html','')">load document</a>

11-28-2005, 03:15 AM
#3
sm0ke is offline sm0ke
Status: iMac Employee
Join date: Feb 2005
Location: United States
Expertise:
Software:
 
Posts: 2,977
iTrader: 6 / 100%
 

sm0ke is on a distinguished road

Send a message via AIM to sm0ke Send a message via MSN to sm0ke

  Old

I'm glad you found out how to do it.

I had no idea how. I'm no programmer.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed