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 7th February 2010, 13:40
D4PHP User
 
Join Date: Jan 2010
Posts: 64
mhmda is on a distinguished road
Smile How to get Object "Tag" value using js

Hello,

I have a RadioButton, how can I get the "tag" value or the "hint" of this object using JS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 7th February 2010, 14:09
D4PHP User
 
Join Date: Jan 2010
Posts: 64
mhmda is on a distinguished road
Default

Later I found this code from 405hp, but it's not working in radiobutton?!!!

PHP Code:
function BitBtn1JSClick($sender, $params)
{

?>
alert(BitBtn1.myprop);
return (false);

<?php

}

function BitBtn1AfterShow($sender, $params)
{
echo "<script>BitBtn1.myprop='gobbledegook' ;</script>\n";


}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 7th February 2010, 14:12
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,268
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

You can't.

They are php only for this control. In general that goes for all tags in all components.

What you can do is output them yourself in the onaftershow event if you really need them.

For the gobbledygook thing - a bit button is a js object so that works. With an html object you need to do something like

echo "<script>findObj('RB1').myprop='gobbledegook' ;</script>\n";

Last edited by 405hp; 7th February 2010 at 14:15.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 7th February 2010, 14:45
D4PHP User
 
Join Date: Jan 2010
Posts: 64
mhmda is on a distinguished road
Default

I have found a solution by using hidden fields it works good.
AND I wanna thank you for your realy fast reply.

Last edited by mhmda; 8th February 2010 at 21:35.
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 23:59.




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