DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Posts
    1

    Using $tring for URL in Onload Popup

    Hi, a very easy question. I have a string which represents the url of a unique created page. eg $filename is equal to :
    http://www.domain/123456.php

    I want to open this 123456.php in a pop upwindow.

    So far I have
    <BODY onLoad="javascript : popUp(<? echo $filename ?>)">

    I've tried various alternatives with " ' quotes, but still no luck - all I get is a blank window, coz it can't find the URL. Can somebody please advise how I can substitute a URL for a string. Thank you.

  2. #2
    Join Date
    Nov 2002
    Posts
    22
    I've tried various alternatives with " ' quotes
    Have you tried:
    Code:
    <BODY onLoad="javascript : popUp('<? echo $filename ?>' )">
    And have you tested your function popUp, hard coding in a URL? If so, you it sounds like a php problem, and you may be better off in a php forum!

    Cheers,
    Tom.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links