Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-2008, 05:31 PM
kosterloo
 
Posts: n/a
Spry select with xml data

Can this be done with Spry and if so, how please?

I would like to have a dropdown select on my page that is populated by the
lastname field in my database. Once selected I would like to display a table of
the data I selected from the dropdown. I am to connect to an XML datasource and
able to connect the dropdown to that last name field. I just don't know how to
get the selected last name from the drop down to display. Any help is greatly
appreciated.

<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="../../../SpryAssets/xpath.js" type="text/javascript"></script>
<script src="../../../SpryAssets/SpryData.js" type="text/javascript"></script>
<script type="text/javascript">
<!--

var ds1 = new Spry.Data.XMLDataSet("so.xml",
"RESULTS/ROW",{distinctOnLoad:true});

-->

</script>
</head>
<body>
<p></p>
<div spry:region="ds1">
<select name="selectLastName" spry:repeatchildren="ds1">
<option value="{GlobalSubjectLastName}";>{GlobalSubjectLas tName}</option>
</select>
</div>
<p></p>
<p></p>

<p>&nbsp;</p>
<p></p>
<p></p>
<div spry:region="ds1">
<table>
<tr>
<th spry:sort="GlobalSubjectFirstName">First Name</th>
<th>Middle Name</th>
<th spry:sort="GlobalSubjectLastName">Last Name</th>
<th> Address</th>
<th> City</th>
<th> State</th>
<th> Age</th>
<th>Charge Description</th>
</tr>
<tr spry:repeat="ds1" spry:setrow="ds1">
<td>{GlobalSubjectFirstName}</td>
<td>{GlobalSubjectMiddleName}</td>
<td>{GlobalSubjectLastName}</td>
<td>{GlobalSubjectAddress}</td>
<td>{GlobalSubjectAddressCity}</td>
<td>{GlobalSubjectAddressState}</td>
<td>{GlobalSubjectAge}</td>
<td>{ChargeStatuteDescription}</td>
</tr>
</table>
</div>
</body>
</html>

Reply With Quote
  #2 (permalink)  
Old 08-06-2008, 03:42 PM
Mangler
 
Posts: n/a
Re: Spry select with xml data



You have invalid code:

<select name="selectLastName" spry:repeatchildren="ds1">
<option value="{GlobalSubjectLastName}";>{GlobalSubjectLas tName}</
option>

there should not be a ";" in the select list value, it should be:

<select name="selectLastName" spry:repeatchildren="ds1">
<option value="{GlobalSubjectLastName}">{GlobalSubjectLast Name}</
option>


not sure if this will fix your problem, just something I noticed.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:28 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Child Trust Funds | Ringtones | Credit Cards | Remortgages | Personal Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114