SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-05-2006, 02:56 PM
gilgalbiblewheel gilgalbiblewheel is offline
SEO Junior
 
Join Date: Sep 2004
Posts: 15 gilgalbiblewheel is on a distinguished road
Need ASP/Javascript to write URL of iFrame

Ok Let me redirect my goal.
I have set an alert. It says:
Code:

http://127.0.0.1/showversea.asp?id=15418&keyword=brutish


But when the iFrame opens it writes only this in the URL.

Code:
 

http://127.0.0.1/wheelofgod/showversea.asp?id=15418

The second URL shows what the select name "id" is picking up "15418" from the option value. But it fails to pick up the "keyword" <%=Keyword%>. The page of dropdown is ASP-generated, in other words the ASP builds the dropdown from the result of the database table. Here is the section of the source:
Code:
	<script language="JavaScript" type="text/javascript">
	<!--
	function go1(identity,keyword)
        {
document.forms['bookSelect'].action = 'showversea.asp?id=' + identity + '&keyword='  + keyword 
               alert(bookSelect.action);
          bookSelect.submit();
        }
	//-->
	</script>

And
Code:
		
<form name="bookSelect" action="showversea.asp" method="get" target="ifrVerse">
<select name="id" size="10" style="width:200;" onchange="go1(document.forms['bookSelect'].id[document.forms['bookSelect'].id.selectedIndex].value,'brutish');">


			
				<option  value="14659">Psalms&nbsp;49:10</option>
				
				<option  value="15418">Psalms&nbsp;92:6</option>
				
				<option  value="15440">Psalms&nbsp;94:8</option>
				
				<option  value="16721">Proverbs&nbsp;12:1</option>
				
				<option  value="17254">Proverbs&nbsp;30:2</option>
				
				<option  value="18016">Isaiah&nbsp;19:11</option>
				
				<option  value="19210">Jeremiah&nbsp;10:8</option>

				
				<option  value="19216">Jeremiah&nbsp;10:14</option>
				
				<option  value="19223">Jeremiah&nbsp;10:21</option>
				
				<option  value="20230">Jeremiah&nbsp;51:17</option>
				
				<option  value="20976">Ezekiel&nbsp;21:31</option>
				
		</select>

Last edited by gilgalbiblewheel : 01-20-2006 at 01:30 PM.
Reply With Quote
  #2  
Old 02-08-2006, 04:46 PM
BSolveIT's Avatar
BSolveIT BSolveIT is offline
SEO
 
Join Date: May 2005
Location: England, UK
Posts: 621 BSolveIT has a spectacular aura aboutBSolveIT has a spectacular aura about
Send a message via MSN to BSolveIT
Hi!

I assume you've figured this out by now as your post was almost 3 weeks ago? Sorry, I've only just read it.

First of all, you'r not using id's to name your elements, you really should. Secondly, you've used the 'name' 'id', which probably isn't a great idea.

On a side note, Google says in their webmaster tips that they will ignore "?id=", and everything after it if you use it in a url.

Anyway, I think you could simplfy things greatly if you use id's, and then start referencing things in the prescribed W3C format.

i.e.
document.getElementById("....").value

If you haven't sorted the problem already and would like some help, let me know.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 09:42 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.