<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[funzione cerca parola in codice php]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, ho un problema e spero che qualcuno possa darmi una mano.</p>
<p dir="auto">Avevo bisogno di una funzione simile al ctr+f di firefox da inserire nella mia pagina web...mi spiego meglio...una funzione cerca, per trovare una precisa parola nella pagina...<br />
il problema è che non è una semplice pagina html ma c'è anche del codice php, infatti avevo trovato qualcosa che poteva fare al caso mio ma la parte in php non la trova.</p>
<p dir="auto">Questo è quello che avevo trovato</p>
<pre><code class="language-html">&lt;iframe id="srchform2"   src="javascript:'&lt;html&gt;&lt;body style=margin:0px; &gt;&lt;form action=\'javascript:void();\' onSubmit=if(this.t1.value!=\'\')parent.findString(this.t1.value);return(false); &gt;&lt;input type=text id=t1 name=t1 value=text size=20&gt;&lt;input type=submit name=b1 value=Cerca&gt;&lt;/form&gt;&lt;/body&gt;&lt;/html&gt;'"   width=220 height=34 border=0 frameborder=0 scrolling=no&gt; &lt;/iframe&gt;  &lt;script language="JavaScript"&gt; &lt;!-- var TRange=null;  function findString (str) {  if (parseInt(navigator.appVersion)&lt;4) return;  var strFound;  if (window.find) {    // CODE FOR BROWSERS THAT SUPPORT window.find    strFound=self.find(str);   if (!strFound) {    strFound=self.find(str,0,1);    while (self.find(str,0,1)) continue;   }  }  else if (navigator.appName.indexOf("Microsoft")!=-1) {    // EXPLORER-SPECIFIC CODE    if (TRange!=null) {    TRange.collapse(false);    strFound=TRange.findText(str);    if (strFound) TRange.select();   }   if (TRange==null || strFound==0) {    TRange=self.document.body.createTextRange();    strFound=TRange.findText(str);    if (strFound) TRange.select();   }  }  else if (navigator.appName=="Opera") {   alert ("Opera browsers not supported, sorry...")   return;  }  if (!strFound) alert ("String '"+str+"' not found!")  return; } //--&gt; &lt;/script&gt;
</code></pre>
<p dir="auto">Grazie in anticipo..</p>
]]></description><link>https://dev.connect.gt/topic/186850/funzione-cerca-parola-in-codice-php</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 02:43:46 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/186850.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Mar 2013 23:04:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to funzione cerca parola in codice php on Wed, 27 Mar 2013 00:50:54 GMT]]></title><description><![CDATA[<p dir="auto">La funzione CTRL+F di Firefox serve per trovare parole nel sorgente della pagina. La F sta per Find, verbo trovare in inglese. Il sorgente della pagina non include il tuo PHP che hai lato server, ecco perché l'acronimo di PHP si legge HPP, Hypertext <strong>Pre</strong>-Processor, perché il sorgente lo elabora PRIMA di mandarlo al browser. L'unica cosa che puoi trovare con una funzione javascript (quello che hai postato è javascript non PHP) è il sorgente restituito al browser, in quanto quest'ultimo il PHP non sa neanche cosa sia.</p>
<p dir="auto">Saluti.</p>
]]></description><link>https://dev.connect.gt/post/1117779</link><guid isPermaLink="true">https://dev.connect.gt/post/1117779</guid><dc:creator><![CDATA[francesco.di.caprio]]></dc:creator><pubDate>Wed, 27 Mar 2013 00:50:54 GMT</pubDate></item></channel></rss>