473,714 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript and Iframe load date with ASP

Ok simple project!

a login page with a hidden iframe

when u click on submit after inserting your user and pass it pushes
those values to iframe and asp query the db and returns a code if it is
ok then whe whole page redirect to a url if not an error code is showed
on the page

how do I do this? I am really confused?!?!

thanks buddies!

Kerim Incedayi

Oct 25 '05 #1
3 1832
> when u click on submit after inserting your user and pass it pushes
those values to iframe and asp query the db and returns a code if it is
ok then whe whole page redirect to a url if not an error code is showed
on the page

how do I do this? I am really confused?!?!


I am assuming you can create most of the code yourself and just need to
be pointed in the right direction... if not please reply as such. Also
note that this is far from being the only way to do this.

In the document loaded by the iframe create a form with a hidden field
for each field the user fills out. Set the onsubmit handler of the
user-visible form to grab each value and copy its value into the iframe
form, then call submit() on the form in the iframe. The ASP script can
then take errors and turn them into javascript variables in the
resulting page loaded into the iframe, along with an onload handler
that calls whatever function on the main page that will handle errors,
passing the error(s) as arguments.

Apple has a tutorial on doing pretty much what you are asking for at
http://developer.apple.com/internet/...nt/iframe.html
You may also want to try using AJAX to do the same thing, the most
useful tutorial for such I have seen being
http://jibbering.com/2002/4/httprequest.html

Hope this helps you.

Oct 26 '05 #2
ok well I am an ASP expert I can do the server part but how can I
submit form values to iframe? if I can call the asp for ex:
login.asp?user= username&pass=p assword it will be ok. then I can create
a function call back to parent window and process it.. but I am not
sure about sending form values to iframe..

thanks for the help

:)

Kerim

Oct 26 '05 #3
ok I got it done.. it was tricky but worked like a charm :) I added
some visuals such as a layer saying waiting for approval :)

merci!

Kerim

Oct 27 '05 #4

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

Similar topics

5
5210
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have to wait for the external resource to load to show up the page, thus giving a perceiving faster load time for the user.
1
3516
by: jeff_m | last post by:
Hello all, I'm having an issue with the following: I have an .aspx page with two html links that call distinct Javascript functions. I also have an iframe in the html of this .aspx page. The Javascript functions are supposed to redirect the iframe to a new page (different page for each link).
8
3670
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
5
1750
by: Cloy | last post by:
The script below loads a calendar page in an iframe and scrolls to today's date. It works just dandy on my apache/linux server, but won't do anything when I use IIS. (Nothing appears on the page at all where the script is at.) I'd appreciate any suggestions on how to make this work from the IIS server.
5
2747
by: ken.roberts | last post by:
Hello, I'm hoping someone might help us understand the code listed below. One of our clients has been having unknown Javascript appear in their home page. The client swears that they are not changing the page and we have been on vacation since we last removed the first 'unknown' code. The following code appears this week on their site: <script language=JavaScript>function decrypt_p(x){var
16
1839
by: Phlip | last post by:
Javascripters: I have a page with an iframe inside. Let's say the iframe looks like this: <script src="/javascripts/prototype.js" type="text/javascript" /> .... <iframe id='grinder' src='sample.html' > </iframe> That prototype.js gives us goodies like $(). And sample.html looks a little
2
3153
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button then the calender gone actually i want if i click outside off the calender then it should me removed ..How kan i do this ... Pls inform me as early as possible .. I am waiting for ur quick replay ...Here i attached the source code .... <!DOCTYPE...
1
3190
by: wenijah | last post by:
Hi everyone! First thank you for reading this post and yes, you probably already see that kind of topic title somewhere but the problem I've got today might be different than the 100 topics I've seen so far that did not resolve my problem... Environment and problem: I have a page A with Ajax.js and a <div id="ajx">Content</div> that changes when clicking on a link. Another page, page B, gets loaded into page A and (tries) to load a...
2
9034
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to figure this problem out. Any suggestions? thanks Joel
0
8796
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8704
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
9307
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
9071
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
9009
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...
0
7946
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6627
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
5943
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();...
3
2105
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.