Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ASP/SQL and iframes...help:(
Old 09-27-2006, 01:37 PM ASP/SQL and iframes...help:(
Novice Talker

Posts: 12
Trades: 0
Hi

I need a little help please.

I have an 2 ASP pages named:

- page_edit.asp
- keywords_add.asp

Page_edit.asp is the main page and Keywords_add.asp is in an iframe on the page_edit.asp page.

At the moment i have 2 update buttons(these are form submit buttons) one to control the content that is updated on the page_edit.asp page and the other for the keywords_add.asp page in the iframe.

What i would like to do is when the update button is clicked on page_edit.asp that it will also update the keywords_add.asp page in the iframe.

When the keywords section is updated the data is stored in a MSSQL database and when the page_edit.asp is updated that is stored in a Access database.
Is there away to update both pages when one button is clicked?

Many thanks

Joe
Gibson is offline
Reply With Quote
View Public Profile Visit Gibson's homepage!
 
 
Register now for full access!
Old 09-27-2006, 01:59 PM Re: ASP/SQL and iframes...help:(
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Not only do I believe there is a solution, but I believe the solution can be accomplished simply by adding one line after your page_edit.asp page has done its update:
Code:
Response.Redirect "page_edit.asp"
Remember to put this AFTER your update, or it won't work properly.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-27-2006, 02:50 PM Re: ASP/SQL and iframes...help:(
Novice Talker

Posts: 12
Trades: 0
Hi, thanks for the reply

Urm i tried that but thats not what i wanted to do

I basically want to update to seperate forms, on seperate pages, at the same time if thats more help

Thanks though that will be usefull for something else im doing

Joe
Gibson is offline
Reply With Quote
View Public Profile Visit Gibson's homepage!
 
Old 09-28-2006, 03:32 AM Re: ASP/SQL and iframes...help:(
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
As the other form is in an iframe you will have to use a javascript solution to submit both
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-28-2006, 10:34 AM Re: ASP/SQL and iframes...help:(
Novice Talker

Posts: 12
Trades: 0
Hi,

Would you be able to help me with the javascript as i dont have very much knowledge when it comes to javascript

Many thanks

Joe
Gibson is offline
Reply With Quote
View Public Profile Visit Gibson's homepage!
 
Old 10-04-2006, 06:15 AM Re: ASP/SQL and iframes...help:(
Novice Talker

Posts: 12
Trades: 0
Hi,

I managed to find the solution(from someone) here it is:

Code:
<FORM>
<INPUT TYPE="BUTTON" onClick="parent.frameName.document.formName.buttonName.click()">
</FORM>
Hope that helps some one in the future

Joe
Gibson is offline
Reply With Quote
View Public Profile Visit Gibson's homepage!
 
Reply     « Reply to ASP/SQL and iframes...help:(
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.89011 seconds with 12 queries