Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    replacing characters iframe.

    i have two iframes side by side.i want users to type a keyword in a search bar,click, and the keyword would replace a (specified) characters in the iframes and display the content.

    1st iframe.
    <iframe name="cwindow" style="border:2px solid black" width=50 height=20 src="http://www.dynamicdrive.com/@@@/" target="cwindow"></iframe>

    2nd iframe
    <iframe name="cwindow" style="border:2px solid black" width=50 height=20 src="http://www.dynamicdrive.com/forums/@@@/" target="cwindow"></iframe>

    *so, upon entring a keyword in a search field(and clicking) the keyworld would replace all @@@ in iframes.

    i have tried several codes including remote scripting in iframe. does is involve PHP? i can't seems to understand. can anyone please give me code and instruction on how to use it?

  • #2
    New Coder
    Join Date
    Dec 2004
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It certainly would be easier in PHP as it allows reading a URL line by line at which time you can highlight or search and replace any word or phrase.

  • #3
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help please.

    i tried to use this function but doesn't seems to work.any other suggestion?

    <script>
    <!--
    function smarty_mod_ireplace($string, $search, $replace)
    {
    return preg_replace("@@($search)."click", $replace,
    $string);
    }
    //-->
    </script>


    *i need users to enter keyboard in a search bar & click.this function dont seems to have any search field to enter data.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •