How do i redirect to another page using generated html code by me?
675865Dec 19 2008 — edited Mar 11 2009Hello everyone.
I am developing a few applications inside apex with html generated code by me.
Right now i have generated a few buttons by placing the following code into a page's region:
----------------------------------------SOURCE---------------------------------------------------------
<div id="templatepopup" class="templatepopup"> </div>
<br>
<script type="text/javascript">
new Draggable('templatepopup', { scroll: window });
</script>
<div id="contentdiv">
<table >
<tr>
<td colspan="3" class="topleft" > Temas </td>
<td colspan="9" class="topright" >
<input class="bigbutton" type="button" value="Imprimir" onclick="abrir('imprimir')" >
<input class="bigbutton" type="button" value="Template" onclick="abrir('template')" >
<input class="bigbutton" type="button" value="Copiar" onclick="abrir('copiar')" >
</td>
</tr>
<tr>
<td colspan="3" class="middleleft" >
<select id="select_list_temas" onchange="get_select_list_mapas()" size="18" class="mediumselect">
</select>
</td>
<td colspan="9" class="middleright" >
<select id="select_list_mapas" size="18" class="bigselect">
</select>
</td>
</tr>
<tr>
<td colspan="3" class="bottomleft" >
<table>
<tr>
<td colspan="2"> <input class="bigbutton" type="button" value="Novo Tema" onclick="abrir('novo_tema')" > </td>
</tr>
<tr>
<td> <input class="mediumbutton" type="button" value="Apagar" onclick="apagar_tema()" > </td>
<td> <input class="mediumbutton" type="button" value="Editar" onclick="abrir('editar_tema')" > </td>
</tr>
</table>
</td>
<td colspan="9" class="bottomright" >
<table style="display:inline;">
<tr>
<td colspan="2"> <input class="bigbutton" type="button" value="Novo Mapa" onclick="abrir('novo_mapa')" > </td>
</tr>
<tr>
<td> <input class="mediumbutton" type="button" value="Apagar" onclick="apagar_mapa('apagar_mapa')" > </td>
<td> <input class="mediumbutton" type="button" value="Editar" onclick="window.location = 'f?p=&APP_ID.:1002:&SESION.:::::' " > </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
----------------------------------------SOURCE---------------------------------------------------------
1:
I have for example this button :
<input class="mediumbutton" type="button" value="Editar" onclick="window.location = 'f?p=&APP_ID.:1002:&SESION.:::::' " >
Which i want to redirect to page 1002, it seems to be working but it ALWAYS requires authentication before accessing page 1002 even if i've just been there.
Is there any way to remove this authentication? Because it isn t pratical that every time yo want to access the page you need to log in.
2:
It's not possible for me to simply put the page 1002 into a menu, because i need to set some session variables in the previous page so that when i redirect to page 1002 i have those session variables with values.
Is it possible to redirec to a page like
<input class="mediumbutton" type="button" value="Editar" onclick="window.location = 'f?p=&APP_ID.:1002:&SESION.:::::' " >
and having set some variables to access their value in page 1002?
I'll be thankfull for any help.
Edited by: Igor Carrasco on 19/Dez/2008 1:43