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 -> General/Other

 OnClick calling form with Attributes.

Print topic Send  topic

Author Message
Jan K. van Dalen
Posted: 12/05/2007, 4:20 PM

I have a ImageLink (HTML). I also have an atribute which work but not in
this situation. Maybe someone can assist me on how to get this to work:

<img style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px;
BORDER-BOTTOM: 0px"
onclick="window.open('contacts_view.asp?{ImageLink1:attribContactsID}','','toolbar=no')"
src="images/view.gif">

This is surrounded with an <a> tag.

My problem is that the attribute: {ImageLink1:attribContactsID} is not
populating (and yes ... it is working correctly outside this code).

Maybe there is another way to achieve what I need which is basically, when
calling a form from a grid (using an image), it should load on another
window with no toolbars and with specific dimensions.

Any ideas?

datadoit
Posted: 12/05/2007, 6:12 PM

Jan K. van Dalen wrote:

> onclick="window.open('contacts_view.asp?{ImageLink1:attribContactsID}','','toolbar=no')"

Perhaps the "attrib" portion of your statement needs to be removed?

onclick="window.open('contacts_view.asp?{ImageLink1:ContactsID}','','toolbar=no')"
Waspman

Posts: 948
Posted: 12/06/2007, 12:57 AM

I do it with an image link using js like this...


stick this in you head...

<script language="JavaScript"><!--Hidefromoldbrowsers
function launchpopup(Page){newwin=window.open(Page,"Name","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=100,left = 0,top = 0");

}
// end hiding --></script>


and this as your link


href="javascript:launchpopup('CopyAddress.asp?CusID={CusID}')"



HTH


Tony

_________________
http://www.waspmedia.co.uk
View profile  Send private message
Jan K. van Dalen
Posted: 12/06/2007, 12:39 PM

How then will I pass the id?

BTW, thanks for taking the time to help

"datadoit" <datadoit@forum.codecharge> wrote in message
news:fj7lqg$vlf$1@news.codecharge.com...
> Jan K. van Dalen wrote:
>
>> onclick="window.open('contacts_view.asp?{ImageLink1:attribContactsID}','','toolbar=no')"
>
> Perhaps the "attrib" portion of your statement needs to be removed?
>
> onclick="window.open('contacts_view.asp?{ImageLink1:ContactsID}','','toolbar=no')"
>

datadoit
Posted: 12/06/2007, 1:47 PM

Jan K. van Dalen wrote:
> How then will I pass the id?
>
> BTW, thanks for taking the time to help
>
-----------------------------------------

The ID still gets passed as a parameter, I'm just suggesting that
perhaps the problem is the "attrib" portion, unless the actual name of
your attribute is "attribContactID", and not just "ContactID".
Jan K. van Dalen
Posted: 12/06/2007, 6:54 PM

Thank you ...

"Waspman" <Waspman@forum.codecharge> wrote in message
news:24757b95f3ae83@news.codecharge.com...
>I do oit with js like this...
>
>
> stick this in you head...
>
> <script language="JavaScript"><!--Hidefromoldbrowsers
> function
> launchpopup(Page){newwin=window.open(Page,"Name","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=100,left
> = 0,top = 0");
>
> }
> // end hiding --></script>
>
>
> and this as your link
>
>
> href="javascript:launchpopup('CopyAddress.asp?CusID={CusID}')"
>
>
>
> HTH
>
>
> Tony
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

Jan K. van Dalen
Posted: 12/06/2007, 6:55 PM

Now I understand ... thanks.

"datadoit" <datadoit@forum.codecharge> wrote in message
news:fj9ql2$ekk$1@news.codecharge.com...
> Jan K. van Dalen wrote:
>> How then will I pass the id?
>>
>> BTW, thanks for taking the time to help
>>
> -----------------------------------------
>
> The ID still gets passed as a parameter, I'm just suggesting that perhaps
> the problem is the "attrib" portion, unless the actual name of your
> attribute is "attribContactID", and not just "ContactID".


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.