SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict chiefmonkey's Avatar
    Join Date
    Aug 2002
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    loading a file into a textfield

    I am writing a mailing list app in PHP, the thing is I have a folder which will contain templates, is it possible to load the users template selection (say by clicking a radio button) into a textarea or iframe.

    George
    Last edited by chiefmonkey; Sep 30, 2002 at 09:38.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Templates? HTML templates? If so, do you want the source to be displayed? Or rendered?
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Addict chiefmonkey's Avatar
    Join Date
    Aug 2002
    Posts
    207
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by beetle
    Templates? HTML templates? If so, do you want the source to be displayed? Or rendered?
    I need to load the template into an Iframe, as I want the user to be able to see the template they have choosen. I know I could have a link that targets the iframe, but I want to use a radio button.

    George

  4. #4
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Location
    Cape Town, South Africa
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    easy

    you can use a iframe. give it a id like id=myframe.
    ...then...
    in the onclick event (or whenever you want it to happen) of your radio button you just do this...
    Code:
    myframe.location.href = "template.htm"
    hope that helps
    Spartan
    ---------------------
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
    -Mr.Payne


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
  •