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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedURGENT HELP NEEDED - Help with HTTP Post for URL Redirect In MenuURGENT HELP NEEDED - Help with HTTP Post for URL Redirect In Menu
Previous
 
Next
New Post
12/9/2012 11:28 PM
 

Currently I have a menu-item which when you click it will take the user to an external page.  The problem is I need the URL to have x,y,z appended to the end of the URL depending on which link in the menu they click.  But I also can't have that value displayed in the address bar.

 So as an example the clear text url would be, http://externalsite.com/login.aspx?Myid=123&Myspecialrefno=5678

 

But I need Myid, and MyspecialrefNo to be encoded/non-plaintext values, and I cannot have their true values visible in the code of the page. 

 

What is the best approach for this?  I've considered a simple http POST, but I"m not sure the best way to implement this in the menu as it is for the external redirect!


___________________________________________ Make It a Great Day! D-Man
 
New Post
12/10/2012 7:10 AM
 
I've done something silimar in a page outside of DNN and here's what I did:

1) link to a special page
2) set values to hiddin controls
3) use javascript to post the page

That works well for me since I can't show these values, like in your case.

Mark
 
New Post
12/10/2012 7:18 AM
 

Mark,

  Thanks for the suggestion.  I was really trying to avoid doing that, but it sounds like that may be my only surefire method.  

 If anyone else has an idea sans javascript/hidden controls I'd love to hear it.  But for now I may try this until I see anything else.


___________________________________________ Make It a Great Day! D-Man
 
New Post
12/13/2012 12:42 PM
 

Mark,

  Do you havve any code you would be willing to share.  This really has been driving me nuts and I just want to have it done once and for all.  If you have something you wouldn't mind sharing so I can just modify it as needed I would be forever greatful.


___________________________________________ Make It a Great Day! D-Man
 
New Post
12/13/2012 12:59 PM
 
1) Place a few hidden HTML input controls on a page and set their values to the 2 you need to pass.

2) Use javascript at the end of the page to submit the form when the page loads:

document.forms["sw"].submit();

The values I post are dynamically set using code, so my 2 input controls look like this:

< input name="value1" value="< % CallSomeCodeHereToSetAValue % >" />

Then the page posts using javascript and the user sees a quick post but that lasts less than a second.

Does that help?

Mark

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedURGENT HELP NEEDED - Help with HTTP Post for URL Redirect In MenuURGENT HELP NEEDED - Help with HTTP Post for URL Redirect In Menu


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