...

View Full Version : replacing characters iframe.



dave eggers
10-20-2006, 09:28 PM
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?

cyber11
10-21-2006, 12:46 PM
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.

dave eggers
10-22-2006, 07:41 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum