SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php call to wrapped javascript function

    Hi

    I was wondering if it's possible to wrap a javafunction in html tags, i have a parent form and that uses an Iframe, the parent form holds a button called delete i want this button to toggle a javascript function on the childs page in order toggle this function do i need to wrap it div id and call the function from the command button like window.document.frames['myFrame']...

    thanks
    James

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Your post is like a big blob of your thought process that has just been dumped on the page. You need to learn to use punctuation and to see what you've written from the point of view of the people reading what you've written. At the moment it's a difficult-to-understand mess.

    If you post some sample code of what you're thinking of doing it might be clearer.

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    He wants a delete button on the main page to trigger a javascript function within the iframe page.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by pmw57 View Post
    He wants a delete button on the main page to trigger a javascript function within the iframe page.
    which can only be done if both pages are from the same domain.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •