Re: [twsocket] Webapp pulldown list

2011-02-18 Thread Ruud Kerstens

Thanks Peter,

I will try to get it working that way. Still a newbie in html java etc ;-)

Ruud

Op 18-2-2011 12:10, Busai Péter schreef:

Or using javascript it could be possible to change form's "action" value
dinamically to the selected option link and submit a simple get.
Hmm, using onChange and javascipt you dont even need a form.
But than it is OT here.


As Francois suggested, embedd select in a form and add define onchange
event to select.





In URLHandlerSomething do a relocation to the posted link

Peter


The code I had was for a table, giving 'hyperlinks' to the items.


Satellite-name
<#table_rows  SatList>
<#SAT>



So when i select my 'value' in the pulldown, it needs to open the link
satlist?CUS=<#CUS>&SATNAME=<#SAT>

Ruud Kerstens

Op 18-2-2011 11:11, Francois PIETTE schreef:

Is there a way to activate the link in the pulldown after selecting it?

Sorry, I don't understand the question.
Maybe you want to make the pulldown par of a html form. Just give a
name attribute to the select tag and it will be sent as a field when
the form is submitted. Your Delphi code can then grab the value of
the selected option as any other form variable.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Webapp pulldown list

2011-02-18 Thread Busai Péter
Or using javascript it could be possible to change form's "action" value
dinamically to the selected option link and submit a simple get.
Hmm, using onChange and javascipt you dont even need a form.
But than it is OT here.

> As Francois suggested, embedd select in a form and add define onchange
> event to select.
> 
> 
> 
> 
>
> In URLHandlerSomething do a relocation to the posted link
>
> Peter
>
>> The code I had was for a table, giving 'hyperlinks' to the items.
>>
>> 
>> Satellite-name
>> <#table_rows  SatList>
>> <#SAT>
>> 
>> 
>>
>> So when i select my 'value' in the pulldown, it needs to open the link
>> satlist?CUS=<#CUS>&SATNAME=<#SAT>
>>
>> Ruud Kerstens
>>
>> Op 18-2-2011 11:11, Francois PIETTE schreef:
 Is there a way to activate the link in the pulldown after selecting it?
>>> Sorry, I don't understand the question.
>>> Maybe you want to make the pulldown par of a html form. Just give a
>>> name attribute to the select tag and it will be sent as a field when
>>> the form is submitted. Your Delphi code can then grab the value of
>>> the selected option as any other form variable.
>>>
>>> -- 
>>> francois.pie...@overbyte.be
>>> The author of the freeware multi-tier middleware MidWare
>>> The author of the freeware Internet Component Suite (ICS)
>>> http://www.overbyte.be 
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Webapp pulldown list

2011-02-18 Thread Busai Péter
As Francois suggested, embedd select in a form and add define onchange
event to select.





In URLHandlerSomething do a relocation to the posted link

Peter

> The code I had was for a table, giving 'hyperlinks' to the items.
>
> 
> Satellite-name
> <#table_rows  SatList>
> <#SAT>
> 
> 
>
> So when i select my 'value' in the pulldown, it needs to open the link
> satlist?CUS=<#CUS>&SATNAME=<#SAT>
>
> Ruud Kerstens
>
> Op 18-2-2011 11:11, Francois PIETTE schreef:
>>> Is there a way to activate the link in the pulldown after selecting it?
>>
>> Sorry, I don't understand the question.
>> Maybe you want to make the pulldown par of a html form. Just give a
>> name attribute to the select tag and it will be sent as a field when
>> the form is submitted. Your Delphi code can then grab the value of
>> the selected option as any other form variable.
>>
>> -- 
>> francois.pie...@overbyte.be
>> The author of the freeware multi-tier middleware MidWare
>> The author of the freeware Internet Component Suite (ICS)
>> http://www.overbyte.be 
>
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Webapp pulldown list

2011-02-18 Thread Ruud Kerstens

The code I had was for a table, giving 'hyperlinks' to the items.


Satellite-name
<#table_rows  SatList>
<#SAT>



So when i select my 'value' in the pulldown, it needs to open the link 
satlist?CUS=<#CUS>&SATNAME=<#SAT>


Ruud Kerstens

Op 18-2-2011 11:11, Francois PIETTE schreef:

Is there a way to activate the link in the pulldown after selecting it?


Sorry, I don't understand the question.
Maybe you want to make the pulldown par of a html form. Just give a 
name attribute to the select tag and it will be sent as a field when 
the form is submitted. Your Delphi code can then grab the value of the 
selected option as any other form variable.


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Webapp pulldown list

2011-02-18 Thread Francois PIETTE

Is there a way to activate the link in the pulldown after selecting it?


Sorry, I don't understand the question.
Maybe you want to make the pulldown par of a html form. Just give a name 
attribute to the select tag and it will be sent as a field when the form is 
submitted. Your Delphi code can then grab the value of the selected option 
as any other form variable.


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Webapp pulldown list

2011-02-18 Thread Ruud Kerstens
Ok, I understand Francois, it is related to the web-app server, and not 
midware.


Is there a way to activate the link in the pulldown after selecting it?

The pulldown works perfect!

Best regards,

Ruud

Op 18-2-2011 10:23, Francois PIETTE schreef:


Ruud Kerstens wrote in Midware mailing list:

Now I am able to
get the information in a table in the webscreen, however due to
screenlimitations i need to create a pulldown and fill it with the
variable i retrieve.

The variable works fine in a table, but my dropdown/pulldown box does
not get any entry.


A pulldown list is an html select tag. It has option inner tag similar 
like this:


Ruud
Peter



The option part is just like a table as far as ICS page producer is 
concerned. You use the exact same construction as to build an html 
table, except the html elements are no option instead of tr and td. 
Delphi code is the same.


In ICS webpage template, the TABLE_ROWS system is not tied to html 
table. It can be used whenever you have repeating html code to produce.


Your template should looks like:

<#TABLE_ROWS PULLDOWN>
<#DISPLAY>



--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Webapp pulldown list

2011-02-18 Thread Francois PIETTE


Ruud Kerstens wrote in Midware mailing list:

Now I am able to
get the information in a table in the webscreen, however due to
screenlimitations i need to create a pulldown and fill it with the
variable i retrieve.

The variable works fine in a table, but my dropdown/pulldown box does
not get any entry.


A pulldown list is an html select tag. It has option inner tag similar like 
this:


 Ruud
 Peter



The option part is just like a table as far as ICS page producer is 
concerned. You use the exact same construction as to build an html table, 
except the html elements are no option instead of tr and td. Delphi code is 
the same.


In ICS webpage template, the TABLE_ROWS system is not tied to html table. It 
can be used whenever you have repeating html code to produce.


Your template should looks like:

<#TABLE_ROWS PULLDOWN>
 <#DISPLAY>



--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be