Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


same frame

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,2842
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> same frame
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 same frame - 4/29/2005 8:10:29 AM   
  Deakin

 

Posts: 1
Score: 0
Joined: 4/29/2005
From:
Status: offline
hello,
I am using this script to do a search in an xml doc. right now the results load in a another frame. but I would like to load it in the same frame as the search form. I remeber useing a div in the past but it's been awhile. is that right

<html>
<body>
<style>
blockquote {

}
</style>
<script language="VbScript" type="text/vbscript">
function build_form()
document.write("<form name='reportSearch' method='post' onsubmit='search_results(reportSearch.groupPram.value)' language='VbScript'>")
document.write("<input name='groupPram' type='text'/>")
document.write("<button type='submit'>Submit</button>")
document.write("</form>")

end function

function search_results(id)
top.frames("bottom_Frame").document.location.reload()
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("search.xml")
dim count
dim group
count = 0
group = id

set nodes=xmlDoc.selectNodes("/report_list/report[@group='"+group+"']//text()")
top.frames("bottom_Frame").document.write("<html><body><blockquote>")
for each x in nodes
count = count + 1
if count mod 2 then reportID=x.xml
top.frames("bottom_Frame").document.write("<a href='launch_page.htm?"+reportID+"' target='top'>"+x.xml+"</a>" )
top.frames("bottom_Frame").document.write("<br/>")
if count mod 2 = 0 then top.frames("bottom_Frame").document.write("</blockquote><blockquote>")
next
top.frames("bottom_Frame").document.write("<br/><br/><p>end</body></html>")
end function

document.write(build_form())

</script>

</body>
</html>




thanks for any help
 
 
Post #: 1
 
 Re: same frame - 5/1/2005 2:33:00 AM   
  VBS

 

Posts: 110
Score: 0
Joined: 3/2/2005
From: Lebanon
Status: offline
Dear Deakin,
I am not sure try using this line :
<script language="VbScript" type="text/vbscript" runat=server>

instead of this one:
<script language="VbScript" type="text/vbscript">


Hope this helps

Best regards
Firas S Assaad

(in reply to Deakin)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> same frame Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts