You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "GT Project IRIS - CANARIA, Clemen R." <zc...@smtp.globetel.com.ph> on 2004/09/23 21:48:19 UTC

javascript problem in mozilla/firefox

Hi guys,

Here's: my javascript: 

<script language="javascript">
	function popup(url) {
		var aWindow = window.open(url, 'popuplink_window', 'resizable,scrollbars,top=100,left=100,height=600,width=700', false);
		aWindow.focus();
    }
</script>

and here's my html mockup:

<input id="printUrl" type="hidden" jwcid="printUrl@Hidden" value="ognl:printUrl" encode="false"/>

<input label="message:btn.return" type="button" class="button" jwcid="@Submit" listener="ognl:listeners.processReturn" onclick='javascript: popup(document.getElementById("printUrl").value);'/>
						

it didnt work under mozilla/firefox. The url seemed to be blank when it was rendered by the firefox browser while in IE it worked just fine. I have check it using javascript alert(), in mozilla, url = "" but in IE it has value.

Thanks in advance.


========================================
Clemen Canaria                    Linux & Java Consultant
Email: ccanaria@gmx.net       Mobile: +63 916 536.73.43
Linux: the choice of the GNU generation.

**************************************************************************************
This e-mail message (including attachments, if any) is intended for the use of the individual or the entity to whom it is addressed and may contain information that is privileged, proprietary, confidential and exempt from disclosure.  If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender and delete this E-mail message immediately.
**************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: javascript problem in mozilla/firefox

Posted by Paul Ferraro <pm...@columbia.edu>.
Try this...

onclick="popup(this.form.printUrl.value)"


GT Project IRIS - CANARIA, Clemen R. wrote:

>Hi guys,
>
>Here's: my javascript: 
>
><script language="javascript">
>	function popup(url) {
>		var aWindow = window.open(url, 'popuplink_window', 'resizable,scrollbars,top=100,left=100,height=600,width=700', false);
>		aWindow.focus();
>    }
></script>
>
>and here's my html mockup:
>
><input id="printUrl" type="hidden" jwcid="printUrl@Hidden" value="ognl:printUrl" encode="false"/>
>
><input label="message:btn.return" type="button" class="button" jwcid="@Submit" listener="ognl:listeners.processReturn" onclick='javascript: popup(document.getElementById("printUrl").value);'/>
>						
>
>it didnt work under mozilla/firefox. The url seemed to be blank when it was rendered by the firefox browser while in IE it worked just fine. I have check it using javascript alert(), in mozilla, url = "" but in IE it has value.
>
>Thanks in advance.
>
>
>========================================
>Clemen Canaria                    Linux & Java Consultant
>Email: ccanaria@gmx.net       Mobile: +63 916 536.73.43
>Linux: the choice of the GNU generation.
>
>**************************************************************************************
>This e-mail message (including attachments, if any) is intended for the use of the individual or the entity to whom it is addressed and may contain information that is privileged, proprietary, confidential and exempt from disclosure.  If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender and delete this E-mail message immediately.
>**************************************************************************************
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org