R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
redirect to another page using dropdown box
Last Post 01 Jan 1900 05:00 AM by . 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
shalikXUser is Offline
New Member
New Member
Posts:17

--
15 Mar 2007 05:15 PM  
I am using following in my listX with in Default Item (No Query)Section. when user selects any state i want to navigate to the url "tabid/220/state/[value]/default.aspx" I tried with different options but no result. Please help me. Thanks
emaynardUser is Offline
Basic Member
Basic Member
Posts:182

--
15 Mar 2007 08:41 PM  
just shooting form the hip here, but I think what you'll need to do is to define a onchange javascript function to your Select tag that looks something like this:

emaynardUser is Offline
Basic Member
Basic Member
Posts:182

--
15 Mar 2007 08:47 PM  
Ok, Let's try that again: just shooting form the hip here, but I think what you'll need to do is to define a onchange javascript function to your Select tag that looks something like this:

< select name="cboState" onchange="window.location.replace('tabid/220/state/[cboState,FORM]/default.aspx') ...>



I think that will pull the form value OK, but if not you could separate out the javascript into it's own script block and then grab the value from the DOM

< select name="cboState" onchange="redirect();" ...>

In the module footer or at the bottom of your item detail template:

< script language="javascript">

function redirect ()
{ var cboStateValue = document.getElementById('cboState'); window.location.replace ('tabid/220/state/' + cboStateValue.value + '/default.aspx')
}

< / script>


This should get you started in the right direction anyway. -eric
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share