Re: Help creating a link that "Approves" a record or a link that autologins and filte
Anyhow:
emailbody
login.a5w
As for opening the tab, on the main.a5w page (the one with your tabbedUI on it), check if the session.__protected__redirect exists, if it does, print out javascript to open a new tab
I forgot the code to open a new tab. Im pretty sure its tabalias.addPane() or something like that.
Search for TabbedControlUI javascript functions.
In the below, the tabalias is "tbi" so you would use tbi.addPane
Anyhow:
emailbody
Code:
<%a5 dim pageToHandle as C="gridpage.a5w?id=100" dim pageLink as C="http://mywebsite.com/login.a5w?r="+urlencode(pageToHandle) 'use pagelink in an email %>
login.a5w
Code:
if eval_valid("Request.Variables.r") then session.__protected__redirect=urldecode(Request.Variables.r) end if
As for opening the tab, on the main.a5w page (the one with your tabbedUI on it), check if the session.__protected__redirect exists, if it does, print out javascript to open a new tab
I forgot the code to open a new tab. Im pretty sure its tabalias.addPane() or something like that.
Search for TabbedControlUI javascript functions.
In the below, the tabalias is "tbi" so you would use tbi.addPane
HTML Code:
Delete tmpl DIM tmpl as P tmpl = a5w_load_component("tabui_mainpage") ''SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (LOAD:tabui_mainpage) 'Override settings start ----------------------------------------- with tmpl [B].alias = "tbi"[/B] end with 'Override settings end ----------------------------------------- delete x_out dim x_out as p x_out = a5w_run_Component(tmpl) 'SYSTEM GENERATED COMMENT - PLEASE DO NOT REMOVE (RUN:tmpl) (EDIT:tabui_mainpage) ?x_out.Output.Head.JavaScript ?x_out.Output.Head.CSS_Link ?x_out.Output.Head.Title
Comment