473,382 Members | 1,409 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,382 software developers and data experts.

redirecting a frame with java script

in my project i ahave frame sets i want to main frame to direct a url
with query string when press a button that is at left frame vit java script
code

thanks in advance for ayn hepl or idea
Nov 15 '05 #1
3 1551
Cantekin,

In that case, just have the event handler of the button access the frame
through the DOM and set the location property of the document in the frame.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Cantekin Guneser" <ca*************@hotmail.com> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
in my project i ahave frame sets i want to main frame to direct a url
with query string when press a button that is at left frame vit java script code

thanks in advance for ayn hepl or idea

Nov 15 '05 #2
firstly thanks for your attention
i am new on java scriptting, as we know in .net c# we can not direct frame
from another frame this is why i need i prepare a function as follow;
function Find()
{
var qrystr;

qrystr =
'estype='+Form1.DDL_EstateType.options[Form1.DDL_EstateType.selectedIndex].v
alue+'&comtype='+
Form1.DDL_EstateComType.options[Form1.DDL_EstateComType.selectedIndex].value
+'&city='+Form1.DDL_EstateCity.options[Form1.DDL_EstateCity.selectedIndex].v
alue+'&state='+Form1.DDL_EstateProvince.options[Form1.DDL_EstateProvince.sel
ectedIndex].value+'&mtype='+Form1.DDL_Money.options[Form1.DDL_Money.selected
Index].value;

if(Form1.Textbox1.value == '')
qrystr += '&price=0';
else
qrystr += '&price=' + Form1.Textbox1.value;

if(Form1.CB_Foto.checked)
qrystr += '&foto=1';
else
qrystr += '&foto=0';
}

sqlsrt is for querystring now can you tell me in detail how i can redirec
the other frame with this querystring
i will be glad if you can send me little eaxample
thank again

Nov 15 '05 #3
Cantekin,

The only way I can think of doing this would be to pass back a piece of
javascript that would redirect the frame, if the conditions are met. Since
this request is coming in from one frame, you can pass back a javascript
function which is executed on load which will set the location of the other
frame.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Cantekin Guneser" <ca*************@hotmail.com> wrote in message
news:OV****************@TK2MSFTNGP12.phx.gbl...
firstly thanks for your attention
i am new on java scriptting, as we know in .net c# we can not direct frame from another frame this is why i need i prepare a function as follow;
function Find()
{
var qrystr;

qrystr =
'estype='+Form1.DDL_EstateType.options[Form1.DDL_EstateType.selectedIndex].v alue+'&comtype='+
Form1.DDL_EstateComType.options[Form1.DDL_EstateComType.selectedIndex].value +'&city='+Form1.DDL_EstateCity.options[Form1.DDL_EstateCity.selectedIndex].v alue+'&state='+Form1.DDL_EstateProvince.options[Form1.DDL_EstateProvince.sel ectedIndex].value+'&mtype='+Form1.DDL_Money.options[Form1.DDL_Money.selected Index].value;

if(Form1.Textbox1.value == '')
qrystr += '&price=0';
else
qrystr += '&price=' + Form1.Textbox1.value;

if(Form1.CB_Foto.checked)
qrystr += '&foto=1';
else
qrystr += '&foto=0';
}

sqlsrt is for querystring now can you tell me in detail how i can redirec
the other frame with this querystring
i will be glad if you can send me little eaxample
thank again

Nov 15 '05 #4

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

Similar topics

2
by: Didier Degey | last post by:
hi all here is my problem ... i'm working on a network connection project and for the application i use a multi-window system one page for the search form one page for displaying general...
3
by: Dynamo | last post by:
Hi My site uses frames and some of the frame pages are ranked higher in search engine rankings than the main page. When somebody clicks on the link it takes them to the frame page and they don't...
2
by: Bob T Bunny | last post by:
Hi all, I am trying to copy a form that is in one frame, using a button on another frame. The form has a couple of tables inside it. I can get it working when the button is in the same frame,...
1
by: bayouprophet | last post by:
Cant get menu script to to put linked page in the same frame. I am new to Java and I am wondering what am I doing wrong? below are my java applet file, frame.html file, and my text file and one...
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
2
by: Magesh | last post by:
Hi, I am trying to do the following 1. On form submit, open a window with three frames 2. Set the target as one of the frames 3. Set the action for the frame It is working properly in...
1
by: Bilbo | last post by:
Hello, How do I programatically redirect a page in "another frame" using C# in ASP.NET? Server.Transfer redirects the current page...not a different frame. Thanks.
5
by: Just D. | last post by:
How can we get the frame size or the windows size? What JAVA script should we use to get it in C# codebehind? Is it correct that we can use the jAVA script onload and onresize to get the current...
3
by: rajarya | last post by:
Hi, I m designing a HTML page(index.html),here i have 2 frames,by defult both frames have index1.html and index2.html as their source . in first frame(index.html) ,i have some redio buttons,and a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.