Javascript works on explore 6.0 but not on explore 5.0 and explore mac

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2005
Posts: 3
Reputation: RobRet is an unknown quantity at this point 
Solved Threads: 0
RobRet RobRet is offline Offline
Newbie Poster

Javascript works on explore 6.0 but not on explore 5.0 and explore mac

 
0
  #1
Jul 12th, 2005
I have this code that I am using in C# calling a Response.Write to call another aspx page within a frame.

Response.Write("<script language=javascript>parent.Frame.location.href('detail_search.aspx?NameOrCat=1&strFor="+strName+"&catDesc="+strCategory+"&clickedButton=0&Where="+this.WhereSelect.SelectedValue+"&searchOption="+this.rbtnStartsContains.SelectedValue.ToString()+"&section_id="+this.ddwnSection.SelectedValue.ToString()+"');</script>");

This logic works on explore 6.0 but I can not figure out why it does not work on explore 5.0 and explore mac.

Does anyone know how I could fix this problem?

Thank you very much...
Last edited by RobRet; Jul 12th, 2005 at 11:03 pm. Reason: Forgot to add Explore for MAC also
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 20
Reputation: Eddie Traversa is an unknown quantity at this point 
Solved Threads: 0
Eddie Traversa Eddie Traversa is offline Offline
Newbie Poster

Re: Javascript works on explore 6.0 but not on explore 5.0 and explore mac

 
0
  #2
Jul 13th, 2005
Try naming your frames and then use the following syntax

parent[frame1Name].location.href

Eddie Traversa

DHTML

http://dhtmlnirvana.com/

Spiritual Blog

http://www.truthrealization.com/
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 3
Reputation: RobRet is an unknown quantity at this point 
Solved Threads: 0
RobRet RobRet is offline Offline
Newbie Poster

Re: Javascript works on explore 6.0 but not on explore 5.0 and explore mac

 
0
  #3
Jul 14th, 2005
Thanks very much for your response.

I am sorry but I posted the incorrect code.

In my javascript I am using "parent.location.href". This works on "explore 6.0" but not on "explore 5.0" or "explore mac". What am I doing wrong.

Response.Write("<script language=javascript>parent.location.href('detail_search.aspx?NameOrCat=1&strFor="+strName+"&catDesc="+strCategory+"&clickedButton=0&Where="+this.WhereSelect.SelectedValue+"&searchOption="+this.rbtnStartsContains.SelectedValue.ToString()+"&section_id="+this.ddwnSection.SelectedValue.ToString()+"');</script>");

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 3
Reputation: RobRet is an unknown quantity at this point 
Solved Threads: 0
RobRet RobRet is offline Offline
Newbie Poster

Re: Javascript works on explore 6.0 but not on explore 5.0 and explore mac

 
0
  #4
Jul 14th, 2005
Thanks again Eddie I found out how to fix the problem.

I just need to update my explore 5.0 to a later version.

:eek:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC