Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > Programming and XML > Ajax and XML

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-25-2008, 04:45 PM
annbiddlecombe
 
Posts: n/a

Default Help anyone!!



Hi, I need some help, I want to add 2 validate boxes and a search button. This
is what i want it to do: When i select a country in "box 1" i want to display
the area's for that country in "box 2", now i want the search button to go to
the address for example (http://www.name.com/(country)/(area).htm). (country)
and (area) coming from the selected boxes.
Can this be done if so how, I been trying to do this for over a week im quite
new at this i can design normal pages but i need help with this. Please send me
an e-mail if you can help or if you know of the codeing i need. Cheeers

Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-25-2008, 06:59 PM
kinblas
 
Posts: n/a

Default Re: Help anyone!!

We're missing some context here, for example, is this country and area data
fetched from a server? What's the format of the data? etc.

This sounds very similar to this sample:


http://labs.adobe.com/technologies/s...tMasterDetailS
ample.html

If you followed the model of the sample above, all you would need to do is
have a detail region that contained a form and your search button:

<div spry:detailregion="dsStates dsCities">
<form action="http://www.name.com/{dsStates::name}/{dsCi ties::name}.htm">
<input type="submit" value="Search" />
</form>
</div>

--== Kin ==--

Reply With Quote
  #3 (permalink)  
Old 11-26-2008, 02:16 PM
annbiddlecombe
 
Posts: n/a

Default Re: Help anyone!!

Hi, kinbas. Thank you for your help i will try and use the example your
suggested. The data im using is not in any form i just wanted to a type it all
in, but i will see if i can do it as the example suggests. as i said i am quite
new at this spry i mainly design my sites in dreamweaver and i've never had
much call to do any programming. Thank you again

Reply With Quote
  #4 (permalink)  
Old 11-30-2008, 12:13 PM
annbiddlecombe
 
Posts: n/a

Default Re: Help anyone!!

Hi, ok i've tryed that but now it displays nothing, what am i doing wrong? or
hav i missed something out? this is the data i want to display:
<?xml version="1.0">
<states>
<state>
<name>Austria</name>
<url>austria.xml</url>
</state>
<state>
<name>Balearic-Islands</name>
<url>balearic.xml</url>
</state>
<state>
<name>Belgium</name>
<url>belgium.xml</url>
</state>
<state>
<name>Bulgaria</name>
<url>bulgaria.xml</url>
</state>

<states> In this manner: <p>Country:
<span spry:region="dsStates" id="stateSelector">
<select spry:repeatchildren="dsStates" name="stateSelect"
onChange="document.forms[0].citySelect.disabled = true;
dsStates.setCurrentRowNumber(this.selectedIndex);" >
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}"
selected="selected">{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{name}">{name}</option>
</select>
</span></p>
<p>
Area:
<span spry:region="dsCities dsStates dsStates"
id="citySelector">

<select spry:repeatchildren="dsCities" id="citySelect" name="citySelect">
<option spry:if="{dsStates::ds_RowNumber} ==
{dsStates::ds_CurrentRowNumber}" value="{dsStates::name}"
selected="selected">{dsStates::name}</option>
<option spry:if="{dsStates::ds_RowNumber} !=
{dsStates::ds_CurrentRowNumber}"
value="{dsStates::name}">{dsStates::name}</option>
</select>
</span> </p>
<label></label>
<div align="left"></div>
<div spry:detailregion="dsStates dsCities">
<p align="left"><span class="style17">
<a href="Destinations/holiday-destinations/{name}/{dsCities::name}.htm"
class="style5">Search</a></span></p>
Any suggestions?

Reply With Quote
  #5 (permalink)  
Old 12-03-2008, 08:22 PM
kinblas
 
Posts: n/a

Default Re: Help anyone!!

Hi,

I would have to see everything in context. For example your code above is missing the code that creates your data sets.

--== Kin ==--
Reply With Quote
Reply


Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 12:04 PM.
Style Developed by Epic Designz