943,917 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 3312
  • C# RSS
Jul 12th, 2005
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
RobRet is offline Offline
3 posts
since Jul 2005
Jul 13th, 2005
0

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

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/
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Eddie Traversa is offline Offline
20 posts
since Jul 2005
Jul 14th, 2005
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
RobRet is offline Offline
3 posts
since Jul 2005
Jul 14th, 2005
0

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

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:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
RobRet is offline Offline
3 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Deleting TextBox'es cause application losing foucs
Next Thread in C# Forum Timeline: Looping MP3 sound in Form?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC