Instance Variables in JavaScript

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

Instance Variables in JavaScript

NJ No1

Hey guys,

 

From an Xforms page I wanted to create a popup to another page. I wanted to do this using Javascript: “window.open('http://localhost:8080/DwrTest1/index.html?id=blah’)”.

 

 The other preferred option was doing this with an iframe like:

<xhtml:iframe name="iframe" src="http://localhost:8080/DwrTest1/index.html?id=blah"/>

 

Either way, I wanted to replace “blah” with a variable stored in the Xforms instance. I tried something like window.open('http://localhost:8080/DwrTest1/index.html?id=<xforms:output ref=instance(‘req_instance’)/id/>”) but that returned some errors. Does anyone know the syntax I have to use?

 

Thanks,

Naman

 

NOTICE

This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Erik Bruchez
Administrator
Naman,

You can do this with xforms:load, which in Orbeon Forms supports
attribute value templates. Something like:

<xforms:load
   resource="http://localhost:8080/DwrTest1/index.html?id={/some/xpath}"
   xxforms:target="my-new-window"/>

-Erik

Naman Joshi wrote:

> Hey guys,
>
>  
>
>  From an Xforms page I wanted to create a popup to another page. I
> wanted to do this using Javascript:
> “window.open('http://localhost:8080/DwrTest1/index.html?id=blah’)”.
>
>  
>
>  The other *preferred* option was doing this with an iframe like:
>
> <xhtml:iframe name="iframe"
> src="http://localhost:8080/DwrTest1/index.html?id=blah"/>
>
>  
>
> Either way, I wanted to replace “blah” with a variable stored in the
> Xforms instance. I tried something like
> window.open('http://localhost:8080/DwrTest1/index.html?id=<xforms:output
> ref=instance(‘req_instance’)/id/>”) but that returned some errors. Does
> anyone know the syntax I have to use?
>
>  
>
> Thanks,
>
> Naman*//*
>
>  
>
> NOTICE
>
> This e-mail and any attachments are confidential and may contain
> copyright material of Macquarie Bank or third parties. If you are not
> the intended recipient of this email you should not read, print,
> re-transmit, store or act in reliance on this e-mail or any attachments,
> and should destroy all copies of them. Macquarie Bank does not guarantee
> the integrity of any emails or any attached files. The views or opinions
> expressed are the author's own and may not reflect the views or opinions
> of Macquarie Bank.
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Instance Variables in JavaScript

NJ No1
Oh cool thanks Erik. But I realised now that I would really really like
to do it using iframe....i tried the { brackets but that didn't work??

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Tuesday, 1 May 2007 3:35 PM
To: [hidden email]
Subject: Re: [ops-users] Instance Variables in JavaScript

Naman,

You can do this with xforms:load, which in Orbeon Forms supports
attribute value templates. Something like:

<xforms:load
   resource="http://localhost:8080/DwrTest1/index.html?id={/some/xpath}"
   xxforms:target="my-new-window"/>

-Erik

Naman Joshi wrote:

> Hey guys,
>
>  
>
>  From an Xforms page I wanted to create a popup to another page. I
> wanted to do this using Javascript:
> "window.open('http://localhost:8080/DwrTest1/index.html?id=blah')".
>
>  
>
>  The other *preferred* option was doing this with an iframe like:
>
> <xhtml:iframe name="iframe"
> src="http://localhost:8080/DwrTest1/index.html?id=blah"/>
>
>  
>
> Either way, I wanted to replace "blah" with a variable stored in the
> Xforms instance. I tried something like
>
window.open('http://localhost:8080/DwrTest1/index.html?id=<xforms:output

> ref=instance('req_instance')/id/>") but that returned some errors.
Does

> anyone know the syntax I have to use?
>
>  
>
> Thanks,
>
> Naman*//*
>
>  
>
> NOTICE
>
> This e-mail and any attachments are confidential and may contain
> copyright material of Macquarie Bank or third parties. If you are not
> the intended recipient of this email you should not read, print,
> re-transmit, store or act in reliance on this e-mail or any
attachments,
> and should destroy all copies of them. Macquarie Bank does not
guarantee
> the integrity of any emails or any attached files. The views or
opinions
> expressed are the author's own and may not reflect the views or
opinions
> of Macquarie Bank.
>


--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Erik Bruchez
Administrator
Naman,

At the moment, you can't in Orbeon Forms dynamically control attributes
of the host language (HTML), although that would be really nice to have.

To do this, you will have to use some JavaScript. Try checking this part
of the doc as a start:

http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-javascript

-Erik

Naman Joshi wrote:

> Oh cool thanks Erik. But I realised now that I would really really like
> to do it using iframe....i tried the { brackets but that didn't work??
>
> -----Original Message-----
> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: Tuesday, 1 May 2007 3:35 PM
> To: [hidden email]
> Subject: Re: [ops-users] Instance Variables in JavaScript
>
> Naman,
>
> You can do this with xforms:load, which in Orbeon Forms supports
> attribute value templates. Something like:
>
> <xforms:load
>    resource="http://localhost:8080/DwrTest1/index.html?id={/some/xpath}"
>    xxforms:target="my-new-window"/>
>
> -Erik
>
> Naman Joshi wrote:
>> Hey guys,
>>
>>  
>>
>>  From an Xforms page I wanted to create a popup to another page. I
>> wanted to do this using Javascript:
>> "window.open('http://localhost:8080/DwrTest1/index.html?id=blah')".
>>
>>  
>>
>>  The other *preferred* option was doing this with an iframe like:
>>
>> <xhtml:iframe name="iframe"
>> src="http://localhost:8080/DwrTest1/index.html?id=blah"/>
>>
>>  
>>
>> Either way, I wanted to replace "blah" with a variable stored in the
>> Xforms instance. I tried something like
>>
> window.open('http://localhost:8080/DwrTest1/index.html?id=<xforms:output
>
>> ref=instance('req_instance')/id/>") but that returned some errors.
> Does
>> anyone know the syntax I have to use?
>>
>>  
>>
>> Thanks,
>>
>> Naman*//*
>>
>>  
>>
>> NOTICE
>>
>> This e-mail and any attachments are confidential and may contain
>> copyright material of Macquarie Bank or third parties. If you are not
>> the intended recipient of this email you should not read, print,
>> re-transmit, store or act in reliance on this e-mail or any
> attachments,
>> and should destroy all copies of them. Macquarie Bank does not
> guarantee
>> the integrity of any emails or any attached files. The views or
> opinions
>> expressed are the author's own and may not reflect the views or
> opinions
>> of Macquarie Bank.
>>
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Alessandro Vernet
Administrator
In reply to this post by NJ No1
On 4/30/07, Naman Joshi <[hidden email]> wrote:
> Oh cool thanks Erik. But I realised now that I would really really like
> to do it using iframe....i tried the { brackets but that didn't work??

Using an iframe? Could you clarify this?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Instance Variables in JavaScript

NJ No1
Well I want to display another webpage inside an Xforms page. This other
page (http://localhost:8080/Dwr/index.html?txid=) takes in an attribute
txid which i want to get from an Xforms instance variable.

I understand you can change the src of the iframe using Javascript but I
don't know how to access a value in the xforms instance.

Hope that made sense

NJ

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Wednesday, 2 May 2007 10:54 AM
To: [hidden email]
Subject: Re: [ops-users] Instance Variables in JavaScript

On 4/30/07, Naman Joshi <[hidden email]> wrote:
> Oh cool thanks Erik. But I realised now that I would really really
like
> to do it using iframe....i tried the { brackets but that didn't work??

Using an iframe? Could you clarify this?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/


NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Alessandro Vernet
Administrator
On 5/1/07, Naman Joshi <[hidden email]> wrote:
> I understand you can change the src of the iframe using Javascript but I
> don't know how to access a value in the xforms instance.

OK, you can do this with ORBEON.xforms.Document.getValue("myControl").
You need to have a control bound to the node from which you want to
read the value. You will find more about this on:

http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-javascript-get-set-value

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Instance Variables in JavaScript

NJ No1
I hope you don't mind me replying to you directly...i just didn't want
to flood the mailing list.

I saw that in the documentation before but I thought there might've been
a way without setting up a control. Anyways I tried it and unfortunately
it doesn't work when I'm using it in a portlet in Liferay. I used
Firebug and found that I got this error:

element has no properties
http://localhost:8080/ops/ops/javascript/xforms.js
Line 197

If I call this app from the normal localhost:8080/ops/testApp then it
works.

Any ideas?
NJ


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Wednesday, 2 May 2007 12:51 PM
To: [hidden email]
Subject: Re: [ops-users] Instance Variables in JavaScript

On 5/1/07, Naman Joshi <[hidden email]> wrote:
> I understand you can change the src of the iframe using Javascript but
I
> don't know how to access a value in the xforms instance.

OK, you can do this with ORBEON.xforms.Document.getValue("myControl").
You need to have a control bound to the node from which you want to
read the value. You will find more about this on:

http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-javascript-get-
set-value

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/


NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Alessandro Vernet
Administrator
Naman,

On 5/1/07, Naman Joshi <[hidden email]> wrote:
> I hope you don't mind me replying to you directly...i just didn't want
> to flood the mailing list.

Don't worry about flooding the mailing list. In fact it is better to
respond on the mailing list, rather than in private, so everyone can
contribute to the discussion and benefit from the information which is
exchanged.

> I saw that in the documentation before but I thought there might've been
> a way without setting up a control. Anyways I tried it and unfortunately
> it doesn't work when I'm using it in a portlet in Liferay. I used
> Firebug and found that I got this error:
>
> element has no properties
> http://localhost:8080/ops/ops/javascript/xforms.js
> Line 197

Is the control an xforms:input? If it is not, can you try with an
xforms:input and let me know if it works? If it doesn't work with an
XForms input, can you take a screenshot of the stack trace for this
error in Firebug?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Instance Variables in JavaScript

NJ No1

Alex,

 

I did use xforms:input and there isn't really any stack trace. Firebug just shows that there was an error on that line. (Print Screen attached)

 

Joseph also advised me of another option:

 

<xforms:action>

<xforms:load resource="http://www.google.com" xxforms:target="iframe"/>

</xforms:action>

 

This was placed in a trigger action and this actually works in Liferay. But I really wanted the iframe to load as soon as the page loads rather than pressing a button. So I added:

 

<xforms:model>

...

      <xforms:action ev:event="xforms-ready">

            <xxforms:script>ORBEON.xforms.Document.dispatchEvent("main-model", "get-content-data");</xxforms:script>

      </xforms:action>

     

<xforms:action ev:event="get-content-data">

                  <xforms:load resource="http://www.google.com" xxforms:target="iframe"/>

      </xforms:action>

..

 

Now this works if you run it under Orbeon but unfortunately it doesn’t work in Liferay. I have a good feeling that Liferay doesn’t like this ORBEON.xforms.Document function. Furthermore nothing showed up in Firebug in this example????

 

I have attached the app, so if you extract it into the oxf:/apps directory you can see for yourself.

 

Thanks for everything

Naman

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet
Sent: Thursday, 3 May 2007 7:04 AM
To: [hidden email]
Subject: Re: [ops-users] Instance Variables in JavaScript

 

Naman,

 

On 5/1/07, Naman Joshi <[hidden email]> wrote:

> I hope you don't mind me replying to you directly...i just didn't want

> to flood the mailing list.

 

Don't worry about flooding the mailing list. In fact it is better to

respond on the mailing list, rather than in private, so everyone can

contribute to the discussion and benefit from the information which is

exchanged.

 

> I saw that in the documentation before but I thought there might've been

> a way without setting up a control. Anyways I tried it and unfortunately

> it doesn't work when I'm using it in a portlet in Liferay. I used

> Firebug and found that I got this error:

> 

> element has no properties

> http://localhost:8080/ops/ops/javascript/xforms.js

> Line 197

 

Is the control an xforms:input? If it is not, can you try with an

xforms:input and let me know if it works? If it doesn't work with an

XForms input, can you take a screenshot of the stack trace for this

error in Firebug?

 

Alex

--

Orbeon Forms - Web 2.0 Forms for the Enterprise

http://www.orbeon.com/

 

NOTICE

This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

error.jpg (183K) Download Attachment
dialog-control.zip (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Instance Variables in JavaScript

NJ No1

Did anyone get a chance to look at this? L

 


From: Naman Joshi
Sent: Thursday, 3 May 2007 11:03 AM
To: [hidden email]
Subject: RE: [ops-users] Instance Variables in JavaScript

 

Alex,

 

I did use xforms:input and there isn't really any stack trace. Firebug just shows that there was an error on that line. (Print Screen attached)

 

Joseph also advised me of another option:

 

<xforms:action>

<xforms:load resource="http://www.google.com" xxforms:target="iframe"/>

</xforms:action>

 

This was placed in a trigger action and this actually works in Liferay. But I really wanted the iframe to load as soon as the page loads rather than pressing a button. So I added:

 

<xforms:model>

...

      <xforms:action ev:event="xforms-ready">

            <xxforms:script>ORBEON.xforms.Document.dispatchEvent("main-model", "get-content-data");</xxforms:script>

      </xforms:action>

     

<xforms:action ev:event="get-content-data">

                  <xforms:load resource="http://www.google.com" xxforms:target="iframe"/>

      </xforms:action>

..

 

Now this works if you run it under Orbeon but unfortunately it doesn’t work in Liferay. I have a good feeling that Liferay doesn’t like this ORBEON.xforms.Document function. Furthermore nothing showed up in Firebug in this example????

 

I have attached the app, so if you extract it into the oxf:/apps directory you can see for yourself.

 

Thanks for everything

Naman

 

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet
Sent: Thursday, 3 May 2007 7:04 AM
To: [hidden email]
Subject: Re: [ops-users] Instance Variables in JavaScript

 

Naman,

 

On 5/1/07, Naman Joshi <[hidden email]> wrote:

> I hope you don't mind me replying to you directly...i just didn't want

> to flood the mailing list.

 

Don't worry about flooding the mailing list. In fact it is better to

respond on the mailing list, rather than in private, so everyone can

contribute to the discussion and benefit from the information which is

exchanged.

 

> I saw that in the documentation before but I thought there might've been

> a way without setting up a control. Anyways I tried it and unfortunately

> it doesn't work when I'm using it in a portlet in Liferay. I used

> Firebug and found that I got this error:

> 

> element has no properties

> http://localhost:8080/ops/ops/javascript/xforms.js

> Line 197

 

Is the control an xforms:input? If it is not, can you try with an

xforms:input and let me know if it works? If it doesn't work with an

XForms input, can you take a screenshot of the stack trace for this

error in Firebug?

 

Alex

--

Orbeon Forms - Web 2.0 Forms for the Enterprise

http://www.orbeon.com/

 

NOTICE

This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Alessandro Vernet
Administrator
In reply to this post by NJ No1
Naman,

On 5/3/07, Naman Joshi <[hidden email]> wrote:
> I did use xforms:input and there isn't really any stack trace. Firebug just
> shows that there was an error on that line. (Print Screen attached)

Can you try to click on the "+" in the Firebug console. That will open
the stack trace for that error. Then can you can take another
screenshot and attach it to your response?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Alessandro Vernet
Administrator
In reply to this post by NJ No1
Naman,

On 5/3/07, Naman Joshi <[hidden email]> wrote:
> Now this works if you run it under Orbeon but unfortunately it doesn't work
> in Liferay. I have a good feeling that Liferay doesn't like this
> ORBEON.xforms.Document function. Furthermore nothing showed up in Firebug in
> this example????

I don't have Liferay running here so I can't quickly test this. But we
might not have in place what is needed to run JavaScript on
xforms-ready in portlets. Could you attach to your response the HTML
generated by Liferay (save as from the browser) in this case where you
are running an xxforms:script on xforms-ready?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Instance Variables in JavaScript

NJ No1
In reply to this post by Alessandro Vernet
The screen-shot is attached. Thanks guys.

Naman

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of
Alessandro Vernet
Sent: Tuesday, 15 May 2007 10:50 PM
To: [hidden email]
Subject: Re: [ops-users] Instance Variables in JavaScript

Naman,

On 5/3/07, Naman Joshi <[hidden email]> wrote:
> I did use xforms:input and there isn't really any stack trace. Firebug
just
> shows that there was an error on that line. (Print Screen attached)

Can you try to click on the "+" in the Firebug console. That will open
the stack trace for that error. Then can you can take another
screenshot and attach it to your response?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/


NOTICE
This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

error.JPG (155K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Instance Variables in JavaScript

Alessandro Vernet
Administrator
Hi Naman,

On 5/21/07, Naman Joshi <[hidden email]> wrote:
> The screen-shot is attached. Thanks guys.

I see: you can calling getValue("urlinput") in your code, but because
the control is in a portlet, a prefix is happened to the actual HTML
control ID. This is because you could have the same control used
multiple times on the page in different portlets.

As a first step, can you have a look what the HTML id of the control
is by looking at the HTML source for the page, and then call
getValue() using that ID? Note that ID might change if the portlets
included in the page change, so if that happens, using the exact ID
won't work. Is this your situation?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws