Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListI want the UDT to show in a new page when i press searchI want the UDT to show in a new page when i press search
Previous
 
Next
New Post
7/16/2009 3:49 AM
 

Dear Stefan

That's exactly what i need to hide the other modules , can you give me an example how to do that  (subscribe to the search buttons click event with a jquery script which applies some css to all other modules ) , here is the site www.imexguide.com  , sorry for being late in reply .

 
New Post
7/16/2009 3:24 PM
 

Sorry, I am not willing to do that. Your request is not trivial, and I can not spend hours on it just for fun.

 
New Post
7/16/2009 3:44 PM
 

you'll need to do 3 things

1) intercept the search button click event and execute a jquery function
2) figure out a way to address the modules you want to hide
3) use jquery to hide them

So, here's some code that might help you...

1) say for example, you have a button with an ID of "btnSearch", you can hook into the click event using jquery like this...

$("#btnSearch").click(function () {
    });


2) There are many ways to select items in jquery.  Among those, you can select things to hide by 'class', 'div' ,or 'ID'.  You'll need someway to identify which items you want to select. The easiest way would be by container. I would suggest creating a specialized container where the overall wrapping container has a class attribute, for example, class="hideme", then use that container for all of the modules that you want to be able to hide. 

3) Now, in your jquery function, you can quickly hide all items that have a class attribute of "hideme"...

$("#btnSearch").click(function () {
    (".hideme").hide();
    });


Now, with those few lines of code, when the btnSearch button is clicked, all of the items on your page with a class of "hideme" will be hidden.

 
New Post
7/18/2009 7:28 AM
 

Dear Steve

Thank you for replying it is really helping , but i still can't get it running i set the container to "hideme" class but i get an error in the xsl here is the button code

Search:
<input type="text" name="{$prefix_param}_searchPostback" value="{$search}" /><input type="submit" name="go" value="{//udt:Context/udt:LocalizedString_Search}" /><input type="hidden" name="{$prefix_param}_ispostback" value="true" /><input type="hidden" name="{$prefix_param}_ispostback2" value="true" /><input type="hidden" name="{$prefix_param}_ispostback3" value="true" />
 </xsl:template>
$("#search").click(function () {

    (".hideme").hide();

    });

thanks for your patience

 
New Post
7/18/2009 9:19 AM
 

You don't really specify 'what' the error is that you are getting .. but looking at the snippet you pasted, it doesn't look like you've assigned an ID property to your search button.  When you use jQuery and do something like $("#search"), it tells the jQuery engine to find a DOM object with an ID of "search".

So, try changing this...

<input type="submit" name="go" 
value="{//udt:Context/udt:LocalizedString_Search}" />


to this..

<input type="submit" ID="search" name="go" 
value="{//udt:Context/udt:LocalizedString_Search}" />

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListI want the UDT to show in a new page when i press searchI want the UDT to show in a new page when i press search


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out