<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012759" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012759</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074201</link>
    <description> &lt;p&gt;That&#039;s what I thought you&#039;d say. Was hoping to just canablize the perl script but doesn&#039;t seem possible.&lt;/p&gt;
&lt;p&gt;Oh well. Thanks for the input everyone. Going to bug them over at the Javascript forum....&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2000 13:59:02 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1074201 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I hope you notice the solution is in JAVASCRIPT</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074193</link>
    <description> &lt;p&gt;Going back a few posts, that&#039;s because CGI/Perl &lt;strong&gt;CANNOT WORK CLIENT SIDE&lt;/strong&gt; which is what would have to happen for an internal target to work without reloading the document currently in the browser.&lt;/p&gt;
&lt;p&gt;CGI/Perl -- SERVER SIDE&lt;br /&gt;
JavaScript -- CLIENT SIDE&lt;/p&gt;
&lt;p&gt;Server side means the request is sent to the server, and the server returns the new document (MUST refresh the page in the window if it&#039;s the same page), whereas client side means the request is sent only to the browser, and can therefore either send a request from there to the server (in the case of a new document) or pop down the page (in the case of an internal target in an existing document).&lt;/p&gt;
&lt;p&gt;So you can&#039;t do it with Perl because you cannot use SERVER SIDE TECHNOLOGY to affect a change CLIENT SIDE without serving up a new document.&lt;/p&gt;
&lt;p&gt;Capiche?&lt;/p&gt;
&lt;p&gt;You can have a JavaScript drop-down form that does this, however.  Quite easily.  But not a Perl form that is parsed through the server.  It CANNOT BE DONE.&lt;/p&gt;
&lt;p&gt;Suzanne&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2000 07:24:26 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1074193 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074188</link>
    <description> &lt;p&gt;I think I know what you want, but I need to see an example (URL please) to understand what the form is doing.&lt;/p&gt;
&lt;p&gt;I&#039;m guessing that you have a text box.  put some url in it and click &#039;go&#039;.  then the CGI prints the http://$url page.  Did I get that right?&lt;/p&gt;
&lt;p&gt;What you want to do is use a form with a text box.  allow users to put a (valid) bookmark in the text box, and click &#039;go&#039;. Then have the browser internally jump to the ancher tag.  Did I get that right?&lt;/p&gt;
&lt;p&gt;I wrote this up in a minute or so.  I&#039;m not quite sure if it works though, it&#039;s too fast to notice, so you&#039;ll have to try it with more content on it.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;amp;lt;script language=javascript&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function go() {&lt;br /&gt;	self.location=&amp;quot;#&amp;quot;+place.value&lt;br /&gt;}&lt;br /&gt;//--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;input type=text name=place&amp;gt;&lt;br /&gt;&amp;lt;input type=button onClick=&amp;quot;go()&amp;quot; value=&amp;quot;Go&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;BR&amp;gt;x&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;&amp;lt;a name=&amp;quot;bottom&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2000 05:29:42 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1074188 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074178</link>
    <description> &lt;p&gt;Suzanne - &lt;strong&gt;Bingo!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That&#039;s the problem. When the script is running there is no page relative to the script. So there is no bookmark for the browser to understand.&lt;/p&gt;
&lt;p&gt;I don&#039;t want to use url#bookmark. That&#039;s what I have now and that obviously causes a full reload of the page even if it&#039;s a jump to a book mark just a few clicks down. The point of the (hopeful) modification is to speed up going to bookmarks with in the same page.&lt;/p&gt;
 </description>
     <pubDate>Thu, 16 Nov 2000 02:45:47 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1074178 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>one more time...</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074162</link>
    <description> &lt;p&gt;Internal anchors are only understood relative to the page.&lt;/p&gt;
&lt;p&gt;So if you want to go to &lt;a href=&quot;http://www.somesite.com/somepage.html#target&quot; title=&quot;www.somesite.com/somepage.html#target&quot;&gt;www.somesite.com/somepage.html#target&lt;/a&gt;, you need to have the full url if no page is loaded (because there is no context for the link).  Okay, this much you have straight, right?&lt;/p&gt;
&lt;p&gt;So, for the script, what you want to have is two options or variables.  One is the url of the page (full) and the other is any internal target.  Check to see if there is a target (if target, then print url#target, if no target, print url).&lt;/p&gt;
&lt;p&gt;Right?&lt;/p&gt;
&lt;p&gt;Suzanne&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Nov 2000 23:21:52 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1074162 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074140</link>
    <description> &lt;p&gt;One more time:&lt;/p&gt;
&lt;p&gt;I have an HTML doc that usues a clickgo Perl CGI script via a Form. The form sends a url to the script. The script takes the url, adds &lt;a href=&quot;http://&quot; class=&quot;bb-url&quot;&gt;http://&lt;/a&gt; and goes to that page. This functionality works fine.&lt;/p&gt;
&lt;p&gt;But I want to modify the script (if possible) so that instead of always assuming you&#039;re sending it a url it will accept a bookmark instead. In that case instead of trying to goto a new web page it should just jump to the tag in the current HTML doc.&lt;/p&gt;
&lt;p&gt;It sounded simple enough. But the problem I think is that jumping to a bookmark (such as with &lt;a href=&quot;#bookmark&quot;&gt;) is internal to the specific HTML doc. The script is running via link (i.e. not inline with the HTML doc). As such when the script runs there is no page it&#039;s associated with. It&#039;s just a Perl cgi script running. It doesn&#039;t know what page it came from so there&#039;s no bookmark tag to be found.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ll try to put the full script up on a page shortly so you can see.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Nov 2000 18:46:52 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1074140 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>the page doesn&#039;t reload for anchors, necessarily</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074138</link>
    <description> &lt;p&gt;But if the tag is in the HTML of the document, no matter how it gets there, it works the same. &lt;/p&gt;
&lt;p&gt;You might be missing the &lt;a name=&quot;whatever&quot;&gt; that the &lt;a href=&quot;#whatever&quot;&gt; is calling.&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Your problem, as you have explained it, doesn&#039;t make sense.  If the page is being printed with links on it, and those links are for internal targets, and those are valid HTML, it should work.  Period.&lt;/p&gt;
&lt;p&gt;Please provide more code!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Nov 2000 18:37:13 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1074138 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074128</link>
    <description> &lt;p&gt;Japhy - I agree and understand.&lt;/p&gt;
&lt;p&gt;Let me put it another way:&lt;/p&gt;
&lt;p&gt;Suppose you have an HMTL doc with a link to some CGI script. When the user clicks the link the script is run (i.e. a &quot;goto script&quot; is performed). Now suppose the script wants to return the user to a specifc place back in the html doc. The script is in control, not the local html doc. Inorder for the script to return to a specific place in the html it has to use the full url to reload the page (i.e. [url]http://www.somewhere.com/somepage.htm#bookmark).[/url] It can&#039;t use just #bookmark.&lt;/p&gt;
&lt;p&gt;Try it yourself. Load a page with a bookmark. After it loads type #whatever in the url line. It won&#039;t work.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Nov 2000 15:15:29 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1074128 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074126</link>
    <description> &lt;p&gt;The server has NOTHING to do with URL fragments (the &quot;#anchor&quot; text at the end of a URL).  The server does not have the ability to position a file in a browser window at a certain line.&lt;/p&gt;
&lt;p&gt;Rather, the browser has EVERYTHING to do with the &quot;#anchor&quot; text -- there is absolutely no server interaction or intervention when you click on a link to jump to another section of the page.&lt;/p&gt;
&lt;p&gt;This means that you &lt;strong&gt;can&lt;/strong&gt; use such anchor tags in your program, Jaeim.&lt;/p&gt;
&lt;p&gt;And the browser could care less where the document came from.  It can&#039;t tell an HTML document from a program returning HTML content.  It just doesn&#039;t know.&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Nov 2000 14:48:07 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1074126 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-help-modifying-perl-script#comment-1074122</link>
    <description> &lt;p&gt;My Perl isn&#039;t up to where I&#039;d like it to be (yet!) so I was just copying what was already in the script.&lt;/p&gt;
&lt;p&gt;The point of my second post is that I don&#039;t think using &lt;a href=&quot;#bookmark&quot;&gt; will work either. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Since the HTML document is calling a CGI script it may look like the page is still on the screen. But from the POV of the browser control has been transfered to the CGI script so there is no html doc any more in memory to find the bookmark in.&lt;/p&gt;
&lt;p&gt;I could use &lt;a href=&quot;http://www.mydomain.com/mypage.htm#bookmark&quot;&gt; but that would cause a full reload of the page and take much time. I&#039;m trying to use the clickgo script to jump to the bookmark directly without having to reload the entire page.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The only thing I can think of is to create some Javascript instead and I really don&#039;t want to do that.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
 </description>
     <pubDate>Wed, 15 Nov 2000 14:00:08 +0000</pubDate>
 <dc:creator>Jaiem</dc:creator>
 <guid isPermaLink="false">comment 1074122 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
