FYI,
with something like this:
hotelement = "hotelement"+ho tcount;
hotspot = Builder.node('d iv', { id:'hotspot'+ho tcount,
className:'hots pot', style:''+divsty le }, [
Builder.node('s elect', {id:hotelement, onChange:hotspo tlink}, [
Builder.node('o ption',{value:' textfield',
selected:''},"t extfield"),
Builder.node('o ption',{value:' textarea'},"tex tarea"),
Builder.node('o ption',{value:' dropdown'},"dro pdown"),
Builder.node('o ption',{value:' checkbox'},"che ckbox"),
Builder.node('o ption',{value:' number'},"numbe r"),
Builder.node('o ption',{value:' date'},"date"),
Builder.node('o ption',{value:' time'},"time")
])
]);
$('column_conta iner').appendCh ild( hotspot );
$(hotelement).s electedIndex = 1;
the
$(hotelement).s electedIndex = 1;
fixes the problem 2 3876
sicapitan wrote:
<snip>
Builder.node('o ption',{value:' textfield', selected:''},"t extfield"),
Because you are not including the code for the objects/method/functions
being used here it is impossible to tell what these 'parameters' are
intended for, but it seems likely that whether - selected - is destined
to be an element property or an attribute (unlikely given the poor
support on IE) the value of an empty string would be a useful value to
be using. If the intention is to set a - selected - property of the
element then because the empty string type-converts to boolean false
when assigned to a boolean element value the result would be an option
that was _not_ selected, and the only value for a selected attribute is
the string "selected".
<snip>
$(hotelement).s electedIndex = 1;
the
$(hotelement).s electedIndex = 1;
fixes the problem
What problem? Not by any chance the problem that you expect the second
option to be selected and that is not the case without the explicit
assignment to the selectedIndex?
Richard.
i made a mistake, selected:'selec ted'
its a bug in FF apparently, mentioned elsewhere, setting the index
fixes it
problem was no option was selected, and it would jump to the last, as
the builder code would write selected='selec ted' with no defaults to a
blank value.
cheers
r
Richard Cornford wrote:
sicapitan wrote:
<snip>
Builder.node('o ption',{value:' textfield', selected:''},"t extfield"),
Because you are not including the code for the objects/method/functions
being used here it is impossible to tell what these 'parameters' are
intended for, but it seems likely that whether - selected - is destined
to be an element property or an attribute (unlikely given the poor
support on IE) the value of an empty string would be a useful value to
be using. If the intention is to set a - selected - property of the
element then because the empty string type-converts to boolean false
when assigned to a boolean element value the result would be an option
that was _not_ selected, and the only value for a selected attribute is
the string "selected".
<snip>
$(hotelement).s electedIndex = 1;
the
$(hotelement).s electedIndex = 1;
fixes the problem
What problem? Not by any chance the problem that you expect the second
option to be selected and that is not the case without the explicit
assignment to the selectedIndex?
Richard.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: paradox |
last post by:
How can I go about having a TreeNode selected when I right click? I
tried using the Click event, but the event does not pass in the node
that was clicked.
Currently you have to left click a node in order to select it. I want
to be able to write click and bring up a context menu with only certain
options available depending on the node selected. I got the context
menu to come up (which is very easy to do), however, you first have to
left...
|
by: Bill |
last post by:
Hi All,
I've populated a treeview with a few nodes, setting the '.TAG' property
for each node
When the user clicks on a node, how do I retrieve the value of the
'.TAG'. (also in which event should I place it)
TIA
|
by: Chris Ashley |
last post by:
I'm trying to use a treeview control for navigation in an app. How do I
determine which node has been selected? I can't use the text property
because some nodes have the same name, and the index property returns the
index of the node but not where it is in the hierarchy. How else can I
determine which nod was selected?
|
by: Sam |
last post by:
Hi,
I'd like to get the selected node when the user select a node in my
treeview. I know how to get the selected node, what I don't know is how
to detect that the user has selected a new node.
What methods should I use ?
thx
|
by: kt |
last post by:
How do you go about this. Can some point me in the right direction. Thanks in
advance.
| |
by: Antonio |
last post by:
Hi,
I would like to have my TreeNode to call window.close(); without posting
back, how can I do that? At the same time, I prefer to have a SelectAction
property that allows my TreeNode to appear as hyperlink with hand-cursor
when hover.
For your information, my TreeView control is on a master page. I have done
some tricks but when clicking the node, it does the post-back and my page
appears empty with nothing on it except the popup...
|
by: Claire |
last post by:
I've a treeview control containing a root node with several children on a
windows form.
I select a node with a left mouse button click.
I then select one of the other nodes with right mouse click to bring up my
context menu. The Popup event of this enables menu items depending on the
node selected.
The new node highlights, and my context menu pops up but I noticed that the
enabled state of the menu items was incorrect.
Tracing into my...
|
by: Tom |
last post by:
Hey,
I have a treeview control which i am reading and writing slots to (Its a
player manager for Delta Force Black Hawk Down).
At the moment, every 100ms it reads through the games memory to retreive
the player info, which i can parse. Problem is is that if you have an
item selected, when it clears and remakes all the nodes it deselects the
one selected, making it pretty useless to select players to view details.
|
by: =?Utf-8?B?TWFyaw==?= |
last post by:
In Visual Basic 2008 how do I programmatically set a node to selected?
For example, my treeview has several nodes with dates, and I want set one
of the dates as selected because it happens to match a date variable.
How would I go about this?
Thanks for any help!
Mark
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |