473,472 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to log-on twice using script

3 New Member
hello fellow coders

i'll try and explain this as best as i can... I have created a .shtml page, all this does is mimic another webpage (i.e. same variables, textboxes etc) its just a different layout. On this webpage you fill in your username and password. This webpage then posts the username and password to a third party website (of which i have no control over or cannot edit the code) to log on to their website. Here is the problem, when you press submit it posts and opens a new window to thier log on page rather then logging you in, without closing the original (my created .shtml page) and pressing the submit again, another window opens but this time you are logged in. This is what i am trying to do -

Post to an invisible IFrame twice, then do the submit (I.E essentially log in without the user seeing it log in then open a new window already logged in)

the problem i have come across is that it only logs in once rather then twice in the IFrame no matter how many times i call document.main.submit(); ... one way round it would be to use IF statements and once the user presses submit, get the submit button to auto click (essencially submitting twice). I am just not sure how to do this.

also the reason i am using an invisible IFrame is because i can get it to work and post twice but it has to open 2 extra windows along with the original (i.e. you end up with my login page, third party login page and the page that has you logged in). I would rather it didn't do this as it is untidy.

If anyone can see a way to do this or has any other ideas of how to fix the problem or submit twice please help. I have spent 3 days trying to fix this problem and have come up blank, to the point where i don't think it is possible.

Cheers For all your help in advance
Oct 24 '07 #1
1 1089
gits
5,390 Recognized Expert Moderator Expert
hi ...

could you post a link to a testpage or some code you have tried? i'm not quite sure what you try to do ... you want to avoid a loginpage to be displayed for an external webpage?

kind regards
Nov 4 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Igor Solodovnikov | last post by:
Hi. I am trying to automatically backup transaction log when error 9002 happened. So i have created appropriate job and alert to catch this error. I have two instances of sql server under Windows...
5
by: BashiraInTrouble | last post by:
Hi Friends, I have tried almost everything but I cant seem to shrink the transaction log. Executing DBCC SQLPERF(LOGSPACE) gives me this info: Database Log Size (MB) Log Space Used (%) ...
6
by: Aaron | last post by:
I would like to write a program that finds all asp.net errors in iis logs? what characteristics should i look for? (a line in the log that has the error?) what about sql errors? Thanks in...
1
by: Raquel | last post by:
Ok, so these are the two pieces of information regarding the location of archived logs during a rollforward recovery in a recoverable database: 1. OVERFLOWLOGPATH configuration parameter can...
7
by: hank | last post by:
Hi All In the Circular Logging when the Primary Log file fill up, the database manager will creat a secondary log files for the transaction; when this transaction finished, the secondary log...
1
by: Hubert Fröhlich | last post by:
Hi list, when doing a large Insert I get in the logfile: 2004-08-03 07:23:46 LOG: recycled transaction log file "000001BA000000BD" 2004-08-03 07:34:00 LOG: recycled transaction log file...
8
by: John | last post by:
Is there any special code I have to write to log event to Security Event Log? The following code give me "Very Easy Question, How to write log to SECURTY Event Log? Please help" Error // Create...
1
by: bay_dar | last post by:
It seems there has got to be a better way to work with log files where I want to keep 8 days of logs. For instance if I wanted to keep 80 days, this would be a horrible approach. How can I make...
7
by: indiarocks | last post by:
Just a basic question, I want to create a standard log file API and want that API to be shared by all my other python files. For eg. I have file1 which creates a file handle and hands it over to...
5
by: alex250374 | last post by:
I have a db is in archive mod (LOGRETAIN = RECOVERY) and logprimary is set to 3. Pat the log file is / arch_log. If I go in that path i have: S0000000.LOG S0000001.LOG S0000002.LOG S0000003.LOG...
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...
1
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.