473,729 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iframe problem

We have a form that contains an iframe. In the iframe are 3 select
boxes (country, state and city). When you select the country, the
iframe page refreshes with the appropriate states and does the same
thing when you select a state. We did some testing in the different
browsers with this method and it appeared that the only browser that it
worked reliably in was IE. So, we put some asp code in that ran a
browser check and displayed the iframe only if the user was using IE.

We noticed that over the last few weeks, we've been getting a number of
support request emails from users who try to fill out the form and when
they submit it, it doesn't contain the information from the iframe. We
found that when some users would disable their firewall, it would work.
But, it didn't fix all occurences of this problem.

Does anyone know if there's a problem with this type of setup or what
could be happening? Oh, and the process is like this. They fill out
the form, submit it to page 2 (page 2 pulls all the variables from page
1 and puts them in hidden form values) and page 2 submits to master
processing page which returns the error. Thanks.

Jul 24 '05 #1
9 3729
cakewalkr7 wrote:
We have a form that contains an iframe. In the iframe are 3 select
boxes (country, state and city). When you select the country, the
iframe page refreshes with the appropriate states and does the
same thing when you select a state. We did some testing in the
different browsers with this method and it appeared that the only
browser that it worked reliably in was IE. So, we put some asp
code in that ran a browser check and displayed the iframe only if
the user was using IE.
Is this for the WWW or an intranet?

I don't use IE. Ever...
We noticed that over the last few weeks, we've been getting a
number of support request emails from users who try to fill out the
form and when they submit it, it doesn't contain the information
from the iframe. We found that when some users would disable their
firewall, it would work. But, it didn't fix all occurences of this
problem.
What happens to your form when you disable JavaScript? Without your
URL, we can't really tell...
Does anyone know if there's a problem with this type of setup or
what could be happening? Oh, and the process is like this. They
fill out the form, submit it to page 2 (page 2 pulls all the
variables from page 1 and puts them in hidden form values) and page
2 submits to master processing page which returns the error.


Hidden form values are prone to failure, methinks.

