473,785 Members | 2,299 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 1835
> 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
5211
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
3526
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
3677
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
5
1755
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
2749
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
1844
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
3157
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
3193
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
9039
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
9485
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
10356
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...
0
10161
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9958
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
7506
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
5390
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
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 we have to send another system
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.