Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Programming > PHP - Code
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23rd October 2008, 19:20
D4PHP User
 
Join Date: Oct 2008
Posts: 32
patok is on a distinguished road
Default Problemas con ButtonView

Hola a todos, mi problema es que tengo este componente tipo menu y he programado en el evento onclick de javascript lo siguiente:
tag = event.getTarget().tag;
if(tag == '1') {
window.location = "Menu.php"; }
if(tag == '2') {
window.location = "FrmCapturaBC.php"; }

Lo que pasa es que solo me reconoce el primero, porque cuando le doy click al otro menu(tag = 2) no sirve(don't go) y no se porque, alguna idea de que sera?? lo que quiero hacer es ver otra pagina dependiendo del menu que elige el usuario.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 23rd October 2008, 19:21
D4PHP User
 
Join Date: Oct 2008
Posts: 32
patok is on a distinguished road
Default Trouble whit ButtonView Component

Hello everybody, my problem is that I have this component type menu and I've programmed into the onclick event of the following javascript:
tag = event.getTarget().tag;
if(tag == '1') {
window.location = "Menu.php"; }
if(tag == '2') {
window.location = "FrmCapturaBC.php"; }

What happens is that I only recognize the first, because when I click to another menu (tag = 2) does not and do not know why, any idea that will be? I want to do is see another page depending on the menu that the user chooses...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 23rd October 2008, 22:20
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

First, you did assign tags to the buttons?

Then to test just make your ButtonView1JSClick event say:
Code:
       tag = event.getTarget().tag;
       alert(tag);
To verify that you are getting proper button identifier.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 23rd October 2008, 22:27
D4PHP User
 
Join Date: Oct 2008
Posts: 32
patok is on a distinguished road
Default resolve the problem

Thank's, already resolve the problem, the code has no problem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:58.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use