homepage Welcome to WebmasterWorld Guest from 54.161.155.142
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Almost working ASP /JS to Html
watercrazed




msg:1543081
 5:17 pm on Apr 13, 2006 (gmt 0)

Hi,

Just about have my feeds working the way I want them. I am grabbing the feed, displaying on my web page with some formating. Works fine, link to article opens in a pop up created in java script in an medium window over top of site. You can read the article and still see the site underneath, close the window and go back to reading the feed summarys.

The Problem is that if you click back to the site before closing the popup the popup goes behind the main page. Then if you click on another link in the feed on the main page the article opens in my site page instead of generating another popup.

Any Ideas?

Javascript that creates Popup

<script>
<!--
function wopen(url, w, h)
{
// Fudge factors for window decoration space.
// In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
var win = window.open(url,
'popup',
'width=' + w + ', height=' + h + ', ' +
'location=no, menubar=no, ' +
'status=no, toolbar=no, scrollbars=yes, resizable=no');
win.resizeTo(w, h);
win.focus();
}
// -->
</script>

Feed template

ItemTemplate = "<tr><td><b><a href=" & """{LINK}target=""popup"" onClick= ""wopen('{LINK}', 640, 480); return false;""""" & ">{TITLE}</a></b><BR>{DESCRIPTION}<br><br></td></tr>"

Thanks for your thoughts

Watercrazed

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved