Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-20-2006, 08:28 PM   PM User | #1
dave eggers
New to the CF scene

 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dave eggers is an unknown quantity at this point
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?
dave eggers is offline   Reply With Quote
Old 10-21-2006, 11:46 AM   PM User | #2
cyber11
New Coder

 
Join Date: Dec 2004
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
cyber11 is an unknown quantity at this point
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.
cyber11 is offline   Reply With Quote
Old 10-22-2006, 06:41 AM   PM User | #3
dave eggers
New to the CF scene

 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dave eggers is an unknown quantity at this point
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.
dave eggers is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:25 AM.


Advertisement
Log in to turn off these ads.