CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Opening Page Creates A Frame, Disables Datepicker

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 08/31/2009, 2:34 PM

OK, this has been driving me nuts. Version 3.2

I have a site where the 'datepicker' calendar JS is used. A client reported that when clicked it did nothing. Couldn't find any flaws in the JS. The child window just wouldn't open.

Then I noticed that Firefox indicated the whole site was running inside a frame.

The site runs the same app but with different databases (for different divisions in the company). The way this happens is through a session var which is passed from a dummy HTML page with an HTTP-EQUIV REFRESH CONTENT META tag in the header. I removed that tag and just used a regular <a href> in the HTML page with the appropriate parameters and it -still- creates a frame in the main page of the codecharge app.

BUT, if I call the CodeCharge starting page directly from my browser, no frame is created and the DatePicker works fine.

Maybe I'm dumber than a bag o' hammers but I don't get why the HTML page is creating a frame, either with the META tag and the plain ol' <a href>. What am I missing?

And... why would this mess up DatePicker?

Any thoughts?

TIA,

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
damian

Posts: 838
Posted: 08/31/2009, 5:36 PM

post a link to page?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
Suntower

Posts: 225
Posted: 08/31/2009, 5:40 PM

Quote damian:
post a link to page?

www.dgwebstore.com

TIA,

---JC

_________________
---On a campaign for more examples and better docs!
View profile  Send private message
damian

Posts: 838
Posted: 09/01/2009, 6:28 AM

the reason it appears to be in a frame is because it is in a frame...

<html><head><title>DGWEBSTORE.COM</title></head>  
<frameset rows="100%", *" border="0" frameborder="0">  
<frame src="http://66.114.87.42:3003" name="DGWEBSTORE.COM"></frameset>  
</html>

and then that redirects to another page?

http://66.114.87.42:7007/Login.asp?ret_link=%2Fmainmenu%2Easp%3FCOMPANYDB%3DC01%26LOCATIONID%3D01&type=notLogged


_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
Suntower

Posts: 225
Posted: 09/01/2009, 9:07 AM

NO. The source HTML for the default page is as follows:

<head>
<meta http-equiv="REFRESH"
content="0;URL=http://66.114.87.42:7007/mainmenu.asp?COMPANYDB=C01&LOCATIONID=01">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title></title>
</head>

<body>
</body>
</html>

...what you see is what gets served up to your browser. That's what has me flummoxed. What you are seeing in your browser is -not- the html on the web server. How come?

---JC


Quote damian:
the reason it appears to be in a frame is because it is in a frame...

<html><head><title>DGWEBSTORE.COM</title></head>  
<frameset rows="100%", *" border="0" frameborder="0">  
<frame src="http://66.114.87.42:3003" name="DGWEBSTORE.COM"></frameset>  
</html>

and then that redirects to another page?

http://66.114.87.42:7007/Login.asp?ret_link=%2Fmainmenu%2Easp%3FCOMPANYDB%3DC01%26LOCATIONID%3D01&type=notLogged



_________________
---On a campaign for more examples and better docs!
View profile  Send private message
jjrjr1


Posts: 942
Posted: 09/01/2009, 2:43 PM

Check you server.

You could have that domain forwarded somehow and the server will put the frame stuff into the HTML for Frame forwarding.


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
jjrjr1


Posts: 942
Posted: 09/01/2009, 2:44 PM

BTW It should not affect datepicker unless tha path to the include JS files is wrong in that instance

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
jjrjr1


Posts: 942
Posted: 09/01/2009, 2:47 PM

For a test just create a simple hello world type HTML page and see how the server serves it up.

Just a thought

_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
damian

Posts: 838
Posted: 09/01/2009, 3:09 PM

if its not the html on the srver its not codecharge either
it is your server configuration


www.dgwebstore.com does not resolve to the same ip as above

and there are 2 redirects

also what happens if a user cannot access ports 3003 or 7007?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
Suntower

Posts: 225
Posted: 09/02/2009, 10:21 AM

Quote damian:
if its not the html on the srver its not codecharge either
it is your server configuration

Right. I'm not saying it's a codecharge problem per se. I just need help figuring it out.

Quote damian:
www.dgwebstore.com does not resolve to the same ip as above

I don't know what you mean. The code at the server for the redirection page is

<html>
<head>
<meta http-equiv="REFRESH" content="0;URL=http://66.114.87.42:3003/mainmenu.asp?COMPANYDB=C01&LOCATIONID=01">
<title>DGWEBSTORE</title>
</head>

<body>

...and this serves up in my browser as

<html>
<head>
</head>
<frameset frameborder="0" border="0" *="" ,="" rows="100%">
<frame name="DGWEBSTORE.COM" src="http://66.114.87.42:3003">
</frame>
</frameset>
</html>

...that's the problem. -Where- is this frame coming from?

Quote damian:
and there are 2 redirects

Two? I only see the one. Where's the other? Please explain.

Quote damian:
also what happens if a user cannot access ports 3003 or 7007?
Nothing. There is no default page so no page is served. The browser simply hangs.

So tired of this. It's obviously something I'm missing, but I have no idea what.

Ideas?

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
melvyn


Posts: 333
Posted: 09/02/2009, 12:45 PM

DatePicker don't work when the page called inside the iframe is a css generated. There isn't a known workaround for this. I had issues with this by 2006 and support din't find the way to get it done.

Some javascript in datepicker.js that uses the window.location... which returns the calling page (not the iframed one); meanwhile, the functions are located inside the iframed page.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com
View profile  Send private message
datadoit
Posted: 09/02/2009, 2:53 PM

We've never experienced this issue in any version (2.3+), and our
primary hosted app utilizes iframes.
Oper


Posts: 1195
Posted: 09/02/2009, 5:33 PM

we have ccs pages inside iframe and datepicker work ok
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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