Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Program Design and Methods
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 01-31-2007, 01:59 PM   #16 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,398
sde is on a distinguished road
Code:
window.close(); opener.getElementById('textfield').value = '#post.id#';
here you are closing the window with the javascript before you are assigning the post.id to the opener page.

additionally, assigning anything to the opener would probably only work if the page was already loaded. since you are changing the URL in the opener, more than likely your javascript will be executed before the page loads.. so i'm guessing it would not work.

why don't you just send the post id in the url?

example:
Code:
function javascriptpenpopup(url) { window.opener.location.href = url+'?postid=#post.id#'; window.close(); }
i don't know cold fusion, but i think that would work. you just have to know in the parent page how to read a variable from the URL.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
maintaining child relation between pages sde HTML, XML, Javascript, AJAX 1 05-25-2005 11:09 PM
OpenGL.dll Mr.Anderson Platform/API C++ 3 08-13-2004 10:07 AM


All times are GMT -8. The time now is 10:26 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle