473,394 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

form submit problem

I have a frameset -- which has 3 HTML pages.

its something like

-----------------------
|
main |
|
|
-----------------------
| |
results | track |
-----------------------

main frame has a quiz.
track frame has a hidden form.
and results frame starts of as blank.

when user completes a quiz, then some values in track form are set and
a post is done using --

if (quizcompleted) {
........
........
........
track.document.trackingForm.command.value = "complete"
track.document.trackingForm.session_id.value = aiccSid;
track.document.trackingForm.submit();
}

I just want to know that what could be the cases where the HTTP post
being done when the quiz is complete can fail..as in:

*Can a User environment stop the Post from happening??
*Could there be some problems with the way above (frameset +
javascript submit) which could make the post fail -- I mean something
browser specific?
*Could there be some software on the Users machine which might be
filtering Javascript based submits??

PS: One thing I am sure about is that -- there is no problem on the
server side -- because I am observing the Logs and I donot get the
Posts at all..Also the User is able to do Posts from normal forms
(where the user needs to put in some data in the form) and is also
able to login to the site via the login form..but only in case when we
are trying to post hidden forms via form.submit() it somehow seems to
fail..

comments awaited..

Kuntal.
Jul 20 '05 #1
2 3971
"Kuntal Joisher" <ku*****@rediffmail.com> wrote in message
news:3e**************************@posting.google.c om...
<snip>
if (quizcompleted) {
.......
.......
.......
track.document.trackingForm.command.value = "complete"
track.document.trackingForm.session_id.value = aiccSid;
track.document.trackingForm.submit();
}

I just want to know that what could be the cases where the
HTTP post being done when the quiz is complete can fail..as in:

*Can a User environment stop the Post from happening??
Not being connected to the internet at the time would stop a post.
*Could there be some problems with the way above (frameset +
javascript submit) which could make the post fail -- I mean
something browser specific?
You have not provided sufficient context for the code above to be able
to tell. It isn't even clear which frame the code provided is executing
in, let alone how it is being called. If it is called in the context of
the main frame and the "track" reference has not been explicitly set up
by you then it may be unresolved.
*Could there be some software on the Users machine which
might be filtering Javascript based submits??

<snip>

Very possible, content inserting/re-writing proxies (often if the form
of pop-up killers) are quite capable of doing that. I believe
Proximitron even has a built in filter to eliminate the use of the
submit function on forms.

Richard.
Jul 20 '05 #2

"Kuntal Joisher" <ku*****@rediffmail.com> wrote in message
news:3e**************************@posting.google.c om...
when user completes a quiz, then some values in track form are set and
a post is done using --

if (quizcompleted) {
.......
.......
.......
track.document.trackingForm.command.value = "complete"
track.document.trackingForm.session_id.value = aiccSid;
track.document.trackingForm.submit();
}


From where exactly is this function called? If anywhere else but at the
frameset "top", I'm pretty sure the "track." reference is your culprit. If
you're referencing from another frame, you should start from the top and
lose the "document." bit, as in

top.track.trackingForm.command.value

- only if the code is executed in the top frame should you ommit the "top."
bit:

track.trackingForm.command.value

Might be sleep depraved here, though (someone please kick me in the nackers
if I am)...

Works?

Daniel


--
There are 10 kinds of people: Those who know binary and those who don't.
Jul 20 '05 #3

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

Similar topics

2
by: T.E. | last post by:
Hi all, I'm a newbie in php. I encounter a problem with php form that has only one textfield. If I click on the submit button, the form works fine. However, when I press 'enter', the form...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
4
by: jwlum | last post by:
I have the following problem under Internet Explorer only: 1. User fills out form data (myform.php) and clicks a button that fires myFunction() 2. myFunction() spawns a "hello, world" popup page...
16
by: browntown | last post by:
so I have this application I'm nearly finished with. The only thing the client has requested is the ability to submit the form by pressing "enter". I didn't think this would be a huge pain in the...
4
by: Greg Scharlemann | last post by:
I'm trying to setup a dyamic dropdown list that displays a number of text fields based on the selected number in the dropdown. The problem I am running into is capturing the data already entered...
26
by: Jerim79 | last post by:
I need to create a form that takes a number that the user enters, and duplicates a question the number of times the user entered. For instance, if the customer enters 5 on the first page, when...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.