Making xml list with links
I was able to create a list component in Flash 8 and load the
items from an
xml file, but I can't figure out how to make each line
clickable in order to
work as a link. The code used to populate the list is:
form = new Object();
form.load=xmlConn.trigger();
The xml file is something like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<articles>
<articles_items>
<title>Link text 2
</title>
<urlstring>article2.htm
</urlstring>
</articles_items>
<articles_items>
<title>Link text 1
</title>
<urlstring>article1.htm
</urlstring>
</articles_items>
</articles>
I intended to use the second field of each "articles_items",
the "urlstring"
field, to associate with each "title" listing on the list
component, so that
when "Link text 1" gets clicked it takes to "article1.htm".
The instances
created are named articlesList, xmlConn, articles_ds.
Here is xml code
<catalogue>
<sconces>
<images>
<image_chemin href="pt/ref115.png"/>
<image_gd href="gd/ref115.png"/>
<image_reference>ref : 115</image_reference>
<image_size>H: 25 in, W: 27 in</image_size>
</images>
<images>
Similar Messages
-
XML - pbm with links on interactive PDF
Hy
I'de like to maje an interactive PDF
It's a catalogue of objetcs with thumbnails and zoomed pictures of 400 references
A have an xml with this type of nodes :
My probleme is to automate insertion of links on each thumb to go to an anchor placed on the zommed picture (without making 400 anchors and 400 hyperlinks)
Anyone ever had this kind of problematic ?
L.Here is xml code
<catalogue>
<sconces>
<images>
<image_chemin href="pt/ref115.png"/>
<image_gd href="gd/ref115.png"/>
<image_reference>ref : 115</image_reference>
<image_size>H: 25 in, W: 27 in</image_size>
</images>
<images> -
hi,
How could i make menu of charts at right side of page, and if i click on each chart link the corresponding chart page should open, and i need to have the menu in all chart pages.You can create a List in the shared components (i.e. of the type vertical sidebar list). Each item in the list referes to a page with a chart.
On those pages you create a List Region, and link it to the list you've created before.
You can use position 3 to place this region, becouse this places the region on the right side of the page. -
List with link to another part of a page
http://labs.adobe.com/technologies/spry/demos/products/source.html
i'm trying to get the same result in the above 'sample' from the developer center for our 'staff' page.
i'd like to have a list of employee that you can click on and open a bio in another area (div) of the page without reloading the whole page. i think i'm on the right track but i'm extremely new to all of this.
is their a tutorial or video or anything that can show me how they did that in dreamweaver. i've looked at the code but like i said i'm really new.
thanks.Read:
http://labs.adobe.com/technologies/spry/articles/data_set_overview/index.html
http://labs.adobe.com/technologies/spry/docs.html
http://www.adobe.com/devnet/spry/
Uhm. Video tutorals:
http://www.lynda.com/home/DisplayCourse.aspx?lpk2=706 <-- Great resource
or search youtube for Spry master / detail
And.. http://tv.adobe.com/#se+Spry -
Revision: 18926
Revision: 18926
Author: [email protected]
Date: 2010-12-01 14:07:19 -0800 (Wed, 01 Dec 2010)
Log Message:
bug fix BLZ-570 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError
We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml.
This needs documentation.
Checkintests pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-570
Modified Paths:
blazeds/trunk/modules/common/src/flex/messaging/errors.properties
blazeds/trunk/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.java
blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java
blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf0Input.java
blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf3Input.java
blazeds/trunk/modules/core/src/flex/messaging/io/amf/AmfIO.java -
Revision: 20451
Revision: 20451
Author: [email protected]
Date: 2011-02-24 08:33:31 -0800 (Thu, 24 Feb 2011)
Log Message:
backporting bug fix BLZ-570/BLZ-620 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml. This needs documentation. Checkintests pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-570
http://bugs.adobe.com/jira/browse/BLZ-620
Modified Paths:
blazeds/branches/4.0.0_fixes/modules/common/src/flex/messaging/errors.properties
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.j ava
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Input.java
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Input.java
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.javaDear Pallavi,
Very useful post!
I am looking for similar accelerators for
Software Inventory Accelerator
Hardware Inventory Accelerator
Interfaces Inventory
Customization Assessment Accelerator
Sizing Tool
Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
Request help on such accelerators... Any clues?
Any reply, help is highly appreciated.
Regards
Manish Madhav -
Revision: 20443
Revision: 20443
Author: [email protected]
Date: 2011-02-23 21:19:22 -0800 (Wed, 23 Feb 2011)
Log Message:
back porting bug fix BLZ-570/BLZ-620 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml. This needs documentation. Checkintests pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-570
http://bugs.adobe.com/jira/browse/BLZ-620
Modified Paths:
blazeds/branches/3.x/modules/common/src/java/flex/messaging/errors.properties
blazeds/branches/3.x/modules/core/src/java/flex/messaging/endpoints/AbstractEndpoint.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/SerializationContext.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/amf/Amf0Input.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/amf/Amf3Input.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/amf/AmfIO.java -
Having trouble with Linked Lists
I'm making a JApplet with buttons from a Linked List, and the buttons should be unique but they're all returning the same icon and string. Also my refreshImages method and deleteStudents method aren't working except for the very last button. This seems like it's just because of how Linked Lists operate, but I can't wrap my head around it.
public class FacebookApplet extends JApplet implements ActionListener{
private Scanner input;
protected RefSortedList studentsList;
protected RefUnsortedList buttonList;
Student studentVar;
private JButton b, refreshButton, deleteButton;
private JPanel buttonPanel, etcPanel;
* Calls: readStudentNames, setUpImages
public void init(){
readStudentNames();
setUpImages();
setLayout(new BorderLayout());
setSize(500,670);
etcPanel = new JPanel(new BorderLayout());
refreshButton = new JButton("Refresh");
deleteButton = new JButton("Delete");
buttonList.reset();
etcPanel.add("West", refreshButton);
etcPanel.add("East", deleteButton);
add("North", buttonPanel);
add("South", etcPanel);
refreshButton.addActionListener(this);
deleteButton.addActionListener(this);
* Pre: students.dat in current directory
* studentList instantiated
* Post: studentList has Student objects with names, not images(yet)
* Purpose: to set up studentList with student names
private void readStudentNames(){
try {
FileReader dataInput = new FileReader("students.dat");
input = new Scanner(dataInput);
} catch (FileNotFoundException e) {
System.err.println("ERROR:Students.dat file not found");
e.printStackTrace();
studentsList = new RefSortedList();
while(input.hasNextLine()){
String studentName = input.nextLine();
studentVar = new Student(studentName);
studentsList.add(studentVar);
System.out.println(studentsList + "");
}//readStudentNames()
* Pre: studentList set up with names
* .jpg files are in current directory
* Post: buttons set up with images in buttonList and buttonPanel
* Purpose: to set up buttons with Student names and images
private void setUpImages(){
ImageIcon studentPic;
Student studentStringPic;
studentsList.reset();
buttonList = new RefUnsortedList();
buttonPanel = new JPanel(new GridLayout(5,3));
for (int k = 0; k < studentsList.size(); k++) {
studentPic = new ImageIcon(studentVar.toString() + ".jpg");
studentStringPic = new Student(studentVar.toString(), studentPic);
b = new JButton(studentStringPic.toString(), studentStringPic.getIcon());
b.setVerticalTextPosition(AbstractButton.BOTTOM);
b.setHorizontalTextPosition(AbstractButton.CENTER);
b.addActionListener(this);
buttonList.add(b);
buttonPanel.add(b);
studentsList.getNext();
* Pre: buttonList set up
* Post: All buttons enabled
* Purpose: To enable all buttons in buttonList
public void refreshImages(){
for(int i=0;i<buttonList.size();i++){
b.setEnabled(true);
buttonList.getNext();
* Pre: buttonPanel, buttonList set up
* Post: disabled buttons removed from buttonPanel
* Purpose: To delete those students whose buttons are disabled
private void deleteStudents(){
for(int k=0; k<buttonList.size();k++){
if(!b.isEnabled())
buttonPanel.remove(b);
buttonList.getNext();
this.repaint();
public void actionPerformed(ActionEvent e) {
JButton b = (JButton) e.getSource();
if(e.getSource() == deleteButton){
deleteStudents();
else if(e.getSource() == refreshButton){
refreshImages();
else{
b.setEnabled(false);
}Student Class:
public class Student implements Comparable{
private String name;
private Icon icon;
public Student(String nameT){
name = nameT;
public Student(String nameT, Icon iconT){
name = nameT;
icon = iconT;
public int compareTo(Object arg0) {
if(this.equals(name))
return 1;
else
return -1;
}//compareTo()
public boolean equals(){
boolean equalTo = false;
if(this.equals(name))
equalTo = true;
return equalTo;
}//equals()
* Pre: LL is instantiated and filled
* Post: none
* Purpose: return the name of the student
public String toString(){
return name;
}//toString()
public Icon getIcon(){
return icon;
}I fixed the other things, I just need to fix two more problems and then clean up my code so it looks more professional.
First problem: When I add the Student variables to the studentsList, they aren't sorted. I think this is because they aren't being read as Strings and so there's no way to compare them. I could just do studentVar.toString(), but then studentsList would be full of Strings and not Students. Any ideas?
* Pre: students.dat in current directory
* studentList instantiated
* Post: studentList has Student objects with names, not images(yet)
* Purpose: to set up studentList with student names
private void readStudentNames(){
try {
FileReader dataInput = new FileReader("students.dat");
input = new Scanner(dataInput);
} catch (FileNotFoundException e) {
System.err.println("ERROR:Students.dat file not found");
e.printStackTrace();
studentsList = new RefSortedList();
while(input.hasNextLine()){
String studentName = input.nextLine();
studentVar = new Student(studentName);
studentsList.add(studentVar);
System.out.println(studentsList + "");
}//readStudentNames()Here's the add() method of RefSortedList:
public void add(Comparable element)
// Adds element to this list.
LLObjectNode prevLoc; // trailing reference
LLObjectNode location; // traveling reference
Comparable listElement; // current list element being compared
boolean moreToSearch;
// Set up search for insertion point.
location = list;
prevLoc = null;
moreToSearch = (location != null);
// Find insertion point.
while (moreToSearch)
listElement = (Comparable)location.getInfo();
if (listElement.compareTo(element) < 0) // list element < add element
prevLoc = location;
location = location.getLink();
moreToSearch = (location != null); // stop looking at end of list
else
moreToSearch = false; // list element >= add element
// Prepare node for insertion.
LLObjectNode newNode = new LLObjectNode(element);
// Insert node into list.
if (prevLoc == null)
// Insert as first node.
newNode.setLink(list);
list = newNode;
else
// Insert elsewhere.
newNode.setLink(location);
prevLoc.setLink(newNode);
numElements++;
} -
How can I open a link to an xml document with a specific helper application?
I have an html file with links to multiple xml files. When I click on one of these links, I would like Firefox to use an application of my choosing (e.g., Xmetal) to open the xml file. It works great with sgml files, because I was able to associate the "sgml" content with my external application. I can't seem to make the same thing happen for xml files, though.
Many people on this thread have a common problem, how to download documents that have a .XML extension and then be able to view/edit them in Word. The issue is that Firefox does not treat a file it receives with a .XML extension as a download candidate, it just displays the XML in a tree structure in a popup window or a new tab. If there was an option to automatically (by configuration) open a .XML file in Word or even if it was a manual select option, that would solve the problem. Today you have to go through the process of saving the page, then when the popup down window indicates is completed, you use the right mouse to select open, when then takes you to Word (assuming Word is configured in your OS to process .XML files. This process is difficult to teach to non technical people because it error prone. Any help would be greatly appreciated.
-
How do I create an unordered list with three items and link to id's
How do I create an ordered list with three items and linl to id's on my page
Thanks, I guess what I was really asking, Is there a n option in the insert menu or somewhere where Dreamweaver does it for you.
I am not clear on what you are wanting DW to do for you? Is it that you want it to insert a three item unordered list? No - there's no such function. You would need to click in Design view where you want the list to go, click on the bulleted list icon on the Property inspector, and then enter the three items separated by carriage returns. Then you'd have to link each item specifically.
To enter the named anchors to element ID values, CS5 has no way to do this. You'd have to enter those links manually. -
Sorting singly linked list with minimum time complexity
Hi ...
anyone could tell me how can i sort singly linked list with minimum time complexity .... ????
Regards...By MergeSort or QuickSort O(n log n). But then you
have to first extract the objects in the list,sort
them, then rebuild the list. But it will still bealot
faster than by keeping the list linked.Technically, I believe insertion sort is marginally
faster for small n ( <20 or so).Woohoo! So for 20 out of the possible 2147483648 array
sizes Insetion is faster!
Unfortunately, checking for that case probably wastes
all the time you get from using the faster sort...
That would depend on the actual distribution off array sizes. So it's an engineering decision.
Sylvia. -
Trying to change reset my Apple ID as I can't remember it, however it is sending an email which says invalid link or a list with the option to change password which can't be clicked on? Can anybody please help? Going around in circles! Grrrrrrrrrrr
Is this your machine or the company's? Machines that came with Snow Leopard or earlier installed come with system and software install disks that can be used to reisntall the iApps that came with the machine orignally.
If this is your machine and it came with Snow Leopard or earlier installed the disk will look slimialr to one of these:
If it is the company's machine see if they have the disks.
Do a custom install and then use Software Update to update iPhoto to the highest version that is available. -
Item(select list) with LOV and Report with link = changed value item
Hello,
On one page I have:
- Item 'P_name' (select list) with LOV to select name of a person;
- Items 'factory' and Report 'factory'(standard created with 'Form with Report' on the same page).
Situation:
All works fine. I selected first a LOV Item 'P_name' (say 'Jane'). But....
Only when I select a record (to change the values) from the report 'factory' then LOV Item 'P_name' become empty. Report used a link to the same page to fill the report items 'factory' and make also the LOV item empty.
Question:
I have made a process that write the name 'Jane' to table.
I see two possibilities:
- LOV Item value => fill the LOV item with 'Jane' from the table before region. Is this possible?
- Report => What is the buttonname of reportlink? I can use this name in the processes.
Thanks Walter!1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
3) stick with "Always..." for now if you're using our auto-dml process(es)
regards,
raj -
i have make a database with linked list for a School student counselor.
The to be store is
student name, ID, Counseling Date, Progress
In there there will be record for a student and the Date and progress has to be stored for 4-weeks as the counseling is on weekly basis. These data items will be multivalued(what u say in Databases) how i can store this repetitive data in linked list for one student.By capsulating the data in objects and adding the objects to a linked list.
-
Getting null returned when working with Linked Lists
Ok, i'm having the same problem with a couple of methods that deal with linked lists, and i was hoping someone could lend me a hand. First off, the specifications for one of the methods:
An iterative procedure smallElements
PARAMETERS: a ListItem reference, ls
an integer n
RETURN VALUE: a new list identical to the given list, except
that it contains no occurrences of numbers greater than n.
for example, given input list ( 3 2 6 3 4 ) and 3,
the return value would be the list ( 3 2 3 )
And here is my code:
ListItem smallElements(ListItem ls, int n){
ListItem small = null;
ListItem result = small;
if(ls == null)
return null;
else{
while(ls!=null){
if(ls.number <=n){
result = new ListItem(ls.number, null );
result = result.next;
ls = ls.next;
return small;
Like the topic says, i keep getting null returned as a value. I have tried setting small= new ListItem(ls.number, null), and that actually returns the correct list, except that the first number is repeated twice. I would greatly appreciate any assistance.I am not sure I understand your code. What exactly are those ListItems? It seems to me that you are dealing with single List elements, while the specification says that you are supposed to return a List.
But the main error is that you have two ListItem objects there, which seems to fill the same purpose - only that you use one, and return the other. 'small', which is the one you return, never get set to anything else than null.
I think you should do something like this: make a new, empty list to return
for element in parameterlist
if number is smaller than n
add this element to returnlist
return returnlist
Maybe you are looking for
-
How to automate the Acrobat Reader plugin in Internet Explorer
Hi, I have been trying to figure out how to automate the Acrobat Reader plugin in Internet Explorer. My goal is to find a way to allow users of our web application to print PDFs to the default printer without having to go through the plugin's GUI. Ou
-
Uneconomical to replace the logic board in 2009 Mac Air. Any comments please?
I have a 2009 Mac Air which has been found to have a faultyskin sensor. I was advised that it would be uneconomical to replace the logic board. I would appreciate any comments.
-
Macbook pro new ssd hard drive upgrade
Hi i have a 2011 Mac book pro with a 320g hard drive. just purchased a samsung ssd 840 evo 250g hard drive that i want to upgrade. i am backing up my current hd using time machine on a external hd drive i have . my question is the new ssd drive i ha
-
I'm starting with the corrected JPEG and then highlighting the original video so they are both selected, but the JPEG settings are not applied to the video when I Sync Settings -- things like color, sharpening, and noise reduction.
-
Graph not displayed under Target- dbname- Performance
Performance graph not getting displayed in oem grid control. Here is how I am navigating to the screen: Targets->Databases->dbname->Performance. For some databases that are being monitored, the graph is displayed, for some it is not displayed. Is the