[TYPO3-dev] Shortcut - both to FE and BE page

Tapio Markula tapio.markula at atwebteam.com
Thu Sep 14 10:13:29 CEST 2006


Hi

I got an idea to put shortcut both to FE page and BE and FE could be 
rendered in the frame "content"
See the form
http://schestowitz.com/Data/addressbar.html

alt_shortcut.php


	function main()	{
...
$this->doc->JScode.=$this->doc->wrapScriptTags('
...

	function goToURL(form) {
	query = form.query.value;
		if(query == null || query == "") {
			alert("Error: Missing URL");
			return false;
			}
	  parent.content.location.href = query;
	  //document.location.href = query; // original code doesn't have frame 
definition
	  return false;
	}

$this->content.='


			<!--
				Shortcut Display Table:
			-->
			<table style="margin: -10px 0 0 0 !important; height:auto !important" 
border="0" cellpadding="0" cellspacing="2" id="typo3-shortcuts">
				<tr>
				'.implode('
				',$this->lines).$editIdCode.'
				</tr>
			<tr>				
			</table>
			<form style="margin:0;" onsubmit="return goToURL(this)" 
action=""><table style="margin:0;" cellspacing="0" cellpadding="0" 
border="0"><tr><td>
<input name="query" type="text" size="50" maxlength="255" 
value="http://t3test.xetpoint.com/index.php?id=" /></td><td><input 
type="submit" value=" Go "/>
</td></tr></table></form>
			';
the www-address should of course fetch dynamic by some API functions.
The same concerns the label ' Go '

Well the problem is that that code doesn't work (HTML-source code is ok, 
but for some reason that doesn't work.




More information about the TYPO3-dev mailing list