--
-bts
-This space intentionally left blank.
Jul 24 '05 #2
It's used in a number of employment related web sites, so no, no
intranet. I understand you not wanting to use IE and I don't really
want to anymore either, but the fact is, you still have to make sure
things work in it since the majority of surfing is done with it. We
wrote some no script content for the page informing the user that they
must have javascript enabled to use the form. As for the URL, you
can't access the iframe page any more. I've taken it out of production
until we get the problem resolved (if that's even possible). Why are
hidden form values prone to failure? I've never run into a problem
with them before. Thanks.

Jul 24 '05 #3
Gazing into my crystal ball I observed "cakewalkr7 " <cakewalkr7
@hotmail.com> writing in news:1119892893 .683260.87690
@g49g2000cwa.go oglegroups.com:
It's used in a number of employment related web sites, so no, no
intranet. I understand you not wanting to use IE and I don't really
want to anymore either, but the fact is, you still have to make sure
things work in it since the majority of surfing is done with it. We
wrote some no script content for the page informing the user that they
must have javascript enabled to use the form. As for the URL, you
can't access the iframe page any more. I've taken it out of production
until we get the problem resolved (if that's even possible). Why are
hidden form values prone to failure? I've never run into a problem
with them before. Thanks.


Hidden form values can be read and spoofed by the client, but in your
case, you might be having a situation where they are not getting
populated. Have you tried turning off js and seeing if the fields
populate?

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #4
Yes, and they are being populated. Except of course the field that is
turning up as the problem field. But I don't think that's what's
causing the problem. We've specifically asked the people who have
problems if they have javascript enabled and they do. Plus, with the
big no script warning at the top of the page, if they still don't turn
it on, it's their fault if they get an error like that.

Jul 24 '05 #5
cakewalkr7 wrote:
It's used in a number of employment related web sites, so no, no
intranet. I understand you not wanting to use IE and I don't
really want to anymore either, but the fact is, you still have to
make sure things work in it since the majority of surfing is done
with it.
What, 80% and falling? Sure, it has to work in IE, but it has to work
in all other major browsers as well. How about PDAs and mobile phones?
Will your page work on those?

Make it work first in Firefox and Opera, then tweak what IE won't do.
We wrote some no script content for the page informing the user
that they must have javascript enabled to use the form.
What if my mobile phone doesn't even have JavaScript?
As for the URL, you can't access the iframe page any more. I've
taken it out of production until we get the problem resolved (if
that's even possible). Why are hidden form values prone to
failure? I've never run into a problem with them before. Thanks.
Adrienne answered that. All an unscrupulous visitor has to do is make
a copy of your page (Save As...), change the values in the source, and
click the Submit button. And lo, you've just sold a new car for a
dollar. (you get the idea)

and your other post: Plus, with the big no script warning at the top of the page, if
they still don't turn it on, it's their fault if they get an error
like that.


No, it's still your problem. <g> I have a number of forms and web
apps online, and not a single one of them needs JavaScript.

BTW, Google Groups does have a method of quoting what you are replying
to...

--
-bts
-This space intentionally left blank.
Jul 24 '05 #6
Look, I'm not trying to start an argument about the merits and
shortcomings of certain browsers. I fully understand that you have to
design for all browsers, but in our situation, we really aren't
concerned about pdas and mobile phones. We have attempted to make this
application as cross browser as possible while either only using
javascript that translates fine between all browsers, or using server
side detection to give them the correct content. As far as not
worrying about mobile phones and pdas, yes, that's our problem, but we
choose not to worry about it.

I know you can make forms without any javascript, but in this
particular case, javascript helped to solve a number of problems.
Without javascript, we would either have had to load every country,
state and city (which would be very messy and long to load) or require
the user to resubmit the form over and over for each change when they
change the country or state. Keep in mind, there is location
information like this for home address, work address, relocation
address, etc. So, that would require many manual submissions. You
don't need javascript for your apps... fine, good for you. For us it
makes sense.

Now back to the original question. Javascript is definitely not the
cause of this problem. We have determined that with many users and net
meeting calls. All I'm asking is if anyone knows if there's a known
problem in ANY browser when you submit a form that has an iframe that
contains part of the form contents?

Jul 24 '05 #7
cakewalkr7 wrote:
Look, I'm not trying to start an argument about the merits and
shortcomings of certain browsers.
Ok. Neither was I.
I fully understand that you have to design for all browsers, but in
our situation, we really aren't concerned about pdas and mobile
phones. ...
Still, it pays to think about it. While you didn't say all your users
will be using a desktop computer somewhere, maybe next year they will
be surfing while driving to work. :-)
I know you can make forms without any javascript, but in this
particular case, javascript helped to solve a number of problems.
Without javascript, we would either have had to load every country,
state and city (which would be very messy and long to load) or
require the user to resubmit the form over and over for each change
when they change the country or state. Keep in mind, there is
location information like this for home address, work address,
relocation address, etc. So, that would require many manual
submissions. You don't need javascript for your apps... fine, good
for you. For us it makes sense.
Use it where appropriate of course. Just be sure that your server's
processing code also checks for all validation.

I don't have any apps that use every country, state/province/etc, and
city in them, and I can't see why you would need to preload such data.
Have them enter those items, then verify against a server-side table.

Unless you are talking only about a small subset of country/state/city
that would be a valid entry - but you didn't say that. <g>
Now back to the original question. Javascript is definitely not
the cause of this problem. We have determined that with many users
and net meeting calls. All I'm asking is if anyone knows if
there's a known problem in ANY browser when you submit a form that
has an iframe that contains part of the form contents?


My thinking is that an iframe contains a completely separate page,
with likely a separate form, and may not be visible to your processor.

--
-bts
-This space intentionally left blank.
Jul 24 '05 #8
Gazing into my crystal ball I observed "cakewalkr7 " <cakewalkr7
@hotmail.com> writing in news:1119893763 .881840.208930
@f14g2000cwb.go oglegroups.com:
Yes, and they are being populated. Except of course the field that is
turning up as the problem field. But I don't think that's what's
causing the problem. We've specifically asked the people who have
problems if they have javascript enabled and they do. Plus, with the
big no script warning at the top of the page, if they still don't turn
it on, it's their fault if they get an error like that.


Have _you_ turned off javascript yourself and seen what the page is
doing? Don't rely on what people are telling you - when you're
debugging, you have to do it yourself.

Download Opera, you can turn javascript and a host of other things off
and on on the fly.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 24 '05 #9
Adrienne wrote:
Download Opera, you can turn javascript and a host of other things
off and on on the fly.


Also easy in Firefox with the PrefBar extension:
http://prefbar.mozdev.org/

--
-bts
-This space intentionally left blank.
Jul 24 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7620
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I fill the iframe with content (<body> tag and so on and also insert a <div> tag, inbetween is the content that should be modified). Now if the event "overflow" or "underflow" is triggered the iframe
7
4865
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+ doesn't seem to have the problem. I'm doing: this.iframe = document.createElement( 'iframe' ); this.iframe.id = this.id + 'wh'; this.iframe.style.display = 'none';
12
2491
by: wangzx | last post by:
I am the author of easyajax.sourceforge.net, and I have a problem on Firefox 1.5, I post the problem here and hopes somebody help me. The test page can be: http://easyajax.sourceforge.net/demo/overview.html The page works well in Firefox 1.0.* and IE 6.0, and Opera 8.5, but it doesnt work on Firefox 1.5, the first time you open the page, it works well, but when you refresh the page(such as CTRL-R), the page will displayed in bad way.
26
3242
by: shlomi.schwartz | last post by:
using this example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test Page</title> </head>
1
6676
by: jaktharkhan | last post by:
Hi, I really really need help in trying to figure out how can I do a CloneNode on an Iframe where the cloned IFRAME clones with all its contents?. Basically what I am doing is dynamically building a table with Iframes inside it. The problem is I just want to build one Iframe because the contents of it can be very complex. After my Iframe is built I just want to clone the iframe as many times as I need later. I cannot use an HTML file and...
7
6724
by: nicknack | last post by:
Hi. I have a strange problem wuth IFRAME. I have page aaa.aspx with an IFRAME that contain page bbb.aspx. page bbb.aspx sometimes redirect him self to page ccc.aspx. The problem is that after I loaded the aaa.aspx page I want to know what page do I see in the IFRAME. (aaa or bbb).
0
1366
by: mem | last post by:
Hello, I'm a novice at this and am trying to solve a problem reference IFrame. The following code is for a page I've created. It works well with two exceptions. The IFrame is an application hosted by a third party that has no problem with me framing their page. The problem is when the user reaches the end of the first IFame page and clicks continue which reloads the IFrame to page 2 of a total of 4. Each time the Iframe page changes the main...
0
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9206
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9154
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6026
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4797
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.