User Profile

Collapse

Profile Sidebar

Collapse
Wolfman
Wolfman
Last Activity: Aug 5 '09, 01:06 AM
Joined: Apr 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Wolfman
    replied to Passing a variable to a popup
    in PHP
    Thanks - but how would I write the url string? I assume the popup page itself would need to be php, while keeping the master page HTML.
    See more | Go to post

    Leave a comment:


  • Wolfman
    started a topic Passing a variable to a popup
    in PHP

    Passing a variable to a popup

    Hi guys

    I thank you for being the most helpful and responsive tech group around, and I have a new one for you.

    Have you ever embedded Hulu on a page before? I use it quite extensively in popup "player" windows, and as each popup page requires slightly varied object/embed parameters specifying to which Hulu file to link, I've been creating a different HTML page for each popup. Now however, I face creating...
    See more | Go to post

  • Wolfman
    replied to "New to you" javascript functionality
    OK. Now, as to designating the target cookie, PageVisit seems to be the variable that specifies this page. How can we make it look for that page?

    Code:
    lastVisit = new Date(cookieVal("pageVisit"))document.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString()
    See more | Go to post
    Last edited by Dormilich; Jan 15 '09, 07:00 AM. Reason: added [code] tags

    Leave a comment:


  • Wolfman
    replied to "New to you" javascript functionality
    I was thinking that the script could be split into two components to achieve the same goal:

    1. A script on the content page sets the cookie of last visit
    2. A script on the index page checks the cookie and displays the graphic.

    The trick is that each content page would have to have a unique cookie so each index page script would know which one it is tracking. Ideas?
    See more | Go to post
    Last edited by Wolfman; Jan 11 '09, 09:18 PM. Reason: spelling correction

    Leave a comment:


  • Wolfman
    started a topic "New to you" javascript functionality

    "New to you" javascript functionality

    Hi all

    Upon seeking to differentiate new content from old in an HTML list based upon when each user last visited, I began researching "new to you" functionality. It's used in several forums like Yabb to place a small graphic next to each newly-posted or updated link in the list, monitored by a cookie, then disappears after the link is clicked to indicate the topic has been read.

    However, surprisingly there seems...
    See more | Go to post
    Last edited by Wolfman; Jan 11 '09, 12:13 AM. Reason: added code

  • Passing variable from HREF to form field on another page

    Hi gang!

    I've been searching for a solution to this problem extensively but nothing really hits the mark.

    I have a descriptive popup page that contains a PayPal order button. The normal PayPal form fields allow for the item description, fee, etc. I'd like the fee field to be variable based upon which hyperlink launched the popup.

    So,
    HREF click sets a variable
    INPUT TYPE (hidden) named...
    See more | Go to post

  • Wolfman
    replied to Passing a form variable into a URL
    in PHP
    Today a user discovered a little glitch with the code. It's the old single-digit-should-be-a-double-digit problem.

    When a user types in a single digit they get no page at all because the pages are all 01, 02, etc.

    I experimented with an additional if/else command but haven't found the right syntax. What can I use?

    Current script:
    [PHP]
    $num = $_POST['num'];
    if($num <= 79)
    ...
    See more | Go to post

    Leave a comment:


  • Wolfman
    replied to Passing an incremental variable into a URL
    in PHP
    Solved it!

    I used HTTP_REFERER instead of PHP_SELF.

    Thanks everyone for your help!

    Wolfman
    See more | Go to post

    Leave a comment:


  • Wolfman
    replied to Passing an incremental variable into a URL
    in PHP
    I echoed each variable individually and came up with this:

    $currentName = epguidefinder.p hp
    $currentIndex = hp
    $nextIndex = 01

    Remember that this script is running on a single page that is loaded within each parent HTML page. The benefit of a working script is that it senses the page it is loaded into, so a single instance serves all.

    The embedded page is always called epguidefinder.p hp,...
    See more | Go to post

    Leave a comment:


  • Wolfman
    replied to Passing an incremental variable into a URL
    in PHP
    Thank you robin1983. I changed the line, but regretfully the chage results in an extra period being placed in the page name, but it still defaults to #01 each time. Further thoughts?

    Wolfman
    See more | Go to post

    Leave a comment:


  • Wolfman
    replied to Passing an incremental variable into a URL
    in PHP
    Tried it, but one hitch remains

    Thanks. I added target=\"_top\" into the href since the link must call the parent window, but other wise embedded it as-is:

    [PHP] <?php
    # Get the current file name and index of the next file
    $currentName = basename($_SERV ER['PHP_SELF'], ".html");
    $currentIndex = substr($current Name, -2);
    $nextIndex = $currentIndex + 1;...
    See more | Go to post
    Last edited by Wolfman; Dec 10 '07, 03:18 AM. Reason: Code was shown as plain text

    Leave a comment:


  • Thanks much! I was able to succesfully combine the existing script with your syntax to result in the following line:

    <A HREF="javascrip t:newWindow4('p lay/ep01a.html');lo cation.href='ep 01.html'" onMouseOver="wi ndow.status='po pup'; return true" onMouseOut="win dow.status=''; return true">

    It worked like a charm and allowed me to avoid a page refresh.

    Wolfman
    See more | Go to post

    Leave a comment:


  • Wolfman
    started a topic Add two script commands to the same HREF

    Add two script commands to the same HREF

    Hi guys

    I recently added a popup HREF script to a page, but I'd also like to make the page itself change when the HREF command is clicked. When the user clicks, not only would the popup window appear, but the originating page would change to another as well.

    I thought it'd be a rather straightforward proposition, but I can't seem to get the syntax right. I tried using onClick and adding the second command after a semicolon,...
    See more | Go to post

  • Wolfman
    started a topic Passing an incremental variable into a URL
    in PHP

    Passing an incremental variable into a URL

    Hi guys

    I have a subdomain with 79 individual episode pages, and I'd like to create a "Next >>" link that reads the number included in the top page name, then adds a value of one, sending the user to the next higher-numbered page within the acceptable range of 01 to 79. Page 79 would wrap back to page 01. This would allow the user to move incrementally while I continue to use a single, embedded navigation page for...
    See more | Go to post

  • Thanks. I'm motivated to use this one because it's very basic - no transition effects, no page refreshing, no fancy text boxes. Just a picture and some text that can be formatted using traditional tags. Will give your corrections a whirl - and thanks.
    See more | Go to post

    Leave a comment:


  • I tried combining the variables to no avail, but I think I'm getting closer. This variant tells me, however, that 'myCaption' is null, even though I follow the other array's scripting precisely. What am I doing wrong?

    <SCRIPT LANGUAGE="JAVAS CRIPT" TYPE="TEXT/JAVASCRIPT">
    <!--

    myPix = new Array(
    "images/01.jpg",
    "images/02.jpg",
    "images/03.jpg")...
    See more | Go to post

    Leave a comment:


  • I found a simple way to use a textarea tag, but it looks junky.

    <TEXTAREA NAME=myCaption> </TEXTAREA>

    I'd like for the text to appear as if it was simple HTML text.
    See more | Go to post

    Leave a comment:


  • Wolfman
    started a topic Adding a text caption to this slideshow script

    Adding a text caption to this slideshow script

    Hi guys

    I've been using this, my favorite slideshow script for its simplicity. Now I'd like to add a text caption to each image that rotates in-kind, but I'm having trouble working out the dynamics.
    Here's the current script:

    <SCRIPT LANGUAGE="JAVAS CRIPT" TYPE="TEXT/JAVASCRIPT">
    <!--

    myPix = new Array(
    "images/picture01.jpg",
    "images/picture02.jpg",...
    See more | Go to post

  • Wolfman
    replied to Passing a form variable into a URL
    in PHP
    Works like a charm! If you'd like to see it in action, here's the link:

    Site map page

    Click AIRWOLF: THE SERIES to find it. I can't thank you enough, ajaxrand, for making a script that saves so much space and has a 'gee whiz' benefit.

    Clark

    P.S. - Would it be too presumptuous to throw out an expansion of this idea? I wonder if this is even possible: when the user types in the number,...
    See more | Go to post

    Leave a comment:


  • Wolfman
    replied to Passing a form variable into a URL
    in PHP
    Thank you very much - my PHP knowledge is admittedly redimentary, but I learn with each new idea. I had created a series of offline test pages with different script permutations, but I was mainly playing with JavaScript variables and a form field. I look forward to using this script this evening.

    Clark
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...