using javascript with xforms

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

using javascript with xforms

Prameela R

Hello,

 

I am trying to print the IP address using the javascript

 

 

<?xml version="1.0" encoding="iso-8859-1"?>

 <html xmlns="http://www.w3.org/1999/xhtml"

xmlns:xforms="http://www.w3.org/2002/xforms"

xmlns:event="http://www.w3.org/2001/xml-events">

<head>

 

<script language="javascript">             

function changeMe(){

   alert("hhhhhhhddddddddddddddddddddddddddddddddhh   %%%IP%Host: %%HOST%%");

VIH_BackColor = "palegreen";

VIH_ForeColor = "navy";

VIH_FontPix = "16";

VIH_DisplayFormat = "You are visiting from:IP Address: %%%IP%Host: %%HOST%%";

VIH_DisplayOnPage = "yes";

}

</script>

<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>

 

 

 

<xforms:model id="myModel">

<xforms:instance id="myInstance">

<text xmlns="">Change Me!</text>

</xforms:instance>

<xforms:instance id="script">

<script url="javascript:changeMe()"/>

</xforms:instance>

</xforms:model>

</head>

<body>

<xforms:input ref="/text"/>

<xforms:trigger>

<xforms:label>Change!</xforms:label>

<xforms:load resource="javascript:changeMe()" event:event="DOMActivate"/>

</xforms:trigger>

</body>

</html>

 

 

The above code works fine with chiba. But with orbeon it is always in loading state.

How to make it work with orbeon.

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: using javascript with xforms

Ryan Puddephatt-3

Change

 

<xforms:load resource="javascript:changeMe()" event:event="DOMActivate"/>

 

To

 

<xxforms:script event:event=”DOMActivate”>changeMe()</xxforms:script>

 

Also you won’t need the script instance

 

-----------------------------------------------

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email: [hidden email]

Web: http://www.latentzero.com

 

From: Prameela R [mailto:[hidden email]]
Sent: 01 December 2008 12:11
To: [hidden email]
Subject: [ops-users] using javascript with xforms

 

Hello,

 

I am trying to print the IP address using the javascript

 

 

<?xml version="1.0" encoding="iso-8859-1"?>

 <html xmlns="http://www.w3.org/1999/xhtml"

xmlns:xforms="http://www.w3.org/2002/xforms"

xmlns:event="http://www.w3.org/2001/xml-events">

<head>

 

<script language="javascript">             

function changeMe(){

   alert("hhhhhhhddddddddddddddddddddddddddddddddhh   %%%IP%Host: %%HOST%%");

VIH_BackColor = "palegreen";

VIH_ForeColor = "navy";

VIH_FontPix = "16";

VIH_DisplayFormat = "You are visiting from:IP Address: %%%IP%Host: %%HOST%%";

VIH_DisplayOnPage = "yes";

}

</script>

<script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>

 

 

 

<xforms:model id="myModel">

<xforms:instance id="myInstance">

<text xmlns="">Change Me!</text>

</xforms:instance>

<xforms:instance id="script">

<script url="javascript:changeMe()"/>

</xforms:instance>

</xforms:model>

</head>

<body>

<xforms:input ref="/text"/>

<xforms:trigger>

<xforms:label>Change!</xforms:label>

<xforms:load resource="javascript:changeMe()" event:event="DOMActivate"/>

</xforms:trigger>

</body>

</html>

 

 

The above code works fine with chiba. But with orbeon it is always in loading state.

How to make it work with orbeon.

 

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws