CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 using the Href source to call a Div

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 02/18/2015, 4:46 PM

hi all..
I have floatbox set up on a page, a grid and a record in an update panel.
The record is in side a div (div id = "test1")
the edit link on the grid has a class of floatbox and the href source is set to #test1

The edit link has this when you hover over it:

http://localhost/NewProject5/NewPage3.php#test1?classlistid=13

The floatbox JS fires but it doesnt pull up the div contents.

Am I referencing the Div wrong in the Href Source?

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
eratech


Posts: 513
Posted: 02/19/2015, 5:23 PM

I can't be sure but I suspect it's something in the full link in the Href. I've had similar href/JS issues before but I've never used floatbox so I can't be sure.

Can you debug/step through the floatbox JS and see what it's receiving as the DIV?

Also - could you hard code just the

#test1?classlistid=13

into the href (or even into a plain <a> with the floatbox class) and see if that works?

E
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
View profile  Send private message
ckroon

Posts: 869
Posted: 02/19/2015, 6:09 PM

Nah that didnt work.. then CCS went and removed my link.. so frustrating.. Ill have to think of another approach.
Thanks anyways
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
eratech


Posts: 513
Posted: 02/21/2015, 1:51 AM

It sounds whatever you put into the link, CCS barfed on it.

Try this - add a non-CCS link (the normal <a href> and give it the floatbox class - now add an attribute to the grid row with the id to pass to the floatbox - so CCS shouldn't try to 'fix' the link, and the attribute will pass the info:

<a href="#test?classid={Grid1:AttrID}" class="floatbox">show details</a>

(to anyone that hasn't used Attributes, look them up in the Help - you can't just type the code into the link and have CCS know where to put the data)

Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia
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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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