CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Button Link

Print topic Send  topic

Author Message
datadoit.com
Posted: 07/07/2004, 11:01 AM

How can I use a button in a similar fashion to using a link? I need to be
able to preserve parameters and pass more parameters in the URL. Thus, my
typical method of:

onclick: parent.location('newpage.php')

doesn't keep existing parameters or allow me to pass additional parameters.

TIA.

-MikeR

klwillis


Posts: 428
Posted: 07/07/2004, 1:11 PM

Your javascript would need to be modified to pass parameters:

i.e. onClick = "JavaScript:parent.location('newpage.php?uid=10000');



_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
datadoit.com
Posted: 07/07/2004, 4:28 PM

"klwillis" <klwillis@forum.codecharge> wrote in message
news:540ec58e455e73@news.codecharge.com...
> Your javascript would need to be modified to pass parameters:
>
> i.e. onClick = "JavaScript:parent.location('newpage.php?uid=10000');
>
--------

How would that 'uid=10000' be dynamically attached?

Last Hero
Posted: 07/08/2004, 2:39 AM

>How would that 'uid=10000' be dynamically attached?
add label component(in html mode):

... onClick = "JavaScript:parent.location('newpage.php?uid={label_uid}');...

and set value for this label in BeforeShow event.
klwillis


Posts: 428
Posted: 07/08/2004, 8:42 AM

Another way to do this is to use the Set Tag action for {label_uid}.

You could do also do with witthin the BeforeShow event. :-)

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
datadoit.com
Posted: 07/10/2004, 7:47 AM

<LastHero@forum.codecharge (Last Hero)> wrote in message
news:540ed164a9fe97@news.codecharge.com...
> >How would that 'uid=10000' be dynamically attached?
> add label component(in html mode):
>
> .. onClick =
"JavaScript:parent.location('newpage.php?uid={label_uid}');...
>
> and set value for this label in BeforeShow event.
>

Okay, here's what I've done:

1. Placed a label on the page called TestLabel, and assigned it a value in
BeforeShow:
$TestLabel->SetValue("TestValue");

2. Placed a button on the page, which looks like this in HTML mode:

<html>
<head>
<title>JavaButtons</title>
</head>
<body>
<p>This page will test Java action buttons.</p>
<p>{TestLabel}</p>
<p>
<!-- BEGIN Button Button_URLParam --><input
onclick="Javascript:parent.location='JavaButtons2.php?Test={TestLabel}';"
type="submit" value="Button with URL Param" name="{Button_Name}"
language="javascript"><!-- END Button Button_URLParam --></p>
</body>
</html>

I see the assigned TestLabel value on the page just fine. However, the
value of TestLabel is not getting passed in the URL. What am I missing or
omitting? Thnx.

-MikeR

aakici


Posts: 49
Posted: 01/23/2005, 4:25 AM

How a good time to see a working code. Thanks MikeR
_________________
Regards,
M.Alpaslan AKICI
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.